Skip to content

Standardise DSL and UDF interface #597

Description

@lshaw8317

Currently, one writes a DSL kernel as

@dsl_kernel
def myfun(x, y, z):
    return x + y * z

and a udf as

def myfun(inputs, output, offset):
    x, y, z = inputs
    output[:] = x + y * z

but then uses the same interface to wrap them as lazyudf:

blosc2.lazyudf(myfun, (x,y,z), dtype=np.float32)

This seems strange and might be confusing for users.

Activity

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

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