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

Function _assign_sub_on_device

tensorflow/python/distribute/values.py:566–568  ·  view source on GitHub ↗
(device, variable, tensor)

Source from the content-addressed store, hash-verified

564
565
566def _assign_sub_on_device(device, variable, tensor):
567 with ops.device(device):
568 return variable.assign_sub(tensor)
569
570
571def _assert_strategy(strategy):

Callers 1

assign_subMethod · 0.85

Calls 2

deviceMethod · 0.45
assign_subMethod · 0.45

Tested by

no test coverage detected