Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3bbeb00

Browse files
update readme
1 parent 0e0e1db commit 3bbeb00

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

‎README.md‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,19 @@ docker run --rm --privileged --cap-add sys_ptrace -it -v ${PWD}:/usr/src zachgra
126126

127127
And now we can import our package dependencies in the REPL session like so:
128128

129-
```bash
129+
```
130130
Welcome to Swift version 4.2-dev (LLVM 04bdb56f3d, Clang b44dbbdf44). Type :help for assistance.
131131
1> import TensorFlow
132132
2> import RxSwift
133-
3> :exit
133+
3> _ = Observable.from([1,2]).subscribe(onNext: { print(0ドル) })
134+
1
135+
2
136+
4> var x = Tensor([[1, 2], [3, 4]])
137+
2018年04月27日 17:13:12.514107: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
138+
x: TensorFlow.Tensor<Double> = [[1.0, 2.0], [3.0, 4.0]]
134139
```
135140

136-
TODO: in the above run command, the use of `-lTFExample` is breaking TensorFlow (we can import it but it will crash when we attempt to invoke any methods). Need to figure out how to link against the TFExample library as well as tensorflow.
141+
NOTE: the import order is currently important; importing other packages before TensorFlow will result in a runtime error in [swift-lldb](https://github.com/google/swift-lldb/blob/87c3a7891cf2e482c6908f7758c1fc06f531e4c3/source/Plugins/Language/Swift/SwiftFormatters.cpp#L564).
137142

138143
## License
139144

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /