Skip to content

Releases: Godwinh19/gotorch

v0.2.0

25 Apr 16:41
Compare
Choose a tag to compare

Our latest release includes a new implementation of a tensor library in Go, which allows for multidimensional tensor computations, similar (almost 😃) to popular tensor libraries like NumPy and PyTorch.

The library includes methods for performing common tensor operations such as addition, multiplication, matrix multiplication, reshaping, and flattening.
We have also included methods for indexing, slicing, and broadcasting tensors. The library uses a struct to represent tensors, with a Shape field that describes the dimensions of the tensor and a Strides field that determines how the tensor data is stored in memory.
The library also includes methods for getting and setting tensor data, as well as computing the number of elements in a tensor and converting between flattened indices and multidimensional indices.

The library is designed to be flexible and efficient, with the ability to handle tensors of arbitrary shape and size, and includes optimizations such as lazy evaluation and memory reuse.