Home / Class/ KernelWithCache Class — pytorch Architecture

KernelWithCache Class — pytorch Architecture

Architecture documentation for the KernelWithCache class in make_boxed_from_unboxed_functor_test.cpp from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/core/boxing/impl/make_boxed_from_unboxed_functor_test.cpp lines 511–520

class KernelWithCache final : public OperatorKernel {
public:
  KernelWithCache(): counter(3) {}

  int64_t operator()(Tensor) {
    return ++counter;
  }
private:
  int64_t counter;
};

Analyze Your Own Codebase

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

Try Supermodel Free