MCPcopy Create free account
hub / github.com/alexrame/fishr / forward_s

Method forward_s

domainbed/algorithms.py:790–792  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

788 return self.network_c(self.randomize(self.network_f(x), "style"))
789
790 def forward_s(self, x):
791 # learning style network on randomized content
792 return self.network_s(self.randomize(self.network_f(x), "content"))
793
794 def randomize(self, x, what="style", eps=1e-5):
795 device = "cuda" if x.is_cuda else "cpu"

Callers 1

updateMethod · 0.95

Calls 1

randomizeMethod · 0.95

Tested by

no test coverage detected