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

Function _check_shapes_compat

tensorflow/python/ops/while_v2.py:1062–1070  ·  view source on GitHub ↗
(output_tensors, shape_invariants, input_tensors)

Source from the content-addressed store, hash-verified

1060
1061
1062def _check_shapes_compat(output_tensors, shape_invariants, input_tensors):
1063 for (t, shape, input_t) in zip(output_tensors, shape_invariants,
1064 input_tensors):
1065 if not control_flow_ops._ShapeLessThanOrEqual(t.shape, shape):
1066 raise ValueError(
1067 "Input tensor '%s' enters the loop with shape %s, but has "
1068 "shape %s after one iteration. To allow the shape to vary across "
1069 "iterations, use the `shape_invariants` argument of tf.while_loop to "
1070 "specify a less-specific shape." % (input_t.name, shape, t.shape))
1071
1072
1073def _check_num_inputs_outputs(cond_graph, body_graph, num_flattened_loop_vars):

Callers 1

while_loopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected