Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 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