Skip to content

GenerationSession crashes if stream keyword argument is not None #202

Closed

Description

@cody-moveworks

if stream is None:
self.stream = torch.cuda.Stream(self.device)
torch.cuda.set_stream(self.stream)

If the stream keyword argument is specified when creating the GenerationSession, self.stream will not be initialized and the code will crash on L313.

Activity

  1. changed the title [-]stream parameter is not set correctly if passed in to GenerationSession[/-] [+]GenerationSession crashes if `stream` keyword argument is not `None`[/+] on Oct 30, 2023
  2. jdemouth-nvidia commented on Oct 31, 2023

    @jdemouth-nvidia
    Collaborator

    Can you share a way to reproduce the issue, please?

  3. added
    triaged
    on Oct 31, 2023
  4. cody-moveworks commented on Oct 31, 2023

    @cody-moveworks
    Author

    @jdemouth-nvidia Just create a GenerationSession and pass anything that is not None as the value for stream keyword argument. It will result in errorAttributeError: 'GenerationSession' object has no attribute 'stream'

  5. self-assigned this
    on Nov 10, 2023
  6. added
    bug
    on Nov 12, 2023
  7. juney-nvidia commented on Nov 12, 2023

    @juney-nvidia
    Collaborator

    @cody-moveworks we already have the fix for this bug internally, and it will get pushed to the main branch later.

    June

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugtriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions