Error in ar_topk
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Tái hiện lệnh gọi C# đã được báo cáo bằng cách sử dụng Data.RandNormal(4, 225, 16, 292), Device.SetBackend(Backend.CUDA) và Algorithm.TopK với k=4 và dim=0. Bắt đầu từ lời gọi AFStatistics.af_topk và xác định xem shape hoặc các đối số có gây ra lỗi nội bộ hay không; hoàn thành khi giới hạn hoặc lỗi của wrapper được xác định và ghi lại hoặc sửa chữa.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hello,
I made a TopK function in class Algorithm as below.
Then I created a random array by using Data.RandNormal(4, 225, 16, 292); and pass this array to TopK function with k=4, dim = 0, order = AF_TOPK_MAX.
An exception is happen with "Internal error" message.
Are there any limitation of topk in arrayfire like number of dimensions or number of elements in an dimension?
I do the same test in pytorch. It's work well.
namespace ArrayFire
{
public static class Algorithm
{
.
.
.
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static Array TopK(out Array indices, Array arr1, int k, int dim, af_topk_function order)
{
IntPtr ptr;
IntPtr idx;
Internal.VERIFY(AFStatistics.af_topk(out ptr, out idx, arr1._ptr, k, dim, order));
indices = new Array(idx);
return new Array(ptr);
}
}
}
public Form1()
{
InitializeComponent();
Device.SetBackend(Backend.CUDA);
try
{
var arr1 = Data.RandNormal<float>(4, 225, 16, 292);
ArrayFire.Array indices = null;
var output = Algorithm.TopK(out indices, arr1, 4, 0, ArrayFire.Interop.af_topk_function.AF_TOPK_MAX);
}
catch (Exception ex) { }
Debug.WriteLine("Done!!");
}
- Ngôn ngữ chính
- C#
- Star
- 76
- Fork
- 19
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của arrayfire/arrayfire-dotnet
-
How convert array to af_seq? Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
-
af_index_t Đang mởquestion
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
arrayfire/arrayfire-dotnet#31 · 3 bình luận ·
-
GetData gives incorrect results Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
arrayfire/arrayfire-dotnet#29 · 3 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
arrayfire/arrayfire-dotnet#27 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
arrayfire/arrayfire-dotnet#25 · 5 bình luận ·
Tất cả issue của arrayfire/arrayfire-dotnet
Issue tương tự
-
Add more to the documentation Đang mở:watch: Not Triaged dotnet-fsharp/svc
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
Client customer-reported needs-team-attention question Service Attention WebPubSub
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Azure/azure-sdk-for-net#63292 · 3 bình luận · 1 reaction ·
-
Issue-Enhancement Needs-Triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
PowerShell/PowerShell#28061 · 2 reaction ·
-
dependencies needs-team-triage server-Azure.Mcp
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
aspnet-core/svc aspnetcore-signalr/subsvc doc-enhancement Pri2 SignalR
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
dotnet/AspNetCore.Docs#37729 ·