コード例 #1
0
ファイル: test_gpipe.py プロジェクト: hulaba/fairscale
 def forward(self, input):
     yield stash("none", None)
     return input
コード例 #2
0
ファイル: test_gpipe.py プロジェクト: hulaba/fairscale
 def forward(self, input):
     yield stash("1to3", input)
     output = self.conv(input)
     return output
コード例 #3
0
ファイル: test_stash_pop.py プロジェクト: zzszmyf/fairscale
 def forward(self, input):
     yield stash("foo", input)
     return input * 2
コード例 #4
0
 def forward(self, input):
     yield stash("skip", input)
     return input
コード例 #5
0
 def forward(self, input):
     yield stash("bar", input)
     return input
コード例 #6
0
 def forward(self, input):
     foo = yield stash("foo")
     return input + foo
コード例 #7
0
ファイル: test_api.py プロジェクト: zzszmyf/fairscale
 def forward(self, x):
     yield stash("hello", x)
     return self.conv(x)