Browse Source

!20684 Fix for weight change watchpoint cannot find previous value and async dump make unexisting root_graph_id directories issues

Merge pull request !20684 from parastooashtari/offline_watchpoint
tags/v1.4.0
i-robot Gitee 4 years ago
parent
commit
9b31a43264
2 changed files with 7 additions and 3 deletions
  1. +6
    -2
      mindspore/ccsrc/backend/session/ascend_session.cc
  2. +1
    -1
      mindspore/ccsrc/debug/debug_services.cc

+ 6
- 2
mindspore/ccsrc/backend/session/ascend_session.cc View File

@@ -1127,9 +1127,13 @@ void AscendSession::Execute(const std::shared_ptr<KernelGraph> &kernel_graph, bo
}
auto runtime_instance = device::KernelRuntimeManager::Instance().GetKernelRuntime(kAscendDevice, device_id_);
MS_EXCEPTION_IF_NULL(runtime_instance);
DumpSetup(kernel_graph);
if (is_task) {
DumpSetup(kernel_graph);
}
bool ret_ok = runtime_instance->Run(kernel_graph.get(), is_task_sink);
Dump(kernel_graph);
if (is_task) {
Dump(kernel_graph);
}
if (!ret_ok) {
#ifdef ENABLE_DUMP_IR
mindspore::RDR::TriggerAll();


+ 1
- 1
mindspore/ccsrc/debug/debug_services.cc View File

@@ -128,7 +128,7 @@ std::unique_ptr<ITensorSummary> GetSummaryPtr(const std::shared_ptr<TensorData>
void *DebugServices::GetPrevTensor(const std::shared_ptr<TensorData> &tensor, bool previous_iter_tensor_needed) {
void *previous_tensor_ptr = nullptr;
std::shared_ptr<TensorData> tensor_prev;
if (previous_iter_tensor_needed && tensor->GetIteration() > 1) {
if (previous_iter_tensor_needed && tensor->GetIteration() >= 1) {
// read data in offline mode
std::vector<std::string> file_paths;
if (!is_sync_mode) {


Loading…
Cancel
Save