Skip to content

Commit 2237dd9

Browse files
committed
update template file
1 parent b3d2acd commit 2237dd9

File tree

1 file changed

+5
-3
lines changed
  • utensor_cgen/backend/utensor/snippets/templates/snippets/rearch

1 file changed

+5
-3
lines changed

utensor_cgen/backend/utensor/snippets/templates/snippets/rearch/op_missing.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
44
Input Tensors:
55
{%for tensor in input_tensors%}
6-
{{tensor.name}}, of type {{tensor.dtype}}
6+
- {{tensor.name}}, of type {{tensor.dtype}}
77
{%endfor%}
88
99
Output Tensors:
1010
{%for tensor, var_name in zip(output_tensors, out_var_names)%}
11-
{{tensor.name}} is of type {{tensor.dtype}} and should be named as {{var_name}}
11+
- {{tensor.name}} is of type {{tensor.dtype}}, shape {{tensor.shape}} and should be named as {{var_name}}
1212
{%if quant_params_map[tensor.name]%}
1313
quantization parameters:
1414
- zero point: {{quant_params_map[tensor.name]["zero_point"]["value"]}}, {{quant_params_map[tensor.name]["zero_point"]["type_str"]}}
1515
- scale: {{quant_params_map[tensor.name]["scale"]["value"]}}, {{quant_params_map[tensor.name]["scale"]["type_str"]}}
1616
- is per tensor quantization: {{quant_params_map[tensor.name]["is_per_tensor"]}}
1717
{%endif%}
1818
{%endfor%}
19-
*/
19+
*/
20+
// Don't forget to comment this out when you fill up the missing op and tensors
21+
static_assert(false, "{{op_type}} is not currently supported. Read information above please.");

0 commit comments

Comments
 (0)