Returns the last snapshot of this variable. You usually do not need to call this method as all ops that need the value of the variable call it automatically through a `convert_to_tensor()` call. Returns a `Tensor` which holds the value of the variable. You can not assign a new val
(self)
| 637 | raise NotImplementedError |
| 638 | |
| 639 | def value(self): |
| 640 | """Returns the last snapshot of this variable. |
| 641 | |
| 642 | You usually do not need to call this method as all ops that need the value |
| 643 | of the variable call it automatically through a `convert_to_tensor()` call. |
| 644 | |
| 645 | Returns a `Tensor` which holds the value of the variable. You can not |
| 646 | assign a new value to this tensor as it is not a reference to the variable. |
| 647 | |
| 648 | To avoid copies, if the consumer of the returned value is on the same device |
| 649 | as the variable, this actually returns the live value of the variable, not |
| 650 | a copy. Updates to the variable are seen by the consumer. If the consumer |
| 651 | is on a different device it will get a copy of the variable. |
| 652 | |
| 653 | Returns: |
| 654 | A `Tensor` containing the value of the variable. |
| 655 | """ |
| 656 | raise NotImplementedError |
| 657 | |
| 658 | def read_value(self): |
| 659 | """Returns the value of this variable, read in the current context. |
no outgoing calls