Skip to content

Instantly share code, notes, and snippets.

@hankliu5
Created April 2, 2018 02:23
Show Gist options
  • Save hankliu5/d9093101b2e46d5acb820efa72ce2e07 to your computer and use it in GitHub Desktop.
Save hankliu5/d9093101b2e46d5acb820efa72ce2e07 to your computer and use it in GitHub Desktop.
import numpy as np
import sys
np.random.seed(0)
size = int(sys.argv[1]) if len(sys.argv) > 1 else 4096*4096
outfile = open('ascii_uint32_vec_{}.txt'.format(size), 'w')
A = np.random.randint(4294967295, size=(1, size))
np.savetxt(outfile, A)
np.save('validation_uint32_vec_{}'.format(size), A)
outfile.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment