Comments (7)
@XJDKC In this case, I suggest we can use the buffer operation feature so there won't be any actual run.
Then, in case if we don't want to use graph after getting the parameter size, we can use ResetGraph to clear the buffer, then turn off buffer and run without graph.
from singa.
I worry that if we move the param creation and initialization into the forward propagation stage, those initialization operations will also be buffered and included in the graph.
from singa.
I worry that if we move the param creation and initialization into the forward propagation stage, those initialization operations will also be buffered and included in the graph.
@XJDKC Can use ResetGraph to reset the buffer?
from singa.
I worry that if we move the param creation and initialization into the forward propagation stage, those initialization operations will also be buffered and included in the graph.
@XJDKC Can use ResetGraph to reset the buffer?
I prefer adding an initialization function for Layer, the module just needs to call the init function of each layer to initialize the whole model.
from singa.
I worry that if we move the param creation and initialization into the forward propagation stage, those initialization operations will also be buffered and included in the graph.
@XJDKC Can use ResetGraph to reset the buffer?
I prefer adding an initialization function for Layer, the module just needs to call the init function of each layer to initialize the whole model.
@XJDKC
Yes, in the following example the parameter of the layer is initialized in the call function, where its shape is infered from the input size of that layer
singa/python/singa/autograd.py
Line 3406 in 19f2020
Can this case be handled?
from singa.
I worry that if we move the param creation and initialization into the forward propagation stage, those initialization operations will also be buffered and included in the graph.
@XJDKC Can use ResetGraph to reset the buffer?
I prefer adding an initialization function for Layer, the module just needs to call the init function of each layer to initialize the whole model.
@XJDKC
Yes, in the following example the parameter of the layer is initialized in the call function, where its shape is infered from the input size of that layer
singa/python/singa/autograd.py
Line 3406 in 19f2020
Can this case be handled?
The handle can be created in the init function, and then W can be initialized by the handle.
from singa.
from singa.
Related Issues (20)
- Switch between CPU and GPU devices for cnn example HOT 4
- Save the downloaded datasets to local directory HOT 2
- Add running scripts for cnn and cifar_distributed_cnn examples HOT 4
- Intermediate information printing HOT 3
- Adding arguments for weight decay and momentum HOT 2
- Increase max epoch for cnn example for better convergence HOT 2
- Update CMakeLists.txt for release 4.0.0 HOT 1
- Check Apache license header for release 4.0.0
- OpenCL Compilation Fails
- Upload Release 4.0.0 Package to SVN HOT 1
- Update the NOTICE file for images HOT 1
- gitignore and gitmodules should be removed from the release tar file HOT 2
- Create a new branch dev-postgresql HOT 2
- Create the SumError New Loss Function HOT 1
- Dynamic Creation of Models HOT 2
- Need to return the gradients from optimizer HOT 4
- Maximum recursion depth exceeded in comparison for string HOT 1
- can sparse all-reduce keep efficiency with large number of gpu workers?
- Python 3.11, Model, ImportError HOT 9
- Update documentation for distributed training 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 singa.