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

randlike gives wrong output dtype #1891

Closed
zasdfgbnm opened this issue Aug 4, 2022 · 0 comments · Fixed by #1892
Closed

randlike gives wrong output dtype #1891

zasdfgbnm opened this issue Aug 4, 2022 · 0 comments · Fixed by #1892

Comments

@zasdfgbnm
Copy link
Collaborator

🐛 Describe the bug

TEST_F(NVFuserTest, TMP4) {
  Fusion fusion;
  FusionGuard fg(&fusion);

  TensorView* tv0 = makeSymbolicTensor(1);
  auto tv1 = randlike(tv0);
  std::cout << tv0->getDataType().value() << ", " << tv1->getDataType().value() << std::endl;
  TORCH_CHECK(tv0->getDataType() == tv1->getDataType());
}

I get float, double

Versions

devel

@zasdfgbnm zasdfgbnm linked a pull request Aug 12, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants