comaniac commented on a change in pull request #4899: [Relay][Frontend][Keras] 
NHWC import support.
URL: https://github.com/apache/incubator-tvm/pull/4899#discussion_r380300117
 
 

 ##########
 File path: python/tvm/relay/frontend/keras.py
 ##########
 @@ -274,8 +287,13 @@ def _convert_convolution(inexpr, keras_layer, etab):
         if pad_t == pad_b and pad_l == pad_r:
             params['padding'] = (pad_t, pad_l)
         else:
-            inexpr = _op.nn.pad(data=inexpr, pad_width=(
-                (0, 0), (0, 0), (pad_t, pad_b), (pad_l, pad_r)))
+            if etab.data_layout == 'NCHW':
 
 Review comment:
   ```python
   if pad_t ...:
     ...
   elif etab.data_layout == 'NCHW':
     ...
   else:
     ...
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to