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

Adding pipeline with rebatch fails #499

Open
AlexeyKozhevin opened this issue Apr 12, 2020 · 0 comments
Open

Adding pipeline with rebatch fails #499

AlexeyKozhevin opened this issue Apr 12, 2020 · 0 comments

Comments

@AlexeyKozhevin
Copy link
Collaborator

Resulting dataset will not have self.dataset.

Working example:

ppl = Dataset(10).p.load(src=np.arange(10), dst='comp').rebatch(2).print(B.comp)
ppl.run(3, bar=True)

Another one:

ppl = Pipeline().load(src=np.arange(10), dst='comp')
ppl += Pipeline().rebatch(2).print(B.comp)
(ppl << Dataset(10)).run(3, bar=True)

Fails:

ppl = Pipeline().load(src=np.arange(10), dst='comp') << Dataset(10)
ppl += Pipeline().rebatch(2).print(B.comp)
ppl.run(3, bar=True)

The problem is that from_pipeline doesn't copy dataset.

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

1 participant