Generated from Declarations.yaml
Definitely not API-stable at all. Most of the API is autogenerated.
Some of the API depends on fixes to gobject-introspection, gjs and pygi
From GJS-flavour JavaScript:
const { GObject, GLib, Torch } = imports.gi;
const tensor = Torch.linspace_double(1.0, 10.0, 10);
log(tensor.get_tensor_data().deep_unpack());
Use PyTorch from JavaScript! Sort of useless at the moment.
Most of the ATen API is supported. The Torch NN API is not yet supported, but this is being worked on.