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

Method ImageRandomHFlip

mlx/data/op/ImageTransform.cpp:317–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317ImageRandomHFlip::ImageRandomHFlip(
318 const std::string& ikey,
319 float prob,
320 const std::string& okey)
321 : ImageTransformOp(ikey, okey), prob_(prob) {};
322
323std::shared_ptr<Array> ImageRandomHFlip::apply_image(
324 const std::shared_ptr<const Array>& image) const {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected