Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
add namespace before Tensor
Browse files Browse the repository at this point in the history
  • Loading branch information
Zha0q1 committed Jul 11, 2019
1 parent 95c7c44 commit a41720d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/common/tensor_inspector.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
namespace mxnet {

/*!
* \brief This singleton struct mediates individual TensorInspector objects
* \brief this singleton struct mediates individual TensorInspector objects
* so that we can control the global behavior from each of them
*/
struct InspectorManager {
Expand Down Expand Up @@ -611,7 +611,7 @@ class TensorInspector {

public:
/*!
* \brief Construct from Tensor object
* \brief construct from Tensor object
* \tparam Device the device the tensor resides in
* \tparam dimension the dimension of the tensor
* \tparam DType the data type
Expand All @@ -620,19 +620,19 @@ class TensorInspector {
*/
template<typename Device, int dimension,
typename DType MSHADOW_DEFAULT_DTYPE>
TensorInspector(const Tensor<Device, dimension, DType>& ts, const RunContext& ctx):
TensorInspector(const mshadow::Tensor<Device, dimension, DType>& ts, const RunContext& ctx):
tb_(ts), ctx_(ctx) {}

/*!
* \brief Construct from TBlob object
* \brief construct from TBlob object
* \param tb the source tblob object
* \param ctx the run context of the tensor
*/
TensorInspector(const TBlob& tb, const RunContext& ctx):
tb_(tb), ctx_(ctx) {}

/*!
* \brief Construct from NDArray object. Currently this only works with kDefaultStorage
* \brief construct from NDArray object. Currently this only works with kDefaultStorage
* \param arr the source ndarray object
* \param ctx the run context of the tensor
*/
Expand All @@ -658,7 +658,7 @@ class TensorInspector {
}

/*!
* \brief interactive print the tensor value
* \brief interactively print the tensor value
* \param tag the name given to this call
*/
inline void interactive_print(std::string tag = "") {
Expand Down

0 comments on commit a41720d

Please sign in to comment.