-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
Description
The return type of cat
is determined by the value of the dim
argument as well as the types of the inputs, which means we can't infer the dimensionality of the returned array. OTOH dim
is usually constant, so we usually have all of the information necessary to determine the return type at compile time, just not in a way that type inference can use. What is the best approach here?