get_input_tensors() 返回的列表的每个元素都与一个 DPU 运行器输入相对应。每个列表元素都具有若干个类属性,用法如下所示: inputTensors = dpu_runner.get_input_tensors() print(dir(inputTensors[0])这些属性中最实用的有 name、dims 和 dtype: for inputTensor in inputTensors: print(inputTensor.name)...
GetOptionalInputTensor 函数功能根据算子原型定义中的输入索引获取对应的可选输入tensor指针。 函数原型const Tensor *GetOptionalInputTen……欲了解更多信息欢迎访问华为HarmonyOS开发者官网
GetDynamicInputTensorRange 函数功能根据算子原型定义中的输入索引获取对应的动态输入tensor range指针。 函数原型using TensorRange = Ran……欲了解更多信息欢迎访问华为HarmonyOS开发者官网
voidGetInputTensor(uint32_tinputIndex, _COM_Outptr_result_maybenull_ IMLOperatorTensor** tensor) 要求 要求 最低受支持的客户端Windows 10,版本 17763 支持的最低服务器版本具有桌面体验的 Windows Server 2019 页眉MLOperatorAuthor.h 备注 使用以下资源可获取有关 Windows ML 的帮助: ...
Describe the issue Using GetTensorMutableData to get the address of the input tensor and fill in the data will report an error. Error info === Backtrace: === /data/cpp_env/lib64/libc.so.6(+0x82b36)[0x7f790f8beb36] /data/cpp_env...