Skip to content
Closed
Changes from all commits
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
5 changes: 4 additions & 1 deletion kernels/quantized/cpu/op_dequantize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,10 @@ Tensor& dequantize_per_tensor_out(

check_dequantize_per_tensor_args(
input, quant_min, quant_max, dtype, out_dtype, out);


if (out.mutable_data_ptr() == nullptr) {
ET_CHECK_MSG(false, "out must have non-null data pointer");
}
// calculate the dequantized output, cast scale to float to match fbgemm
// behavior
#define DEQUANTIZE_IMPL(IN_CTYPE, OUT_CTYPE, out_dtype) \
Expand Down
Loading