sandeep-krishnamurthy commented on a change in pull request #13802: Image normalize operator - GPU support, 3D/4D inputs URL: https://github.com/apache/incubator-mxnet/pull/13802#discussion_r251580104
########## File path: src/operator/image/image_random-inl.h ########## @@ -123,28 +144,156 @@ inline bool NormalizeShape(const nnvm::NodeAttrs& attrs, return true; } -void Normalize(const nnvm::NodeAttrs &attrs, +// Type Inference +inline bool NormalizeOpType(const nnvm::NodeAttrs& attrs, + std::vector<int>* in_attrs, + std::vector<int>* out_attrs) { + CHECK_EQ(in_attrs->size(), 1U); + CHECK_EQ(out_attrs->size(), 1U); + + // Normalized Tensor will be a float + TYPE_ASSIGN_CHECK(*out_attrs, 0, mshadow::kFloat32); Review comment: make infer type generic. ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services