50% off: Unlimited data and AI learning.
The Learning Leader's Guide to AI Literacy

torch (version 0.8.1)

nnf_relu: Relu

Description

Applies the rectified linear unit function element-wise.

Usage

nnf_relu(input, inplace = FALSE)

nnf_relu_(input)

Arguments

input

(N,*) tensor, where * means, any number of additional dimensions

inplace

can optionally do the operation in-place. Default: FALSE