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

Function matrix

tensorflow/python/framework/tensor_shape.py:1262–1272  ·  view source on GitHub ↗

Returns a shape representing a matrix. Args: rows: The number of rows in the matrix, which may be None if unknown. cols: The number of columns in the matrix, which may be None if unknown. Returns: A TensorShape representing a matrix of the given size.

(rows, cols)

Source from the content-addressed store, hash-verified

1260
1261@deprecation.deprecated(None, "Use tf.TensorShape([rows, cols]).")
1262def matrix(rows, cols):
1263 """Returns a shape representing a matrix.
1264
1265 Args:
1266 rows: The number of rows in the matrix, which may be None if unknown.
1267 cols: The number of columns in the matrix, which may be None if unknown.
1268
1269 Returns:
1270 A TensorShape representing a matrix of the given size.
1271 """
1272 return TensorShape([rows, cols])

Callers 6

DecodeFunction · 0.85
ReduceToColArray2DMethod · 0.85
ReduceToRowArray2DMethod · 0.85
MapArray2DMethod · 0.85
MapWithIndexArray2DMethod · 0.85
TESTFunction · 0.85

Calls 1

TensorShapeClass · 0.70

Tested by 1

TESTFunction · 0.68