You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the HCL UltraNet implementation https://github.com/sjz38/my_ultranet, the bounding box outputs on an image are not consistent among runs if some HCL code is defined in a certain way. The specific HCL code is found in the _pad and relu functions in ultranet_functions.py which have commented/uncommented sections labeled "CPU Backend" and "HLS Backend" (see end of issue post for this code). Niansong added the "HLS Backend" sections to make it easier for the customizations to be added, but I noticed that the bounding box outputs (Output BBox) would vary among runs. When I use the "CPU Backend" lines, I get the expected result each time.
git checkout f1faf87 if not already on this commit
Run python3 main_single_input.py twice, compare Output BBox results. They should be the same since the HLS Backend code is toggled.
To change to the CPU Backend code switch the commented out sections in ultranet_functions.py on lines 57 and 108
56 # Use this for CPU backend
57 # return hcl.compute(out_shape, _pad, name=name)
58 # Use this for HLS backend
59 return hcl.compute(out_shape, _pad, dtype=data.dtype, name=name)
Description and Example
In the HCL UltraNet implementation https://github.com/sjz38/my_ultranet, the bounding box outputs on an image are not consistent among runs if some HCL code is defined in a certain way. The specific HCL code is found in the
_pad
andrelu
functions in ultranet_functions.py which have commented/uncommented sections labeled "CPU Backend" and "HLS Backend" (see end of issue post for this code). Niansong added the "HLS Backend" sections to make it easier for the customizations to be added, but I noticed that the bounding box outputs (Output BBox) would vary among runs. When I use the "CPU Backend" lines, I get the expected result each time.However, when I switch to the "HLS Backend" lines, I get different unexpected results, even across runs.
To recreate the problem
git checkout f1faf87
if not already on this commitultranet_functions.py
on lines 57 and 108It seems that something is broken in the LLVM backend when these customizations are applied.
The text was updated successfully, but these errors were encountered: