Comments (2)
Hi @YanYas ,
The reason that you are seeing this behavior is because in your code above you are using two different instances of the CudaDnn object (see the first line of CuSca).
Each CudaDnn instance maintains its own instance of an underlying kernel which manages all memory and all other low-level states such as cuDNN objects, etc. Typically there is only one CudaDnn instance used per thread and the methods provided by the CudaDnn only work on the GPU memory allocated by that particular CudaDnn instance.
We have created an updated sample that steps through your sample above, but does so making sure to only use a single instance of the CudaDnn object. See https://github.com/MyCaffe/MyCaffe-Samples/blob/master/BlobUsage/BlobUsage/Program.cs
for the code.
Hope this helps!
from mycaffe.
Perfect! Thanks for going through the trouble of adding that sample.
Yy
from mycaffe.
Related Issues (20)
- Generate XML Documentation HOT 6
- Guidance needed for setting up MemoryDataLayer HOT 4
- Float[] to Double[] bottle neck HOT 7
- AleControl version 010.1.149 nuget isn't available for build HOT 3
- Projects not included in the solution HOT 2
- File not found - nccl64_134.10.0.dll HOT 2
- Promotion Alliance HOT 2
- MyCaffeControl.Clone() Null Exception HOT 6
- Inference with Detectron2 HOT 1
- compute 5.0 HOT 7
- c# Reinforcment Tutorial request HOT 1
- Where to find file MyCaffe.basecode.dll? HOT 10
- Pre-Trained Model Examples Neural Style Transfer
- How to use pre-trained models to generate images? HOT 17
- ReinforcementLearning.py bug in preprocess HOT 1
- The TripletLossLayer is missing in the online documents. HOT 1
- Solver does not take into account 'display' parameter.
- The MAELossLayer has an incorrect normalization, grads are way too big and cannot learn.
- MyCaffe: TFT Data Missing
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 mycaffe.