Skip to content

Commit

Permalink
Update pytorch.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Aug 30, 2024
1 parent 88651ea commit 4dd7bcf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/pytorch.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ pytorch.Graph = class {
} else {
const weights = this.type === 'weights' ? module : pytorch.Utility.weights(module);
if (weights) {
this.name = !this.name && typeof module.__name__ === 'string' ? module.__name__ : this.name;
for (const [name, module] of weights) {
const node = new pytorch.Node(metadata, name, 'Weights', module);
this.nodes.push(node);
Expand Down

0 comments on commit 4dd7bcf

Please sign in to comment.