From 215476ffbd6c788d653ca58b6a969dfd03d597f6 Mon Sep 17 00:00:00 2001 From: hsharif3 <hsharif3@illinois.edu> Date: Thu, 25 Mar 2021 07:40:25 +0000 Subject: [PATCH] Update Support.md --- hpvm/projects/keras/docs/Support.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hpvm/projects/keras/docs/Support.md b/hpvm/projects/keras/docs/Support.md index ba4dafcb92..b568d3d640 100644 --- a/hpvm/projects/keras/docs/Support.md +++ b/hpvm/projects/keras/docs/Support.md @@ -39,14 +39,15 @@ Dense(num_classes, activation="softmax") * For convolutions with stride > 1 `same` convolution is NOT supported. Explicitly add `ZeroPadding2D` layer before `Conv2D` or `DepthwiseConv2D` operators. Example of what does NOT work: ```python -Conv2D(num_filters, (3,3), strides = (2,2), padding = `same`) +Conv2D(num_filters, kernel_size = (3,3), strides = (2,2), padding = `same`) ``` Example of what works instead: ```python +# NOTE: Amount of padding varies with kernel sizes and strides ZeroPadding2D(padding=(1,1), data_format = `channels_first`) # only support NCHW -Conv2D(num_filters, (3,3), strides = (2,2), padding = `valid`) +Conv2D(num_filters, kernel_size = (3,3), strides = (2,2), padding = `valid`) ``` -- GitLab