Floor_divide
torch_floor_divide(self, other)
self
: (Tensor) the numerator tensorother
: (Tensor or Scalar) the denominatorReturn the division of the inputs rounded down to the nearest integer. See torch_div
for type promotion and broadcasting rules.
if (torch_is_installed()) { a = torch_tensor(c(4.0, 3.0)) b = torch_tensor(c(2.0, 2.0)) torch_floor_divide(a, b) torch_floor_divide(a, 1.4) }
Useful links