You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/10/30 17:04:14 UTC

[GitHub] eric-haibin-lin closed pull request #13033: Fix inconsistent naming, description in operator/tensor files

eric-haibin-lin closed pull request #13033: Fix inconsistent naming, description in operator/tensor files
URL: https://github.com/apache/incubator-mxnet/pull/13033
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/src/operator/tensor/broadcast_reduce-inl.h b/src/operator/tensor/broadcast_reduce-inl.h
index 39c68bd62a6..167fa34b083 100644
--- a/src/operator/tensor/broadcast_reduce-inl.h
+++ b/src/operator/tensor/broadcast_reduce-inl.h
@@ -19,8 +19,8 @@
 
 /*!
  *  Copyright (c) 2015-2017 by Contributors
- * \file broadcast_reduce_kernel.h
- * \brief Function definition of elementwise unary operators
+ * \file broadcast_reduce-inl.h
+ * \brief CPU-specific Function definition of broadcast and reduce operators
  */
 #ifndef MXNET_OPERATOR_TENSOR_BROADCAST_REDUCE_INL_H_
 #define MXNET_OPERATOR_TENSOR_BROADCAST_REDUCE_INL_H_
diff --git a/src/operator/tensor/broadcast_reduce_op.h b/src/operator/tensor/broadcast_reduce_op.h
index 0944d255a45..1edcb5a74a7 100644
--- a/src/operator/tensor/broadcast_reduce_op.h
+++ b/src/operator/tensor/broadcast_reduce_op.h
@@ -19,8 +19,8 @@
 
 /*!
  *  Copyright (c) 2015 by Contributors
- * \file elementwise_unary_op-inl.h
- * \brief Function definition of elementwise unary operators
+ * \file broadcast_reduce_op.h
+ * \brief Function definition of broadcast and reduce operators
  */
 #ifndef MXNET_OPERATOR_TENSOR_BROADCAST_REDUCE_OP_H_
 #define MXNET_OPERATOR_TENSOR_BROADCAST_REDUCE_OP_H_
diff --git a/src/operator/tensor/broadcast_reduce_op_index.cc b/src/operator/tensor/broadcast_reduce_op_index.cc
index 969c23af974..c18a8bcf912 100644
--- a/src/operator/tensor/broadcast_reduce_op_index.cc
+++ b/src/operator/tensor/broadcast_reduce_op_index.cc
@@ -20,7 +20,7 @@
 /*!
  *  Copyright (c) 2016 by Contributors
  * \file broadcast_reduce_op_index.cc
- * \brief CPU Implementation of broadcast and reduce functions.
+ * \brief CPU Implementation of broadcast and reduce functions based on index.
  */
 #include "./broadcast_reduce_op.h"
 
diff --git a/src/operator/tensor/broadcast_reduce_op_index.cu b/src/operator/tensor/broadcast_reduce_op_index.cu
index 0d7b29dfa64..c8f2b0755fe 100644
--- a/src/operator/tensor/broadcast_reduce_op_index.cu
+++ b/src/operator/tensor/broadcast_reduce_op_index.cu
@@ -19,8 +19,8 @@
 
 /*!
  *  Copyright (c) 2016 by Contributors
- * \file broadcast_reduce_op.cu
- * \brief GPU Implementation of broadcast and reduce functions.
+ * \file broadcast_reduce_op_index.cu
+ * \brief GPU Implementation of broadcast and reduce functions based on index.
  */
 #include "./broadcast_reduce_op.h"
 
diff --git a/src/operator/tensor/broadcast_reduce_op_value.cc b/src/operator/tensor/broadcast_reduce_op_value.cc
index c3bc9cfd3f0..1fdbb892057 100644
--- a/src/operator/tensor/broadcast_reduce_op_value.cc
+++ b/src/operator/tensor/broadcast_reduce_op_value.cc
@@ -19,8 +19,8 @@
 
 /*!
  *  Copyright (c) 2016 by Contributors
- * \file broadcast_reduce_op.cc
- * \brief CPU Implementation of broadcast and reduce functions.
+ * \file broadcast_reduce_op_value.cc
+ * \brief CPU Implementation of broadcast and reduce functions based on value.
  */
 #include "./broadcast_reduce_op.h"
 
diff --git a/src/operator/tensor/broadcast_reduce_op_value.cu b/src/operator/tensor/broadcast_reduce_op_value.cu
index 12ddcdd940c..881f52090a7 100644
--- a/src/operator/tensor/broadcast_reduce_op_value.cu
+++ b/src/operator/tensor/broadcast_reduce_op_value.cu
@@ -19,8 +19,8 @@
 
 /*!
  *  Copyright (c) 2016 by Contributors
- * \file broadcast_reduce_op.cu
- * \brief GPU Implementation of broadcast and reduce functions.
+ * \file broadcast_reduce_op_value.cu
+ * \brief GPU Implementation of broadcast and reduce functions based on value.
  */
 #include "./broadcast_reduce_op.h"
 
diff --git a/src/operator/tensor/cast_storage-inl.cuh b/src/operator/tensor/cast_storage-inl.cuh
index a5b4df53843..39e522664f0 100644
--- a/src/operator/tensor/cast_storage-inl.cuh
+++ b/src/operator/tensor/cast_storage-inl.cuh
@@ -20,7 +20,7 @@
 /*!
  *  Copyright (c) 2017 by Contributors
  * \file cast_storage-inl.cuh
- * \brief implementation of cast_storage op on GPU
+ * \brief GPU implementation of cast_storage op
  */
 #ifndef MXNET_OPERATOR_TENSOR_CAST_STORAGE_INL_CUH_
 #define MXNET_OPERATOR_TENSOR_CAST_STORAGE_INL_CUH_
diff --git a/src/operator/tensor/cast_storage-inl.h b/src/operator/tensor/cast_storage-inl.h
index f905bf8f722..cdb6246313b 100644
--- a/src/operator/tensor/cast_storage-inl.h
+++ b/src/operator/tensor/cast_storage-inl.h
@@ -19,7 +19,7 @@
 
 /*!
  * \file cast_storage-inl.h
- * \brief cast_storage implementation for dense and sparse tensors
+ * \brief CPU implementation of cast_storage operator for dense and sparse tensors
  */
 #ifndef MXNET_OPERATOR_TENSOR_CAST_STORAGE_INL_H_
 #define MXNET_OPERATOR_TENSOR_CAST_STORAGE_INL_H_
diff --git a/src/operator/tensor/control_flow_op.cu b/src/operator/tensor/control_flow_op.cu
index 7c34a653690..6371b62d489 100644
--- a/src/operator/tensor/control_flow_op.cu
+++ b/src/operator/tensor/control_flow_op.cu
@@ -20,7 +20,7 @@
 /*!
  * Copyright (c) 2017 by Contributors
  * \file control_flow_op.cu
- * \brief
+ * \brief GPU implementation of control flow
  */
 #include "./control_flow_op.h"
 
diff --git a/src/operator/tensor/diag_op-inl.h b/src/operator/tensor/diag_op-inl.h
index deab2569e48..23123cfab75 100644
--- a/src/operator/tensor/diag_op-inl.h
+++ b/src/operator/tensor/diag_op-inl.h
@@ -20,7 +20,7 @@
 /*!
 * Copyright (c) 2015 by Contributors
 * \file diag_op-inl.h
-* \brief CPU Implementation of the diag op
+* \brief Function definition of the diag op
 * \author Istvan Fehervari, Zhijingcheng Yu
 */
 
diff --git a/src/operator/tensor/diag_op.cc b/src/operator/tensor/diag_op.cc
index cd5be9d0fd5..9dcdb63d831 100644
--- a/src/operator/tensor/diag_op.cc
+++ b/src/operator/tensor/diag_op.cc
@@ -20,7 +20,7 @@
 /*!
 * Copyright (c) 2015 by Contributors
 * \file diag_op.cc
-* \brief
+* \brief CPU implementation of diag operator
 * \author Istvan Fehervari, Zhijingcheng Yu
 */
 
diff --git a/src/operator/tensor/diag_op.cu b/src/operator/tensor/diag_op.cu
index a3928f76386..c7db3d9970a 100644
--- a/src/operator/tensor/diag_op.cu
+++ b/src/operator/tensor/diag_op.cu
@@ -20,7 +20,7 @@
 /*!
 * Copyright (c) 2015 by Contributors
 * \file diag_op.cu
-* \brief GPU Implementation of the diag op
+* \brief GPU Implementation of the diag operator
 * \author Istvan Fehervari
 */
 
diff --git a/src/operator/tensor/dot-inl.cuh b/src/operator/tensor/dot-inl.cuh
index 6c94ad1eca1..d6fed4af82a 100644
--- a/src/operator/tensor/dot-inl.cuh
+++ b/src/operator/tensor/dot-inl.cuh
@@ -20,7 +20,7 @@
 /*!
  *  Copyright (c) 2017 by Contributors
  * \file dot-inl.cuh
- * \brief implementation of matrix dot op on GPU
+ * \brief GPU specific function definition of matrix dot operator
  */
 #ifndef MXNET_OPERATOR_TENSOR_DOT_INL_CUH_
 #define MXNET_OPERATOR_TENSOR_DOT_INL_CUH_
diff --git a/src/operator/tensor/elemwise_binary_broadcast_op-inl.cuh b/src/operator/tensor/elemwise_binary_broadcast_op-inl.cuh
index 1998576172b..d02004d75d3 100644
--- a/src/operator/tensor/elemwise_binary_broadcast_op-inl.cuh
+++ b/src/operator/tensor/elemwise_binary_broadcast_op-inl.cuh
@@ -17,6 +17,10 @@
  * under the License.
  */
 
+/*!
+ * \file elemwise_binary_broadcast_op-inl.cuh
+ * \brief CUDA specific Function definition of elementwise binary broadcast operators
+ */
 #ifndef MXNET_OPERATOR_TENSOR_ELEMWISE_BINARY_BROADCAST_OP_CUH_
 #define MXNET_OPERATOR_TENSOR_ELEMWISE_BINARY_BROADCAST_OP_CUH_
 #include <mxnet/operator_util.h>
diff --git a/src/operator/tensor/elemwise_binary_broadcast_op.h b/src/operator/tensor/elemwise_binary_broadcast_op.h
index 8fd2cb4c53f..391c3511712 100644
--- a/src/operator/tensor/elemwise_binary_broadcast_op.h
+++ b/src/operator/tensor/elemwise_binary_broadcast_op.h
@@ -19,8 +19,8 @@
 
 /*!
  *  Copyright (c) 2015 by Contributors
- * \file elementwise_binary_broadcast_op.h
- * \brief Function definition of elementwise unary operators
+ * \file elemwise_binary_broadcast_op.h
+ * \brief Function definition of elementwise binary broadcast operators
  */
 #ifndef MXNET_OPERATOR_TENSOR_ELEMWISE_BINARY_BROADCAST_OP_H_
 #define MXNET_OPERATOR_TENSOR_ELEMWISE_BINARY_BROADCAST_OP_H_
diff --git a/src/operator/tensor/elemwise_binary_broadcast_op_basic.cc b/src/operator/tensor/elemwise_binary_broadcast_op_basic.cc
index 7301eced179..8583702e15f 100644
--- a/src/operator/tensor/elemwise_binary_broadcast_op_basic.cc
+++ b/src/operator/tensor/elemwise_binary_broadcast_op_basic.cc
@@ -20,7 +20,7 @@
 /*!
  *  Copyright (c) 2016 by Contributors
  * \file elemwise_binary_scalar_op.cc
- * \brief CPU Implementation of unary function.
+ * \brief CPU Implementation of binary function.
  */
 #include "./elemwise_unary_op.h"
 #include "./elemwise_binary_op.h"
diff --git a/src/operator/tensor/elemwise_binary_broadcast_op_basic.cu b/src/operator/tensor/elemwise_binary_broadcast_op_basic.cu
index a00330d2446..6231d037d8d 100644
--- a/src/operator/tensor/elemwise_binary_broadcast_op_basic.cu
+++ b/src/operator/tensor/elemwise_binary_broadcast_op_basic.cu
@@ -20,7 +20,7 @@
 /*!
  *  Copyright (c) 2016 by Contributors
  * \file elemwise_binary_scalar_op.cu
- * \brief GPU Implementation of unary function.
+ * \brief GPU Implementation of binary function.
  */
 #include "./elemwise_unary_op.h"
 #include "./elemwise_binary_op.h"
diff --git a/src/operator/tensor/elemwise_binary_broadcast_op_extended.cc b/src/operator/tensor/elemwise_binary_broadcast_op_extended.cc
index 8fc3c48b177..842007eb497 100644
--- a/src/operator/tensor/elemwise_binary_broadcast_op_extended.cc
+++ b/src/operator/tensor/elemwise_binary_broadcast_op_extended.cc
@@ -20,7 +20,7 @@
 /*!
  *  Copyright (c) 2016 by Contributors
  * \file elemwise_binary_broadcast_op_extended.cc
- * \brief CPU Implementation of unary function.
+ * \brief CPU Implementation of extended functions for elementwise binary broadcast operator.
  */
 #include "./elemwise_unary_op.h"
 #include "./elemwise_binary_op.h"
diff --git a/src/operator/tensor/elemwise_binary_broadcast_op_extended.cu b/src/operator/tensor/elemwise_binary_broadcast_op_extended.cu
index 27a764cd92c..ea527bea904 100644
--- a/src/operator/tensor/elemwise_binary_broadcast_op_extended.cu
+++ b/src/operator/tensor/elemwise_binary_broadcast_op_extended.cu
@@ -20,7 +20,7 @@
 /*!
  *  Copyright (c) 2016 by Contributors
  * \file elemwise_binary_scalar_op.cu
- * \brief GPU Implementation of unary function.
+ * \brief GPU Implementation of extended functions for elementwise binary broadcast operator.
  */
 #include "./elemwise_unary_op.h"
 #include "./elemwise_binary_op.h"
diff --git a/src/operator/tensor/elemwise_binary_broadcast_op_logic.cc b/src/operator/tensor/elemwise_binary_broadcast_op_logic.cc
index 3cb3ba33bdd..cd433e00a77 100644
--- a/src/operator/tensor/elemwise_binary_broadcast_op_logic.cc
+++ b/src/operator/tensor/elemwise_binary_broadcast_op_logic.cc
@@ -20,7 +20,7 @@
 /*!
  *  Copyright (c) 2016 by Contributors
  * \file elemwise_binary_broadcast_op_logic.cc
- * \brief CPU Implementation of unary function.
+ * \brief CPU Implementation of elementwise binary broadcast logical operators.
  */
 #include "./elemwise_unary_op.h"
 #include "./elemwise_binary_op.h"
diff --git a/src/operator/tensor/elemwise_binary_broadcast_op_logic.cu b/src/operator/tensor/elemwise_binary_broadcast_op_logic.cu
index d6b01aad7c4..0a12212a44b 100644
--- a/src/operator/tensor/elemwise_binary_broadcast_op_logic.cu
+++ b/src/operator/tensor/elemwise_binary_broadcast_op_logic.cu
@@ -20,7 +20,7 @@
 /*!
  *  Copyright (c) 2016 by Contributors
  * \file elemwise_binary_scalar_op.cu
- * \brief GPU Implementation of unary function.
+ * \brief GPU Implementation of elementwise binary broadcast logical operators.
  */
 #include "./elemwise_unary_op.h"
 #include "./elemwise_binary_op.h"
diff --git a/src/operator/tensor/elemwise_binary_op-inl.h b/src/operator/tensor/elemwise_binary_op-inl.h
index 72a02ff5fd8..42f907f71be 100644
--- a/src/operator/tensor/elemwise_binary_op-inl.h
+++ b/src/operator/tensor/elemwise_binary_op-inl.h
@@ -18,7 +18,7 @@
  */
 
 /*!
- * \file elemwise_binary_op.h
+ * \file elemwise_binary_op-inl.h
  * \brief Function definition of elementwise binary operators
  */
 #ifndef MXNET_OPERATOR_TENSOR_ELEMWISE_BINARY_OP_INL_H_
diff --git a/src/operator/tensor/elemwise_binary_op.cc b/src/operator/tensor/elemwise_binary_op.cc
index 9ccbacc2f65..173d65fa099 100644
--- a/src/operator/tensor/elemwise_binary_op.cc
+++ b/src/operator/tensor/elemwise_binary_op.cc
@@ -16,6 +16,13 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+
+/*!
+ *  Copyright (c) 2016 by Contributors
+ * \file elemwise_binary_op.cc
+ * \brief CPU implementation of elementwise binary operators
+ */
+
 #include "./elemwise_binary_op.h"
 
 
diff --git a/src/operator/tensor/elemwise_binary_op_basic.cc b/src/operator/tensor/elemwise_binary_op_basic.cc
index 339290df8bf..f7599adcdb6 100644
--- a/src/operator/tensor/elemwise_binary_op_basic.cc
+++ b/src/operator/tensor/elemwise_binary_op_basic.cc
@@ -19,8 +19,8 @@
 
 /*!
  *  Copyright (c) 2016 by Contributors
- * \file elemwise_binary_scalar_op.cc
- * \brief CPU Implementation of unary function.
+ * \file elemwise_binary_op_basic.cc
+ * \brief CPU Implementation of basic elementwise binary broadcast operators
  */
 #include "./elemwise_unary_op.h"
 #include "./elemwise_binary_op-inl.h"
diff --git a/src/operator/tensor/elemwise_binary_op_basic.cu b/src/operator/tensor/elemwise_binary_op_basic.cu
index 981e7aba9f9..f88b8ebd69a 100644
--- a/src/operator/tensor/elemwise_binary_op_basic.cu
+++ b/src/operator/tensor/elemwise_binary_op_basic.cu
@@ -19,8 +19,8 @@
 
 /*!
  *  Copyright (c) 2016 by Contributors
- * \file elemwise_binary_scalar_op.cu
- * \brief GPU Implementation of unary function.
+ * \file elemwise_binary_op_basic.cu
+ * \brief GPU Implementation of basic elementwise binary broadcast operators
  */
 #include <cub/cub.cuh>
 #include "./elemwise_binary_op.h"
diff --git a/src/operator/tensor/elemwise_binary_op_extended.cu b/src/operator/tensor/elemwise_binary_op_extended.cu
index 54eceb2f8a6..585d379b0be 100644
--- a/src/operator/tensor/elemwise_binary_op_extended.cu
+++ b/src/operator/tensor/elemwise_binary_op_extended.cu
@@ -19,7 +19,7 @@
 
 /*!
  *  Copyright (c) 2016 by Contributors
- * \file elemwise_binary_scalar_op.cu
+ * \file elemwise_binary_op_extended.cu
  * \brief GPU Implementation of unary function.
  */
 #include "./elemwise_unary_op.h"
diff --git a/src/operator/tensor/elemwise_binary_op_logic.cc b/src/operator/tensor/elemwise_binary_op_logic.cc
index 5c0b442991c..a6f61c2f03d 100644
--- a/src/operator/tensor/elemwise_binary_op_logic.cc
+++ b/src/operator/tensor/elemwise_binary_op_logic.cc
@@ -19,7 +19,7 @@
 
 /*!
  *  Copyright (c) 2016 by Contributors
- * \file elemwise_binary_scalar_op.cc
+ * \file elemwise_binary_op_logic.cc
  * \brief CPU Implementation of unary function.
  */
 #include "./elemwise_unary_op.h"
diff --git a/src/operator/tensor/elemwise_binary_op_logic.cu b/src/operator/tensor/elemwise_binary_op_logic.cu
index 456622d7596..e36e6971148 100644
--- a/src/operator/tensor/elemwise_binary_op_logic.cu
+++ b/src/operator/tensor/elemwise_binary_op_logic.cu
@@ -19,7 +19,7 @@
 
 /*!
  *  Copyright (c) 2016 by Contributors
- * \file elemwise_binary_scalar_op.cu
+ * \file elemwise_binary_op_logic.cu
  * \brief GPU Implementation of unary function.
  */
 #include "./elemwise_unary_op.h"
diff --git a/src/operator/tensor/elemwise_binary_scalar_op_basic.cc b/src/operator/tensor/elemwise_binary_scalar_op_basic.cc
index 6118ddf19c3..1eb3da65eef 100644
--- a/src/operator/tensor/elemwise_binary_scalar_op_basic.cc
+++ b/src/operator/tensor/elemwise_binary_scalar_op_basic.cc
@@ -19,8 +19,8 @@
 
 /*!
  *  Copyright (c) 2016 by Contributors
- * \file elemwise_binary_scalar_op.cc
- * \brief CPU Implementation of unary function.
+ * \file elemwise_binary_scalar_op_basic.cc
+ * \brief CPU Implementation of basic binary scalar functions.
  */
 #include "../../common/utils.h"
 #include "./elemwise_binary_op.h"
diff --git a/src/operator/tensor/elemwise_binary_scalar_op_basic.cu b/src/operator/tensor/elemwise_binary_scalar_op_basic.cu
index 51b3866c8e7..3c839205683 100644
--- a/src/operator/tensor/elemwise_binary_scalar_op_basic.cu
+++ b/src/operator/tensor/elemwise_binary_scalar_op_basic.cu
@@ -19,8 +19,8 @@
 
 /*!
  *  Copyright (c) 2016 by Contributors
- * \file elemwise_binary_scalar_op.cu
- * \brief GPU Implementation of unary function.
+ * \file elemwise_binary_scalar_op_basic.cu
+ * \brief CPU Implementation of basic binary scalar functions.
  */
 #include "./elemwise_unary_op.h"
 #include "./elemwise_binary_op.h"
diff --git a/src/operator/tensor/elemwise_binary_scalar_op_extended.cc b/src/operator/tensor/elemwise_binary_scalar_op_extended.cc
index a0c4149d5c5..dbe3c4f6219 100644
--- a/src/operator/tensor/elemwise_binary_scalar_op_extended.cc
+++ b/src/operator/tensor/elemwise_binary_scalar_op_extended.cc
@@ -19,8 +19,8 @@
 
 /*!
  *  Copyright (c) 2016 by Contributors
- * \file elemwise_binary_scalar_op.cc
- * \brief CPU Implementation of unary function.
+ * \file elemwise_binary_scalar_op_extended.cc
+ * \brief CPU Implementation of extended binary scalar functions.
  */
 #include "./elemwise_unary_op.h"
 #include "./elemwise_binary_op.h"
diff --git a/src/operator/tensor/elemwise_binary_scalar_op_extended.cu b/src/operator/tensor/elemwise_binary_scalar_op_extended.cu
index 96884724d4d..2bd52d7b9d7 100644
--- a/src/operator/tensor/elemwise_binary_scalar_op_extended.cu
+++ b/src/operator/tensor/elemwise_binary_scalar_op_extended.cu
@@ -19,8 +19,8 @@
 
 /*!
  *  Copyright (c) 2016 by Contributors
- * \file elemwise_binary_scalar_op.cu
- * \brief GPU Implementation of unary function.
+ * \file elemwise_binary_scalar_op_extended.cu
+ * \brief GPU Implementation of extended binary scalar functions.
  */
 #include "./elemwise_unary_op.h"
 #include "./elemwise_binary_op.h"
diff --git a/src/operator/tensor/elemwise_binary_scalar_op_logic.cc b/src/operator/tensor/elemwise_binary_scalar_op_logic.cc
index 07473a154ed..17e76153ebb 100644
--- a/src/operator/tensor/elemwise_binary_scalar_op_logic.cc
+++ b/src/operator/tensor/elemwise_binary_scalar_op_logic.cc
@@ -19,8 +19,8 @@
 
 /*!
  *  Copyright (c) 2016 by Contributors
- * \file elemwise_binary_scalar_op.cc
- * \brief CPU Implementation of unary function.
+ * \file elemwise_binary_scalar_op_logic.cc
+ * \brief CPU Implementation of binary scalar logic functions.
  */
 #include "./elemwise_unary_op.h"
 #include "./elemwise_binary_op.h"
diff --git a/src/operator/tensor/elemwise_binary_scalar_op_logic.cu b/src/operator/tensor/elemwise_binary_scalar_op_logic.cu
index 8ec8b73591c..6c393e0719a 100644
--- a/src/operator/tensor/elemwise_binary_scalar_op_logic.cu
+++ b/src/operator/tensor/elemwise_binary_scalar_op_logic.cu
@@ -19,8 +19,8 @@
 
 /*!
  *  Copyright (c) 2016 by Contributors
- * \file elemwise_binary_scalar_op.cu
- * \brief GPU Implementation of unary function.
+ * \file elemwise_binary_scalar_op_logic.cu
+ * \brief GPU Implementation of binary scalar logic functions.
  */
 #include "elemwise_binary_scalar_op.h"
 
diff --git a/src/operator/tensor/elemwise_scatter_op.cc b/src/operator/tensor/elemwise_scatter_op.cc
index 959faf75b94..dd6da0ce41a 100644
--- a/src/operator/tensor/elemwise_scatter_op.cc
+++ b/src/operator/tensor/elemwise_scatter_op.cc
@@ -16,6 +16,11 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+
+/*!
+ * \file elemwise_scatter_op.cc
+ * \brief CPU implementation of elementwise scatter operators
+ */
 #include "./elemwise_binary_op-inl.h"
 #include "./elemwise_binary_scalar_op.h"
 #include "./elemwise_scatter_op.h"
diff --git a/src/operator/tensor/elemwise_scatter_op.cu b/src/operator/tensor/elemwise_scatter_op.cu
index acb7edf21c8..913aa951219 100644
--- a/src/operator/tensor/elemwise_scatter_op.cu
+++ b/src/operator/tensor/elemwise_scatter_op.cu
@@ -16,6 +16,11 @@
  * specific language governing permissions and limitations
  * under the License.
  */
+
+ /*!
+ * \file elemwise_scatter_op.cu
+ * \brief GPU implementation of elementwise scatter operators
+ */
 #include "./elemwise_binary_scalar_op.h"
 #include "./elemwise_scatter_op.h"
 
diff --git a/src/operator/tensor/elemwise_sum.cc b/src/operator/tensor/elemwise_sum.cc
index 1666537e286..85b58b6e0f3 100644
--- a/src/operator/tensor/elemwise_sum.cc
+++ b/src/operator/tensor/elemwise_sum.cc
@@ -20,7 +20,7 @@
 /*!
  * Copyright (c) 2015 by Contributors
  * \file elemwise_sum.cc
- * \brief elementwise sum operator
+ * \brief CPU implementation of elementwise sum operator
 */
 #include "./elemwise_sum.h"
 #include "../../ndarray/ndarray_function.h"
diff --git a/src/operator/tensor/elemwise_sum.cu b/src/operator/tensor/elemwise_sum.cu
index e2b41e385da..f9a248214e8 100644
--- a/src/operator/tensor/elemwise_sum.cu
+++ b/src/operator/tensor/elemwise_sum.cu
@@ -20,7 +20,7 @@
 /*!
  * Copyright (c) 2015 by Contributors
  * \file elemwise_sum.cu
- * \brief elementwise sum operator
+ * \brief GPU implementation of elementwise sum operator
 */
 #include "./elemwise_sum.h"
 #include "../../ndarray/ndarray_function.h"
diff --git a/src/operator/tensor/elemwise_sum.h b/src/operator/tensor/elemwise_sum.h
index acf73e722b4..08f57d15fbf 100644
--- a/src/operator/tensor/elemwise_sum.h
+++ b/src/operator/tensor/elemwise_sum.h
@@ -20,7 +20,7 @@
 /*!
  * Copyright (c) 2015 by Contributors
  * \file elemwise_sum.h
- * \brief elementwise sum
+ * \brief Function definition of elementwise sum
  * \author Bing Xu
 */
 #ifndef MXNET_OPERATOR_TENSOR_ELEMWISE_SUM_H_
diff --git a/src/operator/tensor/elemwise_unary_op_basic.cc b/src/operator/tensor/elemwise_unary_op_basic.cc
index 49ae976cfc2..a541085a665 100644
--- a/src/operator/tensor/elemwise_unary_op_basic.cc
+++ b/src/operator/tensor/elemwise_unary_op_basic.cc
@@ -19,7 +19,7 @@
 
 /*!
  * \file elemwise_unary_op_basic.cc
- * \brief CPU Implementation of unary function.
+ * \brief CPU Implementation of elementwise unary function.
  */
 #include <mxnet/base.h>
 #include "elemwise_unary_op.h"
diff --git a/src/operator/tensor/elemwise_unary_op_basic.cu b/src/operator/tensor/elemwise_unary_op_basic.cu
index 8e2a0991b01..19b8d3e0800 100644
--- a/src/operator/tensor/elemwise_unary_op_basic.cu
+++ b/src/operator/tensor/elemwise_unary_op_basic.cu
@@ -18,8 +18,8 @@
  */
 
 /*!
- * \file elemwise_unary_op_trig.cu
- * \brief GPU Implementation of unary trigometric functions.
+ * \file elemwise_unary_op_basic.cu
+ * \brief GPU Implementation of unary functions.
  */
 #include "./elemwise_binary_op.h"
 
diff --git a/src/operator/tensor/elemwise_unary_op_trig.cc b/src/operator/tensor/elemwise_unary_op_trig.cc
index 288719f48a9..28a11cc83ee 100644
--- a/src/operator/tensor/elemwise_unary_op_trig.cc
+++ b/src/operator/tensor/elemwise_unary_op_trig.cc
@@ -19,7 +19,7 @@
 
 /*!
  * \file elemwise_unary_op_trig.cc
- * \brief CPU Implementation of unary trigometric functions.
+ * \brief CPU Implementation of unary trigonometric functions.
  */
 #include <mxnet/base.h>
 #include "elemwise_unary_op.h"
diff --git a/src/operator/tensor/elemwise_unary_op_trig.cu b/src/operator/tensor/elemwise_unary_op_trig.cu
index 90f248b3fee..8e28b9c609f 100644
--- a/src/operator/tensor/elemwise_unary_op_trig.cu
+++ b/src/operator/tensor/elemwise_unary_op_trig.cu
@@ -18,8 +18,8 @@
  */
 
 /*!
- * \file elemwise_unary_op.cu
- * \brief GPU Implementation of unary function.
+ * \file elemwise_unary_op_trig.cu
+ * \brief GPU Implementation of unary trigonometric function.
  */
 #include "./elemwise_binary_op.h"
 
diff --git a/src/operator/tensor/histogram-inl.h b/src/operator/tensor/histogram-inl.h
index 08620e84172..40acb55d1d4 100644
--- a/src/operator/tensor/histogram-inl.h
+++ b/src/operator/tensor/histogram-inl.h
@@ -17,6 +17,10 @@
  * under the License.
  */
 
+/*!
+ * \file histogram-inl.h
+ * \brief Function definition of histogram operator
+*/
 #ifndef MXNET_OPERATOR_TENSOR_HISTOGRAM_INL_H_
 #define MXNET_OPERATOR_TENSOR_HISTOGRAM_INL_H_
 
diff --git a/src/operator/tensor/histogram.cc b/src/operator/tensor/histogram.cc
index ac28606f940..3c4eaa15882 100644
--- a/src/operator/tensor/histogram.cc
+++ b/src/operator/tensor/histogram.cc
@@ -17,6 +17,10 @@
  * under the License.
  */
 
+/*!
+ * \file histogram.cc
+ * \brief CPU implementation of histogram operator
+*/
 #include "./histogram-inl.h"
 
 namespace mxnet {
diff --git a/src/operator/tensor/histogram.cu b/src/operator/tensor/histogram.cu
index c3c836a4b49..b811aba4649 100644
--- a/src/operator/tensor/histogram.cu
+++ b/src/operator/tensor/histogram.cu
@@ -17,6 +17,10 @@
  * under the License.
  */
 
+/*!
+ * \file histogram.cu
+ * \brief GPU implementation of histogram operator
+*/
 #include "./histogram-inl.h"
 #include "./util/tensor_util-inl.cuh"
 
diff --git a/src/operator/tensor/indexing_op.cc b/src/operator/tensor/indexing_op.cc
index 710b50275c2..de0ede3a742 100644
--- a/src/operator/tensor/indexing_op.cc
+++ b/src/operator/tensor/indexing_op.cc
@@ -20,7 +20,7 @@
 /*!
  * Copyright (c) 2017 by Contributors
  * \file indexing_op.cc
- * \brief
+ * \brief CPU implementation of indexing operator
  * \author Siyi Li, Chi Zhang
 */
 
diff --git a/src/operator/tensor/indexing_op.cu b/src/operator/tensor/indexing_op.cu
index bdc7f6e843c..16cc697626e 100644
--- a/src/operator/tensor/indexing_op.cu
+++ b/src/operator/tensor/indexing_op.cu
@@ -20,7 +20,7 @@
 /*!
  * Copyright (c) 2017 by Contributors
  * \file indexing_op.cu
- * \brief
+ * \brief GPU implementation of indexing operator
  * \author Siyi Li, Chi Zhang
 */
 
diff --git a/src/operator/tensor/indexing_op.h b/src/operator/tensor/indexing_op.h
index 5282a7ea9a6..2a419e7f6b0 100644
--- a/src/operator/tensor/indexing_op.h
+++ b/src/operator/tensor/indexing_op.h
@@ -20,7 +20,7 @@
 /*!
  * Copyright (c) 2017 by Contributors
  * \file indexing_op.h
- * \brief
+ * \brief Function definition of indexing operator
  * \author Bing Xu, Siyi Li, Chi Zhang, Haibin Lin
 */
 #ifndef MXNET_OPERATOR_TENSOR_INDEXING_OP_H_
diff --git a/src/operator/tensor/la_op.cc b/src/operator/tensor/la_op.cc
index b1771650215..e54e0682713 100644
--- a/src/operator/tensor/la_op.cc
+++ b/src/operator/tensor/la_op.cc
@@ -20,7 +20,7 @@
 /*!
  * Copyright (c) 2017 by Contributors
  * \file la_op.cc
- * \brief CPU-Operators for advanced linear algebra.
+ * \brief CPU implementation of Operators for advanced linear algebra.
  */
 #include "./la_op.h"
 #include "./la_op_inline.h"
diff --git a/src/operator/tensor/la_op.cu b/src/operator/tensor/la_op.cu
index d736845df2b..da81c040bff 100644
--- a/src/operator/tensor/la_op.cu
+++ b/src/operator/tensor/la_op.cu
@@ -19,7 +19,7 @@
 
 /*!
  * \file la_op.cu
- * \brief GPU-Operators for advanced linear algebra.
+ * \brief GPU implementation of Operators for advanced linear algebra.
  */
 #include "./la_op.h"
 #include "./la_op_inline.h"
diff --git a/src/operator/tensor/la_op.h b/src/operator/tensor/la_op.h
index 8e2acd747aa..433789cf66b 100644
--- a/src/operator/tensor/la_op.h
+++ b/src/operator/tensor/la_op.h
@@ -20,7 +20,7 @@
 /*!
  * Copyright (c) 2017 by Contributors
  * \file la_op.h
- * \brief Operators for advanced linear algebra.
+ * \brief Function definition of Operators for advanced linear algebra.
  */
 #ifndef MXNET_OPERATOR_TENSOR_LA_OP_H_
 #define MXNET_OPERATOR_TENSOR_LA_OP_H_
diff --git a/src/operator/tensor/ordering_op.cc b/src/operator/tensor/ordering_op.cc
index 189ea19fa6f..fb002995971 100644
--- a/src/operator/tensor/ordering_op.cc
+++ b/src/operator/tensor/ordering_op.cc
@@ -19,7 +19,7 @@
 
 /*!
  *  Copyright (c) 2016 by Contributors
- * \file ordering.cc
+ * \file ordering_op.cc
  * \brief CPU Implementation of the ordering operations
  */
 // this will be invoked by gcc and compile CPU version
diff --git a/src/operator/tensor/ordering_op.cu b/src/operator/tensor/ordering_op.cu
index d78361448d4..8ffcd6e3ac7 100644
--- a/src/operator/tensor/ordering_op.cu
+++ b/src/operator/tensor/ordering_op.cu
@@ -19,7 +19,7 @@
 
 /*!
  *  Copyright (c) 2015 by Contributors
- * \file matrix_op.cu
+ * \file ordering_op.cu
  * \brief GPU Implementation of matrix operations
  */
 // this will be invoked by gcc and compile GPU version
diff --git a/src/operator/tensor/ravel.cc b/src/operator/tensor/ravel.cc
index 94e38948434..7bbfac5d58c 100644
--- a/src/operator/tensor/ravel.cc
+++ b/src/operator/tensor/ravel.cc
@@ -20,7 +20,7 @@
 /*!
  * Copyright (c) 2018 by Contributors
  * \file ravel.cc
- * \brief CPU-operators for ravel/unravel.
+ * \brief CPU implementation of operators for ravel/unravel.
  */
 #include "./ravel.h"
 
diff --git a/src/operator/tensor/ravel.cu b/src/operator/tensor/ravel.cu
index cae50482013..860fd237823 100644
--- a/src/operator/tensor/ravel.cu
+++ b/src/operator/tensor/ravel.cu
@@ -19,7 +19,7 @@
 
 /*!
  * \file ravel.cu
- * \brief GPU-Operators for ravel/unravel.
+ * \brief GPU implementation of Operators for ravel/unravel.
  */
 #include "./ravel.h"
 
diff --git a/src/operator/tensor/sparse_retain-inl.h b/src/operator/tensor/sparse_retain-inl.h
index 5a8aee86844..52401beba31 100644
--- a/src/operator/tensor/sparse_retain-inl.h
+++ b/src/operator/tensor/sparse_retain-inl.h
@@ -19,7 +19,7 @@
 
 /*!
  * \file sparse_retain-inl.h
- * \brief
+ * \brief Function definition of sparse_retain operator
 */
 #ifndef MXNET_OPERATOR_TENSOR_SPARSE_RETAIN_INL_H_
 #define MXNET_OPERATOR_TENSOR_SPARSE_RETAIN_INL_H_
diff --git a/src/operator/tensor/sparse_retain.cc b/src/operator/tensor/sparse_retain.cc
index f8fc325c053..8630457e6a5 100644
--- a/src/operator/tensor/sparse_retain.cc
+++ b/src/operator/tensor/sparse_retain.cc
@@ -19,7 +19,7 @@
 
 /*!
  * \file sparse_retain.cc
- * \brief
+ * \brief CPU implementation of sparse_retain operator
 */
 
 #include "./sparse_retain-inl.h"
diff --git a/src/operator/tensor/sparse_retain.cu b/src/operator/tensor/sparse_retain.cu
index 6b4ac1bdf1a..bff8b8b12fc 100644
--- a/src/operator/tensor/sparse_retain.cu
+++ b/src/operator/tensor/sparse_retain.cu
@@ -19,7 +19,7 @@
 
 /*!
  * \file sparse_retain.cu
- * \brief
+ * \brief GPU implementation of sparse_retain operator
 */
 
 #include "./sparse_retain-inl.h"


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services