-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[TF] Removed 'HackyTensorflowMigrationSupport'. #25147
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
Conversation
Removed HackyTensorflowMigrationSupport.swift from apple/swift. Friend PR: swiftlang/swift#25147.
|
@rxwei I update the dependency hash so we should be able to run tests now. |
|
@swift-ci please clean test tensorflow Linux |
|
@rxwei, this is a separate issue but for lack of a better communication channel I'll post it here. I tried enabling compiler optimizations for the but I still get failures for multiple tests even though GPE is now gone. I believe we should start looking into why this happens as it could potentially have significant performance impact. One very simple test that fails with a set fault, for example, is this: StringDescriptionTests.test("Vector") {
do {
let vector = Tensor<Int32>(ones: [4])
expectEqual("[1, 1, 1, 1]", vector.description)
}
do {
var vector = Tensor<Float>([1, 2, 3, 4])
expectEqual("[1.0, 2.0, 3.0, 4.0]", vector.description)
vector[1] = Tensor<Float>(-2)
expectEqual("[ 1.0, -2.0, 3.0, 4.0]", vector.description)
}
// Test long vector (above 1000 scalar threshold).
do {
let vector = Tensor<Float>(repeating: 3, shape: [1001])
expectEqual("[3.0, 3.0, 3.0, ..., 3.0, 3.0, 3.0]", vector.description)
}
}Again, this is separate from this PR so sorry for posting it here if it's confusing. |
|
@rxwei @eaplatanios Is it OK to have known protocols and derived conformances for those protocols that are not part of stdlib? |
|
@bgogul I believe that technically they are since Generally though, it'd be great if we found an elegant way to add support for such derivations at the language level, similar to what Scala supports, so that all this can be implemented in Swift. :) |
|
I just pushed an edit that fixes the failing test. It only fails on Linux and I don't really understand why but it should be fine now. |
|
@swift-ci please test tensorflow Linux |
|
@swift-ci please test tensorflow |
Simplify `_ExecutionContext.init()` runtime initialization code.
@rxwei @pschuh Removed
HackyTensorflowMigrationSupport.swift.Friend PR: tensorflow/swift-apis#139.