Skip to content

[DRAFT][passes] Passes and tests for VLM PatchEmbed optimization#517

Draft
llFreetimell wants to merge 1 commit intoSamsung:mainfrom
llFreetimell:draft_conv3d_to_conv2d
Draft

[DRAFT][passes] Passes and tests for VLM PatchEmbed optimization#517
llFreetimell wants to merge 1 commit intoSamsung:mainfrom
llFreetimell:draft_conv3d_to_conv2d

Conversation

@llFreetimell
Copy link
Contributor

This draft is for introducing passes and tests for VLM PatchEmbed optimization.

TICO-DCO-1.0-TICO-DCO-1.0-Signed-off-by: Seok Namkoong seok9311@naver.com


For #475 (comment)

This draft is for introducing passes and tests for VLM PatchEmbed optimization.

TICO-DCO-1.0-TICO-DCO-1.0-Signed-off-by: Seok Namkoong <seok9311@naver.com>
input = args.input
dims = args.dims

input_shape = extract_shape(input)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you normalize the input shape for negative integer cases?

ndims = len(input_shape)
normalized_dims = [(d if d >= 0 else d + ndims) for d in dims]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants