Skip to content

Commit

Permalink
Update pytorch.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Oct 11, 2024
1 parent 0cb3c3c commit 8eacc9b
Show file tree
Hide file tree
Showing 5 changed files with 1,520 additions and 515 deletions.
6 changes: 5 additions & 1 deletion source/python.js
Original file line number Diff line number Diff line change
Expand Up @@ -6213,8 +6213,12 @@ python.Execution = class {
}
});
this.registerType('torch.TupleType', class extends torch.Type {
constructor() {
constructor(elements) {
super('TupleType');
this._elements = elements;
}
get elements() {
return this._elements;
}
});
this.registerType('torch.TensorType', class extends torch.Type {
Expand Down
Loading

0 comments on commit 8eacc9b

Please sign in to comment.