Browse Source

codedex clean

tags/v1.2.0
liubuyu 5 years ago
parent
commit
4540ca0087
4 changed files with 2 additions and 4 deletions
  1. +1
    -1
      mindspore/ccsrc/backend/kernel_compiler/tbe/tbe_kernel_build.cc
  2. +0
    -1
      mindspore/ccsrc/runtime/device/ascend/executor/ai_core_dynamic_kernel.cc
  3. +1
    -1
      mindspore/ccsrc/runtime/device/ascend/executor/ai_core_dynamic_kernel.h
  4. +0
    -1
      mindspore/core/ops/squeeze.h

+ 1
- 1
mindspore/ccsrc/backend/kernel_compiler/tbe/tbe_kernel_build.cc 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) {


+ 0
- 1
mindspore/ccsrc/runtime/device/ascend/executor/ai_core_dynamic_kernel.cc 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.";


+ 1
- 1
mindspore/ccsrc/runtime/device/ascend/executor/ai_core_dynamic_kernel.h 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


+ 0
- 1
mindspore/core/ops/squeeze.h 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



Loading…
Cancel
Save