Skip to content

Commit

Permalink
fix: maybe default is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienBalianSonos committed Feb 21, 2024
1 parent e75cb85 commit 2929ae7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test-rt/suite-unit/src/q_binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 2929ae7

Please sign in to comment.