Count the trainable parameters of a LoRA adapter of rank r on a layer with in_features inputs and out_features outputs: the matrices A∈Rr×din and B∈Rdout×r together.
Implement solve(in_features,out_features,r).
Returns. Return an integer r(din+dout).
Example 1
Input:
solve(10, 8, 2)
Output:
36
Example 2
Input:
solve(4096, 4096, 8)
Output:
65536
No results yet
Run your code to check it against the examples, or submit to run every test.