提交 b97aebb4 authored 作者: Brandon T. Willard's avatar Brandon T. Willard 提交者: Brandon T. Willard

Make test_select_proportional_to_weight use non-deprecated method

上级 2c4968a5
......@@ -195,7 +195,7 @@ class TestFunction:
p = fmatrix()
n = iscalar()
m = th_rng.multinomial_wo_replacement(pvals=p, n=n)
m = th_rng.choice(size=n, p=p, replace=False)
f = function([p, n], m, allow_input_downcast=True)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论