Skip to content

Commit

Permalink
Update pytorch.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Jul 18, 2023
1 parent 7043265 commit fb377c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/pytorch.js
Original file line number Diff line number Diff line change
Expand Up @@ -3261,7 +3261,7 @@ pytorch.Utility = class {
}

static getType(value) {
if (value === null) {
if (value === null || value === undefined) {
return undefined;
} else if (value === true || value === false) {
return 'boolean';
Expand Down

0 comments on commit fb377c1

Please sign in to comment.