Fix freemarker template loading

parent 4ace0c5d
Pipeline #56556 failed with stages
in 13 seconds
......@@ -38,7 +38,7 @@ public class TemplateConfiguration {
private TemplateConfiguration() {
configuration = new Configuration(Configuration.VERSION_2_3_23);
configuration.setClassForTemplateLoading(TemplateConfiguration.class, "/templates/");
configuration.setClassForTemplateLoading(TemplateConfiguration.class, "/templates/caffe2/");
configuration.setDefaultEncoding("UTF-8");
configuration.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);
}
......
<#-- CAFFE2 -->
//CAFFE2
#ifndef ${tc.fileNameWithoutEnding?upper_case}
#define ${tc.fileNameWithoutEnding?upper_case}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment