diff --git a/tensorflow/core/common_runtime/device_factory.h b/tensorflow/core/common_runtime/device_factory.h index b8fd250da19..5141189bb11 100644 --- a/tensorflow/core/common_runtime/device_factory.h +++ b/tensorflow/core/common_runtime/device_factory.h @@ -73,7 +73,7 @@ class DeviceFactory { const SessionOptions& options, const string& name_prefix, std::vector>* devices, const DeviceResourceMgrMap* dev_rmgr_map) { - CreateDevices(options, name_prefix, devices); + return CreateDevices(options, name_prefix, devices); } // Return the device priority number for a "device_type" string.