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

Function _maybe_tensor_shape_from_tensor

tensorflow/python/ops/rnn.py:126–130  ·  view source on GitHub ↗
(shape)

Source from the content-addressed store, hash-verified

124
125
126def _maybe_tensor_shape_from_tensor(shape):
127 if isinstance(shape, ops.Tensor):
128 return tensor_shape.as_shape(tensor_util.constant_value(shape))
129 else:
130 return shape
131
132
133def _should_cache():

Callers 2

_dynamic_rnn_loopFunction · 0.85
raw_rnnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected