Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Back out "Add option to export model as JIT lite" #1524

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
2 changes: 0 additions & 2 deletions pytext/config/pytext_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ class ExportConfig(ConfigBase):
export_onnx_path: str = "/tmp/model.onnx"
# Exported torchscript model will be stored here
export_torchscript_path: Optional[str] = None
# Exported jit lite model will be stored here
export_lite_path: Optional[str] = None
# Export quantized torchscript model
torchscript_quantize: Optional[bool] = False
# Accelerator options.
Expand Down
10 changes: 0 additions & 10 deletions pytext/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,16 +210,6 @@ def save_and_export(
seq_padding_control=export_config.seq_padding_control,
batch_padding_control=export_config.batch_padding_control,
)
if export_config.export_lite_path:
task.lite_export(
model=task.model,
export_path=export_config.export_lite_path,
quantize=export_config.torchscript_quantize,
inference_interface=export_config.inference_interface,
accelerate=export_config.accelerate,
seq_padding_control=export_config.seq_padding_control,
batch_padding_control=export_config.batch_padding_control,
)


def export_saved_model_to_caffe2(
Expand Down