|
Safemotion Lib
|
Public Member Functions | |
| __init__ (self, cfg, in_feat, num_classes) | |
| forward (self, features, targets) | |
| extra_repr (self) | |
Public Attributes | |
| in_features | |
| s | |
| m | |
| weight | |
| in_feat | |
Protected Attributes | |
| _num_classes | |
Implement of large margin cosine distance:
Args:
in_feat: size of each input sample
num_classes: size of each output sample
Definition at line 13 of file am_softmax.py.
| fastreid.layers.am_softmax.AMSoftmax.__init__ | ( | self, | |
| cfg, | |||
| in_feat, | |||
| num_classes ) |
Definition at line 20 of file am_softmax.py.
| fastreid.layers.am_softmax.AMSoftmax.extra_repr | ( | self | ) |
Definition at line 40 of file am_softmax.py.
| fastreid.layers.am_softmax.AMSoftmax.forward | ( | self, | |
| features, | |||
| targets ) |
Definition at line 29 of file am_softmax.py.
|
protected |
Definition at line 23 of file am_softmax.py.
| fastreid.layers.am_softmax.AMSoftmax.in_feat |
Definition at line 42 of file am_softmax.py.
| fastreid.layers.am_softmax.AMSoftmax.in_features |
Definition at line 22 of file am_softmax.py.
| fastreid.layers.am_softmax.AMSoftmax.m |
Definition at line 25 of file am_softmax.py.
| fastreid.layers.am_softmax.AMSoftmax.s |
Definition at line 24 of file am_softmax.py.
| fastreid.layers.am_softmax.AMSoftmax.weight |
Definition at line 26 of file am_softmax.py.