Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/XLearning-SCU/2022-CVPR-DART
/ __init__
Method
__init__
model.py:7–9 ·
view source on GitHub ↗
(self, power=2)
Source
from the content-addressed store, hash-verified
5
6
class
Normalize(nn.Module):
7
def
__init__(self, power=2):
8
super(Normalize, self).__init__()
9
self.power = power
10
11
def
forward(self, x):
12
norm = x.pow(self.power).sum(1, keepdim=True).pow(1. / self.power)
Callers
5
__init__
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
__init__
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected