Skip to content

Commit

Permalink
Update tfjs-layers/src/layers/preprocessing/preprocessing_utils.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Soulanille <matthew@soulanille.net>
  • Loading branch information
AdamLang96 and mattsoulanille authored Oct 4, 2022
1 parent 7460615 commit 7222f30
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions tfjs-layers/src/layers/preprocessing/preprocessing_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,7 @@ export function encodeCategoricalInputs(inputs: Tensor|Tensor[],

const binaryOutput = ['multiHot', 'oneHot'].includes(outputMode);

let denseBincountInput: Tensor1D | Tensor2D;

if(input.rank === 1) {
denseBincountInput = input as Tensor1D;
}

if(input.rank === 2) {
denseBincountInput = input as Tensor2D;
}
const denseBincountInput = input as Tensor1D | Tensor2D;

let binCounts: Tensor1D | Tensor2D;

Expand Down

0 comments on commit 7222f30

Please sign in to comment.