Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,13 @@ class FusedMoeRunner : public tvm::ffi::ModuleObj {
auto const fc2_dequant = quant_scales.value()[2];
auto const fc1_input_dequant = quant_scales.value()[3];

TVM_FFI_ICHECK(fc1_dequant.get() != nullptr) << "Expecting fc1_dequant to be non null";
TVM_FFI_ICHECK(fc2_quant.get() != nullptr) << "Expecting fc2_quant to be non null";
TVM_FFI_ICHECK(fc2_dequant.get() != nullptr)
<< "Expecting fc1fc2_dequant_dequant to be non null";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There appears to be a copy-paste error in this error message. It should refer to fc2_dequant to match the variable being checked.

      TVM_FFI_ICHECK(fc2_dequant.get() != nullptr)
          << "Expecting fc2_dequant to be non null";

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pls take a look at this comment from gemini

TVM_FFI_ICHECK(fc1_input_dequant.get() != nullptr)
<< "Expecting fc1_input_dequant to be non null";

// Check types
CHECK_INPUT_TYPE(fc1_dequant, dl_float32);
CHECK_INPUT_TYPE(fc2_quant, dl_float32);
Expand Down