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

NDArray set value by NDArray index not implement #644

Closed
asyura opened this issue Nov 17, 2020 · 3 comments
Closed

NDArray set value by NDArray index not implement #644

asyura opened this issue Nov 17, 2020 · 3 comments

Comments

@asyura
Copy link

asyura commented Nov 17, 2020

var matrix = np.zeros((10,3));
matrix[np.arange(10), 1] = 1;

matrix[np.arange(10), np.random.randint(0, 2, (1,10))] = 1;

@GeorgeS2019
Copy link

@asyura If possible, you need to get familiar with porting Unit Tests from native from google to Tensorflow.NET as discussed here.

Then if will have the "helicopter" view where are the missing parts and where the community can contribute in complementary way.

@Oceania2018
Copy link
Member

@asyura Please try to use tf.Variable slice assign function:

@Esther2013
Copy link
Member

@asyura You can follow this example.

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

No branches or pull requests

4 participants