From 5a26c8afe6457f3b555086716ac2e04a20b7b321 Mon Sep 17 00:00:00 2001 From: "jiankeng.pt" Date: Mon, 4 Jul 2022 14:16:52 +0800 Subject: [PATCH] [Runtime] Fix create devices fucntion miss return status bug. --- tensorflow/core/common_runtime/device_factory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.