Inverting an array with pytorch I’ve been working with pytorch more and more lately for NLP, and I’d like to write down some things I want to keep in mind. github The file in jupyter notebook format is here google colaboratory To run it in google colaboratory here Author’s environment The author’s OS is macOS, and the options are different from Linux and Unix commands. ! sw_vers ProductName: Mac OS X ProductVersion: 10.