Function dfdx::tensor_ops::binary_map::div
source · [−]Expand description
Element wise division.
Example:
let a = Tensor2D::new([[1.0, 2.0, 3.0], [-1.0, -2.0, -3.0]]);
let b = Tensor2D::new([[1.0, 0.5, 1.0], [0.5, 1.0, 3.0]]);
let r = div(a, &b); // or `a / &b`
assert_eq!(r.data(), &[[1.0, 4.0, 3.0], [-2.0, -2.0, -1.0]]);