mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-08-29 11:56:08 +00:00
see cpu speed again
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ class TinygradBackend(Backend):
|
||||
input_initializer = [x.name for x in model.graph.initializer]
|
||||
net_feed_input = [x for x in input_all if x not in input_initializer]
|
||||
print("prepare", cls, device, net_feed_input)
|
||||
model = Tensor(model.SerializeToString(), device="PYTHON")
|
||||
model = Tensor(model.SerializeToString(), device="cpu")
|
||||
run_onnx = OnnxRunner(onnx_load(model))
|
||||
return TinygradModel(run_onnx, net_feed_input)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user