!46917 Tensor tostring support uint64_t
Merge pull request !46917 from caifubi/r2.0.0-alpha-input-to-attr
This commit is contained in:
commit
53ce6bf714
|
@ -1731,6 +1731,8 @@ std::string AnfAlgo::GetTensorValueString(const tensor::TensorPtr &tensor) {
|
|||
fn(reinterpret_cast<uint32_t *>(tensor->data_c()));
|
||||
} else if (dtype->type_id() == kNumberTypeInt64) {
|
||||
fn(reinterpret_cast<int64_t *>(tensor->data_c()));
|
||||
} else if (dtype->type_id() == kNumberTypeUInt64) {
|
||||
fn(reinterpret_cast<uint64_t *>(tensor->data_c()));
|
||||
} else if (dtype->type_id() == kNumberTypeFloat16) {
|
||||
fn(reinterpret_cast<float16 *>(tensor->data_c()));
|
||||
} else if (dtype->type_id() == kNumberTypeFloat64) {
|
||||
|
|
Loading…
Reference in New Issue