(self, direction, amb, diff)
| 58 | |
| 59 | class FixedDirectionLight(torch.nn.Module): |
| 60 | def __init__(self, direction, amb, diff): |
| 61 | super(FixedDirectionLight, self).__init__() |
| 62 | self.light_dir = direction |
| 63 | self.amb = amb |
| 64 | self.diff = diff |
| 65 | self.is_hacking = not (isinstance(self.amb, float) |
| 66 | or isinstance(self.amb, int)) |
| 67 | |
| 68 | def forward(self, feat): |
| 69 | batch_size = feat.shape[0] |
nothing calls this directly
no outgoing calls
no test coverage detected