conditional_accessor_1d Class — pytorch Architecture
Architecture documentation for the conditional_accessor_1d class in batch_norm.h from the pytorch codebase.
Entity Profile
Source Code
aten/src/ATen/native/batch_norm.h lines 19–25
template <typename scalar_t>
static TensorAccessor<scalar_t, 1> conditional_accessor_1d(const Tensor& t) {
if (! t.defined()) {
return TensorAccessor<scalar_t, 1>(nullptr, nullptr, nullptr);
}
return t.accessor<scalar_t, 1>();
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free