From 54a6111883f7bb4245770909c4c13ee7c92f41cc Mon Sep 17 00:00:00 2001 From: Michael McGeagh Date: Tue, 24 Nov 2020 14:58:51 +0000 Subject: vela: Fixed formatting of SUPPORTED_OPS mlplatform uses gitiles, which in turn renders markdown differently: "There must be at least three hyphens in each column of the header row" Updated the generation code and the snapshot file to respect this, as well as changed the link from commonmark (which does not support tables) Signed-off-by: Michael McGeagh Change-Id: If31860ce8e38ebe7d68bfec61faff805fc00345b --- SUPPORTED_OPS.md | 5 +++-- ethosu/vela/vela.py | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/SUPPORTED_OPS.md b/SUPPORTED_OPS.md index 81a3bbc8..fdda1570 100644 --- a/SUPPORTED_OPS.md +++ b/SUPPORTED_OPS.md @@ -3,7 +3,8 @@ This file was automatically generated by Vela using the `--supported-ops-report` parameter. Vela version: `2.0.0` -This file complies with [**CommonMark.**](https://commonmark.org) +This file complies with +[**Gitiles Markdown syntax**](https://github.com/google/gitiles/blob/master/Documentation/markdown.md) ## Summary Table @@ -13,7 +14,7 @@ For any other TFLite operator not listed, will be left untouched and scheduled o Please check the supported operator list for your chosen runtime for further information. | Operator | Constraints | -| - | - | +| --- | --- | | ABS | [Generic](#generic-constraints), [Specific](#abs-constraints) | | ADD | [Generic](#generic-constraints), [Specific](#add-constraints) | | AVERAGE_POOL_2D | [Generic](#generic-constraints), [Specific](#average_pool_2d-constraints) | diff --git a/ethosu/vela/vela.py b/ethosu/vela/vela.py index 7b766855..f03bae75 100644 --- a/ethosu/vela/vela.py +++ b/ethosu/vela/vela.py @@ -130,7 +130,8 @@ def generate_supported_ops(): "This file was automatically generated by Vela using the `--supported-ops-report` parameter. ", f"Vela version: `{__version__}`", "", - "This file complies with [**CommonMark.**](https://commonmark.org)", + "This file complies with", + "[**Gitiles Markdown syntax**](https://github.com/google/gitiles/blob/master/Documentation/markdown.md)", "", "## Summary Table", "", @@ -140,7 +141,7 @@ def generate_supported_ops(): "Please check the supported operator list for your chosen runtime for further information.", "", "| Operator | Constraints |", - "| - | - |", + "| --- | --- |", ] supported = SupportedOperators() op_constraint_links = [] -- cgit v1.2.1