View source on GitHub |
Reshapes the first n dims of the input tensor
to new shape
.
tfr.utils.reshape_first_ndims(
tensor, first_ndims, new_shape
)
Args | |
---|---|
tensor
|
The input Tensor .
|
first_ndims
|
A int denoting the first n dims. |
new_shape
|
A list of int representing the new shape. |
Returns | |
---|---|
A reshaped Tensor .
|