Skip to content

Commit daa45dc

Browse files
v0.17~preview.128.41+46
1 parent c21d1de commit daa45dc

6 files changed

+2308
-3058
lines changed

src/gen/gen.ml

+12-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
(* Automatically generate the C++ -> C -> ocaml bindings.
22
This takes as input the Descriptions.yaml file that gets generated when
3-
building PyTorch from source.
4-
*)
3+
building PyTorch from source. *)
54
open Base
65
open Stdio
76

@@ -45,6 +44,16 @@ let excluded_functions =
4544
; "bernoulli_out"
4645
; "nested_tensor"
4746
; "arange_out"
47+
; "to_sparse_out"
48+
; "to_sparse_csr_out"
49+
; "to_sparse_csc_out"
50+
; "to_sparse_bsr_out"
51+
; "to_sparse_bsc_out"
52+
; "to_sparse"
53+
; "to_sparse_csr"
54+
; "to_sparse_csc"
55+
; "to_sparse_bsr"
56+
; "to_sparse_bsc"
4857
]
4958
;;
5059

@@ -689,7 +698,7 @@ let run ~yaml_filename ~cpp_filename ~stubs_filename ~wrapper_filename =
689698

690699
let () =
691700
run
692-
~yaml_filename:"third_party/pytorch/Declarations-v1.13.0.yaml"
701+
~yaml_filename:"third_party/pytorch/Declarations-v2.0.0.yaml"
693702
~cpp_filename:"src/wrapper/torch_api_generated"
694703
~stubs_filename:"src/stubs/torch_bindings_generated.ml"
695704
~wrapper_filename:"src/wrapper/wrapper_generated"

0 commit comments

Comments
 (0)