default_dtype function

Gets and sets the default floating point dtype.

Gets and sets the default floating point dtype.

torch_set_default_dtype(d) torch_get_default_dtype()

Arguments

  • d: The default floating point dtype to set. Initially set to torch_float().
  • Maintainer: Daniel Falbel
  • License: MIT + file LICENSE
  • Last published: 2025-02-14