github ↗
docs menu

Module Space.Multi_binary

#type element = Nx.host Nx.int32_t

Binary vector for multi-label scenarios.

#val create : int -> element t

create n is a binary vector space of length n. Valid values are int32 tensors with n elements, each 0 or 1.

Raises Invalid_argument if n <= 0.