在你的代码中,你应该正确地导入onnx.numpy_helper模块。正确的导入方式应该类似于: python import onnx from onnx import numpy_helper 确保你没有尝试通过onnx.numpy_helper(即带有点号的方式)来直接访问不存在的属性,而应该直接使用numpy_helper(如上所示)或onnx.helper.get_numpy_array_from_tensor(如果nump...
raise AttributeError('ddp is not supported get_ddp_logging_data') def ddp_set_static_graph(self): """ It is recommended to set static graph in the DDP constructor, which will call this private API internally. """ # If self.static_graph has been set, no need to set it again...