MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / forward

Method forward

src/include/modules/embedding.hpp:37–40  ·  view source on GitHub ↗

\brief Forward pass \param x the input tensor \return the output tensor

Source from the content-addressed store, hash-verified

35 /// \param x the input tensor
36 /// \return the output tensor
37 vdtype forward(int x){
38 this->y.copy_from(this->w.begin() + (size_t)x * this->d_model, this->d_model);
39 return this->y;
40 }
41
42 /// \brief Forward pass
43 /// \param x the input tensor

Callers 9

generateMethod · 0.80
generateMethod · 0.80
generateMethod · 0.80
_shared_generateMethod · 0.80
generateMethod · 0.80
generateMethod · 0.80
generate_with_promptMethod · 0.80
generateMethod · 0.80
generateMethod · 0.80

Calls 2

copy_fromMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected