Closed 83b09dda-53f5-4663-b44c-87fd2a9a8717 closed 5 years ago
I don't think this is going to work in the near term.
The problem here is that the dataset op is producing a Variant result value, which is a non-tensor value. We currently cannot send/receive variants to swift code. This is something that can be implemented, but hongm (JIRA User) is the best person to work on this.
Variants are effectively C++ void*'s. We can support sending and receiving these in S4TF, but we need to wire up a few ops (or repurpose existing ones) to send/recv the pointer value, and enhance partitioning to generate these.
I realized that we can work around this in the tutorial by wrapping the dataset construction in a function that we don't call until we actually use the dataset.
The workaround I describe is pretty nice, so I'm removing the tutorial label.
Comment by Mingsheng Hong (JIRA)
We've landed the GPE infra needed.
bgogul (JIRA User), Gogul, with your recent work of completing send/recving resource tensor support, and turning on the feature flag, is this bug ready to be closed? The outstanding item as I can think of is to remove that feature flag.
Comment by Gogul Balakrishnan (JIRA)
The code snippet works correctly in REPL.
Additional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | Swift for TensorFlow | |Labels | Bug, GPE | |Assignee | bgogul (JIRA) | |Priority | Medium | md5: 3b97896444b1806e6607cf894fd495e3Issue Description:
Execute this in Jupyter or the REPL:
You'll get:
This seems pretty important to fix or circumvent for the tutorial, because we'll want to create the dataset in one cell and then use it later.