Skip to content
Snippets Groups Projects
Commit a235afcd authored by auphelia's avatar auphelia
Browse files

[CustomOp] Update formula for exp cycles for downsampler

parent 06e9d895
No related branches found
No related tags found
No related merge requests found
......@@ -37,12 +37,12 @@ class DownSampler(HLSCustomOp):
return int(np.floor((idim - 1) / stride) + 1)
def get_exp_cycles(self):
fmdim = self.get_downsampled_odim()
idim = self.get_nodeattr("ImgDim")
channels = self.get_nodeattr("NumChannels")
simd = self.get_nodeattr("SIMD")
batch_size = self.get_nodeattr("numInputVectors")
exp_cycles = channels / simd * batch_size * fmdim * fmdim
return exp_cycles
exp_cycles = channels / simd * batch_size * idim * idim
return int(exp_cycles)
def get_normal_input_shape(self):
idim = self.get_nodeattr("ImgDim")
......
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