Tyler Van Hensbergen
11/20/2024, 5:55 PMto_pylist and to_arrow give you a format which is a list of maps.jay
11/20/2024, 5:56 PMTyler Van Hensbergen
11/20/2024, 6:01 PMjay
11/20/2024, 6:02 PMjay
11/20/2024, 6:02 PMTyler Van Hensbergen
11/20/2024, 6:03 PMSagi
11/20/2024, 6:56 PMSagi
11/20/2024, 7:02 PMTyler Van Hensbergen
11/20/2024, 7:25 PMreturn experiment_table.with_column(
"predictions",
VITBFullNeighborhood.with_concurrency(concurrency)(
daft.col("positions"),
daft.col("expressions").cast(DT.tensor(DT.float32(), shape=(1000, 1))),
daft.col("masks"),
daft.col("input_expression"),
daft.col("input_mask"),
),
)
will that lazily cast partitions or batches as they get fed into the UDF?jay
11/20/2024, 8:02 PMif _IS_PYTORCH_IMPORTABLE: … in our code to dynamically produce certain types. The question is whether or not we’d want to, because it is arguably a bit unexpected in terms of behavior.
Perhaps this is more of an API problem where .to_pylist() should be able to take in certain arguments. Or maybe users should only use an explicit .to_pytorch() and .to_numpy() function.Tyler Van Hensbergen
11/20/2024, 9:28 PMto_numpy() was the most surprising for me. I can understand to_pylist returning a list of maps but I wasn't expecting to_numpy to do the same.