Skip to content

Commit da53af1

Browse files
committed
Add TOSA test file (#1546) (#1550)
1 parent 048ce73 commit da53af1

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

source/tosa.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ tosa.ModelFactory = class {
99
return context.set('tosa.flatbuffers', reader);
1010
}
1111
const obj = await context.peek('json');
12-
if (obj && obj.regions && obj.version) {
12+
if (obj && obj.regions && obj.version && obj.version._major) {
1313
return context.set('tosa.flatbuffers.json', obj);
1414
}
1515
return null;

test/models.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8925,6 +8925,13 @@
89258925
"format": "TOSA v1.0.0",
89268926
"link": "https://github.com/lutzroeder/netron/issues/1546"
89278927
},
8928+
{
8929+
"type": "tosa",
8930+
"target": "conv_net_v1.0.json",
8931+
"source": "https://github.com/user-attachments/files/25799955/conv_net_v1.0.json.zip[conv_net_v1.0.json]",
8932+
"format": "TOSA v1.0.0",
8933+
"link": "https://github.com/lutzroeder/netron/issues/1546"
8934+
},
89288935
{
89298936
"type": "tosa",
89308937
"target": "squeezenet_v1.1.tosa",

0 commit comments

Comments
 (0)