move state to nn/state (#1619)

This commit is contained in:
George Hotz
2023-08-22 07:36:24 -07:00
committed by GitHub
parent 1e93fd5449
commit 718ced296c
35 changed files with 64 additions and 65 deletions

View File

@@ -12,7 +12,7 @@ from tinygrad.tensor import Tensor
from tinygrad.helpers import dtypes, GlobalCounters
from tinygrad.nn import Conv2d, Linear, GroupNorm, LayerNorm, Embedding
from extra.utils import download_file
from tinygrad.state import torch_load, load_state_dict, get_state_dict
from tinygrad.nn.state import torch_load, load_state_dict, get_state_dict
class AttnBlock:
def __init__(self, in_channels):