This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # nanoclaw.py - A minimal OpenClaw | |
| # Multi-agent CLI with role-based agents | |
| # Run: uv run --with anthropic --with schedule python nanoclaw.py | |
| import json | |
| import os | |
| import shlex | |
| import subprocess | |
| import threading |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import torch | |
| class TransformerNet(torch.nn.Module): | |
| def __init__(self): | |
| super(TransformerNet, self).__init__() | |
| # Initial convolution layers | |
| self.conv1 = ConvLayer(3, 32, kernel_size=9, stride=1) | |
| self.in1 = torch.nn.InstanceNorm2d(32, affine=True) | |
| self.conv2 = ConvLayer(32, 64, kernel_size=3, stride=2) |