Test datatype for when passed for compuation
@codeboy5 đang làm issue này rồi.
Từ ngày 1/8/2020.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Description
When we call the result function, we just pass the python list as it is.
x = pydp.BoundedMean(1.0)
x.result([1,2,3,4])
What would be great is mention the datatype of the list in another argument,
x.result([1,2,3,4], 'int')
We want the new function definition to have the datatype as one of the argument, with float as the default argument.
Note: The function definition of result below is for representation purpose and the original code will be in c++ (pybind11).
def result(list, datatype= 'float'):
pass
The idea behind doing this is if we know the datatype, the underlying c++ code can become a lot efficient as right now, we are just converting everything to float.
- Ngôn ngữ chính
- Python
- Star
- 550
- Fork
- 143
- 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
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 OpenMined/PyDP
-
Type: New Feature :heavy_plus_sign:
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
Type: Question :grey_question:
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
-
Type: Question :grey_question:
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
-
Type: Improvement :chart_with_upwards_trend:
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Type: New Feature :heavy_plus_sign:
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
Tất cả issue của OpenMined/PyDP
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
browser-use/browser-use#5905 ·
-
type: enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ynput/ayon-python-api#363 ·
-
bug needs triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
modelscope/FunASR#3728 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
open-compass/opencompass#2655 ·