Skip to content

Resize eager mode failure #278

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

Closed
justinchuby opened this issue Jan 5, 2023 · 2 comments
Closed

Resize eager mode failure #278

justinchuby opened this issue Jan 5, 2023 · 2 comments
Labels
bug Something isn't working module: torchlib Related to the torch/aten function lib in development

Comments

@justinchuby
Copy link
Collaborator

justinchuby commented Jan 5, 2023

See #279

def ...
    return op.Resize(
        self,
        None,
        None,
        sizes,
        mode="nearest",
        coordinate_transformation_mode="asymmetric",
    )

raises

onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Non-zero status code returned while running Resize node. Name:'' Status Message: /onnxruntime_src/onnxruntime/core/providers/cpu/tensor/upsamplebase.h:289 void onnxruntime::UpsampleBase::ScalesValidation(const std::vector&, onnxruntime::UpsampleMode) const scale > 0 was false. Scale value should be greater than 0.

cc @xiaowuhu @fatcat-z

@justinchuby justinchuby added bug Something isn't working module: torchlib Related to the torch/aten function lib in development labels Jan 5, 2023
@justinchuby
Copy link
Collaborator Author

justinchuby commented Jan 5, 2023

cc @gramalingam scale is None. Is this the right way of using it or should I supply something else to Resize?

This was referenced Jan 5, 2023
@justinchuby
Copy link
Collaborator Author

My bad. I used the incorrect size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working module: torchlib Related to the torch/aten function lib in development
Projects
None yet
Development

No branches or pull requests

1 participant