forward.json 3.03 KB
Newer Older
rusty1s's avatar
rusty1s committed
1
2
3
4
5
6
[
  {
    "name": "add",
    "index": [[4, 5, 4, 2, 3], [0, 0, 2, 2, 1]],
    "input": [[2, 0, 1, 4, 3], [0, 2, 1, 3, 4]],
    "dim": 1,
rusty1s's avatar
rusty1s committed
7
    "fill_value": 0,
rusty1s's avatar
rusty1s committed
8
    "expected": [[0, 0, 4, 3, 3, 0], [2, 4, 4, 0, 0, 0]]
rusty1s's avatar
bugfix  
rusty1s committed
9
  },
rusty1s's avatar
rusty1s committed
10
11
12
13
14
15
16
17
  {
    "name": "add",
    "index": [[0, 0], [1, 1], [1, 1], [0, 0]],
    "input": [[5, 2], [2, 5], [4, 3], [1, 3]],
    "dim": 0,
    "fill_value": 0,
    "expected": [[6, 5], [6, 8]]
  },
rusty1s's avatar
bugfix  
rusty1s committed
18
19
20
21
22
  {
    "name": "sub",
    "index": [[4, 5, 4, 2, 3], [0, 0, 2, 2, 1]],
    "input": [[2, 0, 1, 4, 3], [0, 2, 1, 3, 4]],
    "dim": 1,
rusty1s's avatar
rusty1s committed
23
24
    "fill_value": 9,
    "expected": [[9, 9, 5, 6, 6, 9], [7, 5, 5, 9, 9, 9]]
rusty1s's avatar
bugfix  
rusty1s committed
25
  },
rusty1s's avatar
rusty1s committed
26
27
28
29
30
31
32
33
  {
    "name": "sub",
    "index": [[0, 0], [1, 1], [1, 1], [0, 0]],
    "input": [[5, 2], [2, 5], [4, 3], [1, 3]],
    "dim": 0,
    "fill_value": 9,
    "expected": [[3, 4], [3, 1]]
  },
rusty1s's avatar
bugfix  
rusty1s committed
34
35
36
37
38
  {
    "name": "mul",
    "index": [[4, 5, 4, 2, 3], [0, 0, 2, 2, 1]],
    "input": [[2, 0, 1, 4, 3], [0, 2, 1, 3, 4]],
    "dim": 1,
rusty1s's avatar
rusty1s committed
39
    "fill_value": 1,
rusty1s's avatar
bugfix  
rusty1s committed
40
    "expected": [[1, 1, 4, 3, 2, 0], [0, 4, 3, 1, 1, 1]]
rusty1s's avatar
rusty1s committed
41
  },
rusty1s's avatar
rusty1s committed
42
43
44
45
46
47
48
49
  {
    "name": "mul",
    "index": [[0, 0], [1, 1], [1, 1], [0, 0]],
    "input": [[5, 2], [2, 5], [4, 3], [1, 3]],
    "dim": 0,
    "fill_value": 1,
    "expected": [[5, 6], [8, 15]]
  },
rusty1s's avatar
rusty1s committed
50
51
52
53
54
55
56
57
58
  {
    "name": "div",
    "index": [[4, 5, 4, 2, 3], [0, 0, 2, 2, 1]],
    "input": [[2, 1, 1, 4, 2], [1, 2, 1, 2, 4]],
    "dim": 1,
    "fill_value": 1,
    "expected": [[1, 1, 0.25, 0.5, 0.5, 1], [0.5, 0.25, 0.5, 1, 1, 1]]
  },
  {
rusty1s's avatar
rusty1s committed
59
60
61
62
63
64
    "name": "div",
    "index": [[0, 0], [1, 1], [1, 1], [0, 0]],
    "input": [[4, 2], [2, 1], [4, 2], [1, 2]],
    "dim": 0,
    "fill_value": 1,
    "expected": [[0.25, 0.25], [0.125, 0.5]]
rusty1s's avatar
rusty1s committed
65
66
  },
  {
rusty1s's avatar
rusty1s committed
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
    "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,
    "expected": [[0, 0, 4, 3, 1.5, 0], [1, 4, 2, 0, 0, 0]]
  },
  {
    "name": "mean",
    "index": [[0, 0], [1, 1], [1, 1], [0, 0]],
    "input": [[5, 2], [2, 5], [4, 3], [1, 3]],
    "dim": 0,
    "fill_value": 0,
    "expected": [[3, 2.5], [3, 4]]
  },
  {
rusty1s's avatar
rusty1s committed
83
84
85
86
87
88
89
90
    "name": "max",
    "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,
    "expected": [[0, 0, 4, 3, 2, 0], [2, 4, 3, 0, 0, 0]],
    "expected_arg": [[-1, -1, 3, 4, 0, 1], [1, 4, 3, -1, -1, -1]]
  },
rusty1s's avatar
rusty1s committed
91
92
93
94
95
96
97
98
99
  {
    "name": "max",
    "index": [[0, 0], [1, 1], [1, 1], [0, 0]],
    "input": [[5, 2], [2, 5], [4, 3], [1, 3]],
    "dim": 0,
    "fill_value": 0,
    "expected": [[5, 3], [4, 5]],
    "expected_arg": [[0, 3], [2, 1]]
  },
rusty1s's avatar
rusty1s committed
100
101
102
103
104
105
106
107
  {
    "name": "min",
    "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": 9,
    "expected": [[9, 9, 4, 3, 1, 0], [0, 4, 1, 9, 9, 9]],
    "expected_arg": [[-1, -1, 3, 4, 2, 1], [0, 4, 2, -1, -1, -1]]
rusty1s's avatar
rusty1s committed
108
109
110
111
112
113
114
115
116
  },
  {
    "name": "min",
    "index": [[0, 0], [1, 1], [1, 1], [0, 0]],
    "input": [[5, 2], [2, 5], [4, 3], [1, 3]],
    "dim": 0,
    "fill_value": 9,
    "expected": [[1, 2], [2, 3]],
    "expected_arg": [[3, 0], [1, 2]]
rusty1s's avatar
rusty1s committed
117
118
  }
]