Zha0q1 commented on pull request #18976: URL: https://github.com/apache/incubator-mxnet/pull/18976#issuecomment-678505570
> in file src/api/operator/random/np_gamma_op.cc do you know what is the parameter `type_code` used for ? > in file src/api/operator/random/np_gamma_op.cc do you know what is the parameter `type_code` used for ? Yes, it is used to determine the dimension of the shape. if shape is null then type code is kNull; if shape is (x) then the type_code is kDLInt or kDFloat and then we convert it into int64_t; otherwise if shape is (x,y...) tuple then we do a conversion with ObjectRef() ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
