default_dtype: Gets and sets the default floating point dtype.

torch_set_default_dtypeR Documentation

Gets and sets the default floating point dtype.

Description

Gets and sets the default floating point dtype.

Usage

torch_set_default_dtype(d)

torch_get_default_dtype()

Arguments

d

The default floating point dtype to set. Initially set to torch_float().


torch documentation built on Aug. 19, 2022, 5:08 p.m.