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

Add data to union package and bump version to 0.14.0 #941

Merged
merged 9 commits into from
Nov 29, 2018
Merged

Conversation

kangyizhang
Copy link
Contributor

@kangyizhang kangyizhang commented Nov 26, 2018

Add [email protected] into union package.

Please notice that data api is exported as tf.data

Description


For repository owners only:

Please remember to apply all applicable tags to your pull request.
Tags: FEATURE, BREAKING, BUG, PERF, DEV, DOC, SECURITY

For more info see: https://github.com/tensorflow/tfjs/blob/master/DEVELOPMENT.md


This change is Reviewable

@kangyizhang kangyizhang changed the title WIP Add data to union package and bump version to 0.14.0 Nov 27, 2018
Copy link
Member

@davidsoergel davidsoergel left a comment

Choose a reason for hiding this comment

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

Reviewed 7 of 7 files at r1.
Reviewable status: 0 of 1 approvals obtained (waiting on @nsthorat, @davidsoergel, and @dsmilkov)

Copy link
Contributor

@dsmilkov dsmilkov left a comment

Choose a reason for hiding this comment

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

Awesome. Couple comments

Reviewed 6 of 7 files at r1.
Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @kangyizhang, @nsthorat, and @dsmilkov)


package.json, line 64 at r1 (raw file):

    "@tensorflow/tfjs-converter": "0.6.7",
    "@tensorflow/tfjs-core": "0.13.11",
    "@tensorflow/tfjs-data": "0.1.1",

tfjs-data should depend on core 0.13.11 to avoid the warning about invalid peer dep when installing tfjs. This means you'll have to release a new tfjs-data, but should be quick.


rollup.config.js, line 50 at r1 (raw file):

      // Polyfill require() from dependencies.
      commonjs({
        ignore: ['crypto', 'node-fetch'],

Do you need node-fetch and utf8.js changes to make rollup happy? (curious if that's resolved now that there is a "module" field in tfjs-data's package.json which points to an esm bundle that already ignores that.


yarn.lock, line 89 at r1 (raw file):

    "@types/webgl2" "0.0.4"
    seedrandom "2.4.3"

I think the large change in yarn.lock is probably due to the fact that you had to delete yarn.lock on your computer. Given that exploits that happened recently in npm, let's try to make lock files change less. Can you checkout the yarn.lock from master and re-do yarn install and see if you get less changes?

@nsthorat
Copy link
Contributor

Question for folks, @kangyizhang, @dsmilkov: we've been informally keeping the union version in sync with the core version, maybe we should release a minor of core?

@dsmilkov
Copy link
Contributor

Sounds good - ping this thread when you release 0.14 in core.

@kangyizhang
Copy link
Contributor Author

Sounds good. I'll release new tfjs-data depending on [email protected] and then update this PR.

Copy link
Contributor Author

@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.

Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @dsmilkov and @nsthorat)


package.json, line 64 at r1 (raw file):

Previously, dsmilkov (Daniel Smilkov) wrote…

tfjs-data should depend on core 0.13.11 to avoid the warning about invalid peer dep when installing tfjs. This means you'll have to release a new tfjs-data, but should be quick.

As discussed, a release of tfjs-data depending on [email protected] will be pushed once core is released.


rollup.config.js, line 50 at r1 (raw file):

Previously, dsmilkov (Daniel Smilkov) wrote…

Do you need node-fetch and utf8.js changes to make rollup happy? (curious if that's resolved now that there is a "module" field in tfjs-data's package.json which points to an esm bundle that already ignores that.

node-fetch is not required in this ignore field. but required in output otherwise the generated tf.js and tf.min.js can not be used.


yarn.lock, line 89 at r1 (raw file):

Previously, dsmilkov (Daniel Smilkov) wrote…

I think the large change in yarn.lock is probably due to the fact that you had to delete yarn.lock on your computer. Given that exploits that happened recently in npm, let's try to make lock files change less. Can you checkout the yarn.lock from master and re-do yarn install and see if you get less changes?

Will update yarn once [email protected] is released.

@nsthorat
Copy link
Contributor

Released:

  • tfjs-core 0.14.0
  • tfjs-layers 0.9.0
  • tfjs-converter 0.7.0

Copy link
Contributor

@nsthorat nsthorat left a comment

Choose a reason for hiding this comment

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

Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @dsmilkov, @kangyizhang, and @nsthorat)


package.json, line 59 at r3 (raw file):

  },
  "dependencies": {
    "@tensorflow/tfjs-converter": "0.6.7",

reminder to update these

@kangyizhang kangyizhang merged commit cb5d726 into master Nov 29, 2018
@dsmilkov dsmilkov deleted the add-data branch December 10, 2018 16:30
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.

4 participants