MCPcopy Create free account
hub / github.com/ml-explore/mlx-data / random_slice

Method random_slice

mlx/data/Dataset.cpp:604–610  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

602
603template <class T, class B>
604T Dataset<T, B>::random_slice(
605 const std::string& ikey,
606 int dim,
607 int64_t size,
608 const std::string& okey) const {
609 return transform_(std::make_shared<op::RandomSlice>(ikey, dim, size, okey));
610}
611
612template <class T, class B>
613T Dataset<T, B>::random_slice_if(

Callers 2

mlx_data_export_datasetFunction · 0.80
test_random_sliceMethod · 0.80

Calls

no outgoing calls

Tested by 1

test_random_sliceMethod · 0.64