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

narrow the dep to be core and converter only, and clean up the lint errors #233

Merged
merged 1 commit into from
Jun 7, 2019

Conversation

pyu10055
Copy link
Collaborator

@pyu10055 pyu10055 commented Jun 7, 2019

Since the code does not require tfjs-layers or tfjs-data, depending on tfjs union package, would
increase the user binary if they don't need layers or data either.


This change is Reviewable

@pyu10055 pyu10055 requested a review from kangyizhang June 7, 2019 17:59
Copy link

@kangyizhang kangyizhang left a comment

Choose a reason for hiding this comment

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

Reviewed 5 of 14 files at r1.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @kangyizhang)

@pyu10055 pyu10055 merged commit 734f679 into master Jun 7, 2019
@pyu10055 pyu10055 deleted the narrow_posenet_deps branch June 7, 2019 18:33
aptlin pushed a commit to aptlin/tfjs-models that referenced this pull request Jun 7, 2019
* upstream/master:
  narrow the dep to be core and converter only, and clean up the lint errors (tensorflow#233)
dsmilkov added a commit that referenced this pull request Jul 1, 2019
#237, #243 & #233 updated the peer dependencies of our models to be core and converter instead of the union.

However since the rollup config was not updated, this resulted in published model's bundles to include the whole tfjs-core and tfjs-converter. E.g. https://unpkg.com/@tensorflow-models/coco-ssd@1.1.0/dist/coco-ssd.min.js is ~577KB but should be ~27KB.

After this change, I will re-release patch versions of the updated models.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants