Commit d66dbcce authored by rusty1s's avatar rusty1s
Browse files

added backward test

parent 2ba6da8a
...@@ -8,6 +8,15 @@ ...@@ -8,6 +8,15 @@
"grad": [[10, 20, 30, 40, 50, 60], [15, 25, 35, 45, 55, 65]], "grad": [[10, 20, 30, 40, 50, 60], [15, 25, 35, 45, 55, 65]],
"expected": [[50, 60, 50, 30, 40], [15, 15, 35, 35, 25]] "expected": [[50, 60, 50, 30, 40], [15, 15, 35, 35, 25]]
}, },
{
"name": "mean",
"index": [[4, 5, 4, 2, 3], [0, 0, 2, 2, 1]],
"input": [[2, 0, 1, 4, 3], [0, 2, 1, 3, 4]],
"dim": 1,
"fill_value": 0,
"grad": [[10, 20, 30, 40, 50, 60], [15, 25, 35, 45, 55, 65]],
"expected": [[50, 60, 50, 30, 40], [15, 15, 35, 35, 25]]
},
{ {
"name": "max", "name": "max",
"index": [[4, 5, 4, 2, 3], [0, 0, 2, 2, 1]], "index": [[4, 5, 4, 2, 3], [0, 0, 2, 2, 1]],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment