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

make_batch_reader Documentation out of date? seed? #786

Open
Data-drone opened this issue Dec 22, 2022 · 0 comments
Open

make_batch_reader Documentation out of date? seed? #786

Data-drone opened this issue Dec 22, 2022 · 0 comments

Comments

@Data-drone
Copy link

I am looking at the documentation here:

https://petastorm.readthedocs.io/en/latest/api.html under make_batch_reader it mentions that there is a parameter seed

I set this is my code:


with peta_conv_train_df.make_torch_dataloader(transform_spec=transform_func,
                                              num_epochs=1,
                                              batch_size=test_batch_size,
                                              cur_shard = 1,
                                              shard_count = 2,
                                              seed=10,
                                              shard_seed=123,
                                              reader_pool_type = pool_type) as reader:

but I get:

TypeError: make_batch_reader() got an unexpected keyword argument 'seed'

It seems to exist in the source code though....

Also what is the difference between seed and shard_seed

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