LinearTensorModel constructor

LinearTensorModel({
  1. required Tensor<double> coefficients,
  2. required Tensor<double> constants,
})

Implementation

LinearTensorModel({
  required this.coefficients,
  required this.constants,
}) {
  if (coefficients.tensorShape != constants.tensorShape) {
    throw ArgumentError('Tensor shapes must be equal');
  }
}