{-# LANGUAGE DataKinds #-} {-# LANGUAGE PolyKinds #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE FlexibleInstances #-} module Torch.Internal.Managed.Type.Tensor.Tensor0 where import Foreign.C.String import Foreign.C.Types import Foreign import Torch.Internal.Type import Torch.Internal.Class import Torch.Internal.Cast import Torch.Internal.Objects import qualified Torch.Internal.Unmanaged.Type.Tensor.Tensor0 as Unmanaged newTensor :: IO (ForeignPtr Tensor) newTensor :: IO (ForeignPtr Tensor) newTensor = forall a ca. Castable a ca => IO ca -> IO a _cast0 IO (Ptr Tensor) Unmanaged.newTensor newTensor_t :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) newTensor_t :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) newTensor_t = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.newTensor_t tensor___dispatch_contiguous :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor___dispatch_contiguous :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor___dispatch_contiguous = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor___dispatch_contiguous tensor_backward_tbb :: ForeignPtr Tensor -> ForeignPtr Tensor -> CBool -> CBool -> IO (()) tensor_backward_tbb :: ForeignPtr Tensor -> ForeignPtr Tensor -> CBool -> CBool -> IO () tensor_backward_tbb = forall a ca x1 cx1 x2 cx2 x3 cx3 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3, Castable y cy) => (ca -> cx1 -> cx2 -> cx3 -> IO cy) -> a -> x1 -> x2 -> x3 -> IO y cast4 Ptr Tensor -> Ptr Tensor -> CBool -> CBool -> IO () Unmanaged.tensor_backward_tbb tensor_contiguous :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_contiguous :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_contiguous = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_contiguous tensor_cpu :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_cpu :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_cpu = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_cpu tensor_cuda :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_cuda :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_cuda = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_cuda tensor_data_ptr :: ForeignPtr Tensor -> IO (Ptr ()) tensor_data_ptr :: ForeignPtr Tensor -> IO (Ptr ()) tensor_data_ptr = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO (Ptr ()) Unmanaged.tensor_data_ptr tensor_defined :: ForeignPtr Tensor -> IO (CBool) tensor_defined :: ForeignPtr Tensor -> IO CBool tensor_defined = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CBool Unmanaged.tensor_defined tensor_dim :: ForeignPtr Tensor -> IO (Int64) tensor_dim :: ForeignPtr Tensor -> IO Int64 tensor_dim = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO Int64 Unmanaged.tensor_dim tensor_dim_unsafe :: ForeignPtr Tensor -> IO (Int64) tensor_dim_unsafe :: ForeignPtr Tensor -> IO Int64 tensor_dim_unsafe = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO Int64 Unmanaged.tensor_dim_unsafe tensor_dim_c_unsafe :: ForeignPtr Tensor -> IO (Int64) tensor_dim_c_unsafe :: ForeignPtr Tensor -> IO Int64 tensor_dim_c_unsafe = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO Int64 Unmanaged.tensor_dim_c_unsafe tensor_element_size :: ForeignPtr Tensor -> IO (Int64) tensor_element_size :: ForeignPtr Tensor -> IO Int64 tensor_element_size = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO Int64 Unmanaged.tensor_element_size tensor_get_device :: ForeignPtr Tensor -> IO (Int64) tensor_get_device :: ForeignPtr Tensor -> IO Int64 tensor_get_device = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO Int64 Unmanaged.tensor_get_device tensor_has_names :: ForeignPtr Tensor -> IO (CBool) tensor_has_names :: ForeignPtr Tensor -> IO CBool tensor_has_names = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CBool Unmanaged.tensor_has_names tensor_has_storage :: ForeignPtr Tensor -> IO (CBool) tensor_has_storage :: ForeignPtr Tensor -> IO CBool tensor_has_storage = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CBool Unmanaged.tensor_has_storage tensor_hip :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_hip :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_hip = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_hip tensor_is_alias_of_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (CBool) tensor_is_alias_of_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO CBool tensor_is_alias_of_t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y cast2 Ptr Tensor -> Ptr Tensor -> IO CBool Unmanaged.tensor_is_alias_of_t tensor_is_contiguous :: ForeignPtr Tensor -> IO (CBool) tensor_is_contiguous :: ForeignPtr Tensor -> IO CBool tensor_is_contiguous = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CBool Unmanaged.tensor_is_contiguous tensor_is_cuda :: ForeignPtr Tensor -> IO (CBool) tensor_is_cuda :: ForeignPtr Tensor -> IO CBool tensor_is_cuda = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CBool Unmanaged.tensor_is_cuda tensor_is_hip :: ForeignPtr Tensor -> IO (CBool) tensor_is_hip :: ForeignPtr Tensor -> IO CBool tensor_is_hip = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CBool Unmanaged.tensor_is_hip tensor_is_meta :: ForeignPtr Tensor -> IO (CBool) tensor_is_meta :: ForeignPtr Tensor -> IO CBool tensor_is_meta = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CBool Unmanaged.tensor_is_meta tensor_is_metal :: ForeignPtr Tensor -> IO (CBool) tensor_is_metal :: ForeignPtr Tensor -> IO CBool tensor_is_metal = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CBool Unmanaged.tensor_is_metal tensor_is_mkldnn :: ForeignPtr Tensor -> IO (CBool) tensor_is_mkldnn :: ForeignPtr Tensor -> IO CBool tensor_is_mkldnn = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CBool Unmanaged.tensor_is_mkldnn tensor_is_non_overlapping_and_dense :: ForeignPtr Tensor -> IO (CBool) tensor_is_non_overlapping_and_dense :: ForeignPtr Tensor -> IO CBool tensor_is_non_overlapping_and_dense = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CBool Unmanaged.tensor_is_non_overlapping_and_dense tensor_is_quantized :: ForeignPtr Tensor -> IO (CBool) tensor_is_quantized :: ForeignPtr Tensor -> IO CBool tensor_is_quantized = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CBool Unmanaged.tensor_is_quantized tensor_is_same_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (CBool) tensor_is_same_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO CBool tensor_is_same_t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y cast2 Ptr Tensor -> Ptr Tensor -> IO CBool Unmanaged.tensor_is_same_t tensor_is_sparse :: ForeignPtr Tensor -> IO (CBool) tensor_is_sparse :: ForeignPtr Tensor -> IO CBool tensor_is_sparse = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CBool Unmanaged.tensor_is_sparse tensor_is_vulkan :: ForeignPtr Tensor -> IO (CBool) tensor_is_vulkan :: ForeignPtr Tensor -> IO CBool tensor_is_vulkan = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CBool Unmanaged.tensor_is_vulkan tensor_is_xpu :: ForeignPtr Tensor -> IO (CBool) tensor_is_xpu :: ForeignPtr Tensor -> IO CBool tensor_is_xpu = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CBool Unmanaged.tensor_is_xpu tensor_item_double :: ForeignPtr Tensor -> IO (CDouble) tensor_item_double :: ForeignPtr Tensor -> IO CDouble tensor_item_double = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CDouble Unmanaged.tensor_item_double tensor_item_float :: ForeignPtr Tensor -> IO (CFloat) tensor_item_float :: ForeignPtr Tensor -> IO CFloat tensor_item_float = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CFloat Unmanaged.tensor_item_float tensor_item_int64_t :: ForeignPtr Tensor -> IO (Int64) tensor_item_int64_t :: ForeignPtr Tensor -> IO Int64 tensor_item_int64_t = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO Int64 Unmanaged.tensor_item_int64_t tensor_itemsize :: ForeignPtr Tensor -> IO (CSize) tensor_itemsize :: ForeignPtr Tensor -> IO CSize tensor_itemsize = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CSize Unmanaged.tensor_itemsize tensor_layout :: ForeignPtr Tensor -> IO (Layout) tensor_layout :: ForeignPtr Tensor -> IO MemoryFormat tensor_layout = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO MemoryFormat Unmanaged.tensor_layout tensor_metal :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_metal :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_metal = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_metal tensor_mutable_grad :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_mutable_grad :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_mutable_grad = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_mutable_grad tensor_nbytes :: ForeignPtr Tensor -> IO (CSize) tensor_nbytes :: ForeignPtr Tensor -> IO CSize tensor_nbytes = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CSize Unmanaged.tensor_nbytes tensor_ndimension :: ForeignPtr Tensor -> IO (Int64) tensor_ndimension :: ForeignPtr Tensor -> IO Int64 tensor_ndimension = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO Int64 Unmanaged.tensor_ndimension tensor_numel :: ForeignPtr Tensor -> IO (Int64) tensor_numel :: ForeignPtr Tensor -> IO Int64 tensor_numel = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO Int64 Unmanaged.tensor_numel tensor__imul__s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO (()) tensor__imul__s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO () tensor__imul__s = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y cast2 Ptr Tensor -> Ptr Scalar -> IO () Unmanaged.tensor__imul__s tensor__imul__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (()) tensor__imul__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO () tensor__imul__t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y cast2 Ptr Tensor -> Ptr Tensor -> IO () Unmanaged.tensor__imul__t tensor__iadd__s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO (()) tensor__iadd__s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO () tensor__iadd__s = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y cast2 Ptr Tensor -> Ptr Scalar -> IO () Unmanaged.tensor__iadd__s tensor__iadd__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (()) tensor__iadd__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO () tensor__iadd__t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y cast2 Ptr Tensor -> Ptr Tensor -> IO () Unmanaged.tensor__iadd__t tensor__isub__s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO (()) tensor__isub__s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO () tensor__isub__s = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y cast2 Ptr Tensor -> Ptr Scalar -> IO () Unmanaged.tensor__isub__s tensor__isub__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (()) tensor__isub__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO () tensor__isub__t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y cast2 Ptr Tensor -> Ptr Tensor -> IO () Unmanaged.tensor__isub__t tensor__idiv__s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO (()) tensor__idiv__s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO () tensor__idiv__s = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y cast2 Ptr Tensor -> Ptr Scalar -> IO () Unmanaged.tensor__idiv__s tensor__idiv__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (()) tensor__idiv__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO () tensor__idiv__t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y cast2 Ptr Tensor -> Ptr Tensor -> IO () Unmanaged.tensor__idiv__t tensor__assign__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor__assign__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor__assign__t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y cast2 Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor__assign__t tensor__at__s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor__at__s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor__at__s = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y cast2 Ptr Tensor -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor__at__s tensor__at__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor__at__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor__at__t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y cast2 Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor__at__t tensor__at__l :: ForeignPtr Tensor -> Int64 -> IO (ForeignPtr Tensor) tensor__at__l :: ForeignPtr Tensor -> Int64 -> IO (ForeignPtr Tensor) tensor__at__l = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y cast2 Ptr Tensor -> Int64 -> IO (Ptr Tensor) Unmanaged.tensor__at__l tensor_options :: ForeignPtr Tensor -> IO (ForeignPtr TensorOptions) tensor_options :: ForeignPtr Tensor -> IO (ForeignPtr TensorOptions) tensor_options = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO (Ptr TensorOptions) Unmanaged.tensor_options tensor_print :: ForeignPtr Tensor -> IO (()) tensor_print :: ForeignPtr Tensor -> IO () tensor_print = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO () Unmanaged.tensor_print tensor_requires_grad :: ForeignPtr Tensor -> IO (CBool) tensor_requires_grad :: ForeignPtr Tensor -> IO CBool tensor_requires_grad = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO CBool Unmanaged.tensor_requires_grad tensor_reset :: ForeignPtr Tensor -> IO (()) tensor_reset :: ForeignPtr Tensor -> IO () tensor_reset = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO () Unmanaged.tensor_reset tensor_resize__l :: ForeignPtr Tensor -> ForeignPtr IntArray -> IO (ForeignPtr Tensor) tensor_resize__l :: ForeignPtr Tensor -> ForeignPtr IntArray -> IO (ForeignPtr Tensor) tensor_resize__l = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y cast2 Ptr Tensor -> Ptr IntArray -> IO (Ptr Tensor) Unmanaged.tensor_resize__l tensor_scalar_type :: ForeignPtr Tensor -> IO (ScalarType) tensor_scalar_type :: ForeignPtr Tensor -> IO MemoryFormat tensor_scalar_type = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO MemoryFormat Unmanaged.tensor_scalar_type tensor_set_requires_grad_b :: ForeignPtr Tensor -> CBool -> IO (ForeignPtr Tensor) tensor_set_requires_grad_b :: ForeignPtr Tensor -> CBool -> IO (ForeignPtr Tensor) tensor_set_requires_grad_b = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y cast2 Ptr Tensor -> CBool -> IO (Ptr Tensor) Unmanaged.tensor_set_requires_grad_b tensor_size_l :: ForeignPtr Tensor -> Int64 -> IO (Int64) tensor_size_l :: ForeignPtr Tensor -> Int64 -> IO Int64 tensor_size_l = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y cast2 Ptr Tensor -> Int64 -> IO Int64 Unmanaged.tensor_size_l tensor_sizes :: ForeignPtr Tensor -> IO (ForeignPtr IntArray) tensor_sizes :: ForeignPtr Tensor -> IO (ForeignPtr IntArray) tensor_sizes = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO (Ptr IntArray) Unmanaged.tensor_sizes tensor_storage :: ForeignPtr Tensor -> IO (ForeignPtr Storage) tensor_storage :: ForeignPtr Tensor -> IO (ForeignPtr Storage) tensor_storage = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO (Ptr Storage) Unmanaged.tensor_storage tensor_storage_offset :: ForeignPtr Tensor -> IO (Int64) tensor_storage_offset :: ForeignPtr Tensor -> IO Int64 tensor_storage_offset = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO Int64 Unmanaged.tensor_storage_offset tensor_stride_l :: ForeignPtr Tensor -> Int64 -> IO (Int64) tensor_stride_l :: ForeignPtr Tensor -> Int64 -> IO Int64 tensor_stride_l = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y cast2 Ptr Tensor -> Int64 -> IO Int64 Unmanaged.tensor_stride_l tensor_strides :: ForeignPtr Tensor -> IO (ForeignPtr IntArray) tensor_strides :: ForeignPtr Tensor -> IO (ForeignPtr IntArray) tensor_strides = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y cast1 Ptr Tensor -> IO (Ptr IntArray) Unmanaged.tensor_strides tensor_to_Dsbb :: ForeignPtr Tensor -> DeviceType -> ScalarType -> CBool -> CBool -> IO (ForeignPtr Tensor) tensor_to_Dsbb :: ForeignPtr Tensor -> DeviceType -> MemoryFormat -> CBool -> CBool -> IO (ForeignPtr Tensor) tensor_to_Dsbb = forall a ca x1 cx1 x2 cx2 x3 cx3 x4 cx4 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3, Castable x4 cx4, Castable y cy) => (ca -> cx1 -> cx2 -> cx3 -> cx4 -> IO cy) -> a -> x1 -> x2 -> x3 -> x4 -> IO y _cast5 Ptr Tensor -> DeviceType -> MemoryFormat -> CBool -> CBool -> IO (Ptr Tensor) Unmanaged.tensor_to_Dsbb tensor_to_sbb :: ForeignPtr Tensor -> ScalarType -> CBool -> CBool -> IO (ForeignPtr Tensor) tensor_to_sbb :: ForeignPtr Tensor -> MemoryFormat -> CBool -> CBool -> IO (ForeignPtr Tensor) tensor_to_sbb = forall a ca x1 cx1 x2 cx2 x3 cx3 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3, Castable y cy) => (ca -> cx1 -> cx2 -> cx3 -> IO cy) -> a -> x1 -> x2 -> x3 -> IO y _cast4 Ptr Tensor -> MemoryFormat -> CBool -> CBool -> IO (Ptr Tensor) Unmanaged.tensor_to_sbb tensor_to_tbb :: ForeignPtr Tensor -> ForeignPtr Tensor -> CBool -> CBool -> IO (ForeignPtr Tensor) tensor_to_tbb :: ForeignPtr Tensor -> ForeignPtr Tensor -> CBool -> CBool -> IO (ForeignPtr Tensor) tensor_to_tbb = forall a ca x1 cx1 x2 cx2 x3 cx3 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3, Castable y cy) => (ca -> cx1 -> cx2 -> cx3 -> IO cy) -> a -> x1 -> x2 -> x3 -> IO y _cast4 Ptr Tensor -> Ptr Tensor -> CBool -> CBool -> IO (Ptr Tensor) Unmanaged.tensor_to_tbb tensor_to_obb :: ForeignPtr Tensor -> ForeignPtr TensorOptions -> CBool -> CBool -> IO (ForeignPtr Tensor) tensor_to_obb :: ForeignPtr Tensor -> ForeignPtr TensorOptions -> CBool -> CBool -> IO (ForeignPtr Tensor) tensor_to_obb = forall a ca x1 cx1 x2 cx2 x3 cx3 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3, Castable y cy) => (ca -> cx1 -> cx2 -> cx3 -> IO cy) -> a -> x1 -> x2 -> x3 -> IO y _cast4 Ptr Tensor -> Ptr TensorOptions -> CBool -> CBool -> IO (Ptr Tensor) Unmanaged.tensor_to_obb tensor_toBackend_B :: ForeignPtr Tensor -> Backend -> IO (ForeignPtr Tensor) tensor_toBackend_B :: ForeignPtr Tensor -> Backend -> IO (ForeignPtr Tensor) tensor_toBackend_B = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Backend -> IO (Ptr Tensor) Unmanaged.tensor_toBackend_B tensor_toString :: ForeignPtr Tensor -> IO (ForeignPtr StdString) tensor_toString :: ForeignPtr Tensor -> IO (ForeignPtr StdString) tensor_toString = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr StdString) Unmanaged.tensor_toString tensor_toType_s :: ForeignPtr Tensor -> ScalarType -> IO (ForeignPtr Tensor) tensor_toType_s :: ForeignPtr Tensor -> MemoryFormat -> IO (ForeignPtr Tensor) tensor_toType_s = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> MemoryFormat -> IO (Ptr Tensor) Unmanaged.tensor_toType_s tensor_to_dense :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_to_dense :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_to_dense = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_to_dense tensor_to_mkldnn :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_to_mkldnn :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_to_mkldnn = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_to_mkldnn tensor_use_count :: ForeignPtr Tensor -> IO (CSize) tensor_use_count :: ForeignPtr Tensor -> IO CSize tensor_use_count = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO CSize Unmanaged.tensor_use_count tensor_vulkan :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_vulkan :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_vulkan = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_vulkan tensor_weak_use_count :: ForeignPtr Tensor -> IO (CSize) tensor_weak_use_count :: ForeignPtr Tensor -> IO CSize tensor_weak_use_count = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO CSize Unmanaged.tensor_weak_use_count tensor__backward_ltbb :: ForeignPtr Tensor -> ForeignPtr TensorList -> ForeignPtr Tensor -> CBool -> CBool -> IO (()) tensor__backward_ltbb :: ForeignPtr Tensor -> ForeignPtr TensorList -> ForeignPtr Tensor -> CBool -> CBool -> IO () tensor__backward_ltbb = forall a ca x1 cx1 x2 cx2 x3 cx3 x4 cx4 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3, Castable x4 cx4, Castable y cy) => (ca -> cx1 -> cx2 -> cx3 -> cx4 -> IO cy) -> a -> x1 -> x2 -> x3 -> x4 -> IO y _cast5 Ptr Tensor -> Ptr TensorList -> Ptr Tensor -> CBool -> CBool -> IO () Unmanaged.tensor__backward_ltbb tensor_set_data_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (()) tensor_set_data_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO () tensor_set_data_t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Tensor -> IO () Unmanaged.tensor_set_data_t tensor_data :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_data :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_data = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_data tensor_is_leaf :: ForeignPtr Tensor -> IO (CBool) tensor_is_leaf :: ForeignPtr Tensor -> IO CBool tensor_is_leaf = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO CBool Unmanaged.tensor_is_leaf tensor_output_nr :: ForeignPtr Tensor -> IO (Int64) tensor_output_nr :: ForeignPtr Tensor -> IO Int64 tensor_output_nr = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO Int64 Unmanaged.tensor_output_nr tensor__version :: ForeignPtr Tensor -> IO (Int64) tensor__version :: ForeignPtr Tensor -> IO Int64 tensor__version = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO Int64 Unmanaged.tensor__version tensor_requires_grad__b :: ForeignPtr Tensor -> CBool -> IO (ForeignPtr Tensor) tensor_requires_grad__b :: ForeignPtr Tensor -> CBool -> IO (ForeignPtr Tensor) tensor_requires_grad__b = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> CBool -> IO (Ptr Tensor) Unmanaged.tensor_requires_grad__b tensor_retain_grad :: ForeignPtr Tensor -> IO (()) tensor_retain_grad :: ForeignPtr Tensor -> IO () tensor_retain_grad = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO () Unmanaged.tensor_retain_grad tensor_retains_grad :: ForeignPtr Tensor -> IO (CBool) tensor_retains_grad :: ForeignPtr Tensor -> IO CBool tensor_retains_grad = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO CBool Unmanaged.tensor_retains_grad tensor__fw_primal_l :: ForeignPtr Tensor -> Int64 -> IO (ForeignPtr Tensor) tensor__fw_primal_l :: ForeignPtr Tensor -> Int64 -> IO (ForeignPtr Tensor) tensor__fw_primal_l = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Int64 -> IO (Ptr Tensor) Unmanaged.tensor__fw_primal_l tensor_rename__N :: ForeignPtr Tensor -> ForeignPtr DimnameList -> IO (ForeignPtr Tensor) tensor_rename__N :: ForeignPtr Tensor -> ForeignPtr DimnameList -> IO (ForeignPtr Tensor) tensor_rename__N = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr DimnameList -> IO (Ptr Tensor) Unmanaged.tensor_rename__N tensor_rename_N :: ForeignPtr Tensor -> ForeignPtr DimnameList -> IO (ForeignPtr Tensor) tensor_rename_N :: ForeignPtr Tensor -> ForeignPtr DimnameList -> IO (ForeignPtr Tensor) tensor_rename_N = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr DimnameList -> IO (Ptr Tensor) Unmanaged.tensor_rename_N tensor_align_to_N :: ForeignPtr Tensor -> ForeignPtr DimnameList -> IO (ForeignPtr Tensor) tensor_align_to_N :: ForeignPtr Tensor -> ForeignPtr DimnameList -> IO (ForeignPtr Tensor) tensor_align_to_N = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr DimnameList -> IO (Ptr Tensor) Unmanaged.tensor_align_to_N tensor_align_to_Nl :: ForeignPtr Tensor -> ForeignPtr DimnameList -> Int64 -> IO (ForeignPtr Tensor) tensor_align_to_Nl :: ForeignPtr Tensor -> ForeignPtr DimnameList -> Int64 -> IO (ForeignPtr Tensor) tensor_align_to_Nl = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr DimnameList -> Int64 -> IO (Ptr Tensor) Unmanaged.tensor_align_to_Nl tensor_align_as_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_align_as_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_align_as_t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_align_as_t tensor_refine_names_N :: ForeignPtr Tensor -> ForeignPtr DimnameList -> IO (ForeignPtr Tensor) tensor_refine_names_N :: ForeignPtr Tensor -> ForeignPtr DimnameList -> IO (ForeignPtr Tensor) tensor_refine_names_N = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr DimnameList -> IO (Ptr Tensor) Unmanaged.tensor_refine_names_N tensor_abs :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_abs :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_abs = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_abs tensor_abs_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_abs_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_abs_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_abs_ tensor_absolute :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_absolute :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_absolute = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_absolute tensor_absolute_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_absolute_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_absolute_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_absolute_ tensor_angle :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_angle :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_angle = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_angle tensor_sgn :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_sgn :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_sgn = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_sgn tensor_sgn_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_sgn_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_sgn_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_sgn_ tensor__conj :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor__conj :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor__conj = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor__conj tensor_conj :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_conj :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_conj = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_conj tensor__conj_physical :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor__conj_physical :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor__conj_physical = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor__conj_physical tensor_conj_physical :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_conj_physical :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_conj_physical = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_conj_physical tensor_conj_physical_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_conj_physical_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_conj_physical_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_conj_physical_ tensor_resolve_conj :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_resolve_conj :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_resolve_conj = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_resolve_conj tensor_resolve_neg :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_resolve_neg :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_resolve_neg = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_resolve_neg tensor__neg_view :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor__neg_view :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor__neg_view = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor__neg_view tensor_acos :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_acos :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_acos = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_acos tensor_acos_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_acos_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_acos_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_acos_ tensor_arccos :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arccos :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arccos = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_arccos tensor_arccos_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arccos_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arccos_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_arccos_ tensor_add_ts :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_add_ts :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_add_ts = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr Tensor -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_add_ts tensor_add__ts :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_add__ts :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_add__ts = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr Tensor -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_add__ts tensor_add_ss :: ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_add_ss :: ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_add_ss = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr Scalar -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_add_ss tensor_add__ss :: ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_add__ss :: ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_add__ss = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr Scalar -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_add__ss tensor_addmv_ttss :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_addmv_ttss :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_addmv_ttss = forall a ca x1 cx1 x2 cx2 x3 cx3 x4 cx4 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3, Castable x4 cx4, Castable y cy) => (ca -> cx1 -> cx2 -> cx3 -> cx4 -> IO cy) -> a -> x1 -> x2 -> x3 -> x4 -> IO y _cast5 Ptr Tensor -> Ptr Tensor -> Ptr Tensor -> Ptr Scalar -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_addmv_ttss tensor_addmv__ttss :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_addmv__ttss :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_addmv__ttss = forall a ca x1 cx1 x2 cx2 x3 cx3 x4 cx4 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3, Castable x4 cx4, Castable y cy) => (ca -> cx1 -> cx2 -> cx3 -> cx4 -> IO cy) -> a -> x1 -> x2 -> x3 -> x4 -> IO y _cast5 Ptr Tensor -> Ptr Tensor -> Ptr Tensor -> Ptr Scalar -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_addmv__ttss tensor_addr_ttss :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_addr_ttss :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_addr_ttss = forall a ca x1 cx1 x2 cx2 x3 cx3 x4 cx4 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3, Castable x4 cx4, Castable y cy) => (ca -> cx1 -> cx2 -> cx3 -> cx4 -> IO cy) -> a -> x1 -> x2 -> x3 -> x4 -> IO y _cast5 Ptr Tensor -> Ptr Tensor -> Ptr Tensor -> Ptr Scalar -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_addr_ttss tensor_addr__ttss :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_addr__ttss :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_addr__ttss = forall a ca x1 cx1 x2 cx2 x3 cx3 x4 cx4 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3, Castable x4 cx4, Castable y cy) => (ca -> cx1 -> cx2 -> cx3 -> cx4 -> IO cy) -> a -> x1 -> x2 -> x3 -> x4 -> IO y _cast5 Ptr Tensor -> Ptr Tensor -> Ptr Tensor -> Ptr Scalar -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_addr__ttss tensor_all_lb :: ForeignPtr Tensor -> Int64 -> CBool -> IO (ForeignPtr Tensor) tensor_all_lb :: ForeignPtr Tensor -> Int64 -> CBool -> IO (ForeignPtr Tensor) tensor_all_lb = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Int64 -> CBool -> IO (Ptr Tensor) Unmanaged.tensor_all_lb tensor_all_nb :: ForeignPtr Tensor -> ForeignPtr Dimname -> CBool -> IO (ForeignPtr Tensor) tensor_all_nb :: ForeignPtr Tensor -> ForeignPtr Dimname -> CBool -> IO (ForeignPtr Tensor) tensor_all_nb = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr Dimname -> CBool -> IO (Ptr Tensor) Unmanaged.tensor_all_nb tensor_allclose_tddb :: ForeignPtr Tensor -> ForeignPtr Tensor -> CDouble -> CDouble -> CBool -> IO (CBool) tensor_allclose_tddb :: ForeignPtr Tensor -> ForeignPtr Tensor -> CDouble -> CDouble -> CBool -> IO CBool tensor_allclose_tddb = forall a ca x1 cx1 x2 cx2 x3 cx3 x4 cx4 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3, Castable x4 cx4, Castable y cy) => (ca -> cx1 -> cx2 -> cx3 -> cx4 -> IO cy) -> a -> x1 -> x2 -> x3 -> x4 -> IO y _cast5 Ptr Tensor -> Ptr Tensor -> CDouble -> CDouble -> CBool -> IO CBool Unmanaged.tensor_allclose_tddb tensor_any_lb :: ForeignPtr Tensor -> Int64 -> CBool -> IO (ForeignPtr Tensor) tensor_any_lb :: ForeignPtr Tensor -> Int64 -> CBool -> IO (ForeignPtr Tensor) tensor_any_lb = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Int64 -> CBool -> IO (Ptr Tensor) Unmanaged.tensor_any_lb tensor_any_nb :: ForeignPtr Tensor -> ForeignPtr Dimname -> CBool -> IO (ForeignPtr Tensor) tensor_any_nb :: ForeignPtr Tensor -> ForeignPtr Dimname -> CBool -> IO (ForeignPtr Tensor) tensor_any_nb = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr Dimname -> CBool -> IO (Ptr Tensor) Unmanaged.tensor_any_nb tensor_argmax_lb :: ForeignPtr Tensor -> Int64 -> CBool -> IO (ForeignPtr Tensor) tensor_argmax_lb :: ForeignPtr Tensor -> Int64 -> CBool -> IO (ForeignPtr Tensor) tensor_argmax_lb = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Int64 -> CBool -> IO (Ptr Tensor) Unmanaged.tensor_argmax_lb tensor_argmin_lb :: ForeignPtr Tensor -> Int64 -> CBool -> IO (ForeignPtr Tensor) tensor_argmin_lb :: ForeignPtr Tensor -> Int64 -> CBool -> IO (ForeignPtr Tensor) tensor_argmin_lb = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Int64 -> CBool -> IO (Ptr Tensor) Unmanaged.tensor_argmin_lb tensor_acosh :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_acosh :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_acosh = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_acosh tensor_acosh_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_acosh_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_acosh_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_acosh_ tensor_arccosh :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arccosh :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arccosh = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_arccosh tensor_arccosh_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arccosh_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arccosh_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_arccosh_ tensor_asinh :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_asinh :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_asinh = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_asinh tensor_asinh_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_asinh_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_asinh_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_asinh_ tensor_arcsinh :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arcsinh :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arcsinh = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_arcsinh tensor_arcsinh_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arcsinh_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arcsinh_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_arcsinh_ tensor_atanh :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_atanh :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_atanh = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_atanh tensor_atanh_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_atanh_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_atanh_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_atanh_ tensor_arctanh :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arctanh :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arctanh = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_arctanh tensor_arctanh_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arctanh_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arctanh_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_arctanh_ tensor_as_strided_lll :: ForeignPtr Tensor -> ForeignPtr IntArray -> ForeignPtr IntArray -> Int64 -> IO (ForeignPtr Tensor) tensor_as_strided_lll :: ForeignPtr Tensor -> ForeignPtr IntArray -> ForeignPtr IntArray -> Int64 -> IO (ForeignPtr Tensor) tensor_as_strided_lll = forall a ca x1 cx1 x2 cx2 x3 cx3 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3, Castable y cy) => (ca -> cx1 -> cx2 -> cx3 -> IO cy) -> a -> x1 -> x2 -> x3 -> IO y _cast4 Ptr Tensor -> Ptr IntArray -> Ptr IntArray -> Int64 -> IO (Ptr Tensor) Unmanaged.tensor_as_strided_lll tensor_as_strided__lll :: ForeignPtr Tensor -> ForeignPtr IntArray -> ForeignPtr IntArray -> Int64 -> IO (ForeignPtr Tensor) tensor_as_strided__lll :: ForeignPtr Tensor -> ForeignPtr IntArray -> ForeignPtr IntArray -> Int64 -> IO (ForeignPtr Tensor) tensor_as_strided__lll = forall a ca x1 cx1 x2 cx2 x3 cx3 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3, Castable y cy) => (ca -> cx1 -> cx2 -> cx3 -> IO cy) -> a -> x1 -> x2 -> x3 -> IO y _cast4 Ptr Tensor -> Ptr IntArray -> Ptr IntArray -> Int64 -> IO (Ptr Tensor) Unmanaged.tensor_as_strided__lll tensor_asin :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_asin :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_asin = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_asin tensor_asin_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_asin_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_asin_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_asin_ tensor_arcsin :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arcsin :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arcsin = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_arcsin tensor_arcsin_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arcsin_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arcsin_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_arcsin_ tensor_atan :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_atan :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_atan = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_atan tensor_atan_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_atan_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_atan_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_atan_ tensor_arctan :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arctan :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arctan = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_arctan tensor_arctan_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arctan_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_arctan_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_arctan_ tensor_baddbmm_ttss :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_baddbmm_ttss :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_baddbmm_ttss = forall a ca x1 cx1 x2 cx2 x3 cx3 x4 cx4 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3, Castable x4 cx4, Castable y cy) => (ca -> cx1 -> cx2 -> cx3 -> cx4 -> IO cy) -> a -> x1 -> x2 -> x3 -> x4 -> IO y _cast5 Ptr Tensor -> Ptr Tensor -> Ptr Tensor -> Ptr Scalar -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_baddbmm_ttss tensor_baddbmm__ttss :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_baddbmm__ttss :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_baddbmm__ttss = forall a ca x1 cx1 x2 cx2 x3 cx3 x4 cx4 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3, Castable x4 cx4, Castable y cy) => (ca -> cx1 -> cx2 -> cx3 -> cx4 -> IO cy) -> a -> x1 -> x2 -> x3 -> x4 -> IO y _cast5 Ptr Tensor -> Ptr Tensor -> Ptr Tensor -> Ptr Scalar -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_baddbmm__ttss tensor_bernoulli_G :: ForeignPtr Tensor -> ForeignPtr Generator -> IO (ForeignPtr Tensor) tensor_bernoulli_G :: ForeignPtr Tensor -> ForeignPtr Generator -> IO (ForeignPtr Tensor) tensor_bernoulli_G = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Generator -> IO (Ptr Tensor) Unmanaged.tensor_bernoulli_G tensor_bernoulli__tG :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Generator -> IO (ForeignPtr Tensor) tensor_bernoulli__tG :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Generator -> IO (ForeignPtr Tensor) tensor_bernoulli__tG = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr Tensor -> Ptr Generator -> IO (Ptr Tensor) Unmanaged.tensor_bernoulli__tG tensor_bernoulli__dG :: ForeignPtr Tensor -> CDouble -> ForeignPtr Generator -> IO (ForeignPtr Tensor) tensor_bernoulli__dG :: ForeignPtr Tensor -> CDouble -> ForeignPtr Generator -> IO (ForeignPtr Tensor) tensor_bernoulli__dG = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> CDouble -> Ptr Generator -> IO (Ptr Tensor) Unmanaged.tensor_bernoulli__dG tensor_bernoulli_dG :: ForeignPtr Tensor -> CDouble -> ForeignPtr Generator -> IO (ForeignPtr Tensor) tensor_bernoulli_dG :: ForeignPtr Tensor -> CDouble -> ForeignPtr Generator -> IO (ForeignPtr Tensor) tensor_bernoulli_dG = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> CDouble -> Ptr Generator -> IO (Ptr Tensor) Unmanaged.tensor_bernoulli_dG tensor_bincount_tl :: ForeignPtr Tensor -> ForeignPtr Tensor -> Int64 -> IO (ForeignPtr Tensor) tensor_bincount_tl :: ForeignPtr Tensor -> ForeignPtr Tensor -> Int64 -> IO (ForeignPtr Tensor) tensor_bincount_tl = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr Tensor -> Int64 -> IO (Ptr Tensor) Unmanaged.tensor_bincount_tl tensor_bitwise_not :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_bitwise_not :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_bitwise_not = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_bitwise_not tensor_bitwise_not_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_bitwise_not_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_bitwise_not_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_bitwise_not_ tensor_copysign_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_copysign_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_copysign_t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_copysign_t tensor_copysign__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_copysign__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_copysign__t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_copysign__t tensor_copysign_s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_copysign_s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_copysign_s = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_copysign_s tensor_copysign__s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_copysign__s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_copysign__s = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_copysign__s tensor_logical_not :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_logical_not :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_logical_not = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_logical_not tensor_logical_not_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_logical_not_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_logical_not_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_logical_not_ tensor_logical_xor_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_logical_xor_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_logical_xor_t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_logical_xor_t tensor_logical_xor__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_logical_xor__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_logical_xor__t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_logical_xor__t tensor_logical_and_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_logical_and_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_logical_and_t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_logical_and_t tensor_logical_and__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_logical_and__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_logical_and__t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_logical_and__t tensor_logical_or_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_logical_or_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_logical_or_t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_logical_or_t tensor_logical_or__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_logical_or__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_logical_or__t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_logical_or__t tensor_bmm_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_bmm_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_bmm_t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_bmm_t tensor_broadcast_to_l :: ForeignPtr Tensor -> ForeignPtr IntArray -> IO (ForeignPtr Tensor) tensor_broadcast_to_l :: ForeignPtr Tensor -> ForeignPtr IntArray -> IO (ForeignPtr Tensor) tensor_broadcast_to_l = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr IntArray -> IO (Ptr Tensor) Unmanaged.tensor_broadcast_to_l tensor_ceil :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_ceil :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_ceil = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_ceil tensor_ceil_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_ceil_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_ceil_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_ceil_ tensor_unsafe_chunk_ll :: ForeignPtr Tensor -> Int64 -> Int64 -> IO (ForeignPtr TensorList) tensor_unsafe_chunk_ll :: ForeignPtr Tensor -> Int64 -> Int64 -> IO (ForeignPtr TensorList) tensor_unsafe_chunk_ll = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Int64 -> Int64 -> IO (Ptr TensorList) Unmanaged.tensor_unsafe_chunk_ll tensor_chunk_ll :: ForeignPtr Tensor -> Int64 -> Int64 -> IO (ForeignPtr TensorList) tensor_chunk_ll :: ForeignPtr Tensor -> Int64 -> Int64 -> IO (ForeignPtr TensorList) tensor_chunk_ll = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Int64 -> Int64 -> IO (Ptr TensorList) Unmanaged.tensor_chunk_ll tensor_tensor_split_tl :: ForeignPtr Tensor -> ForeignPtr Tensor -> Int64 -> IO (ForeignPtr TensorList) tensor_tensor_split_tl :: ForeignPtr Tensor -> ForeignPtr Tensor -> Int64 -> IO (ForeignPtr TensorList) tensor_tensor_split_tl = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr Tensor -> Int64 -> IO (Ptr TensorList) Unmanaged.tensor_tensor_split_tl tensor_clamp_ss :: ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_clamp_ss :: ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_clamp_ss = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr Scalar -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_clamp_ss tensor_clamp_tt :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_clamp_tt :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_clamp_tt = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_clamp_tt tensor_clamp__ss :: ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_clamp__ss :: ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_clamp__ss = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr Scalar -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_clamp__ss tensor_clamp__tt :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_clamp__tt :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_clamp__tt = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_clamp__tt tensor_clamp_max_s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_clamp_max_s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_clamp_max_s = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_clamp_max_s tensor_clamp_max_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_clamp_max_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_clamp_max_t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_clamp_max_t tensor_clamp_max__s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_clamp_max__s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_clamp_max__s = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_clamp_max__s tensor_clamp_max__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_clamp_max__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_clamp_max__t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_clamp_max__t tensor_clamp_min_s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_clamp_min_s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_clamp_min_s = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_clamp_min_s tensor_clamp_min_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_clamp_min_t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_clamp_min_t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_clamp_min_t tensor_clamp_min__s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_clamp_min__s :: ForeignPtr Tensor -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_clamp_min__s = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_clamp_min__s tensor_clamp_min__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_clamp_min__t :: ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_clamp_min__t = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_clamp_min__t tensor_clip_ss :: ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_clip_ss :: ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_clip_ss = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr Scalar -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_clip_ss tensor_clip_tt :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_clip_tt :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_clip_tt = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_clip_tt tensor_clip__ss :: ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_clip__ss :: ForeignPtr Tensor -> ForeignPtr Scalar -> ForeignPtr Scalar -> IO (ForeignPtr Tensor) tensor_clip__ss = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr Scalar -> Ptr Scalar -> IO (Ptr Tensor) Unmanaged.tensor_clip__ss tensor_clip__tt :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_clip__tt :: ForeignPtr Tensor -> ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_clip__tt = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_clip__tt tensor_contiguous_M :: ForeignPtr Tensor -> MemoryFormat -> IO (ForeignPtr Tensor) tensor_contiguous_M :: ForeignPtr Tensor -> MemoryFormat -> IO (ForeignPtr Tensor) tensor_contiguous_M = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> MemoryFormat -> IO (Ptr Tensor) Unmanaged.tensor_contiguous_M tensor_copy__tb :: ForeignPtr Tensor -> ForeignPtr Tensor -> CBool -> IO (ForeignPtr Tensor) tensor_copy__tb :: ForeignPtr Tensor -> ForeignPtr Tensor -> CBool -> IO (ForeignPtr Tensor) tensor_copy__tb = forall a ca x1 cx1 x2 cx2 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable y cy) => (ca -> cx1 -> cx2 -> IO cy) -> a -> x1 -> x2 -> IO y _cast3 Ptr Tensor -> Ptr Tensor -> CBool -> IO (Ptr Tensor) Unmanaged.tensor_copy__tb tensor_cos :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_cos :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_cos = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_cos tensor_cos_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_cos_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_cos_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_cos_ tensor_cosh :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_cosh :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_cosh = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_cosh tensor_cosh_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_cosh_ :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_cosh_ = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_cosh_ tensor_cov_ltt :: ForeignPtr Tensor -> Int64 -> ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_cov_ltt :: ForeignPtr Tensor -> Int64 -> ForeignPtr Tensor -> ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_cov_ltt = forall a ca x1 cx1 x2 cx2 x3 cx3 y cy. (Castable a ca, Castable x1 cx1, Castable x2 cx2, Castable x3 cx3, Castable y cy) => (ca -> cx1 -> cx2 -> cx3 -> IO cy) -> a -> x1 -> x2 -> x3 -> IO y _cast4 Ptr Tensor -> Int64 -> Ptr Tensor -> Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_cov_ltt tensor_corrcoef :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_corrcoef :: ForeignPtr Tensor -> IO (ForeignPtr Tensor) tensor_corrcoef = forall a ca y cy. (Castable a ca, Castable y cy) => (ca -> IO cy) -> a -> IO y _cast1 Ptr Tensor -> IO (Ptr Tensor) Unmanaged.tensor_corrcoef tensor_cummax_l :: ForeignPtr Tensor -> Int64 -> IO (ForeignPtr (StdTuple '(Tensor,Tensor))) tensor_cummax_l :: ForeignPtr Tensor -> Int64 -> IO (ForeignPtr (StdTuple '(Tensor, Tensor))) tensor_cummax_l = forall a ca x1 cx1 y cy. (Castable a ca, Castable x1 cx1, Castable y cy) => (ca -> cx1 -> IO cy) -> a -> x1 -> IO y _cast2 Ptr Tensor -> Int64 -> IO (Ptr (StdTuple '(Tensor, Tensor))) Unmanaged.tensor_cummax_l