Skip to content

Conversation

@Oldpan
Copy link
Contributor

@Oldpan Oldpan commented May 11, 2019

Batch_flatten, as it's name suggests, should flatten each data samples of a batch.
So we don't need to enhance batch_flatten to support another axis except batch_size axis.
As a result, we can do an optional conversion (convert to batch_flatten when the flatten op matches, use reshape otherwise).

@Oldpan
Copy link
Contributor Author

Oldpan commented May 11, 2019

Related pull request #2843

@jroesch
Copy link
Member

jroesch commented May 11, 2019

@zhreshold LGTM, thoughts?

@jroesch jroesch requested a review from zhreshold May 11, 2019 22:20
Copy link
Member

@tqchen tqchen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok modulo nit

@jroesch jroesch merged commit 25c91d3 into apache:master May 13, 2019
wweic pushed a commit to wweic/tvm that referenced this pull request May 13, 2019
* fix onnx frontend flatten bug

* Update onnx.py

* Update onnx.py

* Update onnx.py
wweic pushed a commit to neo-ai/tvm that referenced this pull request May 13, 2019
* fix onnx frontend flatten bug

* Update onnx.py

* Update onnx.py

* Update onnx.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants