File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -503,7 +503,7 @@ def main():
503
503
f'sum of all pixels ({ pixels } ) in the layer\' s `in_sequences`.' )
504
504
input_dim [ll ] = conf_input_dim [ll ]
505
505
506
- if not ( operator [ll ] == op .CONV1D or (operator [ll ] == op .NONE and input_dim [ll ][1 ] == 1 ) ):
506
+ if operator [ll ] != op .CONV1D and (operator [ll ] != op .NONE or input_dim [ll ][1 ] != 1 ):
507
507
if pool_stride [ll ][0 ] != pool_stride [ll ][1 ]:
508
508
eprint (f'{ layer_pfx (ll )} { op .string (operator [ll ])} does not support '
509
509
f'non-square pooling stride (currently set to '
@@ -523,7 +523,7 @@ def main():
523
523
eprint (f'{ layer_pfx (ll )} Pooling or zero-padding results in a zero data '
524
524
f'dimension (input { input_dim [ll ]} , result { pooled_dim [ll ]} ).' )
525
525
526
- if not ( operator [ll ] == op .CONV1D or (operator [ll ] == op .NONE and input_dim [ll ][1 ] == 1 ) ):
526
+ if operator [ll ] != op .CONV1D and (operator [ll ] != op .NONE or input_dim [ll ][1 ] != 1 ):
527
527
if stride [ll ][0 ] != stride [ll ][1 ]:
528
528
eprint (f'{ layer_pfx (ll )} { op .string (operator [ll ])} does not support '
529
529
f'non-square stride (currently set to { stride [ll ][0 ]} x{ stride [ll ][1 ]} ).' )
You can’t perform that action at this time.
0 commit comments