(device)
| 43 | return s |
| 44 | |
| 45 | def get_device_option(device): |
| 46 | m = {DeviceType.CPU: caffe2_pb2.CPU, |
| 47 | DeviceType.CUDA: workspace.GpuDeviceType} |
| 48 | return core.DeviceOption(m[device.type], device.device_id) |
| 49 | |
| 50 | |
| 51 | class OnnxAttributes(dict): |
no outgoing calls
no test coverage detected
searching dependent graphs…