Skip to content
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

about dataset_map #79

Open
zouw2 opened this issue Nov 25, 2020 · 1 comment
Open

about dataset_map #79

zouw2 opened this issue Nov 25, 2020 · 1 comment

Comments

@zouw2
Copy link

zouw2 commented Nov 25, 2020

from the intro: "Note that while dataset_map() is defined using an R function, there are some special constraints on this function which allow it to execute not within R but rather within the TensorFlow graph."

Does the 'constraint' mean we can only use certain functions available to tf within dataset_map? If we call certain R library functions in side of dataset_map, will this work?

I am looking for data augment (using R functions) examples that work in eager execute style.
thanks
wei

@t-kalinowski
Copy link
Member

Another way to phrase it is: only operations on tensors are recorded (aka traced) by the function when the dataset pipeline is built. Then when the pipeline is run, only the recorded tensor operations are rerun. Meaning, that only the tensor operations are meaningful in the dataset_map() context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants