Add New Device to TensorFlow

In TensorFlow, a session places graphical operations on Devices, such as processors or GPUs, and provides methods for performing them. Can I add an additional device class to TensorFlow? Let me name XPU in addition to the processor and GPU?

+5
source share
1 answer

New types of devices can be added to TensorFlow, although we do not have excellent documentation. For tensorflow::Device this will require the addition of a new tensorflow::Device implementation, adding the corresponding tensorflow::DeviceFactory and calling the following registration macro:

 REGISTER_LOCAL_DEVICE_FACTORY("XPU", MyXPUDeviceFactory); 
+5
source

Source: https://habr.com/ru/post/1242327/


All Articles