Removes back link from external graph transform...
PiperOrigin-RevId: 360207504 Change-Id: I0ec32094baada0daf4a200387aca7470c482a981
This commit is contained in:
parent
e19ba8778b
commit
f5ef2238ae
@ -239,6 +239,7 @@ py_library(
|
||||
"//tensorflow/python/util:_pywrap_nest",
|
||||
"//tensorflow/python/util:_pywrap_stat_summarizer",
|
||||
"//tensorflow/python/util:_pywrap_tfprof",
|
||||
"//tensorflow/python/util:_pywrap_transform_graph",
|
||||
"//tensorflow/python/util:_pywrap_util_port",
|
||||
"//third_party/py/numpy",
|
||||
],
|
||||
@ -763,6 +764,7 @@ py_library(
|
||||
"//tensorflow/python/util:_pywrap_checkpoint_reader",
|
||||
"//tensorflow/python/util:_pywrap_stat_summarizer",
|
||||
"//tensorflow/python/util:_pywrap_tfprof",
|
||||
"//tensorflow/python/util:_pywrap_transform_graph",
|
||||
"//tensorflow/python/util:_pywrap_util_port",
|
||||
":_pywrap_utils",
|
||||
":_errors_test_helper",
|
||||
@ -5272,6 +5274,7 @@ pywrap_tensorflow_macro(
|
||||
"//tensorflow/core/profiler/internal:print_model_analysis",
|
||||
"//tensorflow/lite/delegates/flex:delegate",
|
||||
"//tensorflow/core/profiler/internal/cpu:python_tracer",
|
||||
"//tensorflow/tools/graph_transforms:transform_graph_lib",
|
||||
"//tensorflow/lite/toco/python:toco_python_api",
|
||||
"//tensorflow/python/eager:pywrap_tfe_lib",
|
||||
"//tensorflow/core/util/tensor_bundle",
|
||||
@ -5354,6 +5357,7 @@ filegroup(
|
||||
":tf_session_helper", # tf_session
|
||||
"//tensorflow/python/eager:pywrap_tfe_lib", # pywrap_tfe_lib
|
||||
"//tensorflow/stream_executor:stream_executor_pimpl", # stat_summarizer
|
||||
"//tensorflow/tools/graph_transforms:transform_graph_lib", # transform_graph
|
||||
] + if_xla_available([
|
||||
"//tensorflow/compiler/aot:tfcompile_lib", # tfcompile
|
||||
"//tensorflow/compiler/xla:status_macros", # tfcompile
|
||||
|
@ -169,6 +169,21 @@ tf_python_pybind_extension(
|
||||
],
|
||||
)
|
||||
|
||||
tf_python_pybind_extension(
|
||||
name = "_pywrap_transform_graph",
|
||||
srcs = ["transform_graph_wrapper.cc"],
|
||||
hdrs = ["//tensorflow/tools/graph_transforms:transform_graph_hdrs"],
|
||||
module_name = "_pywrap_transform_graph",
|
||||
deps = [
|
||||
"//tensorflow/core:framework_headers_lib",
|
||||
"//tensorflow/core:lib_headers_for_pybind",
|
||||
"//tensorflow/core:protos_all_cc",
|
||||
"//tensorflow/python/lib/core:pybind11_status",
|
||||
"//third_party/python_runtime:headers",
|
||||
"@pybind11",
|
||||
],
|
||||
)
|
||||
|
||||
tf_python_pybind_extension(
|
||||
name = "_pywrap_checkpoint_reader",
|
||||
srcs = ["py_checkpoint_reader_wrapper.cc"],
|
||||
|
@ -112,6 +112,10 @@ toco::MlirQuantizeModel
|
||||
toco::MlirSparsifyModel
|
||||
toco::RegisterCustomOpdefs
|
||||
|
||||
[//tensorflow/tools/graph_transforms:transform_graph_lib] # transform_graph
|
||||
tensorflow::graph_transforms::TransformGraph
|
||||
tensorflow::graph_transforms::ParseTransformParameters
|
||||
|
||||
[//tensorflow/c:checkpoint_reader] # py_checkpoint_reader
|
||||
tensorflow::checkpoint::CheckpointReader
|
||||
tensorflow::checkpoint::CheckpointReader::Init
|
||||
|
@ -11,9 +11,6 @@ load(
|
||||
)
|
||||
load("//tensorflow:tensorflow.bzl", "get_compatible_with_cloud")
|
||||
|
||||
# buildifier: disable=same-origin-load
|
||||
load("//tensorflow:tensorflow.bzl", "tf_python_pybind_extension")
|
||||
|
||||
package(
|
||||
default_visibility = ["//visibility:public"],
|
||||
licenses = ["notice"], # Apache 2.0
|
||||
@ -333,30 +330,15 @@ tf_cc_binary(
|
||||
],
|
||||
)
|
||||
|
||||
tf_python_pybind_extension(
|
||||
name = "_pywrap_transform_graph",
|
||||
srcs = ["transform_graph_wrapper.cc"],
|
||||
hdrs = ["//tensorflow/tools/graph_transforms:transform_graph_hdrs"],
|
||||
module_name = "_pywrap_transform_graph",
|
||||
deps = [
|
||||
"//tensorflow/core:framework_headers_lib",
|
||||
"//tensorflow/core:protos_all_cc",
|
||||
"//tensorflow/python/lib/core:pybind11_status",
|
||||
"//tensorflow/tools/graph_transforms:transform_graph_lib",
|
||||
"//third_party/python_runtime:headers",
|
||||
"@pybind11",
|
||||
],
|
||||
)
|
||||
|
||||
py_library(
|
||||
name = "transform_graph_py",
|
||||
srcs = ["__init__.py"],
|
||||
srcs_version = "PY3",
|
||||
deps = [
|
||||
":_pywrap_transform_graph",
|
||||
"//tensorflow/core:protos_all_py",
|
||||
"//tensorflow/python:errors",
|
||||
"//tensorflow/python:util",
|
||||
"//tensorflow/python/util:_pywrap_transform_graph",
|
||||
],
|
||||
)
|
||||
|
||||
|
@ -20,7 +20,7 @@ from __future__ import print_function
|
||||
# pylint: disable=unused-import,wildcard-import, line-too-long
|
||||
from tensorflow.core.framework import graph_pb2
|
||||
from tensorflow.python.util import compat
|
||||
from tensorflow.tools.graph_transforms._pywrap_transform_graph import TransformGraphWithStringInputs
|
||||
from tensorflow.python.util._pywrap_transform_graph import TransformGraphWithStringInputs
|
||||
|
||||
|
||||
def TransformGraph(input_graph_def, inputs, outputs, transforms):
|
||||
|
Loading…
Reference in New Issue
Block a user