Skip to contents

Verifies the package is installed, libtorch is present, and a basic tensor op succeeds. Used to gate the GAN path; a FALSE result triggers the multivariate-normal fallback.

Usage

check_torch_setup()

Value

TRUE if torch is usable, otherwise FALSE.

Examples

check_torch_setup()
#> [1] FALSE