tensor_complex_cpu Class — pytorch Architecture
Architecture documentation for the tensor_complex_cpu class in Utils.cpp from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/Utils.cpp lines 38–47
template <typename T>
Tensor tensor_complex_cpu(ArrayRef<T> values, const TensorOptions& options) {
auto result = at::empty(values.size(), options);
AT_ASSERT(result.is_contiguous());
AT_DISPATCH_COMPLEX_TYPES(result.scalar_type(), "tensor_cpu", [&] {
std::copy(
values.begin(), values.end(), result.template data_ptr<scalar_t>());
});
return result;
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free