\brief Forward pass \param x the input tensor \return the output tensor
| 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 |
no test coverage detected