Skip to content

Instantly share code, notes, and snippets.

@sizhky
Last active February 23, 2020 10:16
Show Gist options
  • Save sizhky/64ed0738c562a890dbb26746fb066418 to your computer and use it in GitHub Desktop.
Save sizhky/64ed0738c562a890dbb26746fb066418 to your computer and use it in GitHub Desktop.
Inspect a collection
>>>inspect(listofcollections)
'''
0
list `[1,2,3,...]` of len `1345`

1
list `[np.ndarray([[1,2],[3,2],...]) of size (1345x2)
       np.ndarray([list `[2,3,4,...]` of len `7`, list `[2,2,1,...]` of len `15`])
       torch.tensor([[[0.0000,...]]] of size (1345x1x100x100))
       ...]`
     of len `30`

2
10

3
'string'
...
99
list `['a','b','c',...]` of len `505
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment