From 718ca5833a50b140b011af51b4b8bf24cc9e4a1d Mon Sep 17 00:00:00 2001 From: Google AI Edge Date: Tue, 5 Nov 2024 03:18:28 -0800 Subject: [PATCH] Add display limit to the attribute string The custom op attributes may contain strings that are too long to display, and that may crash the browser. Truncate the string to a reasonable length. PiperOrigin-RevId: 693280782 --- src/ui/src/services/settings_service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/src/services/settings_service.ts b/src/ui/src/services/settings_service.ts index e2199232..348aa01c 100644 --- a/src/ui/src/services/settings_service.ts +++ b/src/ui/src/services/settings_service.ts @@ -84,7 +84,7 @@ export const SETTING_HIDE_OP_NODES_WITH_LABELS: Setting = { label: 'Hide op nodes with labels below (comma separated)', key: SettingKey.HIDE_OP_NODES_WITH_LABELS, type: SettingType.TEXT_MULTILINE, - defaultValue: 'Const,pseudo_const,pseudo_qconst,ReadVariableOp', + defaultValue: 'Const,no_value,pseudo_const,pseudo_qconst,ReadVariableOp', help: 'Removes op nodes from model graphs if their label matches any ' + 'of the labels entered below.',