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

Function _build_maximum_iterations_loop_var

tensorflow/python/ops/while_v2.py:1134–1141  ·  view source on GitHub ↗
(maximum_iterations)

Source from the content-addressed store, hash-verified

1132
1133
1134def _build_maximum_iterations_loop_var(maximum_iterations):
1135 if maximum_iterations is None:
1136 # Default value for max_num_elements to EmptyTensorList meaning that the
1137 # list size is unbounded.
1138 maximum_iterations = -1
1139 # EmptyTensorList expects `max_num_elements` to be of type int32.
1140 return ops.convert_to_tensor(
1141 maximum_iterations, dtype=dtypes.int32, name="maximum_iterations")
1142
1143
1144def _build_accumulator_name(tensor):

Callers 1

while_loopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected