This repository was archived by the owner on Nov 17, 2023. It is now read-only.
Repository navigation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
As I understand it, I can use the Embedding symbol such that I can extract rows of a table (weights matrix) using a set of indices. I should also be able to enable the sparse-gradient option even though the indices and table are dense.
I made the simplest relevant test I could (I'm using the symbol API because I play in C++). Basically, we make a table and indices symbol. To make it more like an actual use-case, I'm running an optimiser to solve the table to 0, using one batch of random indices each iteration.
This works fine when we don't use sparse_grad on the Embedding, but fails if we do. The error message is: "Cannot use sparse_grad = 1, while stype of gradients w.r.t embedding weight is default"
I'm using 1.9.1
All reactions