forward method

Value forward(
  1. ValueVector x
)

Implementation

Value forward(ValueVector x) {
  final matMul = w.dot(x);

  return b == null ? matMul : matMul + b;
}