Crate caffe2op_glu
source ·Structs
- | Applies gated linear unit to the input | Tensor X. | | The output Y is half the size of the input | X, so if the shape of X is [d1, d2, …, | N] shape of | | Y will be [d1, d2, …, dn/2] and Y(:dn-1, | i) = GLU(X(:dn-1, i), X(:dn-1, i+N/2)) | = X(dn-1, i) sigmoid(X(dn-1, i+N/2)) |