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)
| 1260 | |
| 1261 | @deprecation.deprecated(None, "Use tf.TensorShape([rows, cols]).") |
| 1262 | def 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]) |