Skip to content

Commit

Permalink
Update python.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Apr 28, 2024
1 parent 7e7a9e6 commit 4c9ad5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/python.js
Expand Up @@ -5050,6 +5050,7 @@ python.Execution = class {
this.registerFunction('torch.is_grad_enabled', () => {
return false;
});
this.registerFunction('torch.isfinite');
this.registerFunction('torch.set_grad_enabled', (/* value */) => {
});
this.registerFunction('torch.serialization._get_layout', (name) => {
Expand Down Expand Up @@ -5426,6 +5427,8 @@ python.Execution = class {
});
this.registerFunction('torch.functional.einsum');
this.registerFunction('torch.functional.split');
this.registerFunction('torch.nn.init.constant_');
this.registerFunction('torch.nn.init.xavier_uniform_');
this.registerFunction('torch.nn.functional.adaptive_avg_pool2d');
this.registerFunction('torch.nn.functional.cross_entropy');
this.registerFunction('torch.nn.functional.elu');
Expand Down

0 comments on commit 4c9ad5a

Please sign in to comment.