Skip to content
Snippets Groups Projects
Commit 991c1e3e authored by Yaman Umuroglu's avatar Yaman Umuroglu
Browse files

[HLSMaxPool] add dummy time mux dimension to StreamingMaxPool

parent bebe02b7
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,12 @@ class StreamingMaxPool_Batch(HLSCustomOp):
return ishape
def get_folded_input_shape(self):
return self.get_normal_input_shape()
# even though there is no folding in the current hlslib op,
# insert a time multiplexing axis to remain compatible with the
# shapes produced by the rest of the dataflow pipeline
ret = list(self.get_normal_input_shape())
ret.insert(-1, 1)
return tuple(ret)
def get_normal_output_shape(self):
k = self.get_nodeattr("PoolDim")
......@@ -79,9 +84,12 @@ class StreamingMaxPool_Batch(HLSCustomOp):
return oshape
def get_folded_output_shape(self):
# no folding for StreamingMaxPool
oshape = self.get_normal_output_shape()
return oshape
# even though there is no folding in the current hlslib op,
# insert a time multiplexing axis to remain compatible with the
# shapes produced by the rest of the dataflow pipeline
ret = list(self.get_normal_output_shape())
ret.insert(-1, 1)
return tuple(ret)
def get_number_output_values(self):
folded_oshape = self.get_folded_output_shape()
......
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