Returns a shape representing a vector. Args: length: The length of the vector, which may be None if unknown. Returns: A TensorShape representing a vector of the given length.
(length)
| 1011 | |
| 1012 | |
| 1013 | def vector(length): |
| 1014 | """Returns a shape representing a vector. |
| 1015 | |
| 1016 | Args: |
| 1017 | length: The length of the vector, which may be None if unknown. |
| 1018 | |
| 1019 | Returns: |
| 1020 | A TensorShape representing a vector of the given length. |
| 1021 | """ |
| 1022 | return TensorShape([length]) |
| 1023 | |
| 1024 | |
| 1025 | def matrix(rows, cols): |
nothing calls this directly
no test coverage detected
searching dependent graphs…