Skip to content

Extension API support for VivadoAccelerator backend #1058

Discussion options

You must be logged in to vote

Hi, I found the reason of the error and I want to share my experience.
I wrote my class using the example in documentation and specially descripting hls4ml's layer is same.

# hls4ml layer implementation
class HReverse(hls4ml.model.layers.Layer):
    '''hls4ml implementation of a hypothetical custom layer'''

    def initialize(self):
        inp = self.get_input_variable()
        shape = inp.shape
        dims = inp.dim_names
        self.add_output_variable(shape, dims)

Because the input and output have the same shape in reverse operation, you can see that the input's shape and dims are used when adding the output variable. Actually, dims are strings that describe the dimension of an ar…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by returnwellbeing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant