Skip to content

Commit

Permalink
not .. in -> .. not in
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed Aug 11, 2019
1 parent 70813c6 commit abcc3b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions generate_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,15 @@ def infer_cfg(cfg, target: Target):
else:
raise Exception()

if not 'pos' in op:
if 'pos' not in op:
op['pos'] = next_pos
next_pos = op['pos'] + 1

if not 'output' in op:
if 'output' not in op:
op['output'] = [{'name': 'output', 'nnapi_type': 'tensor', 'cpp_type': 'str', 'needed_by_shaper': True}]
if not 'shaper' in op:
if 'shaper' not in op:
op['shaper'] = op['name']
if not 'nnapi' in op:
if 'nnapi' not in op:
op['nnapi'] = op['name'].upper()
if 'dnn' not in op:
op['dnn'] = op['name']
Expand Down

0 comments on commit abcc3b5

Please sign in to comment.