Home / Class/ out Class — pytorch Architecture

out Class — pytorch Architecture

Architecture documentation for the out class in tensor_type.cpp from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/core/tensor_type.cpp lines 65–86

template <typename T>
std::ostream& operator<<(std::ostream& out, const VaryingShape<T>& vs) {
  out << '(';
  if (!vs.size()) {
    out << "*)";
    return out;
  }

  for (size_t i = 0; i < vs.size(); i++) {
    if (i > 0) {
      out << ", ";
    }
    auto const& v = vs[i];
    if (v.has_value()) {
      out << v.value();
    } else {
      out << '*';
    }
  }
  out << ')';
  return out;
}

Analyze Your Own Codebase

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

Try Supermodel Free