Skip to content

[Feature Request] TensorSpec is_in methods should check the dtype of val #793

Open

Description

@riiswa

Motivation

As mentioned in #783, we should check that is_in always checks the dtype.

Solution

Add self.dtype == val.dtype condition in the is_in methods. Should be very simple to fix, but we need to make sure that all tests pass.

Checklist

  • I have checked that there is no similar issue in the repo (required)

Activity

  1. added
    enhancement
    on Jan 4, 2023
  2. vmoens commented on Jan 4, 2023

    @vmoens
    Contributor

    Thanks for keeping track of this.
    Let me know if you want to take care of it, otherwise I'll find someone else

  3. riiswa commented on Jan 4, 2023

    @riiswa
    ContributorAuthor

    I think this is a good first issue for someone that want to make his first contribution. What do you think about adding the good first issue label to this (and to the repo) ? Otherwise, I'll take care of it.

  4. added
    Good first issue
    on Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Good first issueenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions