@@ -1293,7 +1293,7 @@ describeMathCPUAndWebGL2('Saving+loading model with optimizer', () => {
1293
1293
// The second part comes from the bias of the dense layer, which has 1
1294
1294
// element and is also 4 bytes.
1295
1295
const weightData = savedArtifacts . weightData ;
1296
- expect ( new io . CompositeArrayBuffer ( weightData ) . byteLength )
1296
+ expect ( io . concatenateArrayBuffers ( weightData ) . byteLength )
1297
1297
. toEqual ( 4 * 8 + 4 * 1 + 4 ) ;
1298
1298
1299
1299
// Load the model back, with the optimizer.
@@ -1353,7 +1353,7 @@ describeMathCPUAndWebGL2('Saving+loading model with optimizer', () => {
1353
1353
// The second part comes from the bias of the dense layer, which has 1
1354
1354
// element and is also 4 bytes.
1355
1355
const weightData = savedArtifacts . weightData ;
1356
- expect ( new io . CompositeArrayBuffer ( weightData )
1356
+ expect ( io . concatenateArrayBuffers ( weightData )
1357
1357
. byteLength ) . toEqual ( 4 + 4 * 8 * 3 + 4 * 1 * 3 ) ;
1358
1358
1359
1359
// Load the model back, with the optimizer.
@@ -1413,7 +1413,7 @@ describeMathCPUAndWebGL2('Saving+loading model with optimizer', () => {
1413
1413
// The second part comes from the bias of the dense layer, which has 1
1414
1414
// element and is also 4 bytes.
1415
1415
const weightData = savedArtifacts . weightData ;
1416
- expect ( new io . CompositeArrayBuffer ( weightData ) . byteLength )
1416
+ expect ( io . concatenateArrayBuffers ( weightData ) . byteLength )
1417
1417
. toEqual ( 4 + 4 * 8 * 3 + 4 * 1 * 3 ) ;
1418
1418
1419
1419
// Load the model back, with the optimizer.
@@ -1471,7 +1471,7 @@ describeMathCPUAndWebGL2('Saving+loading model with optimizer', () => {
1471
1471
// The second part comes from the bias of the dense layer, which has 1
1472
1472
// element and is also 4 bytes.
1473
1473
const weightData = savedArtifacts . weightData ;
1474
- expect ( new io . CompositeArrayBuffer ( weightData ) . byteLength )
1474
+ expect ( io . concatenateArrayBuffers ( weightData ) . byteLength )
1475
1475
. toEqual ( 4 + 4 * 8 * 2 + 4 * 1 * 2 ) ;
1476
1476
1477
1477
// Load the model back, with the optimizer.
@@ -1534,7 +1534,7 @@ describeMathCPUAndWebGL2('Saving+loading model with optimizer', () => {
1534
1534
// The second part comes from the bias of the dense layer, which has 1
1535
1535
// element and is also 4 bytes.
1536
1536
const weightData = savedArtifacts . weightData ;
1537
- expect ( new io . CompositeArrayBuffer ( weightData ) . byteLength )
1537
+ expect ( io . concatenateArrayBuffers ( weightData ) . byteLength )
1538
1538
. toEqual ( 4 + 4 * 8 * 3 + 4 * 1 * 3 ) ;
1539
1539
1540
1540
// Load the model back, with the optimizer.
@@ -1593,7 +1593,7 @@ describeMathCPUAndWebGL2('Saving+loading model with optimizer', () => {
1593
1593
// The second part comes from the bias of the dense layer, which has 1
1594
1594
// element and is also 4 bytes.
1595
1595
const weightData = savedArtifacts . weightData ;
1596
- expect ( new io . CompositeArrayBuffer ( weightData ) . byteLength )
1596
+ expect ( io . concatenateArrayBuffers ( weightData ) . byteLength )
1597
1597
. toEqual ( 4 + 4 * 8 * 3 + 4 * 1 * 3 ) ;
1598
1598
1599
1599
// Load the model back, with the optimizer.
@@ -1651,7 +1651,7 @@ describeMathCPUAndWebGL2('Saving+loading model with optimizer', () => {
1651
1651
// The second part comes from the bias of the dense layer, which has 1
1652
1652
// element and is also 4 bytes.
1653
1653
const weightData = savedArtifacts . weightData ;
1654
- expect ( new io . CompositeArrayBuffer ( weightData ) . byteLength )
1654
+ expect ( io . concatenateArrayBuffers ( weightData ) . byteLength )
1655
1655
. toEqual ( 4 + 4 * 8 * 2 + 4 * 1 * 2 ) ;
1656
1656
1657
1657
// Load the model back, with the optimizer.
0 commit comments