1*14675a02SAndroid Build Coastguard Worker /* 2*14675a02SAndroid Build Coastguard Worker * Copyright 2019 Google LLC 3*14675a02SAndroid Build Coastguard Worker * 4*14675a02SAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 5*14675a02SAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 6*14675a02SAndroid Build Coastguard Worker * You may obtain a copy of the License at 7*14675a02SAndroid Build Coastguard Worker * 8*14675a02SAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 9*14675a02SAndroid Build Coastguard Worker * 10*14675a02SAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 11*14675a02SAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 12*14675a02SAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*14675a02SAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 14*14675a02SAndroid Build Coastguard Worker * limitations under the License. 15*14675a02SAndroid Build Coastguard Worker */ 16*14675a02SAndroid Build Coastguard Worker 17*14675a02SAndroid Build Coastguard Worker #ifndef FCP_TENSORFLOW_STATUS_H_ 18*14675a02SAndroid Build Coastguard Worker #define FCP_TENSORFLOW_STATUS_H_ 19*14675a02SAndroid Build Coastguard Worker 20*14675a02SAndroid Build Coastguard Worker #include "fcp/base/monitoring.h" 21*14675a02SAndroid Build Coastguard Worker #include "tensorflow/core/lib/core/status.h" 22*14675a02SAndroid Build Coastguard Worker 23*14675a02SAndroid Build Coastguard Worker namespace fcp { 24*14675a02SAndroid Build Coastguard Worker 25*14675a02SAndroid Build Coastguard Worker /** 26*14675a02SAndroid Build Coastguard Worker * Converts an FCP Status to a tensorflow::Status. 27*14675a02SAndroid Build Coastguard Worker */ 28*14675a02SAndroid Build Coastguard Worker tensorflow::Status ConvertToTensorFlowStatus(Status const&); 29*14675a02SAndroid Build Coastguard Worker 30*14675a02SAndroid Build Coastguard Worker /** 31*14675a02SAndroid Build Coastguard Worker * Converts a tensorflow::Status to an FCP Status. 32*14675a02SAndroid Build Coastguard Worker */ 33*14675a02SAndroid Build Coastguard Worker Status ConvertFromTensorFlowStatus(tensorflow::Status const&); 34*14675a02SAndroid Build Coastguard Worker 35*14675a02SAndroid Build Coastguard Worker } // namespace fcp 36*14675a02SAndroid Build Coastguard Worker 37*14675a02SAndroid Build Coastguard Worker #endif // FCP_TENSORFLOW_STATUS_H_ 38