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 –
Tensorswith rank 1.- Returns
A
Tensorof shape[M1, M2, ..., Mn, N], whereNis the number of tensors inargsandMi = tf.size(args[i]).