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
4 changes: 2 additions & 2 deletions sqlite/graphsample_insert.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def insert_subgraph_source(
session = get_session(db_path)
try:
parent_relative_path = get_parent_relative_path(relative_model_path)
if sample_type == "fusible_graph":
if sample_type == "fusible_graph" or sample_type == "typical_graph":
parent_parts = parent_relative_path.split("/")
parent_parts = parent_parts[1:]
parent_relative_path = "/".join(parent_parts)
Expand Down Expand Up @@ -469,7 +469,7 @@ def main(args):
relative_model_path=args.relative_model_path,
db_path=args.db_path,
)
if args.sample_type in ["fusible_graph"]:
if args.sample_type in ["fusible_graph", "typical_graph"]:
insert_dimension_generalization_source(
subgraph_source_data["subgraph_uuid"],
subgraph_source_data["full_graph_uuid"],
Expand Down
2 changes: 1 addition & 1 deletion sqlite/graphsample_insert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ TORCH_MODEL_LIST="graph_net/config/torch_samples_list.txt"
PADDLE_MODEL_LIST="graph_net/config/small10_paddle_samples_list.txt"
TYPICAL_GRAPH_SAMPLES_LIST="subgraph_dataset_20260203/deduplicated_subgraph_sample_list.txt"
FUSIBLE_GRAPH_SAMPLES_LIST="subgraph_dataset_20260203/deduplicated_dimension_generalized_subgraph_sample_list.txt"
SOLE_OP_GRAPH_SAMPLES_LIST="subgraph_dataset_20260203/sole/solo_sample_list.txt"
SOLE_OP_GRAPH_SAMPLES_LIST="subgraph_dataset_20260203/solo_sample_list.txt"
ORDER_VALUE=0

if [ ! -f "$DB_PATH" ]; then
Expand Down
2 changes: 1 addition & 1 deletion sqlite/migrates/create_main_tables_2026-02-02-031353.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ CREATE TABLE IF NOT EXISTS graph_sample (
CREATE INDEX IF NOT EXISTS idx_relative_model_path ON graph_sample (relative_model_path);
CREATE INDEX IF NOT EXISTS idx_graph_hash ON graph_sample (graph_hash);
CREATE INDEX IF NOT EXISTS idx_order_value ON graph_sample (order_value);
CREATE UNIQUE INDEX IF NOT EXISTS uq_relative_model_path_repo_uid ON graph_sample (relative_model_path, repo_uid);
CREATE UNIQUE INDEX IF NOT EXISTS uq_relative_model_path_repo_uid ON graph_sample (relative_model_path, repo_uid,sample_type);

-- create subgraph_source table
CREATE TABLE IF NOT EXISTS subgraph_source (
Expand Down
Loading