Skip to content

Conversation

@pcuenca
Copy link
Member

@pcuenca pcuenca commented Sep 1, 2022

Unfortunately tile could not be used either, it's still not compatible with ONNX.

This is the method proposed by @harishanand95 in harishanand95@8dd4e82.

Addresses the first (easy) part of #284.

Unfortunately `tile` could not be used either, it's still not compatible
with ONNX.

See #284.
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Sep 1, 2022

The documentation is not available anymore as the PR was closed or merged.

Copy link
Contributor

@patil-suraj patil-suraj left a comment

Choose a reason for hiding this comment

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

LGTM!

@pcuenca
Copy link
Member Author

pcuenca commented Sep 2, 2022

I added the comment and also ensured that the device remains the same.

@pcuenca pcuenca requested a review from patil-suraj September 2, 2022 07:43
@patrickvonplaten
Copy link
Contributor

Thanks a lot @pcuenca !

@patrickvonplaten patrickvonplaten merged commit e49dd03 into main Sep 2, 2022
@patrickvonplaten patrickvonplaten deleted the onnx-broadcast branch September 2, 2022 16:23
@patrickvonplaten patrickvonplaten linked an issue Sep 5, 2022 that may be closed by this pull request
natolambert pushed a commit that referenced this pull request Sep 7, 2022
* Use ONNX / Core ML compatible method to broadcast.

Unfortunately `tile` could not be used either, it's still not compatible
with ONNX.

See #284.

* Add comment about why broadcast_to is not used.

Also, apply style to changed files.

* Make sure broadcast remains in same device.
PhaneeshB pushed a commit to nod-ai/diffusers that referenced this pull request Mar 1, 2023
yoonseokjin pushed a commit to yoonseokjin/diffusers that referenced this pull request Dec 25, 2023
* Use ONNX / Core ML compatible method to broadcast.

Unfortunately `tile` could not be used either, it's still not compatible
with ONNX.

See huggingface#284.

* Add comment about why broadcast_to is not used.

Also, apply style to changed files.

* Make sure broadcast remains in same device.
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

Successfully merging this pull request may close these issues.

ONNX compatibility issues

5 participants