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/08/21 12:32:56 UTC

[GitHub] sriharikarnam commented on issue #4223: how to print values of a tensor?

sriharikarnam commented on issue #4223: how to print values of a tensor?
URL: https://github.com/apache/incubator-mxnet/issues/4223#issuecomment-414657642
 
 
   @achao2013:
   
   Can you pls help me in printing  the value of some tensors in the Forward operation of convolution-inl.h .
   
   Here is the code snippet  in convolution-inl.h
   
       Tensor<xpu, 3, DType> weight_3d = in_data[conv::kWeight].get_with_shape<xpu, 3, DType>(
         Shape3(group_, M, K), s);
       Tensor<xpu, 3, DType> col_buffer_3d = col_buffer.get_with_shape<xpu, 3, DType>(
         Shape3(group_, K, N), s);
       Tensor<xpu, 4, DType> output_4d = out_data[conv::kOut].get_with_shape<xpu, 4, DType>(
         Shape4(num_, group_, M, N), s);
   
   Can i use the Copy function as suggested above. The definition of Copy function?

----------------------------------------------------------------
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