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

Function _get_dim

tensorflow/python/ops/ctc_ops.py:1227–1230  ·  view source on GitHub ↗

Get value of tensor shape[i] preferring static value if available.

(tensor, i)

Source from the content-addressed store, hash-verified

1225
1226
1227def _get_dim(tensor, i):
1228 """Get value of tensor shape[i] preferring static value if available."""
1229 return tensor_shape.dimension_value(
1230 tensor.shape[i]) or array_ops.shape(tensor)[i]

Callers 12

_ctc_state_transFunction · 0.70
ctc_state_log_probsFunction · 0.70
_ilabel_to_stateFunction · 0.70
_state_to_olabelFunction · 0.70
_state_to_olabel_uniqueFunction · 0.70
ctc_loss_and_gradFunction · 0.70
ctc_loss_v2Function · 0.70
ctc_loss_denseFunction · 0.70
collapse_repeatedFunction · 0.70
_uniqueFunction · 0.70
_sum_statesFunction · 0.70
_forward_backward_logFunction · 0.70

Calls 1

shapeMethod · 0.45

Tested by

no test coverage detected