Skip to content
Merged
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: 1 addition & 1 deletion graph_net/test/ast_graph_variable_rename_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ EOF
) \
2>&1 | tee "$RENAMED_PATH/graph_rename.log"

python3 -m graph_net.torch.test_compiler \
python3 -m graph_net_bench.torch.test_compiler \
--model-path-prefix $GRAPH_NET_ROOT \
--allow-list $model_list \
--compiler graph_variable_renamer_validator \
Expand Down
2 changes: 1 addition & 1 deletion graph_net/test/fx_graph_module_unserialize_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ EOF
)


python3 -m graph_net.torch.test_compiler \
python3 -m graph_net_bench.torch.test_compiler \
--model-path-prefix $GRAPH_NET_ROOT \
--allow-list $model_list \
--compiler range_decomposer_validator \
Expand Down
2 changes: 1 addition & 1 deletion graph_net/test/graph_variable_rename_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ EOF
) \
2>&1 | tee "$RENAMED_PATH/graph_rename.log"

python3 -m graph_net.torch.test_compiler \
python3 -m graph_net_bench.torch.test_compiler \
--model-path-prefix $GRAPH_NET_ROOT \
--allow-list $model_list \
--compiler graph_variable_renamer_validator \
Expand Down
2 changes: 1 addition & 1 deletion graph_net/test/typical_sequence_decomposer_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ EOF
)


python3 -m graph_net.torch.test_compiler \
python3 -m graph_net_bench.torch.test_compiler \
--model-path-prefix $GRAPH_NET_ROOT \
--allow-list $model_list \
--compiler range_decomposer_validator \
Expand Down
6 changes: 0 additions & 6 deletions graph_net/torch/backend/graph_compiler_backend.py

This file was deleted.

11 changes: 0 additions & 11 deletions graph_net/torch/backend/nope_backend.py

This file was deleted.

3 changes: 1 addition & 2 deletions graph_net/torch/fx_graph_module_util.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import inspect
from graph_net.torch.utils import get_named_tensors
from graph_net.tensor_meta import TensorMeta
from graph_net.imp_util import load_module
from dataclasses import asdict
Expand Down Expand Up @@ -38,8 +39,6 @@ def _get_tensor_metas(model_path):

def _create_inputs_by_metas(module, tensor_metas, use_dummy_inputs):
tensor_meta_attrs_list = [asdict(tensor_meta) for tensor_meta in tensor_metas]
from graph_net.torch.utils import get_named_tensors

named_tensors = get_named_tensors(tensor_meta_attrs_list, use_dummy_inputs)
name2tensor = {k: v for k, v in named_tensors}
return tuple(
Expand Down
6 changes: 4 additions & 2 deletions graph_net/torch/static_to_dynamic.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import traceback
import logging
import torch
from graph_net.torch.utils import get_named_tensors
from graph_net.torch.utils import (
get_named_tensors,
apply_templates,
)
from torch.fx.passes.shape_prop import ShapeProp
from graph_net.torch.utils import apply_templates
from pathlib import Path
import inspect
from graph_net.torch.fx_graph_parse_util import parse_sole_graph_module
Expand Down
Loading