operator / method

Tensor<T> operator /(
  1. Tensor<T> right
)

Calculates element-wise fraction.

The formula for result element i is result[i] = left[i] / right[i].

The returned tensor will have identical type and tensorShape.

Implementation

Tensor<T> operator /(Tensor<T> right) {
  final builder = toBuilder();
  builder.div(right);
  return builder.build();
}