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

Function _IsBackpropagatable

tensorflow/python/ops/gradients_util.py:240–244  ·  view source on GitHub ↗
(tensor)

Source from the content-addressed store, hash-verified

238
239
240def _IsBackpropagatable(tensor):
241 if IsTrainable(tensor):
242 return True
243 dtype = dtypes.as_dtype(tensor.dtype)
244 return dtype.base_dtype == dtypes.bfloat16
245
246
247def _VerifyGeneratedGradients(grads, op):

Callers 1

_MarkReachedOpsFunction · 0.85

Calls 1

IsTrainableFunction · 0.85

Tested by

no test coverage detected