forked from jiuyuan/InfiniTensor
fix: 重新导出 cuda_runtime()
Signed-off-by: YdrMaster <ydrml@hotmail.com>
This commit is contained in:
parent
9ab78f13f7
commit
dc79b72655
|
@ -28,6 +28,10 @@ from functools import reduce
|
||||||
cpu_runtime = backend.cpu_runtime()
|
cpu_runtime = backend.cpu_runtime()
|
||||||
|
|
||||||
|
|
||||||
|
def cuda_runtime():
|
||||||
|
return backend.cuda_runtime()
|
||||||
|
|
||||||
|
|
||||||
def from_onnx(model: ModelProto, runtime) -> backend.GraphHandler:
|
def from_onnx(model: ModelProto, runtime) -> backend.GraphHandler:
|
||||||
model = infer_shapes(model)
|
model = infer_shapes(model)
|
||||||
handler = backend.GraphHandler(runtime)
|
handler = backend.GraphHandler(runtime)
|
||||||
|
|
Loading…
Reference in New Issue