Skip to content

Commit 7ed517a

Browse files
committed
Fix.
1 parent ec72ba7 commit 7ed517a

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

graph_net/tools/generate_subgraph_dataset.sh

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set -x
33

44
MIN_SEQ_OPS=${1:-4}
55
MAX_SEQ_OPS=${2:-64}
6-
GPU_ID=${3:-0}
6+
GPU_ID=${3:-7}
77

88
OP_RANGE=$MIN_SEQ_OPS-$MAX_SEQ_OPS
99

@@ -12,7 +12,8 @@ export CUDA_VISIBLE_DEVICES="${GPU_ID}"
1212
GRAPH_NET_ROOT=$(python3 -c "import graph_net; import os; print(os.path.dirname(os.path.dirname(graph_net.__file__)))")
1313
RESUME="true"
1414

15-
DECOMPOSE_WORKSPACE=/tmp/subgraph_dataset_workspace
15+
#DECOMPOSE_WORKSPACE=/tmp/subgraph_dataset_workspace
16+
DECOMPOSE_WORKSPACE=/work/graphnet_test_workspace/subgraph_dataset_20260203
1617
OUTPUT_DIR=$DECOMPOSE_WORKSPACE/outputs
1718
DB_PATH=$OUTPUT_DIR/GraphNet.db
1819

@@ -682,19 +683,19 @@ function generate_database() {
682683
}
683684

684685
function main() {
685-
do_common_generalzation_and_decompose
686+
#do_common_generalzation_and_decompose
686687

687688
sample_type="fusible_graph"
688689
generate_fusible_subgraphs
689-
cp -rf $DTYPE_GENERALIZED_FUSIBLE_SUBGRAPH_DIR $OUTPUT_DIR/$sample_type
690-
cp -rf $dtype_generalized_subgraphs_list $OUTPUT_DIR/$sample_type/sample_list.txt
690+
#cp -rf $DTYPE_GENERALIZED_FUSIBLE_SUBGRAPH_DIR $OUTPUT_DIR/$sample_type
691+
#cp -rf $dtype_generalized_subgraphs_list $OUTPUT_DIR/$sample_type/sample_list.txt
691692

692693
sample_type="typical_graph"
693694
generate_typical_subgraphs
694-
cp -rf $DTYPE_GENERALIZED_TYPICAL_SUBGRAPH_DIR $OUTPUT_DIR/$sample_type
695-
cp -rf $dtype_generalized_typical_subgraph_list $OUTPUT_DIR/$sample_type/sample_list.txt
695+
#cp -rf $DTYPE_GENERALIZED_TYPICAL_SUBGRAPH_DIR $OUTPUT_DIR/$sample_type
696+
#cp -rf $dtype_generalized_typical_subgraph_list $OUTPUT_DIR/$sample_type/sample_list.txt
696697

697-
generate_database
698+
#generate_database
698699
}
699700

700701
function summary() {

0 commit comments

Comments
 (0)