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 07:54:11 UTC

[GitHub] ZiyueHuang commented on issue #8822: Can mx.nd.where(condition, x, y) supports if both x and y are None?

ZiyueHuang commented on issue #8822: Can mx.nd.where(condition, x, y) supports if both x and y are None?
URL: https://github.com/apache/incubator-mxnet/issues/8822#issuecomment-353282731
 
 
   This requires dynamic memory allocation and infer shape at runtime when we get the data. So some operators like `tf.where`, `tf.unique`, etc. cannot be implemented in MXNet currently.
   
   Should we add support for dynamic shape?  @piiswrong @reminisce 
   
   Following is the way in tensorflow, (please correct me if I'm wrong since I'm not familiar with tensorflow)
   
   https://www.tensorflow.org/programmers_guide/faq
   
   > How can I determine the shape of a tensor in Python?
   > In TensorFlow, a tensor has both a static (inferred) shape and a dynamic (true) shape. The static shape can be read using the tf.Tensor.get_shape method: this shape is inferred from the operations that were used to create the tensor, and may be partially complete. If the static shape is not fully defined, the dynamic shape of a Tensor t can be determined by evaluating tf.shape(t).

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