PReLU for multidimensional parameters #1333
Replies: 2 comments 5 replies
-
The simplest approach is to subclass If you do all this we'd be interested in merging it upstream. We don't support this feature currently simply because it wasn't asked for before. It is a bit cumbersome to implement full support since we need a specialization for all reasonable number of dimensions (2D, 3D and maybe 4D) and combinations of |
Beta Was this translation helpful? Give feedback.
-
Indeed, this is annoying. I think it has to do with the fact that your layer now has
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I would like to implement a custom layer for managing PReLU activations with multiple dimensions, e.g., The connection between a Conv1D layer with 6 output channels and 9 samples each channel, and a PReLU. In this case, the PReLU should have 6 channels (6 parameters), and 9 samples on each.
My idea was, using Extension API, to inherit the PReLU keras layer and the PReLU hls4ml layer, then do the parser function and then the HLS code. The thing is that I don't know where to start with the parser function, so any help should be appreciated!
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions