Home / Class/ QLinearUnpackWeightFp16 Class — pytorch Architecture

QLinearUnpackWeightFp16 Class — pytorch Architecture

Architecture documentation for the QLinearUnpackWeightFp16 class in qlinear_unpack.cpp from the pytorch codebase.

Entity Profile

Source Code

aten/src/ATen/native/quantized/qlinear_unpack.cpp lines 28–41

class QLinearUnpackWeightFp16 final {
 public:
  static std::tuple<at::Tensor, std::optional<Tensor>> run(
      const c10::intrusive_ptr<LinearPackedParamsBase>& packed_weight) {
    auto& ctx = at::globalContext();

    TORCH_CHECK(
        ctx.qEngine() != at::QEngine::QNNPACK,
        "quantized::linear_unpack_fp16 is currently "
        "not supported by QNNPACK");

    return packed_weight->unpack();
  }
};

Analyze Your Own Codebase

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

Try Supermodel Free