File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ def step(self, x):
9696 return out
9797
9898 def training_step (self , batch , batch_idx ):
99- output = self . layer (batch )
99+ output = self (batch )
100100 loss = self .loss (batch , output )
101101 return {"loss" : loss }
102102
@@ -107,15 +107,15 @@ def training_epoch_end(self, outputs) -> None:
107107 torch .stack ([x ["loss" ] for x in outputs ]).mean ()
108108
109109 def validation_step (self , batch , batch_idx ):
110- output = self . layer (batch )
110+ output = self (batch )
111111 loss = self .loss (batch , output )
112112 return {"x" : loss }
113113
114114 def validation_epoch_end (self , outputs ) -> None :
115115 torch .stack ([x ['x' ] for x in outputs ]).mean ()
116116
117117 def test_step (self , batch , batch_idx ):
118- output = self . layer (batch )
118+ output = self (batch )
119119 loss = self .loss (batch , output )
120120 return {"y" : loss }
121121
You can’t perform that action at this time.
0 commit comments