Optional GPU upload precision for the restored parameters
("f32", "f16", or "bf16"). If NULL (default),
the dtype recorded in the file is restored, so a module saved under
ag_dtype("f16") keeps computing in f16 regardless of the loading
session's default. Pass an explicit value to override the file. Files
written before dtypes were recorded fall back to whatever
model_fn builds.
Note that this is an upload/compute precision, not a storage
precision: parameter values always live in $data as full-precision
R numeric matrices (that is what backward needs), and dtype only
controls the precision they are uploaded to the GPU with. Saving therefore
never rounds the weights, whatever dtype is in effect.