d-smirnov opened a new pull request #6998:
URL: https://github.com/apache/tvm/pull/6998


   1. Added removal of dimensions if result is a scalar
   to mimic TensorFlow behaviour. E.g.:
       tf.strided_slice([1,2,3], [0], [1], [1], shrink_axis_mask=0)
       <tf.Tensor: shape=(1,), dtype=int32, numpy=array([1], dtype=int32)>
   
       tf.strided_slice([[[1,2,3],[4,5,6],[7,8,9]]], [0, 0, 0], [3, 3, 3], [1, 
1, 1], shrink_axis_mask=7)
       <tf.Tensor: shape=(), dtype=int32, numpy=1>
   
   2. Added extra check to assert_allclose to check shape equalities
   as np.testing.assert_allclose() does not distinguish between cases like:
   
       np.testing.assert_allclose(1, np.array(1))
       np.testing.assert_allclose(1, np.array([1]))
       np.testing.assert_allclose(np.array(1), np.array([1]))


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


Reply via email to