text stringlengths 12 786k |
|---|
let atan self = let out__ = CArray . make t 1 in stubs_atan ( CArray . start out__ ) self ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let atan2 self other = let out__ = CArray . make t 1 in stubs_atan2 ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let atan2_ self other = let out__ = CArray . make t 1 in stubs_atan2_ ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let atan2_out ~ out self other = let out__ = CArray . make t 1 in stubs_atan2_out ( CArray . start out__ ) out self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let atan_ self = let out__ = CArray . make t 1 in stubs_atan_ ( CArray . start out__ ) self ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let atan_out ~ out self = let out__ = CArray . make t 1 in stubs_atan_out ( CArray . start out__ ) out self ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let atanh self = let out__ = CArray . make t 1 in stubs_atanh ( CArray . start out__ ) self ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let atanh_ self = let out__ = CArray . make t 1 in stubs_atanh_ ( CArray . start out__ ) self ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let atanh_out ~ out self = let out__ = CArray . make t 1 in stubs_atanh_out ( CArray . start out__ ) out self ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let atleast_1d self = let out__ = CArray . make t 1 in stubs_atleast_1d ( CArray . start out__ ) self ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let atleast_1d_sequence tensors = stubs_atleast_1d_sequence ( CArray . of_list t tensors |> CArray . start ) ( List . length tensors ) |> to_tensor_list |
let atleast_2d self = let out__ = CArray . make t 1 in stubs_atleast_2d ( CArray . start out__ ) self ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let atleast_2d_sequence tensors = stubs_atleast_2d_sequence ( CArray . of_list t tensors |> CArray . start ) ( List . length tensors ) |> to_tensor_list |
let atleast_3d self = let out__ = CArray . make t 1 in stubs_atleast_3d ( CArray . start out__ ) self ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let atleast_3d_sequence tensors = stubs_atleast_3d_sequence ( CArray . of_list t tensors |> CArray . start ) ( List . length tensors ) |> to_tensor_list |
let avg_pool1d self ~ kernel_size ~ stride ~ padding ~ ceil_mode ~ count_include_pad = let out__ = CArray . make t 1 in stubs_avg_pool1d ( CArray . start out__ ) self ( List . map Int64 . of_int kernel_size |> CArray . of_list int64_t |> CArray . start ) ( List . length kernel_size ) ( List . map Int64 . of_int stride |> CArray . of_list int64_t |> CArray . start ) ( List . length stride ) ( List . map Int64 . of_int padding |> CArray . of_list int64_t |> CArray . start ) ( List . length padding ) ( if ceil_mode then 1 else 0 ) ( if count_include_pad then 1 else 0 ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let avg_pool2d self ~ kernel_size ~ stride ~ padding ~ ceil_mode ~ count_include_pad ~ divisor_override = let out__ = CArray . make t 1 in stubs_avg_pool2d ( CArray . start out__ ) self ( List . map Int64 . of_int kernel_size |> CArray . of_list int64_t |> CArray . start ) ( List . length kernel_size ) ( List . map Int64 . of_int stride |> CArray . of_list int64_t |> CArray . start ) ( List . length stride ) ( List . map Int64 . of_int padding |> CArray . of_list int64_t |> CArray . start ) ( List . length padding ) ( if ceil_mode then 1 else 0 ) ( if count_include_pad then 1 else 0 ) ( Int64 . of_int divisor_override ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let avg_pool2d_backward ~ grad_output self ~ kernel_size ~ stride ~ padding ~ ceil_mode ~ count_include_pad ~ divisor_override = let out__ = CArray . make t 1 in stubs_avg_pool2d_backward ( CArray . start out__ ) grad_output self ( List . map Int64 . of_int kernel_size |> CArray . of_list int64_t |> CArray . start ) ( List . length kernel_size ) ( List . map Int64 . of_int stride |> CArray . of_list int64_t |> CArray . start ) ( List . length stride ) ( List . map Int64 . of_int padding |> CArray . of_list int64_t |> CArray . start ) ( List . length padding ) ( if ceil_mode then 1 else 0 ) ( if count_include_pad then 1 else 0 ) ( Int64 . of_int divisor_override ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let avg_pool2d_backward_grad_input ~ grad_input ~ grad_output self ~ kernel_size ~ stride ~ padding ~ ceil_mode ~ count_include_pad ~ divisor_override = let out__ = CArray . make t 1 in stubs_avg_pool2d_backward_grad_input ( CArray . start out__ ) grad_input grad_output self ( List . map Int64 . of_int kernel_size |> CArray . of_list int64_t |> CArray . start ) ( List . length kernel_size ) ( List . map Int64 . of_int stride |> CArray . of_list int64_t |> CArray . start ) ( List . length stride ) ( List . map Int64 . of_int padding |> CArray . of_list int64_t |> CArray . start ) ( List . length padding ) ( if ceil_mode then 1 else 0 ) ( if count_include_pad then 1 else 0 ) ( Int64 . of_int divisor_override ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let avg_pool2d_out ~ out self ~ kernel_size ~ stride ~ padding ~ ceil_mode ~ count_include_pad ~ divisor_override = let out__ = CArray . make t 1 in stubs_avg_pool2d_out ( CArray . start out__ ) out self ( List . map Int64 . of_int kernel_size |> CArray . of_list int64_t |> CArray . start ) ( List . length kernel_size ) ( List . map Int64 . of_int stride |> CArray . of_list int64_t |> CArray . start ) ( List . length stride ) ( List . map Int64 . of_int padding |> CArray . of_list int64_t |> CArray . start ) ( List . length padding ) ( if ceil_mode then 1 else 0 ) ( if count_include_pad then 1 else 0 ) ( Int64 . of_int divisor_override ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let avg_pool3d self ~ kernel_size ~ stride ~ padding ~ ceil_mode ~ count_include_pad ~ divisor_override = let out__ = CArray . make t 1 in stubs_avg_pool3d ( CArray . start out__ ) self ( List . map Int64 . of_int kernel_size |> CArray . of_list int64_t |> CArray . start ) ( List . length kernel_size ) ( List . map Int64 . of_int stride |> CArray . of_list int64_t |> CArray . start ) ( List . length stride ) ( List . map Int64 . of_int padding |> CArray . of_list int64_t |> CArray . start ) ( List . length padding ) ( if ceil_mode then 1 else 0 ) ( if count_include_pad then 1 else 0 ) ( Int64 . of_int divisor_override ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let avg_pool3d_backward ~ grad_output self ~ kernel_size ~ stride ~ padding ~ ceil_mode ~ count_include_pad ~ divisor_override = let out__ = CArray . make t 1 in stubs_avg_pool3d_backward ( CArray . start out__ ) grad_output self ( List . map Int64 . of_int kernel_size |> CArray . of_list int64_t |> CArray . start ) ( List . length kernel_size ) ( List . map Int64 . of_int stride |> CArray . of_list int64_t |> CArray . start ) ( List . length stride ) ( List . map Int64 . of_int padding |> CArray . of_list int64_t |> CArray . start ) ( List . length padding ) ( if ceil_mode then 1 else 0 ) ( if count_include_pad then 1 else 0 ) ( Int64 . of_int divisor_override ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let avg_pool3d_backward_grad_input ~ grad_input ~ grad_output self ~ kernel_size ~ stride ~ padding ~ ceil_mode ~ count_include_pad ~ divisor_override = let out__ = CArray . make t 1 in stubs_avg_pool3d_backward_grad_input ( CArray . start out__ ) grad_input grad_output self ( List . map Int64 . of_int kernel_size |> CArray . of_list int64_t |> CArray . start ) ( List . length kernel_size ) ( List . map Int64 . of_int stride |> CArray . of_list int64_t |> CArray . start ) ( List . length stride ) ( List . map Int64 . of_int padding |> CArray . of_list int64_t |> CArray . start ) ( List . length padding ) ( if ceil_mode then 1 else 0 ) ( if count_include_pad then 1 else 0 ) ( Int64 . of_int divisor_override ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let avg_pool3d_out ~ out self ~ kernel_size ~ stride ~ padding ~ ceil_mode ~ count_include_pad ~ divisor_override = let out__ = CArray . make t 1 in stubs_avg_pool3d_out ( CArray . start out__ ) out self ( List . map Int64 . of_int kernel_size |> CArray . of_list int64_t |> CArray . start ) ( List . length kernel_size ) ( List . map Int64 . of_int stride |> CArray . of_list int64_t |> CArray . start ) ( List . length stride ) ( List . map Int64 . of_int padding |> CArray . of_list int64_t |> CArray . start ) ( List . length padding ) ( if ceil_mode then 1 else 0 ) ( if count_include_pad then 1 else 0 ) ( Int64 . of_int divisor_override ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let baddbmm self ~ batch1 ~ batch2 = let out__ = CArray . make t 1 in stubs_baddbmm ( CArray . start out__ ) self batch1 batch2 ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let baddbmm_ self ~ batch1 ~ batch2 = let out__ = CArray . make t 1 in stubs_baddbmm_ ( CArray . start out__ ) self batch1 batch2 ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let baddbmm_out ~ out self ~ batch1 ~ batch2 = let out__ = CArray . make t 1 in stubs_baddbmm_out ( CArray . start out__ ) out self batch1 batch2 ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bartlett_window ~ window_length ~ options = let out__ = CArray . make t 1 in stubs_bartlett_window ( CArray . start out__ ) ( Int64 . of_int window_length ) ( Kind . packed_to_int ( fst options ) ) ( Device . to_int ( snd options ) ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bartlett_window_periodic ~ window_length ~ periodic ~ options = let out__ = CArray . make t 1 in stubs_bartlett_window_periodic ( CArray . start out__ ) ( Int64 . of_int window_length ) ( if periodic then 1 else 0 ) ( Kind . packed_to_int ( fst options ) ) ( Device . to_int ( snd options ) ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let batch_norm input ~ weight ~ bias ~ running_mean ~ running_var ~ training ~ momentum ~ eps ~ cudnn_enabled = let out__ = CArray . make t 1 in stubs_batch_norm ( CArray . start out__ ) input ( match weight with | Some v -> v | None -> null ) ( match bias with | Some v -> v | None -> null ) ( match running_mean with | Some v -> v | None -> null ) ( match running_var with | Some v -> v | None -> null ) ( if training then 1 else 0 ) momentum eps ( if cudnn_enabled then 1 else 0 ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let batch_norm_backward_elemt ~ grad_out input ~ mean ~ invstd ~ weight ~ mean_dy ~ mean_dy_xmu ~ count = let out__ = CArray . make t 1 in stubs_batch_norm_backward_elemt ( CArray . start out__ ) grad_out input mean invstd ( match weight with | Some v -> v | None -> null ) mean_dy mean_dy_xmu count ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let batch_norm_backward_reduce ~ grad_out input ~ mean ~ invstd ~ weight ~ input_g ~ weight_g ~ bias_g = let out__ = CArray . make t 4 in stubs_batch_norm_backward_reduce ( CArray . start out__ ) grad_out input mean invstd ( match weight with | Some v -> v | None -> null ) ( if input_g then 1 else 0 ) ( if weight_g then 1 else 0 ) ( if bias_g then 1 else 0 ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; let t1 = CArray . get out__ 1 in Gc . finalise C . Tensor . free t1 ; let t2 = CArray . get out__ 2 in Gc . finalise C . Tensor . free t2 ; let t3 = CArray . get out__ 3 in Gc . finalise C . Tensor . free t3 ; t0 , t1 , t2 , t3 |
let batch_norm_elemt input ~ weight ~ bias ~ mean ~ invstd ~ eps = let out__ = CArray . make t 1 in stubs_batch_norm_elemt ( CArray . start out__ ) input ( match weight with | Some v -> v | None -> null ) ( match bias with | Some v -> v | None -> null ) mean invstd eps ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let batch_norm_elemt_out ~ out input ~ weight ~ bias ~ mean ~ invstd ~ eps = let out__ = CArray . make t 1 in stubs_batch_norm_elemt_out ( CArray . start out__ ) out input ( match weight with | Some v -> v | None -> null ) ( match bias with | Some v -> v | None -> null ) mean invstd eps ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let batch_norm_gather_stats input ~ mean ~ invstd ~ running_mean ~ running_var ~ momentum ~ eps ~ count = let out__ = CArray . make t 2 in stubs_batch_norm_gather_stats ( CArray . start out__ ) input mean invstd ( match running_mean with | Some v -> v | None -> null ) ( match running_var with | Some v -> v | None -> null ) momentum eps ( Int64 . of_int count ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; let t1 = CArray . get out__ 1 in Gc . finalise C . Tensor . free t1 ; t0 , t1 |
let batch_norm_gather_stats_with_counts input ~ mean ~ invstd ~ running_mean ~ running_var ~ momentum ~ eps ~ counts = let out__ = CArray . make t 2 in stubs_batch_norm_gather_stats_with_counts ( CArray . start out__ ) input mean invstd ( match running_mean with | Some v -> v | None -> null ) ( match running_var with | Some v -> v | None -> null ) momentum eps counts ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; let t1 = CArray . get out__ 1 in Gc . finalise C . Tensor . free t1 ; t0 , t1 |
let batch_norm_stats input ~ eps = let out__ = CArray . make t 2 in stubs_batch_norm_stats ( CArray . start out__ ) input eps ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; let t1 = CArray . get out__ 1 in Gc . finalise C . Tensor . free t1 ; t0 , t1 |
let batch_norm_update_stats input ~ running_mean ~ running_var ~ momentum = let out__ = CArray . make t 2 in stubs_batch_norm_update_stats ( CArray . start out__ ) input ( match running_mean with | Some v -> v | None -> null ) ( match running_var with | Some v -> v | None -> null ) momentum ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; let t1 = CArray . get out__ 1 in Gc . finalise C . Tensor . free t1 ; t0 , t1 |
let bernoulli self = let out__ = CArray . make t 1 in stubs_bernoulli ( CArray . start out__ ) self ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bernoulli_ self ~ p = let out__ = CArray . make t 1 in stubs_bernoulli_ ( CArray . start out__ ) self p ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bernoulli_float_ self ~ p = let out__ = CArray . make t 1 in stubs_bernoulli_float_ ( CArray . start out__ ) self p ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bernoulli_out ~ out self = let out__ = CArray . make t 1 in stubs_bernoulli_out ( CArray . start out__ ) out self ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bernoulli_p self ~ p = let out__ = CArray . make t 1 in stubs_bernoulli_p ( CArray . start out__ ) self p ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bilinear ~ input1 ~ input2 ~ weight ~ bias = let out__ = CArray . make t 1 in stubs_bilinear ( CArray . start out__ ) input1 input2 weight ( match bias with | Some v -> v | None -> null ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let binary_cross_entropy self ~ target ~ weight ~ reduction = let out__ = CArray . make t 1 in stubs_binary_cross_entropy ( CArray . start out__ ) self target ( match weight with | Some v -> v | None -> null ) ( Reduction . to_int reduction |> Int64 . of_int ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let binary_cross_entropy_backward ~ grad_output self ~ target ~ weight ~ reduction = let out__ = CArray . make t 1 in stubs_binary_cross_entropy_backward ( CArray . start out__ ) grad_output self target ( match weight with | Some v -> v | None -> null ) ( Reduction . to_int reduction |> Int64 . of_int ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let binary_cross_entropy_backward_grad_input ~ grad_input ~ grad_output self ~ target ~ weight ~ reduction = let out__ = CArray . make t 1 in stubs_binary_cross_entropy_backward_grad_input ( CArray . start out__ ) grad_input grad_output self target ( match weight with | Some v -> v | None -> null ) ( Reduction . to_int reduction |> Int64 . of_int ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let binary_cross_entropy_out ~ out self ~ target ~ weight ~ reduction = let out__ = CArray . make t 1 in stubs_binary_cross_entropy_out ( CArray . start out__ ) out self target ( match weight with | Some v -> v | None -> null ) ( Reduction . to_int reduction |> Int64 . of_int ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let binary_cross_entropy_with_logits self ~ target ~ weight ~ pos_weight ~ reduction = let out__ = CArray . make t 1 in stubs_binary_cross_entropy_with_logits ( CArray . start out__ ) self target ( match weight with | Some v -> v | None -> null ) ( match pos_weight with | Some v -> v | None -> null ) ( Reduction . to_int reduction |> Int64 . of_int ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let binary_cross_entropy_with_logits_backward ~ grad_output self ~ target ~ weight ~ pos_weight ~ reduction = let out__ = CArray . make t 1 in stubs_binary_cross_entropy_with_logits_backward ( CArray . start out__ ) grad_output self target ( match weight with | Some v -> v | None -> null ) ( match pos_weight with | Some v -> v | None -> null ) ( Reduction . to_int reduction |> Int64 . of_int ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bincount self ~ weights ~ minlength = let out__ = CArray . make t 1 in stubs_bincount ( CArray . start out__ ) self ( match weights with | Some v -> v | None -> null ) ( Int64 . of_int minlength ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let binomial ~ count ~ prob = let out__ = CArray . make t 1 in stubs_binomial ( CArray . start out__ ) count prob ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_and self other = let out__ = CArray . make t 1 in stubs_bitwise_and ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_and_ self other = let out__ = CArray . make t 1 in stubs_bitwise_and_ ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_and_scalar_out ~ out self other = let out__ = CArray . make t 1 in stubs_bitwise_and_scalar_out ( CArray . start out__ ) out self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_and_tensor self other = let out__ = CArray . make t 1 in stubs_bitwise_and_tensor ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_and_tensor_ self other = let out__ = CArray . make t 1 in stubs_bitwise_and_tensor_ ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_and_tensor_out ~ out self other = let out__ = CArray . make t 1 in stubs_bitwise_and_tensor_out ( CArray . start out__ ) out self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_left_shift self other = let out__ = CArray . make t 1 in stubs_bitwise_left_shift ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_left_shift_ self other = let out__ = CArray . make t 1 in stubs_bitwise_left_shift_ ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_left_shift_scalar_tensor self other = let out__ = CArray . make t 1 in stubs_bitwise_left_shift_scalar_tensor ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_left_shift_tensor_out ~ out self other = let out__ = CArray . make t 1 in stubs_bitwise_left_shift_tensor_out ( CArray . start out__ ) out self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_left_shift_tensor_scalar self other = let out__ = CArray . make t 1 in stubs_bitwise_left_shift_tensor_scalar ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_left_shift_tensor_scalar_ self other = let out__ = CArray . make t 1 in stubs_bitwise_left_shift_tensor_scalar_ ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_left_shift_tensor_scalar_out ~ out self other = let out__ = CArray . make t 1 in stubs_bitwise_left_shift_tensor_scalar_out ( CArray . start out__ ) out self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_not self = let out__ = CArray . make t 1 in stubs_bitwise_not ( CArray . start out__ ) self ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_not_ self = let out__ = CArray . make t 1 in stubs_bitwise_not_ ( CArray . start out__ ) self ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_not_out ~ out self = let out__ = CArray . make t 1 in stubs_bitwise_not_out ( CArray . start out__ ) out self ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_or self other = let out__ = CArray . make t 1 in stubs_bitwise_or ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_or_ self other = let out__ = CArray . make t 1 in stubs_bitwise_or_ ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_or_scalar_out ~ out self other = let out__ = CArray . make t 1 in stubs_bitwise_or_scalar_out ( CArray . start out__ ) out self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_or_tensor self other = let out__ = CArray . make t 1 in stubs_bitwise_or_tensor ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_or_tensor_ self other = let out__ = CArray . make t 1 in stubs_bitwise_or_tensor_ ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_or_tensor_out ~ out self other = let out__ = CArray . make t 1 in stubs_bitwise_or_tensor_out ( CArray . start out__ ) out self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_right_shift self other = let out__ = CArray . make t 1 in stubs_bitwise_right_shift ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_right_shift_ self other = let out__ = CArray . make t 1 in stubs_bitwise_right_shift_ ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_right_shift_scalar_tensor self other = let out__ = CArray . make t 1 in stubs_bitwise_right_shift_scalar_tensor ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_right_shift_tensor_out ~ out self other = let out__ = CArray . make t 1 in stubs_bitwise_right_shift_tensor_out ( CArray . start out__ ) out self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_right_shift_tensor_scalar self other = let out__ = CArray . make t 1 in stubs_bitwise_right_shift_tensor_scalar ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_right_shift_tensor_scalar_ self other = let out__ = CArray . make t 1 in stubs_bitwise_right_shift_tensor_scalar_ ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_right_shift_tensor_scalar_out ~ out self other = let out__ = CArray . make t 1 in stubs_bitwise_right_shift_tensor_scalar_out ( CArray . start out__ ) out self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_xor self other = let out__ = CArray . make t 1 in stubs_bitwise_xor ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_xor_ self other = let out__ = CArray . make t 1 in stubs_bitwise_xor_ ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_xor_scalar_out ~ out self other = let out__ = CArray . make t 1 in stubs_bitwise_xor_scalar_out ( CArray . start out__ ) out self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_xor_tensor self other = let out__ = CArray . make t 1 in stubs_bitwise_xor_tensor ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_xor_tensor_ self other = let out__ = CArray . make t 1 in stubs_bitwise_xor_tensor_ ( CArray . start out__ ) self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bitwise_xor_tensor_out ~ out self other = let out__ = CArray . make t 1 in stubs_bitwise_xor_tensor_out ( CArray . start out__ ) out self other ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let blackman_window ~ window_length ~ options = let out__ = CArray . make t 1 in stubs_blackman_window ( CArray . start out__ ) ( Int64 . of_int window_length ) ( Kind . packed_to_int ( fst options ) ) ( Device . to_int ( snd options ) ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let blackman_window_periodic ~ window_length ~ periodic ~ options = let out__ = CArray . make t 1 in stubs_blackman_window_periodic ( CArray . start out__ ) ( Int64 . of_int window_length ) ( if periodic then 1 else 0 ) ( Kind . packed_to_int ( fst options ) ) ( Device . to_int ( snd options ) ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let block_diag tensors = let out__ = CArray . make t 1 in stubs_block_diag ( CArray . start out__ ) ( CArray . of_list t tensors |> CArray . start ) ( List . length tensors ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bmm self ~ mat2 = let out__ = CArray . make t 1 in stubs_bmm ( CArray . start out__ ) self mat2 ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bmm_out ~ out self ~ mat2 = let out__ = CArray . make t 1 in stubs_bmm_out ( CArray . start out__ ) out self mat2 ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let broadcast_tensors tensors = stubs_broadcast_tensors ( CArray . of_list t tensors |> CArray . start ) ( List . length tensors ) |> to_tensor_list |
let broadcast_to self ~ size = let out__ = CArray . make t 1 in stubs_broadcast_to ( CArray . start out__ ) self ( List . map Int64 . of_int size |> CArray . of_list int64_t |> CArray . start ) ( List . length size ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bucketize self ~ boundaries ~ out_int32 ~ right = let out__ = CArray . make t 1 in stubs_bucketize ( CArray . start out__ ) self boundaries ( if out_int32 then 1 else 0 ) ( if right then 1 else 0 ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bucketize_scalar self ~ boundaries ~ out_int32 ~ right = let out__ = CArray . make t 1 in stubs_bucketize_scalar ( CArray . start out__ ) self boundaries ( if out_int32 then 1 else 0 ) ( if right then 1 else 0 ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let bucketize_tensor_out ~ out self ~ boundaries ~ out_int32 ~ right = let out__ = CArray . make t 1 in stubs_bucketize_tensor_out ( CArray . start out__ ) out self boundaries ( if out_int32 then 1 else 0 ) ( if right then 1 else 0 ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let cartesian_prod tensors = let out__ = CArray . make t 1 in stubs_cartesian_prod ( CArray . start out__ ) ( CArray . of_list t tensors |> CArray . start ) ( List . length tensors ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let cat tensors ~ dim = let out__ = CArray . make t 1 in stubs_cat ( CArray . start out__ ) ( CArray . of_list t tensors |> CArray . start ) ( List . length tensors ) ( Int64 . of_int dim ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
let cat_out ~ out tensors ~ dim = let out__ = CArray . make t 1 in stubs_cat_out ( CArray . start out__ ) out ( CArray . of_list t tensors |> CArray . start ) ( List . length tensors ) ( Int64 . of_int dim ) ; let t0 = CArray . get out__ 0 in Gc . finalise C . Tensor . free t0 ; t0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.