Skip to content

Commit

Permalink
Add display limit to the attribute string
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Google AI Edge authored and copybara-github committed Nov 5, 2024
1 parent a48865d commit f7693ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/src/services/settings_service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down

0 comments on commit f7693ed

Please sign in to comment.