ext/torch/extconf.rb in torch-rb-0.3.7 vs ext/torch/extconf.rb in torch-rb-0.4.0
- old
+ new
@@ -67,10 +67,10 @@
$LDFLAGS += " -Wl,--no-as-needed,#{lib}/libtorch.so"
end
# generate C++ functions
puts "Generating C++ functions..."
-require_relative "../../lib/torch/native/generator"
-Torch::Native::Generator.generate_cpp_functions
+require_relative "../../codegen/generate_functions"
+generate_functions
# create makefile
create_makefile("torch/ext")