tensorflow_mri.meshgrid
tensorflow_mri.meshgrid¶
- meshgrid(*args)[source]¶
Return coordinate matrices from coordinate vectors.
Make N-D coordinate arrays for vectorized evaluations of N-D scalar/vector fields over N-D grids, given one-dimensional coordinate arrays
x1, x2, ..., xn
.Note
Similar to
tf.meshgrid
, but uses matrix indexing and returns a stacked tensor (along axis -1) instead of a list of tensors.- Parameters
*args –
Tensors
with rank 1.- Returns
A
Tensor
of shape[M1, M2, ..., Mn, N]
, whereN
is the number of tensors inargs
andMi = tf.size(args[i])
.