Home / Class/ binary_op Class — pytorch Architecture

binary_op Class — pytorch Architecture

Architecture documentation for the binary_op class in vec_n.h from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/cpu/vec/vec_n.h lines 67–78

  template <typename Op>
  inline VectorizedN<T, N> binary_op(const VectorizedN<T, N>& other, Op op)
      const {
    VectorizedN<T, N> result;
#ifndef _MSC_VER
#pragma unroll
#endif
    for (int i = 0; i < N; ++i) {
      result.values[i] = op(values[i], other.values[i]);
    }
    return result;
  }

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free