Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resample: Axis direction #643

Open
schm0 opened this issue Sep 6, 2024 · 0 comments
Open

Resample: Axis direction #643

schm0 opened this issue Sep 6, 2024 · 0 comments

Comments

@schm0
Copy link

schm0 commented Sep 6, 2024

Hello!
The DirectMLX.h header file has the following definition:

    inline Expression Resample(
        Expression input,
        TensorDimensions outputSizes,
        DML_INTERPOLATION_MODE mode,
#if DML_TARGET_VERSION >= 0x5100
        DML_AXIS_DIRECTION roundingDirection = DML_AXIS_DIRECTION_INCREASING,
#endif // DML_TARGET_VERSION >= 0x5100
        Span<const float> scales = {},
        Span<const float> inputPixelOffsets = {},
        Span<const float> outputPixelOffsets = {} 
#if DML_TARGET_VERSION >= 0x6400
        , bool antialiased = false
#endif
        )

How should the axis direction calculated?
e.g. different direction for down or up sampling? Different direction for nearest neighbor vs linear?
Or does that not really matter?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant