Add a new device in TensorFlow

前端 未结 1 505
灰色年华
灰色年华 2021-01-12 14:22

In TensorFlow, a Session places the graph ops onto Devices, such as CPUs or GPUs, and provides methods to execute them. Is it possible to

相关标签:
1条回答
  • 2021-01-12 14:55

    It is possible to add new device types to TensorFlow, although we don't have great documentation. Approximately, it would require adding a new implementation of tensorflow::Device, adding a corresponding implementation of tensorflow::DeviceFactory, and invoking the following registration macro:

    REGISTER_LOCAL_DEVICE_FACTORY("XPU", MyXPUDeviceFactory);
    
    0 讨论(0)
提交回复
热议问题