Skip to content
Snippets Groups Projects
Unverified Commit f5d6408d authored by Lucian Petrica's avatar Lucian Petrica Committed by GitHub
Browse files

Not casting clk_ns before check that it is not None

parent 215729ee
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@ class MakePYNQDriver(Transformation):
driver = driver.replace("$OUTPUT_SHAPE_PACKED$", mss(o_tensor_shape_packed))
# clock settings for driver
clk_ns = float(model.get_metadata_prop("clk_ns"))
clk_ns = model.get_metadata_prop("clk_ns")
# default to 10ns / 100 MHz if property not set
if clk_ns is None:
clk_ns = 10.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment