def is_one

bendtorch-core@0.1.0.0 · src/tensor/elementwise.bend:65

import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise
import Base

65# Whether the word is 1.0 (0x3F800000), the target mark of a one-hot row.
66def is_one(x: F32) -> Bool:
67  U32.is_eq(bits(x), 1065353216)

Uses (4)

Used by (5)