-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add support for tfc.makeIteratorGetNextWithDatasets from graph operations #18223
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
Add support for tfc.makeIteratorGetNextWithDatasets from graph operations #18223
Conversation
88a6ecb
to
a2d859e
Compare
@swift-ci please test tensorflow |
@@ -584,7 +584,11 @@ struct TFGraphLowering : public SILInstructionVisitor<TFGraphLowering, GLStatus> | |||
/// | |||
/// FIXME: Dissolve this builtin into a set of finer-grained, composable | |||
/// features. | |||
GLStatus visitTFDataset(BuiltinInst *inst); | |||
template <typename Inst> |
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.
if it can simplify the patch (e.g. remove templating), pls feel free to remove the support for builtin inst, and only support graph_op.
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.
Let me leave the code as is for now. We can clean it up when strict deabstraction is enabled by default.
// Even when this built-in returns multiple tensors, they are always presented | ||
// by a single tuple. | ||
std::vector<TF_DataType> outputTypes; | ||
for (const SILValue& result : inst->getResults()) { |
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.
Nit: &result
This is needed to enables strict deabstraction in dataset.swift test.