Skip to content

[Unity][Relax]fix behaviors for importing torch.cat/concat#15845

Merged
junrushao merged 3 commits intoapache:unityfrom
guoyaol:fix_torch_cat_concat
Oct 2, 2023
Merged

[Unity][Relax]fix behaviors for importing torch.cat/concat#15845
junrushao merged 3 commits intoapache:unityfrom
guoyaol:fix_torch_cat_concat

Conversation

@guoyaol
Copy link
Copy Markdown
Contributor

@guoyaol guoyaol commented Sep 30, 2023

Fix behaviors for importing torch.cat/concat
Now we can import Stable Diffusion XL and Real-ESRGAN more smoothly

Before fixing, we only support torch.cat((x, y), dim=n_dim)

Add support for importing:

  1. torch.cat((x, y)) with defualt dim=0
  2. torch.cat((x, y), n_dim) when user doesn't explicitly state dim=
  3. torch.concat an alias of torch.cat

Copy link
Copy Markdown
Contributor

@MasterJH5574 MasterJH5574 left a comment

Choose a reason for hiding this comment

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

Thank you @guoyaol for the first contribution!

@junrushao junrushao merged commit dd21ed3 into apache:unity Oct 2, 2023
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.

4 participants