MCPcopy Create free account
hub / github.com/AkaliKong/MiniOneRec / emb_encode

Method emb_encode

utility.py:124–127  ·  view source on GitHub ↗
(self, input_tensor)

Source from the content-addressed store, hash-verified

122 self.hidden_to_logsigma = nn.Linear(self.z2_dim, self.z_dim)
123
124 def emb_encode(self, input_tensor):
125 hidden = self.input_to_hidden(input_tensor)
126
127 return hidden
128
129 def aggregate(self, input_tensor):
130 return torch.mean(input_tensor, dim=-2)

Callers 1

encoderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected