Skip to contents

Constrains the weights to be non-negative.

Usage

constraint_nonneg()

Value

A Constraint instance, a callable that can be passed to layer constructors or used directly by calling it with tensors.