MCPcopy Create free account
hub / github.com/deepbrainai-research/float / __init__

Method __init__

models/float/FMT.py:129–139  ·  view source on GitHub ↗
(
			self,
			dim_w,
			dim_h,
			norm_layer=None,
			bias=True,
	)

Source from the content-addressed store, hash-verified

127
128class SequenceEmbed(nn.Module):
129 def __init__(
130 self,
131 dim_w,
132 dim_h,
133 norm_layer=None,
134 bias=True,
135 ):
136 super().__init__()
137
138 self.proj = nn.Linear(dim_w, dim_h, bias=bias)
139 self.norm = norm_layer(dim_h) if norm_layer else nn.Identity()
140
141 def forward(self, x: torch.Tensor) -> torch.Tensor:
142 return self.norm(self.proj(x))

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected