From 19b2216610cbf1bfe569327757c1c2683daebd3c Mon Sep 17 00:00:00 2001 From: ervinzhang Date: Tue, 4 Aug 2020 14:35:31 -0400 Subject: [PATCH] fixed cpplint format --- mindspore/ccsrc/minddata/dataset/core/tensor.h | 6 +++--- mindspore/ccsrc/minddata/dataset/include/tensor.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mindspore/ccsrc/minddata/dataset/core/tensor.h b/mindspore/ccsrc/minddata/dataset/core/tensor.h index 85ed96215..ff5804655 100644 --- a/mindspore/ccsrc/minddata/dataset/core/tensor.h +++ b/mindspore/ccsrc/minddata/dataset/core/tensor.h @@ -64,9 +64,6 @@ using offset_t = uint32_t; // type of offset va using TensorPtr = std::shared_ptr; class Tensor { -#ifdef ENABLE_ANDROID - friend class tensor::DETensor; -#endif public: Tensor() = delete; Tensor(const Tensor &other) = delete; @@ -663,6 +660,9 @@ class Tensor { unsigned char *data_end_ = nullptr; private: +#ifdef ENABLE_ANDROID + friend class tensor::DETensor; +#endif /// Copy raw data of a array based on shape and strides to the destination pointer /// \param dst [out] Pointer to the destination array where the content is to be copied /// \param[in] src Pointer to the source of strided array to be copied diff --git a/mindspore/ccsrc/minddata/dataset/include/tensor.h b/mindspore/ccsrc/minddata/dataset/include/tensor.h index 85ed96215..ff5804655 100644 --- a/mindspore/ccsrc/minddata/dataset/include/tensor.h +++ b/mindspore/ccsrc/minddata/dataset/include/tensor.h @@ -64,9 +64,6 @@ using offset_t = uint32_t; // type of offset va using TensorPtr = std::shared_ptr; class Tensor { -#ifdef ENABLE_ANDROID - friend class tensor::DETensor; -#endif public: Tensor() = delete; Tensor(const Tensor &other) = delete; @@ -663,6 +660,9 @@ class Tensor { unsigned char *data_end_ = nullptr; private: +#ifdef ENABLE_ANDROID + friend class tensor::DETensor; +#endif /// Copy raw data of a array based on shape and strides to the destination pointer /// \param dst [out] Pointer to the destination array where the content is to be copied /// \param[in] src Pointer to the source of strided array to be copied -- GitLab