Browse Source

!7239 Fix codedex issue in tensor.h

Merge pull request !7239 from hewei/fix_codedex_1013
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
491957a022
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/core/ir/tensor.h

+ 1
- 1
mindspore/core/ir/tensor.h View File

@@ -227,7 +227,7 @@ class Tensor : public MetaTensor {
// brief Get Tensor data byte-size for c++ type
//
// return byte size of Tensor data
size_t Size() const { return data().nbytes(); }
size_t Size() const { return static_cast<size_t>(data().nbytes()); }

void *data_c() const { return data_->data(); }



Loading…
Cancel
Save