Skip to content

Instantly share code, notes, and snippets.

@jkotra
Created June 19, 2019 18:00
Show Gist options
  • Save jkotra/4f473ae5814aae3c37ca999b00eceec6 to your computer and use it in GitHub Desktop.
Save jkotra/4f473ae5814aae3c37ca999b00eceec6 to your computer and use it in GitHub Desktop.
parallel db
#initial database
db = torch.rand(num_entries) > 0.5
pd = []
for r in range(num_entries):
pd.append(
torch.cat((db[:r],db[r+1:num_entries]))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment