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

Function _flatten_first_two_dims

tensorflow/python/ops/parallel_for/pfor.py:1462–1466  ·  view source on GitHub ↗

Merges first two dimensions.

(x)

Source from the content-addressed store, hash-verified

1460
1461
1462def _flatten_first_two_dims(x):
1463 """Merges first two dimensions."""
1464 old_shape = array_ops.shape(x)
1465 new_shape = array_ops.concat([[-1], old_shape[2:]], axis=0)
1466 return array_ops.reshape(x, new_shape)
1467
1468
1469def _unflatten_first_dim(x, first_dim):

Callers 7

_inputs_with_flatteningFunction · 0.70
_convert_searchsortedFunction · 0.70
_convert_gatherFunction · 0.70
_convert_batch_mat_mulFunction · 0.70
_convert_multinomialFunction · 0.70

Calls 3

reshapeMethod · 0.80
shapeMethod · 0.45
concatMethod · 0.45

Tested by

no test coverage detected