Skip to content

torch.nn.functional.grid_sample should throw error for invalid mode #8693

@zou3519

Description

@zou3519

The only valid mode is 'bilinear', but one can pass anything to it and it will not complain:

torch.nn.functional.grid_sample(array_5d, indices, mode='anything')

Metadata

Metadata

Assignees

Labels

todoNot as important as medium or high priority tasks, but we will work on these.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions