Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
8f6d3da
Upgrade typescript to 4.4.2
mattsoulanille Aug 27, 2021
9dc3322
[core] Upgrade typescript to 4.4.2
mattsoulanille Aug 27, 2021
24e9353
Install tslib
mattsoulanille Aug 27, 2021
ea630b5
[webgl] Upgrade typescript to 4.4.2
mattsoulanille Aug 27, 2021
add0110
[wasm] Upgrade typescript to 4.4.2
mattsoulanille Aug 27, 2021
973cb6b
[layers] Update typescript to 4.4.2
mattsoulanille Aug 27, 2021
3d95906
[data] Update typescript to 4.4.2
mattsoulanille Aug 30, 2021
f482727
[tfjs-automl] Update typescript to 4.4.2
mattsoulanille Aug 30, 2021
d6cc93a
[inference] Upgrade TypeScript to 4.4.2
mattsoulanille Aug 31, 2021
68b6898
[cpu] Update package.json with ts 4.4.2
mattsoulanille Aug 31, 2021
76fb265
[converter] Fix executor tests to work with ts 4
mattsoulanille Aug 31, 2021
a2ca980
[converter] Update kenrels_to_ops to work with new mocked tfOps
mattsoulanille Nov 3, 2021
ec8a585
[converter] Fix graph model tests by using spyOnAllFunctions
mattsoulanille Nov 3, 2021
e695e22
[converter] Fix executeOp tests by using a tfc.tidy spy
mattsoulanille Nov 3, 2021
1cf25af
Fix lint errors
mattsoulanille Nov 3, 2021
ea8fb41
[union] Upgrade typescript to 4.4.2
mattsoulanille Nov 4, 2021
a70df89
[node] Upgrade typescript to 4.4.2
mattsoulanille Nov 4, 2021
db2c0a2
[tflite] Upgrade typescript to 4.4.2
mattsoulanille Nov 4, 2021
a3dce77
[e2e] Upgrade typescript to 4.4.2
mattsoulanille Nov 4, 2021
2eee6ae
[vis] Set sort to null instead of false
mattsoulanille Nov 10, 2021
29e8a79
fixup! [converter] Fix executor tests to work with ts 4
mattsoulanille Nov 10, 2021
1722513
fixup! [data] Update typescript to 4.4.2
mattsoulanille Nov 11, 2021
cdfcc35
[converter] Fix Cumprod and ImageProjectiveTransformV3 tests
mattsoulanille Apr 22, 2022
295fac6
[react-native] Upgrade typescript to 4.4.2
mattsoulanille Apr 23, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[converter] Fix Cumprod and ImageProjectiveTransformV3 tests
  • Loading branch information
mattsoulanille committed Apr 23, 2022
commit cdfcc35f8be2dfe45d1beaf366c21582209549f5
2 changes: 1 addition & 1 deletion tfjs-converter/src/operations/executors/image_executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export const executeOp: InternalOpExecutor =
string;
const fillMode =
getParamValue('fillMode', node, tensorMap, context) as string;
return [tfOps.image.transform(
return [ops.image.transform(
images as Tensor4D,
transforms as Tensor2D,
interpolation.toLowerCase() as 'bilinear' | 'nearest',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@ describe('image', () => {
node.attrParams['fillMode'] = createStrAttr('constant');
node.inputNames = ['input1', 'input2', 'input3', 'input4'];

const input2 = [tfOps.tensor1d([2])];
const input1 = [tfOps.tensor4d([1], [1, 1, 1, 1])];
const input2 = [tfOps.tensor2d([1, 2, 3, 4, 5, 6, 7, 8], [1, 8])];
const input3 = [tfOps.tensor1d([4, 5])];
const input4 = [tfOps.scalar(3)];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export const executeOp: InternalOpExecutor =
getParamValue('exclusive', node, tensorMap, context) as boolean;
const reverse =
getParamValue('reverse', node, tensorMap, context) as boolean;
return [tfOps.cumprod(
return [ops.cumprod(
getParamValue('x', node, tensorMap, context) as Tensor, axis,
exclusive, reverse)];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,15 @@ describe('reduction', () => {
});
describe('Cumprod', () => {
it('should call tfOps.cumprod', () => {
spyOn(tfOps, 'cumprod');
node.op = 'Cumprod';
node.attrParams.exclusive = createBoolAttr(true);
node.attrParams.reverse = createBoolAttr(false);
node.inputNames = ['input1', 'input2'];
node.inputParams.axis = createNumberAttrFromIndex(1);
const input2 = [tfOps.scalar(2)];
executeOp(node, {input1, input2}, context);
executeOp(node, {input1, input2}, context, spyOpsAsTfOps);

expect(tfOps.cumprod).toHaveBeenCalledWith(input1[0], 2, true, false);
expect(spyOps.cumprod).toHaveBeenCalledWith(input1[0], 2, true, false);
});
});
describe('Cumsum', () => {
Expand Down