Skip to content

Commit

Permalink
one more issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kali committed Dec 14, 2023
1 parent 466b000 commit 6a06d6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tflite/src/ops/nn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ fn de_softmax(op: &mut DeserOp) -> TractResult<TVec<OutletId>> {
let input = args_1!(op.facts()?);
let options = builtin!(op, builtin_options_as_softmax_options);
ensure!(options.beta() == 1.0);
let softmax = core::nn::Softmax { axes: tvec!(input.rank() - 1), quant_output_dt: input.datum_type };
let quant_output_dt = Some(input.datum_type).filter(|dt| !dt.is_float());
let softmax = core::nn::Softmax { axes: tvec!(input.rank() - 1), quant_output_dt };
op.ctx.target.wire_node(op.prefix, softmax, op.inputs)
}

Expand Down

0 comments on commit 6a06d6b

Please sign in to comment.