Home / Class/ tensor_backend Class — pytorch Architecture

tensor_backend Class — pytorch Architecture

Architecture documentation for the tensor_backend class in Utils.cpp from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/Utils.cpp lines 32–36

template <typename T>
Tensor tensor_backend(ArrayRef<T> values, const TensorOptions& options) {
  auto cpu_tensor = tensor_cpu(values, options.device(DeviceType::CPU));
  return cpu_tensor.to(options.device());
}

Analyze Your Own Codebase

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

Try Supermodel Free