Skip to content

ViT does not support torchscript #3432

@yiheng-wang-nv

Description

@yiheng-wang-nv

class PatchEmbeddingBlock does not support torchscript, due to the module einops.layers.torch.Rearrange used.

Update (02.09.2022) After Einops v0.4.0 released, it supports torchscript now, but the current ViT implementation still cannot support torchscript directly, some changes are necessary, and the einops usage should be kept.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions