Best Practice for inference
Hi here is my problem:
vs
In the first code, the inference for ModelName doesn't work as expected, but it feels more natural.
In the second code, the inference works fine, but it forces me to repeat the type P everywhere, which is not ideal.
Thank you for reading
0 Replies