-
Notifications
You must be signed in to change notification settings - Fork 606
Optimize for Speed [-O] can not work #77
Comments
Which macOS toolchain did you download? I see |
It appears that you used a Swift for TensorFlow development snapshot (which is correct), not the default toolchain. Let me try to reproduce this and get back to you. |
@rxwei
Secondly, I choose this chain
|
I'm unable to reproduce this error. Here's how I set up a "Command Line Tool" project in Xcode in project settings:
Then I can build and run a trivial program in import TensorFlow
var x = Tensor<Float>([[1, 2], [3, 4]])
for _ in 1...5 {
x += x • x
}
print(x) |
@rxwei you are right, I set up a "Command Line Tool" project in Xcode and that works, NO Crash I set up the "Cocoa app" project before. that crash. :) thanks |
7 characters that save us 800 Mb. If we want to stick to Debian base images, let's move to `python:slim`
I can execute
swift -O xx.swift
by ternimal, and get correct result.but when I follow this method, I configured my Xcode project.
Once I execute my project, I will get an error.
Whether or not I set this,
Optimize for Speed [-O]
, TensorFlow can't work.The text was updated successfully, but these errors were encountered: