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

Garbage Collection in execute_computation_action, Fix Inplace-Operation Identification #3403

Merged
merged 10 commits into from
Apr 28, 2020

Conversation

Syzygianinfern0
Copy link
Member

@Syzygianinfern0 Syzygianinfern0 commented Apr 24, 2020

Description

Fixes #3397
Fixes #3398

Currently breaks inplace computations. WIP 🚧🚧

  • GC
  • Fix inplace operations

Type of change

Please mark options that are relevant.

  • Added/Modified tutorials
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

Known to break inplace operations - Need to be made robust
@Syzygianinfern0 Syzygianinfern0 requested a review from a team as a code owner April 24, 2020 17:18
@Syzygianinfern0 Syzygianinfern0 changed the title Fix/shares of zero gc [WIP] Garbage Collection in argmax and relu operations Apr 24, 2020
@codecov
Copy link

codecov bot commented Apr 26, 2020

Codecov Report

Merging #3403 into master will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3403      +/-   ##
==========================================
- Coverage   94.72%   94.72%   -0.01%     
==========================================
  Files         152      152              
  Lines       16137    16145       +8     
==========================================
+ Hits        15286    15293       +7     
- Misses        851      852       +1     
Impacted Files Coverage Δ
syft/frameworks/torch/torch_attributes.py 100.00% <100.00%> (ø)
syft/generic/frameworks/hook/hook_args.py 95.49% <100.00%> (-0.44%) ⬇️
test/torch/test_hook.py 100.00% <100.00%> (ø)

@Syzygianinfern0 Syzygianinfern0 changed the title [WIP] Garbage Collection in argmax and relu operations [WIP] Garbage Collection in execute_computation_action, Fix Inplace-Operation Identification Apr 26, 2020
@Syzygianinfern0 Syzygianinfern0 changed the title [WIP] Garbage Collection in execute_computation_action, Fix Inplace-Operation Identification Garbage Collection in execute_computation_action, Fix Inplace-Operation Identification Apr 26, 2020
@Syzygianinfern0 Syzygianinfern0 mentioned this pull request Apr 26, 2020
7 tasks
@Syzygianinfern0 Syzygianinfern0 added Type: Bug 🐛 Some functionality not working in the codebase as intended Priority: 2 - High 😰 Should be fixed as quickly as possible, ideally within the current or following sprint labels Apr 26, 2020
@AlanAboudib
Copy link
Contributor

@LaRiffle would you please review this quickly :)

syft/frameworks/torch/torch_attributes.py Outdated Show resolved Hide resolved
syft/generic/frameworks/hook/hook_args.py Outdated Show resolved Hide resolved
syft/workers/base.py Outdated Show resolved Hide resolved
Fix regex bug
Add regex tests
Cleanup unused codes and TODOs
Copy link
Contributor

@LaRiffle LaRiffle left a comment

Choose a reason for hiding this comment

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

Amazing! Thanks a lot!!

# hence creating two copies of the same info. The older tensor
# is left hanging and is never deleted. De-Registering the original
# tensor (if-exists) before registration addresses this problem.
owner.de_register_obj(tensor) # Doesn't raise Exceptions if absent on owner
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@karlhigley karlhigley merged commit c716768 into OpenMined:master Apr 28, 2020
tudorcebere pushed a commit to tudorcebere/PySyft that referenced this pull request May 7, 2020
…tion Identification (OpenMined#3403)

* Garbage identified

* Garbage Cleared
Known to break inplace operations - Need to be made robust

* Checkpoint

* Regex magic for inplace operations

* Complete move to regex

* Cleanup

* Multiple changes
Fix regex bug
Add regex tests
Cleanup unused codes and TODOs

* Typo
tudorcebere pushed a commit to tudorcebere/PySyft that referenced this pull request May 7, 2020
…tion Identification (OpenMined#3403)

* Garbage identified

* Garbage Cleared
Known to break inplace operations - Need to be made robust

* Checkpoint

* Regex magic for inplace operations

* Complete move to regex

* Cleanup

* Multiple changes
Fix regex bug
Add regex tests
Cleanup unused codes and TODOs

* Typo
tudorcebere pushed a commit to tudorcebere/PySyft that referenced this pull request May 7, 2020
…tion Identification (OpenMined#3403)

* Garbage identified

* Garbage Cleared
Known to break inplace operations - Need to be made robust

* Checkpoint

* Regex magic for inplace operations

* Complete move to regex

* Cleanup

* Multiple changes
Fix regex bug
Add regex tests
Cleanup unused codes and TODOs

* Typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: 2 - High 😰 Should be fixed as quickly as possible, ideally within the current or following sprint Type: Bug 🐛 Some functionality not working in the codebase as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Memory leak in the argmax() method of AST Memory leak in F.relu() method in AST
4 participants