-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[TF] Updates to TensorArrayProtocol derived conformances #24229
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
[TF] Updates to TensorArrayProtocol derived conformances #24229
Conversation
…put tensor arrays in raw ops.
Btw, I have verified that this passes all tests on my machine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, awesome!
I have addressed all the comments in the last commit. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the best way to test/merge this PR is to merge tensorflow/swift-bindings#26 first, then update checkout for swift-bindings
in this PR.
cc @rxwei for your thoughts
@dan-zheng I just made tensorflow/swift-bindings#26 backwards compatible (it can uses I also finally have a working version of a split to |
Actually, please don't merge this yet. I'm working on a couple of additions that make the raw ops generation a bit more flexible. |
The next step is to make sure TensorFlow can get distributed as part of Swift for TensorFlow toolchain builds using |
I'm happy to verify |
I just added a /// Creates a dataset that emits each dim-0 slice of `components` once.
@inlinable @inline(__always)
public static func tensorSliceDataset<ToutputTypes: TensorArrayProtocol>(
components: ToutputTypes,
outputShapes: [TensorShape?]
) -> VariantHandle {
let ret: VariantHandle = #tfop("TensorSliceDataset",
components,
Toutput_types$dtype: components._typeList,
output_shapes: outputShapes)
return ret
} Not having this instance property would force us to have I have verified that all tests pass on my machine. I also made the corresponding edits to tensorflow/swift-bindings#26, along with some changes to properly handle input tensor lists when using |
All comments have been addressed. |
@swift-ci please test tensorflow |
3 similar comments
@swift-ci please test tensorflow |
@swift-ci please test tensorflow |
@swift-ci please test tensorflow |
This reverts commit 87e3f96.
@swift-ci please test tensorflow Linux |
3 similar comments
@swift-ci please test tensorflow Linux |
@swift-ci please test tensorflow Linux |
@swift-ci please test tensorflow Linux |
@rxwei not sure why this fails on the CI server. All tests pass locally for me. |
@rxwei Could we retry running the tests now that I reverted the |
@swift-ci please clean test tensorflow |
1 similar comment
@swift-ci please clean test tensorflow |
@swift-ci please test tensorflow |
3 similar comments
@swift-ci please test tensorflow |
@swift-ci please test tensorflow |
@swift-ci please test tensorflow |
@swift-ci please test tensorflow macOS |
1 similar comment
@swift-ci please test tensorflow macOS |
@rxwei These updates enable output tensor arrays for raw ops.
Friend PR: tensorflow/swift-bindings#26 .