(self, text)
| 70 | self.dtype = dtype |
| 71 | |
| 72 | def forward(self, text): |
| 73 | x = self.token_embedding(text).type(self.dtype) # [batch_size, n_ctx, d_model] |
| 74 | x = x + self.positional_embedding.type(self.dtype)[:x.shape[1], :]#(1,50,512) |
| 75 | return x |
| 76 | |
| 77 | class text_encoder_wrapper(nn.Module): |
| 78 | def __init__(self, model): |
nothing calls this directly
no outgoing calls
no test coverage detected