Compute the mathematical floor (round down) of each element in a tensor. There is a method version of this static function: Tensor.floor.
$$\lfloor x \rfloor : \forall x \in T$$
const t = sm.randn([128, 128]) // equivalent calls const a = t.floor() const b = sm.floor(t)
Tensor whose values will have their mathematical floor calculated
Generated using TypeDoc
Compute the mathematical floor (round down) of each element in a tensor. There is a method version of this static function: Tensor.floor.
$$\lfloor x \rfloor : \forall x \in T$$
Example
Returns