You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AsTarget and AsTargetMut support return 1D and 2D targets. However, most uses of the traits require either 1D targets or 2D targets, but never both. Also, some impls don't support 1D targets, so try_single_target() has to return a Result to handle that case. I propose that we split AsTarget into AsSingleTarget and AsMultiTarget (same with AsTargetMut) and implement them on ArrayView1 and ArrayView2 respectively. Trait bounds will be changed to use one or the other. What do you think @bytesnake ?
The text was updated successfully, but these errors were encountered:
I think that would be of great help, especially to support multi-task models! I can work on it. Actually without that kind of tweak, I'm stuck with #194 .
AsTarget
andAsTargetMut
support return 1D and 2D targets. However, most uses of the traits require either 1D targets or 2D targets, but never both. Also, some impls don't support 1D targets, sotry_single_target()
has to return aResult
to handle that case. I propose that we splitAsTarget
intoAsSingleTarget
andAsMultiTarget
(same withAsTargetMut
) and implement them onArrayView1
andArrayView2
respectively. Trait bounds will be changed to use one or the other. What do you think @bytesnake ?The text was updated successfully, but these errors were encountered: