belltailjp / chainer_computational_cost Goto Github PK
View Code? Open in Web Editor NEWEstimate theoretical computational cost of a chainer-based neural network
License: MIT License
Estimate theoretical computational cost of a chainer-based neural network
License: MIT License
To prevent the error KeyError: 'hook FunctionHook already exists'
.
c.f. https://docs.chainer.org/en/stable/reference/generated/chainer.FunctionHook.html#chainer.FunctionHook.name
Nice work, however, it seems that this tool doesn't support calculate the params and Flops of deconvolution and BN layers. Is there any solution?
Thanks a lot.
Need to
MaxPooling2D
-> MaxPoolingND
refactoringmode
and align_corners
arguments in ResizeImages
As we not have a theoretical computational cost, if we have a theoretical specification of a device, we can estimate theoretical (upper-bound) of inference speed on the device.
It'd be nice if chainer_computational_cost can have a feature to receive a hardware profile and calculate layer-wise and total theoretical speed.
Just for CI
In addition to memory transfer amount, estimating the total memory consumption would be nice.
Basic idea
inputs
can be obtained through func
of a hook method, so the computational graph until right before the last layer can be reconstructed. Once a graph structure is completely known, theoretical memory life-time can be estimated.
Variable
losts creator information, e.g. cond
of `Wherehttps://github.com/belltailjp/chainer_computational_cost/blob/master/DETAILS.md#sigmoid
says flops of sigmoid is 4*x
but
returns x.size
(not 4 * x.size
)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.