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 2017/12/21 09:41:39 UTC

[GitHub] conansherry opened a new issue #9163: how to reshape ouput during forward like caffe?

conansherry opened a new issue #9163: how to reshape ouput during forward like caffe?
URL: https://github.com/apache/incubator-mxnet/issues/9163
 
 
   like faster-rcnn proposal_target_layer.py
   def forward(self, bottom, top):
   
           .........
   
           # sampled rois
           top[0].reshape(*rois.shape)
           top[0].data[...] = rois
   
           # classification labels
           top[1].reshape(*labels.shape)
           top[1].data[...] = labels
   
           # bbox_targets
           top[2].reshape(*bbox_targets.shape)
           top[2].data[...] = bbox_targets
   
           # bbox_inside_weights
           top[3].reshape(*bbox_inside_weights.shape)
           top[3].data[...] = bbox_inside_weights
   
           # bbox_outside_weights
           top[4].reshape(*bbox_inside_weights.shape)
           top[4].data[...] = np.array(bbox_inside_weights > 0).astype(np.float32)
   
   how to do this in mxnet?

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