Skip to content

Tensor Indexing #368

Closed
Closed

Description

@Nucs

The following is not implemented:

import tensorflow as tf

with tf.Session() as sess:
    const = tf.constant([1, 2])
    ret = const[0]
    print(sess.run(ret))

# prints 1

C#'s equivalent:

Tensor const = tf.constant(new int[]{1,2});
Tensor ret = const[0];

Activity

  1. added
    missing feature/s
    on Aug 28, 2019
  2. self-assigned this
    on Aug 28, 2019
  3. Oceania2018 commented on Aug 28, 2019

    @Oceania2018
    Member

    @Nucs For some other reason, we use tensor.slice.

    image

    You can try to improve it.

  4. added a commit that references this issue on Aug 31, 2019
  5. Oceania2018 commented on Aug 31, 2019

    @Oceania2018
    Member

    Will be avaiable on v0.11.2.

  6. added a commit that references this issue on Sep 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

missing feature/s

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions