Home / Class/ IntrusivePtrTargetWrapper Class — pytorch Architecture

IntrusivePtrTargetWrapper Class — pytorch Architecture

Architecture documentation for the IntrusivePtrTargetWrapper class in MKLDNNCommon.cpp from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/native/mkldnn/MKLDNNCommon.cpp lines 25–38

template <typename T>
struct TORCH_API IntrusivePtrTargetWrapper : c10::intrusive_ptr_target {
private:
  T target_;

public:
  IntrusivePtrTargetWrapper() = delete;
  IntrusivePtrTargetWrapper(const T& target): target_(target) {}
  IntrusivePtrTargetWrapper(T&& target): target_(std::move(target)) {}

  T& get_target() {
    return target_;
  }
};

Analyze Your Own Codebase

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

Try Supermodel Free