Adapter for TensorCPU/TensorGPU. Implements TensorAdapter protocol.
| 147 | |
| 148 | |
| 149 | class PipelineTensorAdapter(_BasePipelineAdapter): |
| 150 | """Adapter for TensorCPU/TensorGPU. Implements TensorAdapter protocol.""" |
| 151 | |
| 152 | def to_numpy(self, obj): |
| 153 | return np.array(self.to_cpu(obj)) |
| 154 | |
| 155 | |
| 156 | class PipelineBatchAdapter(_BasePipelineAdapter): |
no outgoing calls
no test coverage detected