Comments (8)
It is for the different cases to take labels. Let's say the class ID is 10 for the truck in CFAR10. Then, if the size == 1, the data will be filled with 9 and if it is not it will be [ 0,0,0,0,0,0,0,0,1 ]
Hope it will help.
Oh, I can understand the case , thanks for your explian, but I think it should add a check that.
label < length
from nntrainer.
cibot: Thank you for posting issue #2525. The person in charge will reply soon.
from nntrainer.
maybe.. we need
33: *data = 1.0;
38: *(data + label) = 1.0;
, and a parameter check, label < length
.
OR
This supports two different data formats. ( a scalar label and a vector label ).
I presume the latter one. However, we need additional doxygen entry or comments, explaining the expected data format.
from nntrainer.
It is for the different cases to take labels.
Let's say the class ID is 10 for the truck in CFAR10.
Then, if the size == 1, the data will be filled with 9 and if it is not it will be [ 0,0,0,0,0,0,0,0,1 ]
Hope it will help.
from nntrainer.
Yes. you are right.
from nntrainer.
Okay . thanks for your help,
and how about the second question?
from nntrainer.
Okay . thanks for your help, and how about the second question?
yes. it is better to use cur_label_tensor
. Thanks!
from nntrainer.
Okay . thanks for your help, and how about the second question?
yes. it is better to use
cur_label_tensor
. Thanks!
thanks for your help!!!
I also have other problem about nntrainer, I will raise another issue
from nntrainer.
Related Issues (20)
- Channel Last Tensor save/read fails occasionally HOT 1
- Random Idea for Future Features: G-LoRA on NNTrainer. HOT 1
- Build fails with `Dplatform=android` HOT 1
- Knowledge Embedding Interface Specification for RAG in NNTrainer HOT 2
- Add Depthwise 2D Convolution Layer HOT 1
- DRL algorithm with api HOT 8
- Add `-Denable-fp16=true` build to CI HOT 6
- Issues and Questions about Execution of LLaMA using NNTrainer HOT 8
- [ Tensor ] Accelerate fp16 matrix transpose with SIMD HOT 3
- [ HGEMM ] Half-Precision GEMM Roadmap HOT 4
- Q&A] How to solve build failure for flatbuffers's Table. HOT 2
- Bug in `max_abs()` function in FP16 Tensor HOT 3
- Issue in running the resnet18 example. HOT 4
- Running examples on PC issue HOT 3
- Support hyper parameter for activation layer HOT 1
- Support loading weights from pytorch model HOT 1
- Add the calc_derivative and unittest of quick gelu HOT 1
- Support encoder on Ubuntu & Tizen HOT 1
- Support Convolution&BAtchnorm Fusing for Optimized Inference Mode 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 nntrainer.