treelite
Variables
qnode_template.h File Reference

code template for QuantizerNode More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

const char * qnode_template
 
const char * quantize_loop_template
 

Detailed Description

code template for QuantizerNode

Copyright (c) 2018 by Contributors

Author
Philip Cho

Definition in file qnode_template.h.

Variable Documentation

const char* quantize_loop_template
Initial value:
=
R"TREELITETEMPLATE(
for (int i = 0; i < {num_feature}; ++i) {{
if (data[i].missing != -1 && !is_categorical[i]) {{
data[i].qvalue = quantize(data[i].fvalue, i);
}}
}}
)TREELITETEMPLATE"

Definition at line 70 of file qnode_template.h.