phlower.nn.Proportional¶
- class phlower.nn.Proportional(nodes)[source]¶
Bases:
IPhlowerCoreModule
,Module
Proportional, i.e., strictly linear, layer
- Parameters:
nodes (list[int]) – List of feature dimension sizes (The last value of tensor shape).
Examples
>>> proportional = Proportional(nodes=[10, 20, 30]) >>> proportional(data)
Methods
forward
(data, *[, field_data])forward function which overloads torch.nn.Module
from_setting
(setting)Generate model from setting object
Return neural network name
Attributes
T_destination
call_super_init
dump_patches
training
- forward(data, *, field_data=None, **kwards)[source]¶
forward function which overloads torch.nn.Module
- Parameters:
data (IPhlowerTensorCollections) – IPhlowerTensorCollections data which receives from predecessors
field_data (ISimulationField | None) – ISimulationField | None Constant information through training or prediction
- Returns:
Tensor object
- Return type: