Tensor constructor

Tensor(
  1. List<int> shape,
  2. List<double> data
)

Implementation

Tensor(
  this.shape,
  List<double> data,
  //   {
  //   required this.rows,
  //   required this.cols,
  // }
) {
  this.data = Float32List.fromList(data);
  grad = Float32List(this.data.length);
}