MCPcopy Create free account
hub / github.com/CDTrans/CDTrans / Cosface

Class Cosface

loss/metric_learning.py:124–163  ·  view source on GitHub ↗

r"""Implement of large margin cosine distance: : Args: in_features: size of each input sample out_features: size of each output sample s: norm of input feature m: margin cos(theta) - m

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected