R/zzz.R

#' @title Reflection of supported frameworks
#' @description
#' A reflection of supported frameworks.
#' @export
safetensors_frameworks <- new.env()

safetensors_frameworks[["torch"]] <- list(
  constructor = torch_tensor_from_raw,
  packages = "torch"
)

Try the safetensors package in your browser

Any scripts or data that you put into this service are public.

safetensors documentation built on Aug. 18, 2025, 5:29 p.m.