• Broadcasts parameters for evaluation on an N-D grid.

    Given N one-dimensional coordinate arrays *args, returns a list outputs of N-D coordinate arrays for evaluating expressions on an N-D grid.

    Notes: meshgrid supports cartesian ('xy') and matrix ('ij') indexing conventions. When the indexing argument is set to 'xy' (the default), the broadcasting instructions for the first two dimensions are swapped. Examples: Calling const [X, Y] = meshgrid(x, y) with the tensors

    const x = [1, 2, 3];
    const y = [4, 5, 6];
    const [X, Y] = tf.meshgrid(x, y);
    // X = [[1, 2, 3],
    // [1, 2, 3],
    // [1, 2, 3]]
    // Y = [[4, 4, 4],
    // [5, 5, 5],
    // [6, 6, 6]]

    Type Parameters

    Parameters

    • Optional x: TensorLike | T

      Tensor with rank geq 1.

    • Optional y: TensorLike | T

      Tensor with rank geq 1.

    • Optional indexing: {
          indexing?: string;
      }
      • Optional indexing?: string

    Returns T[]

    Doc

Generated using TypeDoc