Tensor documentation hints at differences in graph and eager mode without providing details #49493
Labels
comp:apis
Highlevel API related issues
stat:awaiting tensorflower
Status - Awaiting response from tensorflower
type:docs-feature
Doc issues for new feature, or clarifications about functionality
URL(s) with the issue:
https://www.tensorflow.org/api_docs/python/tf/Tensor
Description of issue (what needs changing):
Currently, the description of what a tensor is is cutoff: "A tensor is a multidimensional array of elements represented by a"
Additionally, there is a comment about
This implies that numpy is not available in graph mode. What else isn't available in graph mode? The documentation should describe the differences in capabilities between the two modes - probably on its own page if required.
In my case, I found this out when trying to create a custom loss function, only to find that a number of expected capabilities were not available on the tensor object. It took a long time to find this one line description that hints at the differences. Even then, however, I have no idea what I can use in that mode or where to set the mode so that I can access the data of the tensor.
The text was updated successfully, but these errors were encountered: