Returns the list of all local per-replica values contained in `value`. DEPRECATED: Please use `experimental_local_results` instead. Note: This only returns values on the workers initiated by this client. When using a `tf.distribute.Strategy` like `tf.distribute.experimental.MultiWo
(self, value)
| 864 | |
| 865 | @doc_controls.do_not_doc_inheritable # DEPRECATED |
| 866 | def unwrap(self, value): |
| 867 | """Returns the list of all local per-replica values contained in `value`. |
| 868 | |
| 869 | DEPRECATED: Please use `experimental_local_results` instead. |
| 870 | |
| 871 | Note: This only returns values on the workers initiated by this client. |
| 872 | When using a `tf.distribute.Strategy` like |
| 873 | `tf.distribute.experimental.MultiWorkerMirroredStrategy`, each worker |
| 874 | will be its own client, and this function will only return values |
| 875 | computed on that worker. |
| 876 | |
| 877 | Args: |
| 878 | value: A value returned by `experimental_run()`, |
| 879 | `extended.call_for_each_replica()`, or a variable created in `scope`. |
| 880 | |
| 881 | Returns: |
| 882 | A tuple of values contained in `value`. If `value` represents a single |
| 883 | value, this returns `(value,).` |
| 884 | """ |
| 885 | return self._extended._local_results(value) # pylint: disable=protected-access |
| 886 | |
| 887 | def experimental_local_results(self, value): |
| 888 | """Returns the list of all local per-replica values contained in `value`. |