center-loss | This branch is developed for contrastive loss | Computer Vision library
kandi X-RAY | center-loss Summary
kandi X-RAY | center-loss Summary
Center Loss with Caffe Implementation.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of center-loss
center-loss Key Features
center-loss Examples and Code Snippets
Community Discussions
Trending Discussions on center-loss
QUESTION
i want to create a custom layer with weights that update only in training phase.
from the official documentation this is the way:
...ANSWER
Answered 2019-Aug-14 at 15:03There are two types of weights:
- Trainable = Updated automatically by the optimizer with backpropagation
- Untrainable = Not updated by backpropagation
For the trainable weights, it's really not recommended to use updates, you will be mixing the optimizer's updates with your own updates and that could cause many issues
For the untrainable weights, you can do whatever you want. Sometimes you want constants and you will do nothing, sometimes, you want these weights to change (but not via backpropagation)
Notice how in that example the weights updated by the user are untrainable:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install center-loss
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page