Nd4j.scatterUpdate replacement?

I notice that Nd4j#scatterUpdate is deprecated but it’s still used in Embedding Layer.

I’ve been trying to replicate the instant-nerf architecture with a custom embedding layer and my performance bottleneck is there. I’m wondering if there’s a replacement and possibly faster method to achieve the same functionality.

@ebeaufay feel free to keep using it. I"ll post an advisory next release for how to use the generated apis. In the current buiild from master you can do:

Nd4j.base().scatterUpdate(..)

The main reason for the deprecation was to avoid attaching manually created methods to what was already a big class.

1 Like