Skip to content

Errors when executing run_exp_main.sh #6

@a617139596

Description

@a617139596

After configuring the development environment, I wanted to execute run_exp_main.sh, but got errors:

error[E0061]: this function takes 6 arguments but 5 arguments were supplied
    --> src/optimize.rs:603:41
     |
603  |                     let op = (*g.model).get_or_create_batchnorm(t_inpt, t_scale, t_bias, t_mean, t_var);
     |                                         ^^^^^^^^^^^^^^^^^^^^^^^ ------  -------  ------  ------  ----- supplied 5 arguments
     |                                         |
     |                                         expected 6 arguments
     |
note: associated function defined here
    --> /usr/tensat/target/release/build/tensat-870c490f6fbf864f/out/bindings.rs:8178:27
     |
8178 |             pub unsafe fn get_or_create_batchnorm(
     |                           ^^^^^^^^^^^^^^^^^^^^^^^
8179 |                 &mut self,
     |                 ---------
8180 |                 _input: *const root::taso::Tensor,
     |                 ---------------------------------
8181 |                 _scale: *const root::taso::Tensor,
     |                 ---------------------------------
8182 |                 _bias: *const root::taso::Tensor,
     |                 --------------------------------
8183 |                 _mean: *const root::taso::Tensor,
     |                 --------------------------------
8184 |                 _var: *const root::taso::Tensor,
     |                 -------------------------------
8185 |                 _epsilon: f32,
     |                 -------------

For more information about this error, try `rustc --explain E0061`.
warning: `tensat` (lib) generated 9 warnings
error: could not compile `tensat` due to 2 previous errors; 9 warnings emitted

Is there something wrong? how to solve this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions