mirror of https://github.com/kendryte/nncase.git
Fix in_ci env judge with bool type. (#1171)
* Fix in_ci env judge with bool type. * Add fix for accuracy_test.pull/1173/head
parent
24fcfffac0
commit
bdaf0b12c6
|
@ -115,7 +115,7 @@ class Inference:
|
|||
def dump_kmodel_desc(self, file):
|
||||
input_shapes = data_shape_list_string(self.inputs)
|
||||
output_shapes = data_shape_list_string(self.outputs)
|
||||
s = f"{len(self.inputs)} {len(self.outputs)}\n{input_shapes}\n{output_shapes}"
|
||||
s = f"{len(self.inputs)} {len(self.outputs)}\n{input_shapes}\n{output_shapes}\n"
|
||||
with open(file, "w+") as f:
|
||||
f.write(s)
|
||||
|
||||
|
|
|
@ -66,7 +66,7 @@ def dump_dict_to_json(dict, json_file):
|
|||
|
||||
|
||||
def in_ci():
|
||||
return os.getenv('CI', False)
|
||||
return os.getenv('CI', 'False').lower() == 'true'
|
||||
|
||||
|
||||
def kpu_targets():
|
||||
|
|
|
@ -62,7 +62,7 @@ def dump_dict_to_json(dict, json_file):
|
|||
|
||||
|
||||
def in_ci():
|
||||
return os.getenv('CI', False)
|
||||
return os.getenv('CI', 'False').lower() == 'true'
|
||||
|
||||
|
||||
def kpu_targets():
|
||||
|
|
Loading…
Reference in New Issue