Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors when executing run_exp_main.sh #6

Open
a617139596 opened this issue Dec 29, 2021 · 1 comment
Open

Errors when executing run_exp_main.sh #6

a617139596 opened this issue Dec 29, 2021 · 1 comment

Comments

@a617139596
Copy link

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?

@yycdavid
Copy link
Collaborator

yycdavid commented Mar 2, 2022

I think this is because you used the original TASO repo. They updated the batchnorm function signature after our work is finished, so it's not compatible anymore. Using the forked TASO version at https://github.com/yycdavid/taso (which is the link in tensat/README) should solve this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants