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

Method _apply_sparse

tensorflow/python/training/adam.py:239–248  ·  view source on GitHub ↗
(self, grad, var)

Source from the content-addressed store, hash-verified

237 grad, indices, use_locking=self._use_locking)
238
239 def _apply_sparse(self, grad, var):
240 return self._apply_sparse_shared(
241 grad.values,
242 var,
243 grad.indices,
244 lambda x, i, v: state_ops.scatter_add( # pylint: disable=g-long-lambda
245 x,
246 i,
247 v,
248 use_locking=self._use_locking))
249
250 def _hash_table_apply_sparse(self, grad, var, indices):
251 m = self.get_slot(var, "m")

Callers

nothing calls this directly

Calls 2

_apply_sparse_sharedMethod · 0.95
scatter_addMethod · 0.45

Tested by

no test coverage detected