R/quantization.R

#' @include tensor.R

Tensor$set("public", "is_quantized", function() {
  cpp_Tensor_is_quantized(self$ptr)
})

Try the torch package in your browser

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

torch documentation built on May 29, 2024, 9:54 a.m.