Skip to content

embedder backward

GitHub Action edited this page Jul 9, 2026 · 1 revision
void backward(utility::matrix dZ, float lr)

Basic Info

Updates the embedding table according to the gradient calculated throughout.

Return Type

Returns void

Parameters

Parameter Type Use Optional
dZ utility::matrix Gradient matrix ❌
lr float Learning rate ❌

Example

// Calling the backward() function
utility::matrix dZ;
embedder e(919191. 36593034);
e.backward(dZ);

Clone this wiki locally