Home / Class/ ternary_op Class — pytorch Architecture

ternary_op Class — pytorch Architecture

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

Entity Profile

Source Code

aten/src/ATen/cpu/vec/vec_n.h lines 80–93

  template <typename Op>
  inline VectorizedN<T, N> ternary_op(
      const VectorizedN<T, N>& other,
      const VectorizedN<T, N>& other2,
      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], other2.values[i]);
    }
    return result;
  }

Analyze Your Own Codebase

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

Try Supermodel Free