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

Function cast_variables_to_tensor

tensorflow/python/keras/backend.py:5835–5842  ·  view source on GitHub ↗
(tensors)

Source from the content-addressed store, hash-verified

5833
5834
5835def cast_variables_to_tensor(tensors):
5836
5837 def _cast_variables_to_tensor(tensor):
5838 if isinstance(tensor, variables_module.Variable):
5839 return array_ops.identity(tensor)
5840 return tensor
5841
5842 return nest.map_structure(_cast_variables_to_tensor, tensors)
5843
5844
5845def _is_symbolic_tensor(x):

Callers 2

__init__Method · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected