Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnycase committed Nov 26, 2019
1 parent 66919bb commit e57ad52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ jobs:
cmake .. -DNNCASE_TARGET=k210 -DCMAKE_BUILD_TYPE=Release
make -j
strip bin/ncc
hdiutil create -srcfolder bin ncc_macos_x86_64.dmg
hdiutil create -srcfolder bin ncc_osx_x86_64.dmg
displayName: 'Build'
- task: PublishBuildArtifacts@1
Expand Down
4 changes: 2 additions & 2 deletions tests/ncc.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ def compile(args=[]):
retcode = subprocess.call([ncc, 'compile', tflite_export_file, kmodel_export_file,
'-i', 'tflite', *args])
print('retcode', retcode)
assert retcode > 0
assert retcode is 0

def infer(args=[]):
if not os.path.exists(kmodel_out_dir):
os.makedirs(kmodel_out_dir)
retcode = subprocess.call([ncc, 'infer', kmodel_export_file, kmodel_out_dir, '--dataset', input_dir, *args])
print('retcode', retcode)
assert retcode > 0
assert retcode is 0

def save_expect_array(name, array):
if not os.path.exists(expect_out_dir):
Expand Down

0 comments on commit e57ad52

Please sign in to comment.