diff --git a/tensorflow/lite/toco/BUILD b/tensorflow/lite/toco/BUILD index cd130d978f4..8a803ebc5c9 100644 --- a/tensorflow/lite/toco/BUILD +++ b/tensorflow/lite/toco/BUILD @@ -145,6 +145,7 @@ cc_library( "//tensorflow/core:framework_lite", "//tensorflow/core:lib", "//tensorflow/core:lib_internal", + "@com_google_absl//absl/status", "@com_google_protobuf//:protobuf_headers", ], ) diff --git a/tensorflow/lite/toco/toco_port.cc b/tensorflow/lite/toco/toco_port.cc index 8352e0fd9f2..65dc3a64ed1 100644 --- a/tensorflow/lite/toco/toco_port.cc +++ b/tensorflow/lite/toco/toco_port.cc @@ -12,13 +12,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ +#include "tensorflow/lite/toco/toco_port.h" + #include -#include "tensorflow/lite/toco/toco_port.h" -#include "tensorflow/lite/toco/toco_types.h" +#include "absl/status/status.h" #include "tensorflow/core/lib/core/errors.h" #include "tensorflow/core/lib/core/status.h" #include "tensorflow/core/platform/logging.h" +#include "tensorflow/lite/toco/toco_types.h" #if defined(__ANDROID__) && defined(__ARM_ARCH_7A__) namespace std { @@ -69,7 +71,7 @@ void CheckInitGoogleIsDone(const char* message) { namespace file { // Conversion to our wrapper Status. -tensorflow::Status ToStatus(const ::util::Status& uts) { +tensorflow::Status ToStatus(const absl::Status& uts) { if (!uts.ok()) { return tensorflow::Status( tensorflow::errors::Code(::util::RetrieveErrorCode(uts)),