Skip to content

Commit 4520669

Browse files
authored
[Runtime] Fix create devices fucntion miss return status bug. (#295)
1 parent b5a74e7 commit 4520669

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow/core/common_runtime/device_factory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class DeviceFactory {
7373
const SessionOptions& options, const string& name_prefix,
7474
std::vector<std::unique_ptr<Device>>* devices,
7575
const DeviceResourceMgrMap* dev_rmgr_map) {
76-
CreateDevices(options, name_prefix, devices);
76+
return CreateDevices(options, name_prefix, devices);
7777
}
7878

7979
// Return the device priority number for a "device_type" string.

0 commit comments

Comments
 (0)