mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-06-24 02:14:17 +00:00
hotfix: no rng in test/external/external_benchmark_schedule.py
This commit is contained in:
parent
ed1ed9e4ff
commit
38d45dfba5
1 changed files with 2 additions and 1 deletions
3
test/external/external_benchmark_schedule.py
vendored
3
test/external/external_benchmark_schedule.py
vendored
|
|
@ -1,6 +1,6 @@
|
|||
from typing import List
|
||||
from extra.models.resnet import ResNet50
|
||||
from tinygrad import Tensor, Device
|
||||
from tinygrad import Tensor, Device, nn
|
||||
from tinygrad.helpers import Profiling, Timing, getenv, BEAM, NOOPT, DEBUG, Context, ansilen
|
||||
from tinygrad.ops import UOps
|
||||
from tinygrad.codegen.kernel import Kernel
|
||||
|
|
@ -11,6 +11,7 @@ from tinygrad.engine.search import beam_search, bufs_from_lin
|
|||
|
||||
if __name__ == "__main__":
|
||||
mdl = ResNet50()
|
||||
for p in nn.state.get_parameters(mdl): p.replace(Tensor.empty(p.shape))
|
||||
img = Tensor.empty(64, 3, 224, 224)
|
||||
|
||||
PROFILE = getenv("PROFILE", 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue