giagrad.tensor.Function.forward#

abstract Function.forward(*tensors, **kwargs) ndarray | float[source]#

Makes forward pass.

Parameters:
  • *tensors (Tensor) – A variable number of tensors, e.g. two for binary operations such as matmul().

  • **kwargs – Optional arguments if needed.

Returns:

The result of applying that operation to *tensors’s data, i.g. float for reduction operations in some cases or a new ndarray.

Return type:

ndarray or float