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

Update tflite wheel version to 1.13.1 #3435

Merged
merged 1 commit into from
Jun 30, 2019
Merged

Conversation

apivovarov
Copy link
Contributor

@apivovarov apivovarov commented Jun 25, 2019

This PR updates tflite wheel version to 1.13.1
I also added alternative way to get tflite module by cloning https://github.com/FrozenGene/tflite.git repo.

Merge it after web-data PR is merged dmlc/web-data#190

@apivovarov
Copy link
Contributor Author

@FrozenGene could you review it?

pip install tflite-1.13.1-py2-none-any.whl --user


or you could clone FrozenGene/tflite repo which contains generated tflite python module
Copy link
Member

Choose a reason for hiding this comment

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

I think it is better to let users do it themselves. In my opinion, we should restrict the repo under the umbrella of dmlc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

line 57 still shows the option where people can generate tflite themself.
Options are:

  • install tflite using pip
  • simply clone tflite repo
  • generate tflite using flatc

Copy link
Member

Choose a reason for hiding this comment

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

Yes. I saw it. My previous meaning is we restrict the repo url all are under the dmlc, not non-official ( for example FrozenGene/tflite.). However, I couldn't make sure whether we should have this restriction. Need more input from @tqchen @srkreddy1238 @yzhliu @kevinthesun One solution maybe is we upload these generated python files to dmlc/web-data. Or just let users do it themselves like line 57.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, I removed cloning tflite repo option from the tutorial.

@tqchen
Copy link
Member

tqchen commented Jun 27, 2019

Given that we are not maintaining TFLite. I recommend we keep all the docker builds as binary, give instructions to install tensorflow and host the wheel image somewhere else.

@tqchen tqchen added the status: need update need update based on feedbacks label Jun 27, 2019
@apivovarov
Copy link
Contributor Author

apivovarov commented Jun 27, 2019

I recommend we keep all the docker builds as binary, give instructions to install tensorflow and host the wheel image somewhere else.

@tqchen I can replace # Setup tflite from schema in ubuntu_install_tflite.sh with pip3 install tflite-1.13.1-py3-none-any.whl after you merge dmlc/web-data#190 which adds tflite-1.13.1-py3-none-any.whl to web-data

@tqchen
Copy link
Member

tqchen commented Jun 27, 2019

Sorry that I was not being clear. I think we should build from source in the docker script when possible. As the binary wheel distribution is not really official.

@apivovarov
Copy link
Contributor Author

apivovarov commented Jun 28, 2019

@tqchen currently we use tflite-0.0.1-py3-none-any.whl wheel only in the tutorial
https://docs.tvm.ai/tutorials/frontend/from_tflite.html
This particular wheel version 0.0.1 was generated from schema 1.12

This PR updates tflite wheel to version 1.13.1 - tflite-1.13.1-py3-none-any.whl

In the tutorial we offer two option on how users can install tflite package

  1. prebuilt wheel
  2. generate TFLite package using flatc

In the docker file we use Option2 - flatc

If the options listed above are fine with you then can you merge PR dmlc/web-data#190
PR 190 adds tflite-1.13.1-py3-none-any.whl to web-data repo

@apivovarov
Copy link
Contributor Author

@FrozenGene What you think if you make new release in you repo FrozenGene/tflite (version 1.13.1)?
You can attach newtflite wheels as the release Assets.
In TVM tutorial we can use wheel URLs pointing to release Assets instead of web-data.

Assets URLs will be smth like:
https://github.com/FrozenGene/tflite/releases/download/v1.13.1/tflite-1.13.1-py2-none-any.whl
https://github.com/FrozenGene/tflite/releases/download/v1.13.1/tflite-1.13.1-py3-none-any.whl

Looks like PR dmlc/web-data#190 will never be merged.

@tqchen
Copy link
Member

tqchen commented Jun 28, 2019

Given that we do not maintain tflite, I personally think it is not a good idea to distribute tflite binaries as part of the project. We could certainly advertise FrozenGene/tflite, or even better, point instructions to install tflite from the original tf repo

@apivovarov
Copy link
Contributor Author

Changed web-data/master/tensorflow/tflite/whl wheel links to FrozenGene/tflite/releases/download links

@FrozenGene
Copy link
Member

FrozenGene commented Jun 29, 2019

@apivovarov I think you could make a PR on my tflite repo, then I merge it. If there is a need, I could create a release branch after merging your assets wheel files

Or your prefer way is I create one release branch (like 1.13) and upload wheel files as you list?

@FrozenGene
Copy link
Member

@apivovarov I have done it. You could do a double check whether it is you want.

@apivovarov
Copy link
Contributor Author

Thank you Zhao! The release and assets look good!
@tqchen I updated TFLite tutorial to use wheel files from FrozenGene/tflite/releases/download.
This PR should be ok to merge now.

@tqchen tqchen merged commit dfc4f97 into apache:master Jun 30, 2019
@tqchen
Copy link
Member

tqchen commented Jun 30, 2019

Thanks @FrozenGene @apivovarov , this PR is now merged

@tqchen tqchen added status: accepted and removed status: need update need update based on feedbacks labels Jun 30, 2019
wweic pushed a commit to wweic/tvm that referenced this pull request Jul 11, 2019
wweic pushed a commit to wweic/tvm that referenced this pull request Jul 11, 2019
wweic pushed a commit to neo-ai/tvm that referenced this pull request Jul 11, 2019
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.

3 participants