Skip to content

A bug in module for GPU #40217

@rose-jinyang

Description

@rose-jinyang

Hello
How are you?
Thanks for contributing to this project.
I found a bug in module for GPU.

The script that I ran is the following:

import paddle
import paddle.nn.functional as F

a = paddle.randint(0, 10, (4, 4))
b = F.one_hot(a, 5)
print(a)
print(b)

The above script does NOT yield any issue when running on GPU.
But when running on CPU it yields an issue.
image

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions