Comments (2)
I guess simply adding a line magic won't help. It's probably because currently the usage information is only printed at python process termination for @profile
.
One perfect solution is to find if jupyter notebook gives a symbol when a cell is finished.
However, you can work around using @profile_every()
to print the memory usage every N times calls.
Also you may manually print the results (It's quite trick btw) by
from pytorch.memlab import global_line_profiler
global_line_profiler.print_stats()
from pytorch_memlab.
Resolved in #8
from pytorch_memlab.
Related Issues (20)
- Variable 'tensor_names' referenced before assignment HOT 1
- Redirect report() to the file HOT 3
- sparse tensors do not have storage HOT 1
- Documentation for pl.LightningModule that includes many nn.Modules HOT 6
- Fail to install using pip HOT 4
- Request: solving the lack of incremental reporting in loops / functions HOT 2
- Error when running on Colab CPU instance HOT 8
- turn profile decorator on and off HOT 2
- Jupyter Support Issues HOT 1
- Does not work with torch 1.7.1+ HOT 1
- is PyTorch Profiler Used Internally? HOT 3
- weakly-referenced object no longer exists HOT 2
- Question about Used Memory and GPU memory HOT 3
- Naming Tensors within MemReporter HOT 1
- OSError: could not get source code when running LineProfiler HOT 2
- What's the difference between `active_bytes` and `reserved_bytes`? HOT 3
- How to get memory diff between first and second batch? HOT 1
- Nor working HOT 4
- How do I record the maximum memory usage of a script?
- KeyError: "['XXX'] not in index" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch_memlab.