Internal naming change

PiperOrigin-RevId: 338691806
Change-Id: I2dbfe4f727a7f14d233dec90637ecfca87a1fe63
This commit is contained in:
A. Unique TensorFlower 2020-10-23 09:47:28 -07:00 committed by TensorFlower Gardener
parent 18874dfce1
commit 7b68fcc356
2 changed files with 6 additions and 3 deletions

View File

@ -145,6 +145,7 @@ cc_library(
"//tensorflow/core:framework_lite", "//tensorflow/core:framework_lite",
"//tensorflow/core:lib", "//tensorflow/core:lib",
"//tensorflow/core:lib_internal", "//tensorflow/core:lib_internal",
"@com_google_absl//absl/status",
"@com_google_protobuf//:protobuf_headers", "@com_google_protobuf//:protobuf_headers",
], ],
) )

View File

@ -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 See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
==============================================================================*/ ==============================================================================*/
#include "tensorflow/lite/toco/toco_port.h"
#include <cstring> #include <cstring>
#include "tensorflow/lite/toco/toco_port.h" #include "absl/status/status.h"
#include "tensorflow/lite/toco/toco_types.h"
#include "tensorflow/core/lib/core/errors.h" #include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/lib/core/status.h" #include "tensorflow/core/lib/core/status.h"
#include "tensorflow/core/platform/logging.h" #include "tensorflow/core/platform/logging.h"
#include "tensorflow/lite/toco/toco_types.h"
#if defined(__ANDROID__) && defined(__ARM_ARCH_7A__) #if defined(__ANDROID__) && defined(__ARM_ARCH_7A__)
namespace std { namespace std {
@ -69,7 +71,7 @@ void CheckInitGoogleIsDone(const char* message) {
namespace file { namespace file {
// Conversion to our wrapper Status. // Conversion to our wrapper Status.
tensorflow::Status ToStatus(const ::util::Status& uts) { tensorflow::Status ToStatus(const absl::Status& uts) {
if (!uts.ok()) { if (!uts.ok()) {
return tensorflow::Status( return tensorflow::Status(
tensorflow::errors::Code(::util::RetrieveErrorCode(uts)), tensorflow::errors::Code(::util::RetrieveErrorCode(uts)),