Open chhzh123 opened 4 years ago
@seanlatias we also need to test the const struct array.
@chhzh123 can you test it with the HLS compiler and see if F is synthesized as const or they just simply be inlined? You can check the resource report for that. If it can, please increase the array size and push them to the limit to see when the HLS tool will fail. Thanks.
NVM, I'll do that.
Currently, HeteroCL cannot infer constant arrays from the source code. For example, the weights (
F
) of the convolution layer are read-only and should be declared as constants in the generated C code.However, the first method (
conv1
) putsF
in the function argument, andconv2
that useshcl.copy
makes assignments for the array one by one.