Home / Class/ map_nt_binary Class — pytorch Architecture

map_nt_binary Class — pytorch Architecture

Architecture documentation for the map_nt_binary class in NestedTensorMath.h from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/native/nested/NestedTensorMath.h lines 20–26

template <typename Func>
Tensor map_nt_binary(const Tensor& nt_1, const Tensor& nt_2, Func f){
  auto* nt_impl_1 = get_nested_tensor_impl(nt_1);
  auto* nt_impl_2 = get_nested_tensor_impl(nt_2);
  const auto& sizes = nt_impl_1->get_nested_sizes();
  return at::detail::make_tensor<NestedTensorImpl>(f(nt_impl_1->get_buffer(), nt_impl_2->get_buffer()), sizes);
}

Analyze Your Own Codebase

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

Try Supermodel Free