Skip to content

Commit

Permalink
TorchScript 1.3 prototype (#281)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Sep 2, 2019
1 parent 3c8ea76 commit 041ed91
Show file tree
Hide file tree
Showing 4 changed files with 379 additions and 174 deletions.
2 changes: 1 addition & 1 deletion src/mlnet.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ mlnet.TensorType = class {

constructor(codec) {

mlnet.TensorType._map = mlnet.TensorType.map || new Map([
mlnet.TensorType._map = mlnet.TensorType._map || new Map([
[ 'Boolean', 'boolean' ],
[ 'Single', 'float32' ],
[ 'Double', 'float64' ],
Expand Down
16 changes: 16 additions & 0 deletions src/torchscript-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -689,5 +689,21 @@
{ "name": "output" }
]
}
},
{
"name": "flatten",
"schema": {
"category": "Shape",
"attributes": [
{ "name": "start_dim", "type": "int64" },
{ "name": "end_dim", "type": "int64" }
],
"inputs": [
{ "name": "inputs" }
],
"outputs": [
{ "name": "output" }
]
}
}
]
Loading

0 comments on commit 041ed91

Please sign in to comment.