Operator
continuiti.operators.operator
In continuiti, all models for operator learning are based on the Operator base class.
Operator(shapes=None, device=None)
¶
Operator base class.
An operator is a neural network model that maps functions by mapping an observation to the evaluations of the mapped function at given coordinates.
| PARAMETER | DESCRIPTION |
|---|---|
shapes |
Operator shapes.
TYPE:
|
device |
Device. |
| ATTRIBUTE | DESCRIPTION |
|---|---|
shapes |
Operator shapes.
TYPE:
|
Source code in src/continuiti/operators/operator.py
forward(x, u, y)
abstractmethod
¶
Forward pass through the operator.
| PARAMETER | DESCRIPTION |
|---|---|
x |
Sensor positions of shape (batch_size, x_dim, num_sensors...).
TYPE:
|
u |
Input function values of shape (batch_size, u_dim, num_sensors...).
TYPE:
|
y |
Evaluation coordinates of shape (batch_size, y_dim, num_evaluations...).
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
Tensor
|
Evaluations of the mapped function with shape (batch_size, v_dim, num_evaluations...). |
Source code in src/continuiti/operators/operator.py
save(path)
¶
load(path)
¶
num_params()
¶
Created: 2024-08-20