Learn R Programming

ggmlR (version 0.6.1)

ag_softmax: Softmax activation (column-wise)

Description

Applies numerically stable softmax along rows so that each column (one sample) sums to 1.

Usage

ag_softmax(x)

Value

ag_tensor of the same shape as x

Arguments

x

ag_tensor of shape [classes, batch_size]