Skip to content

Commit 70dbd1b

Browse files
clang-format
1 parent 98fb6ce commit 70dbd1b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

core/iwasm/libraries/wasi-nn/src/wasi_nn_onnx.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ convert_ort_error_to_wasi_nn_error(OrtStatus *status)
103103
}
104104

105105
static bool
106-
convert_ort_type_to_wasi_nn_type(ONNXTensorElementDataType ort_type, tensor_type *tensor_type)
106+
convert_ort_type_to_wasi_nn_type(ONNXTensorElementDataType ort_type,
107+
tensor_type *tensor_type)
107108
{
108109
switch (ort_type) {
109110
case ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT:
@@ -142,7 +143,8 @@ convert_ort_type_to_wasi_nn_type(ONNXTensorElementDataType ort_type, tensor_type
142143
}
143144

144145
static bool
145-
convert_wasi_nn_type_to_ort_type(tensor_type type, ONNXTensorElementDataType *ort_type)
146+
convert_wasi_nn_type_to_ort_type(tensor_type type,
147+
ONNXTensorElementDataType *ort_type)
146148
{
147149
switch (type) {
148150
case fp32:
@@ -583,7 +585,7 @@ set_input(void *onnx_ctx, graph_execution_context ctx, uint32_t index,
583585
}
584586

585587
status = ort_ctx->ort_api->CreateTensorWithDataAsOrtValue(
586-
exec_ctx->memory_info, input_tensor->data.buf,input_tensor->data.size,
588+
exec_ctx->memory_info, input_tensor->data.buf, input_tensor->data.size,
587589
ort_dims, num_dims, ort_type, &input_value);
588590

589591
free(ort_dims);

0 commit comments

Comments
 (0)