Skip to content

Conversation

@eaplatanios
Copy link

No description provided.

@eaplatanios eaplatanios changed the title Added support for the "Split" op. Added support for the "Split" op and added a VJP for the casting initializer. Apr 18, 2019
@rxwei
Copy link
Contributor

rxwei commented Apr 18, 2019

Could we make sure Split is tested or has a use case?

Copy link
Contributor

@rxwei rxwei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cast part LGTM.

@eaplatanios
Copy link
Author

Could we make sure Split is tested or has a use case?

It's kind of dual to SplitV in that, if you want to split in equal parts (e.g., when "unstacking" a tensor along the batch dimension), you'd need to compute the size of each split and copy over an array with the sizes, if using SplitV. Split lets you do that by just providing the number of splits you want. I'm planning to add a split function to Tensor in the open PR in swift-apis soon. I have implemented them but need to add VJPs and then will push changes there.

@rxwei
Copy link
Contributor

rxwei commented Apr 18, 2019

OK. I just want to make sure it's at least tested on your machine so that you won't need to come back and change it if it doesn't work.

@eaplatanios
Copy link
Author

Yes that makes sense. Give me a couple hours maybe and I'll post here once I've tested it. :)

@eaplatanios
Copy link
Author

@rxwei Just tested locally and it works fine. :)

@rxwei
Copy link
Contributor

rxwei commented Apr 18, 2019

@swift-ci please test tensorflow

4 similar comments
@rxwei
Copy link
Contributor

rxwei commented Apr 18, 2019

@swift-ci please test tensorflow

@rxwei
Copy link
Contributor

rxwei commented Apr 18, 2019

@swift-ci please test tensorflow

@rxwei
Copy link
Contributor

rxwei commented Apr 18, 2019

@swift-ci please test tensorflow

@rxwei
Copy link
Contributor

rxwei commented Apr 18, 2019

@swift-ci please test tensorflow

@rxwei
Copy link
Contributor

rxwei commented Apr 18, 2019

@swift-ci please test tensorflow Linux

@rxwei rxwei added the tensorflow This is for "tensorflow" branch PRs. label Apr 18, 2019
@rxwei rxwei merged commit 162caae into swiftlang:tensorflow Apr 18, 2019
rxwei pushed a commit to rxwei/swift that referenced this pull request May 11, 2019
…ializer. (swiftlang#24120)

* Added support for the split op.

* Minor edit.

* Added VJP for the casting initializer.

* Update stdlib/public/TensorFlow/Tensor.swift

Co-Authored-By: eaplatanios <[email protected]>

* Update stdlib/public/TensorFlow/Tensor.swift

Co-Authored-By: eaplatanios <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tensorflow This is for "tensorflow" branch PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants