msluszniak commited on
Commit
e07be9d
·
verified ·
1 Parent(s): aff7c81

Relax tensorSpec.name to optional

Browse files
Files changed (1) hide show
  1. config.schema.json +6 -2
config.schema.json CHANGED
@@ -140,10 +140,14 @@
140
  },
141
  "tensorSpec": {
142
  "type": "object",
143
- "required": ["name", "shape", "dtype"],
144
  "additionalProperties": false,
145
  "properties": {
146
- "name": { "type": "string", "minLength": 1 },
 
 
 
 
147
  "shape": {
148
  "type": "array",
149
  "items": { "type": "integer" },
 
140
  },
141
  "tensorSpec": {
142
  "type": "object",
143
+ "required": ["shape", "dtype"],
144
  "additionalProperties": false,
145
  "properties": {
146
+ "name": {
147
+ "type": "string",
148
+ "minLength": 1,
149
+ "description": "Optional. Executorch .pte files do not carry user-meaningful tensor names; introspected configs use positional `input_N`/`output_N` keys via the array order instead and omit `name`. Set this when a hand-curated semantic name is available."
150
+ },
151
  "shape": {
152
  "type": "array",
153
  "items": { "type": "integer" },