Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Relay][Frontend][TFlite] Add parses support for SLICE #4502

Merged
merged 2 commits into from
Jan 10, 2020

Conversation

inadob
Copy link
Contributor

@inadob inadob commented Dec 11, 2019

  • TFlite 1.13: convertor gives nonsense output when size[i]==-1
  • TF parser: SLICE needs fixing for size[i]==-1 -> the formula for calculating the end indices needs to be changed to
    if size[i] == -1:
    end[i] = data_shape[i] - begin[i] + 1

@inadob
Copy link
Contributor Author

inadob commented Dec 11, 2019

@kevinthesun @FrozenGene can you please review this patch

python/tvm/relay/frontend/tflite.py Outdated Show resolved Hide resolved
* TFlite 1.13: convertor gives nonsense output when size[i]==-1
* TF parser: SLICE need fixing for size[i]==-1 -> gives wrong output
  bcs of indices
Copy link
Member

@FrozenGene FrozenGene left a comment

Choose a reason for hiding this comment

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

LGTM.

@kevinthesun kevinthesun self-assigned this Dec 17, 2019
@kevinthesun kevinthesun added the status: need update need update based on feedbacks label Dec 18, 2019
* Add another test to cover size=-1 case
@tqchen tqchen merged commit 2327bb9 into apache:master Jan 10, 2020
@tqchen tqchen added status: accepted and removed status: need update need update based on feedbacks labels Jan 10, 2020
alexwong pushed a commit to alexwong/tvm that referenced this pull request Feb 26, 2020
* [Relay][Frontend][TFlite] Add parses support for SLICE

* TFlite 1.13: convertor gives nonsense output when size[i]==-1
* TF parser: SLICE need fixing for size[i]==-1 -> gives wrong output
  bcs of indices

* Set end[i] = input_tensor_shape[i] as suggested in PR review

* Add another test to cover size=-1 case
alexwong pushed a commit to alexwong/tvm that referenced this pull request Feb 28, 2020
* [Relay][Frontend][TFlite] Add parses support for SLICE

* TFlite 1.13: convertor gives nonsense output when size[i]==-1
* TF parser: SLICE need fixing for size[i]==-1 -> gives wrong output
  bcs of indices

* Set end[i] = input_tensor_shape[i] as suggested in PR review

* Add another test to cover size=-1 case
zhiics pushed a commit to neo-ai/tvm that referenced this pull request Mar 2, 2020
* [Relay][Frontend][TFlite] Add parses support for SLICE

* TFlite 1.13: convertor gives nonsense output when size[i]==-1
* TF parser: SLICE need fixing for size[i]==-1 -> gives wrong output
  bcs of indices

* Set end[i] = input_tensor_shape[i] as suggested in PR review

* Add another test to cover size=-1 case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants