@@ -245,7 +245,7 @@ def addGeometricalConstraint(tilerModel: TilerModel, parseDict: Dict, ctxt: Netw
245245
246246 # ===== GET NECESSARY INFORMATION =====
247247 # Get to-be-tiled tensor's buffers
248- inputBufferName = parseDict ['data_in' ]
248+ inputBufferName = parseDict ['data_in' ]
249249 outputBufferName = parseDict ['data_out' ]
250250
251251 weightBufferName = parseDict ['weight' ]
@@ -307,8 +307,10 @@ def addGeometricalConstraint(tilerModel: TilerModel, parseDict: Dict, ctxt: Netw
307307 # Add constraint for input width and height sizes match
308308 # (Depends on output height and width, kernel size, padding, dilations, and strides.
309309 # For more information on the connections, see ONNX and/or Torch Conv2D documentation).
310- tilerModel .addConstraint (outputHeightVar == (((inputHeightVar + pads [0 ] + pads [2 ] - dilations [0 ] * (weightHeightVar - 1 ) - 1 ) // strides [0 ]) + 1 ))
311- tilerModel .addConstraint (outputWidthVar == (((inputWidthVar + pads [1 ] + pads [3 ] - dilations [1 ] * (weightWidthVar - 1 ) - 1 ) // strides [1 ]) + 1 ))
310+ tilerModel .addConstraint (outputHeightVar == (((inputHeightVar + pads [0 ] + pads [2 ] - dilations [0 ] *
311+ (weightHeightVar - 1 ) - 1 ) // strides [0 ]) + 1 ))
312+ tilerModel .addConstraint (outputWidthVar == (((inputWidthVar + pads [1 ] + pads [3 ] - dilations [1 ] *
313+ (weightWidthVar - 1 ) - 1 ) // strides [1 ]) + 1 ))
312314
313315 # Add constraint for input channel size match
314316 # (Depends on weight output channel and conv grouping)
@@ -335,7 +337,7 @@ def addGeometricalConstraint(tilerModel: TilerModel, parseDict: Dict, ctxt: Netw
335337 def addPolicyConstraint (tilerModel : TilerModel , parseDict : Dict , ctxt : NetworkContext ) -> TilerModel :
336338 # ===== GET NECESSARY INFORMATION =====
337339 # Get to-be-tiled tensor's buffers
338- inputBufferName = parseDict ['data_in' ]
340+ inputBufferName = parseDict ['data_in' ]
339341 outputBufferName = parseDict ['data_out' ]
340342
341343 weightBufferName = parseDict ['weight' ]
0 commit comments