predict method

List predict(
  1. List<double> x
)

Implementation

List<dynamic> predict(List<double> x) {
  // 1. Push raw floats to VRAM
  inputRef.pushData(x);

  // 2. Fire only the forward pass
  CudaEngine.run(fTape);

  // 3. Sync the final prediction tensor back to Dart
  outputRef.toCpu();
  return outputRef.value;
}