def data(self, value): base._trace.evaluate(set(), set([self])) self._data = verify_reshape(value, self.dtype, self.dim) if self.state is not DeviceDataMixin.DEVICE_UNALLOCATED: self.state = DeviceDataMixin.HOST
def data(self, value): self._data = verify_reshape(value, self.dtype, self.dim) if self.state is not DeviceDataMixin.DEVICE_UNALLOCATED: self.state = DeviceDataMixin.HOST