Hi Erik erik

Can you be more detailed please (not very familiar to these…)? Since Oak cannot do anything with Softmax by itself, so this operation is basically done by our computer/host (as most of other examples did)?

And that means we cannot really do softmax with a device in a standalone mode?

Am I understanding your opinion correctly?

Cheers,

Austin

  • erik replied to this.

    Hi YWei ,
    Some examples were shared above, where softmax is done on host computer using numpy:

    def softmax(x):
        """Compute softmax values for each sets of scores in x."""
        e_x = np.exp(x - np.max(x))
        return e_x / e_x.sum(axis=0)

    You can also use pure python to accomplish the same, and run it inside Script node (on-device), so standalone mode would be possible.

    • YWei replied to this.