!14444 codedex clean

From: @liubuyu
Reviewed-by: @zhoufeng54,@kisnwang
Signed-off-by: @kisnwang
This commit is contained in:
mindspore-ci-bot 2021-03-31 15:14:29 +08:00 committed by Gitee
commit 3ab3fa5341
4 changed files with 2 additions and 4 deletions

View File

@ -621,7 +621,7 @@ void TbeKernelJsonCreator::ParseAttrDefaultValue(const std::string &type, const
} else if (type == kVTypeStr) {
(*attr_obj)[kJValue] = value;
} else if (type == kVTypeBool) {
bool attr_value;
bool attr_value = false;
std::istringstream(value) >> std::boolalpha >> attr_value;
(*attr_obj)[kJValue] = attr_value;
} else if (type == kVTypeFloat) {

View File

@ -57,7 +57,6 @@ void AiCoreDynamicKernel::Execute() {
args_size, l2ctrl, stream_, kernel_info.c_str())) {
MS_LOG(EXCEPTION) << "Call runtime rtKernelLaunchWithHandle error.";
}
} else {
if (RT_ERROR_NONE != rtKernelLaunch(stub_func_, block_dim_, runtime_args_.data(), args_size, l2ctrl, stream_)) {
MS_LOG(EXCEPTION) << "Call runtime rtKernelLaunch error.";

View File

@ -61,7 +61,7 @@ class AiCoreDynamicKernel : public DynamicKernel {
void ParseCompileJson();
private:
const void *stub_func_;
const void *stub_func_{nullptr};
void *handle_{nullptr};
uint32_t block_dim_;
void *tiling_data_ptr_; // device ptr

View File

@ -44,7 +44,6 @@ class Squeeze : public PrimitiveC {
AbstractBasePtr SqueezeInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive,
const std::vector<AbstractBasePtr> &input_args);
using PrimSqueezePtr = std::shared_ptr<Squeeze>;
} // namespace ops
} // namespace mindspore