forked from jiuyuan/InfiniTensor
fix: 删除单独的拷贝函数
Signed-off-by: YdrMaster <ydrml@hotmail.com>
This commit is contained in:
parent
64a5de51f3
commit
aff2b538ce
|
@ -578,18 +578,6 @@ class OnnxStub:
|
|||
def run(self) -> None:
|
||||
self.handler.run()
|
||||
|
||||
def put_int32(self, name: str, data: List[int]) -> None:
|
||||
self.handler.copy_int32(self.inputs[name], data)
|
||||
|
||||
def put_int64(self, name: str, data: List[int]) -> None:
|
||||
self.handler.copy_int64(self.inputs[name], data)
|
||||
|
||||
def put_float(self, name: str, data: List[int]) -> None:
|
||||
self.handler.copy_float(self.inputs[name], data)
|
||||
|
||||
def take_float(self) -> List[float]:
|
||||
return next(iter(self.outputs.values())).cloneFloats()
|
||||
|
||||
|
||||
def from_onnx(model: ModelProto, runtime):
|
||||
stub = OnnxStub(model, runtime)
|
||||
|
|
Loading…
Reference in New Issue