Skip to content

GenerationSession crashes if stream keyword argument is not None #202

@cody-moveworks

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtriagedIssue has been triaged by maintainers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions