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

Method pad_to_size

mlx/data/Dataset.cpp:550–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548
549template <class T, class B>
550T Dataset<T, B>::pad_to_size(
551 const std::string& ikey,
552 int dim,
553 int64_t size,
554 double value,
555 const std::string& okey) const {
556 return transform_(
557 std::make_shared<op::PadToSize>(ikey, dim, size, value, okey));
558}
559
560template <class T, class B>
561T Dataset<T, B>::pad_to_size_if(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected