We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 925cf50 commit e05a443Copy full SHA for e05a443
src/NumSharp.Core/Backends/Unmanaged/UnmanagedStorage.Slicing.cs
@@ -96,6 +96,10 @@ private UnmanagedStorage GetViewInternal(params Slice[] slices)
96
if (!_shape.IsRecursive && slices.All(s => Equals(Slice.All, s)))
97
return Alias();
98
99
+ //handle broadcasted shape
100
+ if (_shape.IsBroadcasted)
101
+ return Clone().Alias(_shape.Slice(slices));
102
+
103
return Alias(_shape.Slice(slices));
104
}
105
0 commit comments