Skip to content

Add kwargs to ToTensor, ToNumpy and ToCupy #2951

@Nic-Ma

Description

@Nic-Ma

Is your feature request related to a problem? Please describe.
As we are adding more and more args based on torch API or numpy API, I think we should use kwargs directly for future support.
And I will also update the covert_to_type utility to convert dtype and device in 1 call to avoid duplicated copy.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions