Skip to content

Commit

Permalink
Merge pull request #28 from AyanMeow/main
Browse files Browse the repository at this point in the history
[HUST CSE][rt_ai_mpython.c]fix: In line 63,wrong conditional judgment, change the duplicate info.input_n to output_n
  • Loading branch information
yc66542260 authored May 25, 2023
2 parents f9b58e8 + 5c817bd commit 9c1a1cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ STATIC mp_obj_t py_rt_ai_init(size_t n_args, const mp_obj_t *pos_args, mp_map_t
if(stat){
mp_raise_OSError(stat);
}
if(!handle->info.input_n && !handle->info.input_n){
if(!handle->info.input_n && !handle->info.output_n){
handle->info.input_n = inputs_size(handle); __debug(handle->info.input_n);
handle->info.output_n = outputs_size(handle); __debug(handle->info.output_n);

Expand Down

0 comments on commit 9c1a1cc

Please sign in to comment.