Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chenhaoxing/DiffusionInst
/ __init__
Method
__init__
diffusioninst/head.py:60–62 ·
view source on GitHub ↗
(self, dim)
Source
from the content-addressed store, hash-verified
58
59
class
SinusoidalPositionEmbeddings(nn.Module):
60
def
__init__(self, dim):
61
super().__init__()
62
self.dim = dim
63
64
def
forward(self, time):
65
device = time.device
Callers
nothing calls this directly
Calls
1
__init__
Method · 0.45
Tested by
no test coverage detected