Skip to content

test_view_dynamic_zero_dim no longer testing zero inputΒ #105066

@ezyang

Description

@ezyang

πŸ› Describe the bug

#104828 (comment)

Filing an issue as requested by @thiagocrepaldi @titaiwangms

I don't think the exported model should work with a zero size input. The reason is that we 0/1 specialize on tracing; when you trace a model that has size 2, we assume that if you dynamically vary the shape, you won't vary it to 0 or 1. It is strange to have a model that exports and works with either size 0, or size 2.

If there is a more realistic example, we should put it in here instead.

Versions

main

Metadata

Metadata

Assignees

Labels

module: onnxRelated to torch.onnxtriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions