mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
resnet50 hand coded optimization (#1945)
* resnet50 hand coded opt * hand optimize one kernel * opt in both places to fix test
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import tinygrad.nn as nn
|
||||
from tinygrad.tensor import Tensor
|
||||
from extra.utils import get_child
|
||||
|
||||
class BasicBlock:
|
||||
@@ -114,7 +115,7 @@ class ResNet:
|
||||
return out
|
||||
return features
|
||||
|
||||
def __call__(self, x):
|
||||
def __call__(self, x:Tensor) -> Tensor:
|
||||
return self.forward(x)
|
||||
|
||||
def load_from_pretrained(self):
|
||||
|
||||
Reference in New Issue
Block a user