Skip to content

Commit

Permalink
Update python.js (#1152)
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Sep 16, 2023
1 parent c6b273f commit 380b553
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/python.js
Original file line number Diff line number Diff line change
Expand Up @@ -3733,6 +3733,9 @@ python.Execution = class {
case 'c16':
context.view.setComplex128(context.position, data[i], littleendian);
break;
case 'b1':
context.view.setInt8(context.position, data[i] ? 1 : 0);
break;
default:
throw new python.Error("Unsupported tensor data type '" + context.dtype + "'.");
}
Expand Down

0 comments on commit 380b553

Please sign in to comment.