tensornn.tensor

This file contains the Tensor class for TensorNN. Essentially, it is just a class which does matrix operations for N-dimensional arrays. Currently we extend off of numpy’s ndarray class since it is efficient and has a bunch of useful operations. If needed, we can add additional functionality to our extended class such as new methods.

Classes

Tensor

The tensor class.

class tensornn.tensor.Tensor(*args, **kwargs)

Bases: ndarray

The tensor class. Currently functions like numpy.ndarray but with a custom print.

tmp_str()

Return str(self).