Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

create a relu function in python

# Method 1
def ReLU(x):
  return max(x,0)

# Method 2 by a lambda function
lambda x:max(x,0)
 
PREVIOUS NEXT
Tagged: #create #relu #function #python
ADD COMMENT
Topic
Name
3+1 =