codedex clean
This commit is contained in:
parent
52a5821149
commit
4540ca0087
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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.";
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue