(self)
| 65 | tensor = tensor.to(self.infer_dtype) |
| 66 | else: |
| 67 | tensor = weight_dict[self.tensor_name] |
| 68 | return tensor |
| 69 | |
| 70 | def _create_cpu_pin_tensor(self, tensor): |
| 71 | pin_tensor = torch.empty(tensor.shape, pin_memory=True, dtype=tensor.dtype) |
| 72 | pin_tensor.copy_(tensor) |
no test coverage detected