mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-30 20:18:08 +00:00
Fix warning when building on Windows (#22327)
### Description <!-- Describe your changes. --> Specify type to fix warning ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. -->
This commit is contained in:
parent
5036e63d58
commit
280c013d67
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ Status UnaryOpBuilder::AddToModelBuilderImpl(ModelBuilder& model_builder, const
|
|||
std::unique_ptr<Operation> op = model_builder.CreateOperation(node, coreml_op_type);
|
||||
AddOperationInput(*op, "x", input_defs[0]->Name());
|
||||
if (op_type == "Reciprocal") {
|
||||
float epsilon = 1e-4; // epsilon: const T (Optional, default=1e-4)
|
||||
float epsilon = 1e-4f; // epsilon: const T (Optional, default=1e-4)
|
||||
auto dtype = node.InputDefs()[0]->TypeAsProto()->tensor_type().elem_type();
|
||||
if (dtype == ONNX_NAMESPACE::TensorProto_DataType_FLOAT) {
|
||||
AddOperationInput(*op, "epsilon", model_builder.AddScalarConstant(op->type(), "epsilon", epsilon));
|
||||
|
|
|
|||
Loading…
Reference in a new issue