Reset the buffer to zero.
(self)
| 34 | self.data = torch.zeros(self.numel_padded, dtype=self.dtype, device='cuda', requires_grad=False) |
| 35 | |
| 36 | def zero(self): |
| 37 | """Reset the buffer to zero.""" |
| 38 | self.data.zero_() |
| 39 | |
| 40 | def get(self, shape, start_index): |
| 41 | """Return a tensor with the input `shape` as a view into the |
nothing calls this directly
no outgoing calls
no test coverage detected