(self, init_pose)
| 7 | |
| 8 | class OptimizablePose(nn.Module): |
| 9 | def __init__(self, init_pose): |
| 10 | super().__init__() |
| 11 | assert (isinstance(init_pose, torch.FloatTensor)) |
| 12 | self.register_parameter('data', nn.Parameter(init_pose)) |
| 13 | self.data.required_grad_ = True |
| 14 | |
| 15 | def copy_from(self, pose): |
| 16 | self.data = deepcopy(pose.data) |
nothing calls this directly
no outgoing calls
no test coverage detected