MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / unwrap

Method unwrap

tensorflow/python/distribute/distribute_lib.py:866–885  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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`.

Callers 15

__call__Method · 0.80
_AddMemberMethod · 0.80
symbol_collectorMethod · 0.80
symbol_collector_v1Method · 0.80
conversion_visitorMethod · 0.80
arg_test_visitorMethod · 0.80
visitFunction · 0.80
visitFunction · 0.80
_get_argumentsFunction · 0.80
_model_fn_argsFunction · 0.80
_get_modulesFunction · 0.80

Calls 1

_local_resultsMethod · 0.45

Tested by 15

symbol_collectorMethod · 0.64
symbol_collector_v1Method · 0.64
conversion_visitorMethod · 0.64
arg_test_visitorMethod · 0.64
_get_modulesFunction · 0.64
SmartSetMethod · 0.64
_test_runMethod · 0.64
_test_runMethod · 0.64