Clarity required in the dimensions of inputs and outputs of FNO_1D

I stumbled upon the following information regarding dimensions of input and output variables to FNO.

Variable Shape
    --------------
    Input variable tensor shape:

    - 1D: :math:`[N, size, W]`
    - 2D: :math:`[N, size, H, W]`
    - 3D: :math:`[N, size, D, H, W]`

    Output variable tensor shape:

    - 1D: :math:`[N, size,  W]`
    - 2D: :math:`[N, size, H, W]`
    - 3D: :math:`[N, size, D, H, W]`

All the parameters except “size” are familiar to me. Can you help me with some description of these dimensions, especially the size dimension?

Hi @shubhamsp2195

The “size” here is what were refer to as variable dimension in the physical sense. For example most physical quantities just have a dimension of 1 at a given point. In the Darcy example an input has size=1 since its the permeability field.

In the pythonic or DL sense size here is the channel size of the input tensor. FNO operates on a euclidean grid like a image. So I find thinking about the input for FNO as an image to make the most sense. Its just that Modulus focuses on connected DL with physical quantities, so its named slight different in the docs.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.