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

Fix leaking tensors #213

Merged
merged 14 commits into from
Feb 23, 2022
Merged

Fix leaking tensors #213

merged 14 commits into from
Feb 23, 2022

Conversation

thekevinscott
Copy link
Owner

#61

This PR fixes leaking tensors and adds tests that check that memory consumption nets to 0.

@codecov
Copy link

codecov bot commented Feb 23, 2022

Codecov Report

Merging #213 (e051367) into ks/node (9c76a18) will increase coverage by 0.19%.
The diff coverage is 85.71%.

Impacted file tree graph

@@             Coverage Diff             @@
##           ks/node     #213      +/-   ##
===========================================
+ Coverage    87.70%   87.89%   +0.19%     
===========================================
  Files            8        8              
  Lines          301      314      +13     
  Branches        46       46              
===========================================
+ Hits           264      276      +12     
- Misses          37       38       +1     
Impacted Files Coverage Δ
packages/upscalerjs/src/models/idealo-gans.ts 30.00% <0.00%> (-3.34%) ⬇️
packages/upscalerjs/src/loadModel.ts 87.71% <50.00%> (-1.38%) ⬇️
packages/upscalerjs/src/image.node.ts 100.00% <100.00%> (ø)
packages/upscalerjs/src/upscale.ts 93.57% <100.00%> (+2.66%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c76a18...e051367. Read the comment docs.

@thekevinscott thekevinscott merged commit 353b46c into ks/node Feb 23, 2022
@thekevinscott thekevinscott deleted the ks/leaking-tensors branch February 23, 2022 13:52
@thekevinscott thekevinscott mentioned this pull request Feb 23, 2022
thekevinscott added a commit that referenced this pull request Feb 27, 2022
* Expose Node package (#161)

* Set up Node build and Node integration tests

* Cut canary release (#179)

* Remove postinstall set:tfjs command (#182)

* Move set:tfjs to prepare step

* Publish next canary version

* Add Node Example to examples folder (#181)

* Update example script (#183)

* Support a GPU build (#184)

* Integration Tests for Loading Model in Browser (#186)

* Add tests for loading models via Node (#187)

* Add test to ensure model definitions are loaded in browser (#188)

* Add test to ensure model definitions are loaded in Node (#189)

* Bump versions

* Add image unit tests (#191)

* Separate image.ts into separate files and add it to the generation script (#192)

* Add integration test for upscaling a rank 4 tensor (#193)

* Leverage tf.browser.fromPixels on input (#194)

* Manipulated scaffolding code to ensure build processes are referencing the correct builds (#195)

* Move all but browser tests to leverage puppeteer (#196)

* Remove generated files from repo (#197)

* Do not include generated files in repo

* Add script to scaffold browser generated files after installing

* Scaffold on install (#198)

* Do not include generated files in repo

* Add script to scaffold browser generated files after installing

* Enforce minimum Node version (#199)

* Specify exact version of Node for unit tests, and add 14- and 16- specific Node integration tests (#201)

* Disable CI cache (#204)

* Update changelog (#203)

* Add umd field in package json (#202)

* Migrate linter (#200)

Migrate linter from tslint to eslint

* Bump lowest node support to 16 (#205)

* Bump lowest node support to 16

* Add support for image loading in Node (#206)

* Remove scaffolding step (#207)

* Add an integration test checking patch sizes (#211)

* Sets up in-browser unit testing for *.browser tests (#210)

* Add an example for loading a model locally in Node (#212)

* Fix leaking tensors (#213)

* Update package.json scripts to enable publishing (#214)

* Update documentation to include Node (#215)

* Update scripts for updating version across repo (#218)
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.

1 participant