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

Function _handle_or_self

tensorflow/python/eager/backprop.py:684–688  ·  view source on GitHub ↗

If x is ResourceVariable, return its handle, else x.

(x)

Source from the content-addressed store, hash-verified

682
683
684def _handle_or_self(x):
685 """If x is ResourceVariable, return its handle, else x."""
686 if resource_variable_ops.is_resource_variable(x):
687 x = x.handle
688 return x
689
690
691@tf_export("GradientTape")

Callers 1

gradientMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected