Skip to content

Wrap unsqueeze#1294

Open
pkufool wants to merge 1 commit into
k2-fsa:masterfrom
pkufool:unsqueeze_ragged
Open

Wrap unsqueeze#1294
pkufool wants to merge 1 commit into
k2-fsa:masterfrom
pkufool:unsqueeze_ragged

Conversation

@pkufool
Copy link
Copy Markdown
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
Copy Markdown
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