Skip to content

surprising singleton behavior #1665

Closed
Closed
@yaroslavvb

Description

@yaroslavvb

Consider following, np.split is always a list of objects, but after going through Ray, the result is either a single Ray object or a list of Ray objects depending on whether shards is equal to 1

@ray.method(num_return_vals=shards)
        def compute_gradients(self, *weights):
            return np.split(array, shards)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions