Torch.Internal.Unmanaged.Type.Generator
newCUDAGenerator :: Word16 -> IO (Ptr Generator) Source #
newCPUGenerator :: Word64 -> IO (Ptr Generator) Source #
generator_set_current_seed :: Ptr Generator -> Word64 -> IO () Source #
generator_current_seed :: Ptr Generator -> IO Word64 Source #
generator_seed :: Ptr Generator -> IO Word64 Source #
generator_clone :: Ptr Generator -> IO (Ptr Generator) Source #
generator_get_device :: Ptr Generator -> IO Int64 Source #
generator_is_cpu :: Ptr Generator -> IO CBool Source #
generator_is_cuda :: Ptr Generator -> IO CBool Source #
generator_is_hip :: Ptr Generator -> IO CBool Source #
getDefaultCUDAGenerator :: Word16 -> IO (Ptr Generator) Source #
getDefaultCPUGenerator :: IO (Ptr Generator) Source #