Skip to content
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[{
"op": "broadcast_tensors",
"param_info": {
"input":{
"input": {
"type": "list<Variable>",
"input0": {
"dtype": "float32",
Expand All @@ -21,10 +21,10 @@
}
},
"repeat": 5000
},{
}, {
"op": "broadcast_tensors",
"param_info": {
"input":{
"input": {
"type": "list<Variable>",
"input0": {
"dtype": "float32",
Expand All @@ -44,5 +44,4 @@
}
},
"repeat": 5000
}
]
}]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
29 changes: 29 additions & 0 deletions api/configs/default/determinant.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[{
"op": "determinant",
"param_info": {
"x": {
"dtype": "float32",
"shape": "[16L, 100L, 100L]",
"type": "Variable"
},
"y": {
"dtype": "float32",
"shape": "[16L, 1L, 1L]",
"type": "Variable"
}
}
}, {
"op": "determinant",
"param_info": {
"x": {
"dtype": "float32",
"shape": "[16L, 200L, 200L]",
"type": "Variable"
},
"y": {
"dtype": "float32",
"shape": "[16L, 1L, 1L]",
"type": "Variable"
}
}
}]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions api/tests_v2/configs/matrix_power.json → api/configs/default/matrix_power.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"type": "Variable"
}
}
},{
}, {
"op": "matrix_power",
"param_info": {
"n": {
Expand All @@ -24,7 +24,7 @@
"type": "Variable"
}
}
},{
}, {
"op": "matrix_power",
"param_info": {
"n": {
Expand Down
37 changes: 37 additions & 0 deletions api/configs/default/maxout.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[{
"op": "maxout",
"param_info": {
"groups": {
"type": "int",
"value": "2"
},
"axis": {
"type": "int",
"value": "-1"
},
"x": {
"dtype": "float32",
"shape": "[32L, 12L, 128L, 128L]",
"type": "Variable"
}
},
"repeat": 5000
}, {
"op": "maxout",
"param_info": {
"groups": {
"type": "int",
"value": "2"
},
"axis": {
"type": "int",
"value": "-1"
},
"x": {
"dtype": "float32",
"shape": "[32L, 8L, 1024L, 3072L]",
"type": "Variable"
}
},
"repeat": 5000
}]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
45 changes: 45 additions & 0 deletions api/configs/default/put_along_axis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
[{
"op": "put_along_axis",
"param_info": {
"arr": {
"dtype": "float32",
"shape": "[200, 300]",
"type": "Variable"
},
"indices": {
"dtype": "int",
"shape": "[1, 1]",
"type": "Variable"
},
"values": {
"type": "float32",
"value": "99"
},
"axis": {
"type": "int",
"value": "0"
}
}
}, {
"op": "put_along_axis",
"param_info": {
"arr": {
"dtype": "float32",
"shape": "[1024L, 3072L]",
"type": "Variable"
},
"indices": {
"dtype": "int",
"shape": "[1, 1]",
"type": "Variable"
},
"values": {
"type": "float32",
"value": "1000"
},
"axis": {
"type": "int",
"value": "0"
}
}
}]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 21 additions & 0 deletions api/configs/default/shard_index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[{
"op": "shard_index",
"param_info": {
"input": {
"type": "Variable",
"dtype": "int64",
"shape": "[10000L, 5000L, 1L]"
}
},
"repeat": 5000
}, {
"op": "shard_index",
"param_info": {
"input": {
"type": "Variable",
"dtype": "int32",
"shape": "[10000L, 10000L, 1L]"
}
},
"repeat": 5000
}]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
37 changes: 37 additions & 0 deletions api/configs/default/take_along_axis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[{
"op": "take_along_axis",
"param_info": {
"arr": {
"dtype": "float32",
"shape": "[200, 300]",
"type": "Variable"
},
"indices": {
"dtype": "int",
"shape": "[1, 1]",
"type": "Variable"
},
"axis": {
"type": "int",
"value": "0"
}
}
}, {
"op": "take_along_axis",
"param_info": {
"arr": {
"dtype": "float32",
"shape": "[1024L, 3072L]",
"type": "Variable"
},
"indices": {
"dtype": "int",
"shape": "[1, 1]",
"type": "Variable"
},
"axis": {
"type": "int",
"value": "0"
}
}
}]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions api/run_op_benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ run_op_benchmark() {
fi
echo "-- output_dir: ${output_dir}"

config_dir=${OP_BENCHMARK_ROOT}/tests_v2/configs
config_dir=${OP_BENCHMARK_ROOT}/configs/default
echo "-- config_dir: ${config_dir}"

tests_dir=${OP_BENCHMARK_ROOT}/${test_module_name}
Expand Down Expand Up @@ -103,7 +103,7 @@ run_specified_op() {
fi
echo "-- output_dir: ${output_dir}"

config_dir=${OP_BENCHMARK_ROOT}/tests_v2/op_configs
config_dir=${OP_BENCHMARK_ROOT}/configs/general
echo "-- config_dir: ${config_dir}"

tests_dir=${OP_BENCHMARK_ROOT}/${test_module_name}
Expand Down
2 changes: 1 addition & 1 deletion api/tests/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ task=${3:-"speed"} # "accuracy" or "speed"

testing_mode="dynamic" # "static" or "dynamic"
framework="paddle" # "paddle" or "tensorflow" or "pytorch"
filename="${OP_BENCHMARK_ROOT}/tests_v2/configs/${name}.json"
filename="${OP_BENCHMARK_ROOT}/configs/default/${name}.json"
if [ -z "$CUDA_VISIBLE_DEVICES" ]; then
use_gpu=False
else
Expand Down
29 changes: 0 additions & 29 deletions api/tests_v2/configs/determinant.json

This file was deleted.

39 changes: 0 additions & 39 deletions api/tests_v2/configs/log_loss.json

This file was deleted.

38 changes: 0 additions & 38 deletions api/tests_v2/configs/logical.json

This file was deleted.

14 changes: 0 additions & 14 deletions api/tests_v2/configs/logical_not.json

This file was deleted.

20 changes: 0 additions & 20 deletions api/tests_v2/configs/logsumexp.json

This file was deleted.

Loading