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