Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tfjs-node] tf.unique added #5956

Merged
merged 7 commits into from
Dec 30, 2021
Merged

Conversation

DirkToewe
Copy link
Contributor

@DirkToewe DirkToewe commented Dec 20, 2021

Fixes #4595 with one caveat: NaN-handling is inconsistent between TFJS and Tensorflow.


This change is Reviewable

Copy link
Collaborator

@pyu10055 pyu10055 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the contribution, couple minor nitpick.

Reviewable status: :shipit: complete! 1 of 1 approvals obtained (waiting on @DirkToewe)


tfjs-node/src/kernels/Unique.ts, line 3 at r1 (raw file):

/**
 * @license
 * Copyright 2020 Google LLC. All Rights Reserved.

2021 or 2022 :)


tfjs-node/src/kernels/Unique.ts, line 30 at r1 (raw file):

    const {axis = 0} = args.attrs as {} as UniqueAttrs;

    const axs = tensor1d([axis], 'int32');

rename to axisTensor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tf.unique failing on Node only with Error running Unique: Neither modular kernel nor forward func passed
2 participants