Skip to content

Commit

Permalink
fix the path error (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
intellinjun authored Jul 28, 2022
1 parent d3aafd9 commit 8238de0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/deployment/neural_engine/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,11 @@ def compute_performance(dataset, graph, log, log_file, warm_up, batch_size, seq_
all_latency = log_file.replace('.log', '.npy')
_,file_name = os.path.split(all_latency)
_ = os.getcwd() + '/all_latency'
if os.path.exists(_) == False :
os.mkdir(_)
try:
if os.path.exists(_) == False :
os.mkdir(_)
except:
pass
all_latency = os.path.join(_,file_name)
All_latency = np.array(duration_w)
np.save(all_latency,All_latency,allow_pickle=True, fix_imports=True)
Expand Down

0 comments on commit 8238de0

Please sign in to comment.