We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have write a forward() method like below:
forward()
public override Tensor forward(Tensor input,Tensor cond_embedding_id) { var Scales = this.scale.forward(cond_embedding_id); var Shift = this.shift.forward(cond_embedding_id); input = nn.functional.layer_norm(input, [this.dim,],null,null,eps); input = input * Scales + Shift; return input; }
But visual studio raise an error:
Severity code description: Project file line suppression status Error CS0115 "AdaLayerNorm. forward (torch. Tensor, torch. Tensor)": No suitable method was found to override VALLESharp D: \ VALLESharp \ VALLESharp \ Vocos \ Modules. cs 42 Activity
Ha?
The text was updated successfully, but these errors were encountered:
Solved by adding another Tensor parma when model class assigning like below:
Tensor
internal class AdaLayerNorm : Module<Tensor,Tensor, Tensor>
Sorry, something went wrong.
No branches or pull requests
I have write a
forward()
method like below:But visual studio raise an error:
Ha?
The text was updated successfully, but these errors were encountered: