blob: 60cdc574441e00d5adad8b182de2963c5e76c7db [file] [log] [blame]
#include "caffe2/operators/scale_blobs_op.h"
namespace caffe2 {
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
REGISTER_CPU_OPERATOR(ScaleBlobs, ScaleBlobsOp<CPUContext>);
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
OPERATOR_SCHEMA(ScaleBlobs)
.NumInputs(1, INT_MAX)
.NumOutputs(1, INT_MAX)
.AllowInplace([](int, int) { return true; })
.IdenticalTypeAndShape()
.SetDoc(R"DOC(
ScaleBlobs takes one or more input data (Tensor) and produces one
or more output data (Tensor) whose value is the input data tensor
scaled element-wise.
)DOC")
.Arg("scale", "(float, default 1.0) the scale to apply.");
} // namespace caffe2