Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused imports from lite.py and metrics_wrapper.py #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions tflite/python/lite.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,32 +31,23 @@
from tensorflow.compiler.mlir.quantization.stablehlo import quantization_config_pb2 as qc
from tensorflow.compiler.mlir.quantization.tensorflow.python import representative_dataset as rd
from tensorflow.core.framework import graph_pb2 as _graph_pb2
from tflite.experimental.microfrontend.python.ops import audio_microfrontend_op # pylint: disable=unused-import
from tflite.profiling.proto import profiling_info_pb2 # pylint: disable=unused-import
from tflite.python import conversion_metadata_schema_py_generated as conversion_metadata_fb
from tflite.python import lite_constants as constants
from tflite.python.convert import build_conversion_flags as _build_conversion_flags
from tflite.python.convert import convert_graphdef as _convert_graphdef
from tflite.python.convert import convert_graphdef_with_arrays as _convert_graphdef_with_arrays
from tflite.python.convert import convert_jax_hlo as _convert_jax_hlo
from tflite.python.convert import convert_saved_model as _convert_saved_model
from tflite.python.convert import ConverterError # pylint: disable=unused-import
from tflite.python.convert import deduplicate_readonly_buffers as _deduplicate_readonly_buffers
from tflite.python.convert import mlir_quantize as _mlir_quantize
from tflite.python.convert import mlir_sparsify as _mlir_sparsify
from tflite.python.convert import OpsSet
from tflite.python.convert import toco_convert # pylint: disable=unused-import
from tflite.python.convert_phase import Component
from tflite.python.convert_phase import convert_phase
from tflite.python.convert_phase import SubComponent
from tflite.python.convert_saved_model import freeze_saved_model as _freeze_saved_model
from tflite.python.interpreter import Interpreter # pylint: disable=unused-import
from tflite.python.interpreter import load_delegate # pylint: disable=unused-import
from tflite.python.interpreter import OpResolverType # pylint: disable=unused-import
from tflite.python.metrics import metrics
from tflite.python.op_hint import convert_op_hints_to_stubs # pylint: disable=unused-import
from tflite.python.op_hint import is_ophint_converted as _is_ophint_converted
from tflite.python.op_hint import OpHint # pylint: disable=unused-import
from tflite.python.optimize import calibrator as _calibrator
from tflite.python.util import _jit
from tflite.python.util import build_debug_info_func as _build_debug_info_func
Expand All @@ -78,8 +69,6 @@
from tflite.python.util import set_tensor_shapes as _set_tensor_shapes
from tflite.python.util import trace_model_call as _trace_model_call
from tflite.tools import flatbuffer_utils
from tflite.tools.optimize.debugging.python.debugger import QuantizationDebugger # pylint: disable=unused-import
from tflite.tools.optimize.debugging.python.debugger import QuantizationDebugOptions # pylint: disable=unused-import
from tensorflow.python.client import session as _session
from tensorflow.python.eager import context
from tensorflow.python.eager import def_function as _def_function
Expand Down
1 change: 0 additions & 1 deletion tflite/python/metrics/wrapper/metrics_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

from tensorflow.compiler.mlir.lite.metrics import converter_error_data_pb2
from tensorflow.compiler.mlir.lite.python import wrap_converter
from tflite.python.metrics._pywrap_tensorflow_lite_metrics_wrapper import MetricsWrapper # pylint: disable=unused-import


def retrieve_collected_errors():
Expand Down