The key here is how you keep A B and C. Apparently they aren’t leaf variables in your graph, but your snippet doesn’t show what they are.
It is completely legitimate to have modules without input. Their main function is to hold the trainable Parameters, in your case A and B, with the calculation.
Best regards
Thomas