From 2929ae7cfcbccc70e9956bcc6fdfb347599ea594 Mon Sep 17 00:00:00 2001 From: Julien Balian Date: Wed, 21 Feb 2024 15:18:29 +0100 Subject: [PATCH] fix: maybe default is needed --- test-rt/suite-unit/src/q_binary.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test-rt/suite-unit/src/q_binary.rs b/test-rt/suite-unit/src/q_binary.rs index 63395a8584..e7202cc509 100644 --- a/test-rt/suite-unit/src/q_binary.rs +++ b/test-rt/suite-unit/src/q_binary.rs @@ -12,6 +12,17 @@ struct QBinaryOpProblem { c_dt: DatumType, } +impl Default for QBinaryOpProblem { + fn default() -> QBinaryOpProblem { + QBinaryOpProblem { + operator: tract_core::ops::math::mul(), + tensor_a: Tensor::default(), + tensor_b: Tensor::default(), + c_dt: DatumType::QU8(QParams::ZpScale { zero_point: 0, scale: 1. }), + } + } +} + impl QBinaryOpProblem { fn pick_signed_datum(signed: bool) -> DatumType { if signed {