loadIntoFile static method

void loadIntoFile(
  1. Module module,
  2. String path
)

Read a checkpoint from disk into an existing module.

Implementation

static void loadIntoFile(Module module, String path) {
  final bytes = File(path).readAsBytesSync();
  loadIntoBytes(module, bytes);
}