!7239 Fix codedex issue in tensor.h

Merge pull request !7239 from hewei/fix_codedex_1013
pull/7239/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit 491957a022

@ -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