import TensorFlow
let a: Tensor<Float> = [1,2,3]
dyld: Library not loaded: @rpath/libswiftTensorFlow.dylib
Referenced from: /Users/bart/Library/Developer/Xcode/DerivedData/s4tf-demo-2-bzqergeougqywyfzxfvwvacyvncd/Build/Products/Debug/s4tf-demo-2
Reason: no suitable image found. Did find:
/Library/Developer/Toolchains/swift-tensorflow-RELEASE-0.5.xctoolchain/usr/lib/swift/macosx/libswiftTensorFlow.dylib: code signature in (/Library/Developer/Toolchains/swift-tensorflow-RELEASE-0.5.xctoolchain/usr/lib/swift/macosx/libswiftTensorFlow.dylib) not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)
import Python
print(Python.version)
dyld: Library not loaded: @rpath/libswiftPython.dylib
Referenced from: /Users/bart/Library/Developer/Xcode/DerivedData/s4tf-demo-2-bzqergeougqywyfzxfvwvacyvncd/Build/Products/Debug/s4tf-demo-2
Reason: no suitable image found. Did find:
/Library/Developer/Toolchains/swift-tensorflow-RELEASE-0.5.xctoolchain/usr/lib/swift/macosx/libswiftPython.dylib: code signature in (/Library/Developer/Toolchains/swift-tensorflow-RELEASE-0.5.xctoolchain/usr/lib/swift/macosx/libswiftPython.dylib) not valid for use in process using Library Validation: mapped file has no Team ID and is not a platform binary (signed with custom identity or adhoc?)
I created an Xcode command line project with Legacy Build System, and have the following:
import TensorFlow
let a: Tensor<Float> = [1,2,3]
But at runtime, I get the error:
dyld: Library not loaded: @rpath/libswiftTensorFlow.dylib
If I compile and run either as a file from the command line, it works fine as expected. But if I use the REPL:
--
To unsubscribe from this group and stop receiving emails from it, send an email to swift+un...@tensorflow.org.