Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Fix limitation #1114

Merged
merged 2 commits into from
Jul 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blueoil/converter/templates/src/func/average_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ void func_AveragePool(const TensorView<T_FLOAT, MemoryLayout::NHWC>& input,
struct avg_pooling_parameters app) {
Measurement::Start("AveragePool");

assert (app.kernel_depth == 1 && "kernel depth 1 is not supported.");
assert (app.kernel_depth == 1 && "kernel depth != 1 is not supported.");
assert (app.input_depth == app.kernel_depth * app.output_channels && \
"input_depth must equal kernel_depth * output_channels.");

Expand Down
2 changes: 1 addition & 1 deletion blueoil/converter/templates/src/func/max_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void max_pooling(
struct max_pooling_parameters p)
{

assert (p.kernel_depth == 1 && "kernel depth 1 is not supported.");
assert (p.kernel_depth == 1 && "kernel depth != 1 is not supported.");
assert (p.input_depth == p.kernel_depth * p.output_channels && \
"input_depth must equal kernel_depth * output_channels.");

Expand Down
7 changes: 3 additions & 4 deletions docs/converter/supported_ops.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@
### Tensorflow Ops with Limitations
- **[tf.layers.AveragePooling2D](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/layers/AveragePooling2D)**
- Currently, support only `2D`.
- Do ***not*** support `kernel depth = 1`.
- Do ***not*** support `kernel depth != 1`.
- **[tf.concat](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/concat)**
- Do ***not*** support concat of mixed data types (e.g., quantized values and float values).
- All tensor channels must be equal.
- If inputs are quantized, requires `Each input channel size = multiple of 32`.
- **[tf.layers.Conv2D](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/layers/Conv2D)**
- Support only convolution `2D`.
Expand All @@ -32,13 +31,13 @@
- **[tf.linalg.matmul](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/linalg/matmul)**
- Do ***not*** support `scalar`.
- **[tf.layers.max_pooling2d](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/layers/max_pooling2d)**
- Currently, support only `2D`.
- Currently, support only `2D`.
- Do ***not*** support `kernel depth != 1`.
- **[tf.pad](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/pad)**
- Supports only `channel-wise paddings`.
- **[tf.nn.space_to_depth](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/nn/space_to_depth)**
- For quantized tensor, requires `output depth = (multiple of block_size^2 * 32)` or `(block_size^2 * {8, 16})`.
- **[tf.split](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/split)**
- Currently, all of output tensors must have `same` shape.
- For quantized tensor, requires `number of channel of each output tensor = multiple of 32`.

### Tensorflow Ops without Limitations
Expand Down