1- Retrieving commandline, environment, or config file variable ocannl_log_level
2- Found 0, in the config file
31Testing conv syntax parsing...
42Test 1: Parsed '2*o+3*k' successfully
53 Structure: ((bcast_batch ()) (bcast_input ()) (bcast_output ()) (given_batch 0)
64 (given_input 0) (given_output 1) (given_beg_batch 0) (given_beg_input 0)
75 (given_beg_output 0)
86 (labels
97 ((((in_axes Output) (pos 1) (from_end true))
10- (Conv_spec (stride 2) (output_label o) (dilation 3) (kernel_label k))))))
8+ (Affine_spec (stride 2) (over_label o)
9+ (conv (((dilation 3) (kernel_label k)))) (stride_offset 0))))))
1110
1211Test 2: Parsed 'o+k' successfully
1312 Structure: ((bcast_batch ()) (bcast_input ()) (bcast_output ()) (given_batch 0)
1413 (given_input 0) (given_output 1) (given_beg_batch 0) (given_beg_input 0)
1514 (given_beg_output 0)
1615 (labels
1716 ((((in_axes Output) (pos 1) (from_end true))
18- (Conv_spec (stride 1) (output_label o) (dilation 1) (kernel_label k))))))
17+ (Affine_spec (stride 1) (over_label o)
18+ (conv (((dilation 1) (kernel_label k)))) (stride_offset 0))))))
1919
2020Test 3: Parsed 'a, 2*b+c' successfully
2121 Structure: ((bcast_batch ()) (bcast_input ()) (bcast_output ()) (given_batch 0)
2222 (given_input 0) (given_output 2) (given_beg_batch 0) (given_beg_input 0)
2323 (given_beg_output 0)
2424 (labels
2525 ((((in_axes Output) (pos 1) (from_end true))
26- (Conv_spec (stride 2) (output_label b) (dilation 1) (kernel_label c)))
26+ (Affine_spec (stride 2) (over_label b)
27+ (conv (((dilation 1) (kernel_label c)))) (stride_offset 0)))
2728 (((in_axes Output) (pos 2) (from_end true)) (Label a)))))
2829
2930Test 4: Parsed 'i, o+k, j' successfully (multichar mode)
@@ -33,7 +34,8 @@ Test 4: Parsed 'i, o+k, j' successfully (multichar mode)
3334 (labels
3435 ((((in_axes Output) (pos 1) (from_end true)) (Label j))
3536 (((in_axes Output) (pos 2) (from_end true))
36- (Conv_spec (stride 1) (output_label o) (dilation 1) (kernel_label k)))
37+ (Affine_spec (stride 1) (over_label o)
38+ (conv (((dilation 1) (kernel_label k)))) (stride_offset 0)))
3739 (((in_axes Output) (pos 3) (from_end true)) (Label i)))))
3840
3941Test 5: Parsed 'a+bc' successfully (multichar mode)
@@ -42,15 +44,17 @@ Test 5: Parsed 'a+bc' successfully (multichar mode)
4244 (given_beg_output 0)
4345 (labels
4446 ((((in_axes Output) (pos 1) (from_end true))
45- (Conv_spec (stride 1) (output_label a) (dilation 1) (kernel_label bc))))))
47+ (Affine_spec (stride 1) (over_label a)
48+ (conv (((dilation 1) (kernel_label bc)))) (stride_offset 0))))))
4649
4750Test 6: Parsed 'i, j -> 2*i+j' successfully
4851 Structure: ((bcast_batch ()) (bcast_input ()) (bcast_output ()) (given_batch 0)
4952 (given_input 2) (given_output 1) (given_beg_batch 0) (given_beg_input 0)
5053 (given_beg_output 0)
5154 (labels
5255 ((((in_axes Output) (pos 1) (from_end true))
53- (Conv_spec (stride 2) (output_label i) (dilation 1) (kernel_label j)))
56+ (Affine_spec (stride 2) (over_label i)
57+ (conv (((dilation 1) (kernel_label j)))) (stride_offset 0)))
5458 (((in_axes Input) (pos 1) (from_end true)) (Label j))
5559 (((in_axes Input) (pos 2) (from_end true)) (Label i)))))
5660
@@ -61,8 +65,8 @@ Test 7: Parsed 'batch|input->3*output+1*kernel,' successfully
6165 (labels
6266 ((((in_axes Batch) (pos 1) (from_end true)) (Label batch))
6367 (((in_axes Output) (pos 1) (from_end true))
64- (Conv_spec (stride 3) (output_label output) (dilation 1 )
65- (kernel_label kernel)))
68+ (Affine_spec (stride 3) (over_label output)
69+ (conv (((dilation 1) ( kernel_label kernel)))) (stride_offset 0 )))
6670 (((in_axes Input) (pos 1) (from_end true)) (Label input)))))
6771
6872All conv syntax parsing tests passed!
@@ -74,26 +78,23 @@ Test 1: Parsed strided iteration '2*output' successfully
7478 (given_beg_output 0)
7579 (labels
7680 ((((in_axes Output) (pos 1) (from_end true))
77- (Conv_spec (stride 2) (output_label output) (dilation 0)
78- (kernel_label _stride_only))))))
81+ (Affine_spec (stride 2) (over_label output) (conv ()) (stride_offset 0))))))
7982
8083Test 2: Parsed strided iteration '3*i' successfully
8184 Structure: ((bcast_batch ()) (bcast_input ()) (bcast_output ()) (given_batch 0)
8285 (given_input 0) (given_output 1) (given_beg_batch 0) (given_beg_input 0)
8386 (given_beg_output 0)
8487 (labels
8588 ((((in_axes Output) (pos 1) (from_end true))
86- (Conv_spec (stride 3) (output_label i) (dilation 0)
87- (kernel_label _stride_only))))))
89+ (Affine_spec (stride 3) (over_label i) (conv ()) (stride_offset 0))))))
8890
8991Test 3: Parsed einsum with strided iteration 'input -> 2*output' successfully
9092 Structure: ((bcast_batch ()) (bcast_input ()) (bcast_output ()) (given_batch 0)
9193 (given_input 1) (given_output 1) (given_beg_batch 0) (given_beg_input 0)
9294 (given_beg_output 0)
9395 (labels
9496 ((((in_axes Output) (pos 1) (from_end true))
95- (Conv_spec (stride 2) (output_label output) (dilation 0)
96- (kernel_label _stride_only)))
97+ (Affine_spec (stride 2) (over_label output) (conv ()) (stride_offset 0)))
9798 (((in_axes Input) (pos 1) (from_end true)) (Label input)))))
9899
99100Test 4: Parsed mixed labels with strided iteration 'regular, 3*strided' successfully
@@ -102,8 +103,7 @@ Test 4: Parsed mixed labels with strided iteration 'regular, 3*strided' successf
102103 (given_beg_output 0)
103104 (labels
104105 ((((in_axes Output) (pos 1) (from_end true))
105- (Conv_spec (stride 3) (output_label strided) (dilation 0)
106- (kernel_label _stride_only)))
106+ (Affine_spec (stride 3) (over_label strided) (conv ()) (stride_offset 0)))
107107 (((in_axes Output) (pos 2) (from_end true)) (Label regular)))))
108108
109109
@@ -128,7 +128,8 @@ Conv spec 'a+b': ((bcast_batch ()) (bcast_input ()) (bcast_output ()) (given_bat
128128 (given_beg_output 0)
129129 (labels
130130 ((((in_axes Output) (pos 1) (from_end true))
131- (Conv_spec (stride 1) (output_label a) (dilation 1) (kernel_label b))))))
131+ (Affine_spec (stride 1) (over_label a)
132+ (conv (((dilation 1) (kernel_label b)))) (stride_offset 0))))))
132133Note: Conv expressions with + or * now always use multichar mode
133134
134135All conv syntax tests completed!
0 commit comments