forked from mindspore-Ecosystem/mindspore
Alarm modification
This commit is contained in:
parent
ec6fa65fd9
commit
6913c96f11
|
@ -79,8 +79,8 @@ Status CacheTransformPass::CachePass::RunOnNode(std::shared_ptr<CacheOp> node, b
|
|||
MS_LOG(INFO) << "Cache transform pass: Set up cache sampler from non-mappable leaf.";
|
||||
} else {
|
||||
// We're a cache op but no sampler was saved from leaf, so create a default sampler
|
||||
int64_t num_samples = 0;
|
||||
int64_t start_index = 0;
|
||||
const int64_t num_samples = 0;
|
||||
const int64_t start_index = 0;
|
||||
sampler_ = std::make_shared<SequentialSampler>(num_samples, start_index);
|
||||
node->SetSampler(std::move(sampler_));
|
||||
MS_LOG(INFO) << "Cache transform pass: Creating default sequential sampler for cache op.";
|
||||
|
|
|
@ -78,6 +78,9 @@ class EpochInjectionPass : public TreePass {
|
|||
/// \brief Constructor
|
||||
EpochInjectionPass();
|
||||
|
||||
/// \brief Destructor
|
||||
~EpochInjectionPass() = default;
|
||||
|
||||
/// \brief Runs an injection pass to inject in operators needed at the pre pass stage
|
||||
/// \param[inout] tree The tree to operate on.
|
||||
/// \param[inout] Indicate of the tree was modified.
|
||||
|
|
|
@ -34,6 +34,9 @@ class SoftDvppDecodeRandomCropResizeJpegOp : public RandomCropAndResizeOp {
|
|||
float scale_ub = kDefScaleUb, float aspect_lb = kDefAspectLb,
|
||||
float aspect_ub = kDefAspectUb, int32_t max_iter = kDefMaxIter);
|
||||
|
||||
/// \brief Destructor
|
||||
~SoftDvppDecodeRandomCropResizeJpegOp() = default;
|
||||
|
||||
Status Compute(const std::shared_ptr<Tensor> &input, std::shared_ptr<Tensor> *output) override;
|
||||
|
||||
std::string Name() const override { return kSoftDvppDecodeRandomCropResizeJpegOp; }
|
||||
|
|
|
@ -30,6 +30,9 @@ class SoftDvppDecodeResizeJpegOp : public TensorOp {
|
|||
SoftDvppDecodeResizeJpegOp(int32_t target_height, int32_t target_width)
|
||||
: target_height_(target_height), target_width_(target_width) {}
|
||||
|
||||
/// \brief Destructor
|
||||
~SoftDvppDecodeResizeJpegOp() = default;
|
||||
|
||||
Status Compute(const std::shared_ptr<Tensor> &input, std::shared_ptr<Tensor> *output) override;
|
||||
|
||||
std::string Name() const override { return kSoftDvppDecodeReiszeJpegOp; }
|
||||
|
|
|
@ -755,6 +755,7 @@ int32_t SoftVpc::Process(VpcInfo input, const SoftDpCropInfo crop, const VpcInfo
|
|||
int32_t ret = CheckParamter();
|
||||
if (ret != dpSucc) {
|
||||
delete[] input.addr;
|
||||
input.addr = nullptr;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue