Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap unsqueeze #1294

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Wrap unsqueeze #1294

wants to merge 1 commit into from

Conversation

pkufool
Copy link
Collaborator

@pkufool pkufool commented Jul 2, 2024

No description provided.

DeviceGuard guard(any.Context());
Dtype t = any.GetDtype();
FOR_REAL_AND_INT32_TYPES(t, T, {
return RaggedAny(k2::Unsqueeze(any.Specialize<T>(), axis).Generic());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

k2:: can be removed since it is inside the k2 namespace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants