#include <ATen/native/ForeachUtils.h>
#include "op_plugin/OpApiInterface.h"
#include "op_plugin/utils/op_api_common.h"
namespace op_api {
#if VERSION_BETWEEN(V2R1, VERSION_NEWEST)
std::vector<at::Tensor> _foreach_clamp_max(at::TensorList self, at::TensorList other)
{
return op_api::_foreach_minimum(self, other);
}
void _foreach_clamp_max_(at::TensorList self, at::TensorList other)
{
op_api::_foreach_minimum_(self, other);
return;
}
std::vector<at::Tensor> _foreach_clamp_max(at::TensorList self, const at::Scalar& scalar)
{
return op_api::_foreach_minimum(self, scalar);
}
void _foreach_clamp_max_(at::TensorList self, const at::Scalar& scalar)
{
op_api::_foreach_minimum_(self, scalar);
return;
}
std::vector<at::Tensor> _foreach_clamp_max(at::TensorList self, at::ArrayRef<at::Scalar> scalars)
{
return op_api::_foreach_minimum(self, scalars);
}
void _foreach_clamp_max_(at::TensorList self, at::ArrayRef<at::Scalar> scalars)
{
op_api::_foreach_minimum_(self, scalars);
return;
}
#endif
}