Skip to content

batch evaluation #2

@JunnanZ

Description

@JunnanZ

Just a small correction to the readme file: the interpolation function I wrote already handles evaluations at multiple points, as indicated by the docstring here, without using vmap. It's all vectorized because map_coordinates is vectorized.

A quick test shows that it is faster than eval_linear when the number of points to evaluate is large (>100000) but slower when the batch is small. I think this is because the GPU with a large number of cores is better suited to handle large parallel computation.

Please see the attached test file, which is adapted from Smit's notebook.
linear_interpolate.pdf

@jstac @shlff @Smit-create

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