You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation for this op could almost be used as a teaching moment for how to not document something. In order to understand what it does, it is necessary to not only understand in detail how the related numpy op works, but also understand the mapping between the inputs of that op and the inputs of theTensorFlow op, that are totally different -- something that is far from obvious.
Just to ice the cake, the examples given in the document are for slice, not strided_slice...
Searches didn't turn up anything. TF version is .11. The machine and OS are not applicable.
The text was updated successfully, but these errors were encountered:
I will add a link referring to the the Tensor.getitem documentation from here, because that is almost always what you want to be using.
If you have a suggestion on how to restructure the documentation to be more intuitive, I would be happy to integrate it. Perhaps a section that gives some examples of what it can do first. I do believe that what is there is useful for those that do know what the NumPy slice does, which is probably many people.
The example code has a typo:
tf.slice -> tf.strided_slice
Also, the third example doesn't produce the given result:
tf.slice(input, [1, 1, 0], [2, -1, 3], [1, -1, 1]) !=> [[[4, 4, 4], [3, 3, 3]]]
As of version .12, tf.strided_slice has [misleading documentation](https://www.tensorflow.org/versions/master/api_docs/python/array_ops/slicing_and_joining#strided_slice). A fourth argument is mandatory, not a keyword argument, and it cannot be None.
The documentation for this op could almost be used as a teaching moment for how to not document something. In order to understand what it does, it is necessary to not only understand in detail how the related numpy op works, but also understand the mapping between the inputs of that op and the inputs of theTensorFlow op, that are totally different -- something that is far from obvious.
Just to ice the cake, the examples given in the document are for slice, not strided_slice...
Searches didn't turn up anything. TF version is .11. The machine and OS are not applicable.
The text was updated successfully, but these errors were encountered: