MCPcopy Create free account
hub / github.com/RUCDM/KB4Rec / regularization_loss

Method regularization_loss

Projects/UPGAN/code/util/Regularization.py:54–72  ·  view source on GitHub ↗

计算张量范数 :param weight_list: :param p: 范数计算中的幂指数值,默认求2范数 :param weight_decay: :return:

(self, weight_list, weight_decay, p=2)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected