% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ag_device.R
\name{ag_dtype}
\alias{ag_dtype}
\title{Set the default floating-point precision for ag_* GPU operations}
\usage{
ag_dtype(dtype)
}
\arguments{
\item{dtype}{\code{"f32"} (default), \code{"f16"}, or \code{"bf16"}}
}
\value{
Invisibly the previous dtype string
}
\description{
Controls the dtype used when uploading tensors to the ggml backend.
\code{"bf16"} halves memory usage vs \code{"f32"} with minimal accuracy loss.
Backward pass always uses f32 R matrices regardless of this setting.
}
