Skip to content
Snippets Groups Projects
Commit b8ffe341 authored by hsharif3's avatar hsharif3
Browse files

Update Support.md

parent 987f848c
No related branches found
No related tags found
No related merge requests found
## Supported Keras Operators
The Keras frontend supports `Sequential()` Keras models.
......@@ -27,14 +26,28 @@ The list of supported operations is as follows:
* Softmax operator should be the last operation in the CNN pipeline
* Softmax operation must be a separate operator (not specified as activation to another type of Keras operator). Example of what works:
```
```python
Activation ("softmax")
```
Example of what is NOT supported:
```
```python
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`)
```
Example of what works instead:
```python
ZeroPadding2D(padding=(1,1), data_format = `channels_first`) # only support NCHW
Conv2D(num_filters, (3,3), strides = (2,2), padding = `valid`)
```
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