Tutorials v0.1 (#178)
Tutorial update and small fixes * Tutorials update + Tutorial FNO * Create a metric tracker callback * Update PINN for logging * Update plotter for plotting * Small fix LabelTensor * Small fix FNO --------- Co-authored-by: Dario Coscia <dariocoscia@cli-10-110-13-250.WIFIeduroamSTUD.units.it> Co-authored-by: Dario Coscia <dariocoscia@dhcp-176.eduroam.sissa.it>
This commit is contained in:
committed by
Nicola Demo
parent
939353f517
commit
a9b1bd2826
@@ -94,7 +94,9 @@ class FNO(torch.nn.Module):
|
||||
|
||||
# 4. Build the FNO network
|
||||
tmp_layers = layers.copy()
|
||||
out_feats = lifting_net(torch.rand(10, dimensions)).shape[-1]
|
||||
first_parameter = next(lifting_net.parameters())
|
||||
input_shape = first_parameter.size()
|
||||
out_feats = lifting_net(torch.rand(size=input_shape)).shape[-1]
|
||||
tmp_layers.insert(0, out_feats)
|
||||
|
||||
self._layers = []
|
||||
|
||||
Reference in New Issue
Block a user