(self, x)
| 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" |