Skip to content
Snippets Groups Projects
Unverified Commit 39006908 authored by auphelia's avatar auphelia Committed by GitHub
Browse files

Merge pull request #728 from Xilinx/hotfix/numpy_str

Hotfix: delete numpy.str in datapacking
parents 40dd14a8 9df9d642
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ RUN rm requirements.txt
# extra Python package dependencies (for testing and interaction)
RUN pip install pygments==2.4.1
RUN pip install ipykernel==5.5.5
RUN pip install jupyter==1.0.0
RUN pip install jupyter==1.0.0 --ignore-installed
RUN pip install markupsafe==2.0.1
RUN pip install matplotlib==3.3.1 --ignore-installed
RUN pip install pytest-dependency==0.5.1
......
......@@ -9,6 +9,7 @@ onnxoptimizer
onnxruntime==1.11.1
pre-commit==2.9.2
protobuf==3.20.2
psutil==5.9.4
pyscaffold==3.2.1
scipy==1.5.2
setupext-janitor>=1.1.2
......
......@@ -265,7 +265,7 @@ def numpy_to_hls_code(
# define a function to convert a single element into a C++ init string
# a single element can be a hex string if we are using packing
def elem2str(x):
if type(x) == str or type(x) == np.str_ or type(x) == np.str:
if type(x) == str or type(x) == np.str_:
return '%s("%s", 16)' % (hls_dtype, x)
elif type(x) == np.float32:
if dtype.is_integer():
......
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