未验证 提交 4b5cb22f 编写于 作者: Z zhulei 提交者: GitHub

[Rocm] fix python test of multinomial (#32158)

* [Rocm] fix python test of multinomial

* [Rocm] fix python test of multinomial

* [Rocm] fix python test of multinomial

* [Rocm] fix python test of multinomial
上级 8dacfb5e
......@@ -135,6 +135,9 @@ def multinomial(x, num_samples=1, replacement=False, name=None):
"""
assert core.is_compiled_with_rocm() == False, (
"multinomial op is not supported on ROCM yet.")
if in_dygraph_mode():
return core.ops.multinomial(x, 'num_samples', num_samples,
'replacement', replacement)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册