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

[SR-7679] Trivial initializer crashes the REPL #50219

Closed
rxwei opened this issue May 14, 2018 · 1 comment
Closed

[SR-7679] Trivial initializer crashes the REPL #50219

rxwei opened this issue May 14, 2018 · 1 comment
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. swift for tensorflow

Comments

@rxwei
Copy link
Member

rxwei commented May 14, 2018

Previous ID SR-7679
Radar None
Original Reporter @rxwei
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Swift for TensorFlow
Labels Bug
Assignee @dan-zheng
Priority Medium

md5: 3358ae4c97c7459ff19cac823defa12a

Issue Description:

➜  ~ swift
Welcome to Swift version 4.2-dev (LLVM 04bdb56f3d, Clang b44dbbdf44). Type :help for assistance.
  1> import TensorFlow
  2> var w = Tensor<Float>(randomNormal: [1, 2])

Assertion failed: (New->getType() == getType() && "replaceAllUses of value with new value of different type!"), function doRAUW, file /Users/rxwei/Development/swift-copybara-clean/llvm/lib/IR/Value.cpp, line 404.
[1]    53570 abort      swift
@dan-zheng
Copy link
Collaborator

This issue was naturally fixed after downstreaming changes from master.

$ swift
Welcome to Swift version 4.2-dev (LLVM eb00ef6046, Clang d9545f2833, Swift a90195b5c7). Type :help for assistance.
  1> import TensorFlow
  2> var w = Tensor<Float>(randomNormal: [1, 2])
2018-06-30 04:37:52.497228: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.2 AVX
w: TensorFlow.Tensor<Float> = [[0.10291349, 0.6113074]]

Verified for all platforms using the 6/29 prebuilt packages.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. swift for tensorflow
Projects
None yet
Development

No branches or pull requests

2 participants