mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-29 20:14:01 +00:00
[VitisAI] Fix some typos in tensor_proto_new APIs (#21027)
### Description Fix some typos in Vitis AI EP. ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> Co-authored-by: liumingyue <mingyue@xilinx.com>
This commit is contained in:
parent
7c3a25225f
commit
8edec47c6c
1 changed files with 2 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ ONNX_NAMESPACE::TensorProto* tensor_proto_new_i32(const std::string& name, const
|
|||
}
|
||||
ONNX_NAMESPACE::TensorProto* tensor_proto_new_i64(const std::string& name, const std::vector<int64_t>& shape,
|
||||
const std::vector<int64_t>& data) {
|
||||
return tensor_proto_new(name, shape, ONNX_NAMESPACE::TensorProto_DataType_INT32,
|
||||
return tensor_proto_new(name, shape, ONNX_NAMESPACE::TensorProto_DataType_INT64,
|
||||
reinterpret_cast<const char*>(&data[0]), data.size() * sizeof(data[0]));
|
||||
}
|
||||
ONNX_NAMESPACE::TensorProto* tensor_proto_new_u8(const std::string& name, const std::vector<int64_t>& shape,
|
||||
|
|
@ -88,7 +88,7 @@ ONNX_NAMESPACE::TensorProto* tensor_proto_new_u32(const std::string& name, const
|
|||
}
|
||||
ONNX_NAMESPACE::TensorProto* tensor_proto_new_u64(const std::string& name, const std::vector<int64_t>& shape,
|
||||
const std::vector<uint64_t>& data) {
|
||||
return tensor_proto_new(name, shape, ONNX_NAMESPACE::TensorProto_DataType_UINT32,
|
||||
return tensor_proto_new(name, shape, ONNX_NAMESPACE::TensorProto_DataType_UINT64,
|
||||
reinterpret_cast<const char*>(&data[0]), data.size() * sizeof(data[0]));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue