(self, obj)
| 209 | """Adapter for ndd.Tensor. Implements TensorAdapter protocol.""" |
| 210 | |
| 211 | def to_numpy(self, obj): |
| 212 | cpu_obj = self.to_cpu(obj) |
| 213 | # Use numpy array protocol (public API) |
| 214 | return np.array(cpu_obj) |
| 215 | |
| 216 | |
| 217 | class DynamicBatchAdapter(_BaseDynamicAdapter): |