Browse Source

!659 fix codedex

Merge pull request !659 from geekun/main_yjk
tags/v0.3.0-alpha
mindspore-ci-bot Gitee 5 years ago
parent
commit
3b625ac9ae
9 changed files with 3 additions and 10 deletions
  1. +0
    -1
      mindspore/ccsrc/operator/composite/composite.h
  2. +0
    -1
      mindspore/ccsrc/operator/composite/unpack_call.cc
  3. +0
    -1
      mindspore/ccsrc/transform/convert.h
  4. +1
    -1
      mindspore/ccsrc/utils/any.cc
  5. +0
    -1
      mindspore/ccsrc/utils/callbacks.cc
  6. +0
    -1
      mindspore/ccsrc/utils/callbacks_ge.cc
  7. +0
    -2
      mindspore/ccsrc/utils/callbacks_ge.h
  8. +1
    -1
      mindspore/ccsrc/utils/convert_utils.cc
  9. +1
    -1
      mindspore/ccsrc/utils/log_adapter.cc

+ 0
- 1
mindspore/ccsrc/operator/composite/composite.h View File

@@ -210,7 +210,6 @@ class TensorSlice : public MetaFuncGraph {
FuncGraphPtr ExpandADim(const FuncGraphPtr &ret_graph, const AnfNodePtr &tensor_node) const;
};
using TensorSlicePtr = std::shared_ptr<TensorSlice>;

} // namespace prim
} // namespace mindspore



+ 0
- 1
mindspore/ccsrc/operator/composite/unpack_call.cc View File

@@ -89,6 +89,5 @@ REGISTER_PYBIND_DEFINE(UnpackCall_, ([](const py::module *m) {
(void)py::class_<UnpackCall, MetaFuncGraph, std::shared_ptr<UnpackCall>>(*m, "UnpackCall_")
.def(py::init<std::string &>());
}));

} // namespace prim
} // namespace mindspore

+ 0
- 1
mindspore/ccsrc/transform/convert.h View File

@@ -252,7 +252,6 @@ class DfGraphConvertor {
bool training_ = false;
bool distribute_ = false;
};

} // namespace transform
} // namespace mindspore



+ 1
- 1
mindspore/ccsrc/utils/any.cc View File

@@ -26,7 +26,7 @@ bool AnyIsLiteral(const Any &any) {
static const std::type_index typeid_float = std::type_index(typeid(float));
static const std::type_index typeid_bool = std::type_index(typeid(bool));

std::type_index typeid_any = std::type_index(any.type());
auto typeid_any = std::type_index(any.type());
return typeid_int == typeid_any || typeid_float == typeid_any || typeid_bool == typeid_any;
}



+ 0
- 1
mindspore/ccsrc/utils/callbacks.cc View File

@@ -26,7 +26,6 @@

namespace mindspore {
namespace callbacks {

const char PYTHON_MOD_CALLBACK_MODULE[] = "mindspore.train.callback";
const char PYTHON_FUN_PROCESS_CHECKPOINT[] = "_checkpoint_cb_for_save_op";
const char PYTHON_FUN_PROCESS_SUMMARY[] = "_summary_cb_for_save_op";


+ 0
- 1
mindspore/ccsrc/utils/callbacks_ge.cc View File

@@ -24,7 +24,6 @@

namespace mindspore {
namespace callbacks {

const char PYTHON_MOD_CALLBACK_MODULE[] = "mindspore.train.callback";
const char PYTHON_FUN_PROCESS_CHECKPOINT[] = "_checkpoint_cb_for_save_op";
const char PYTHON_FUN_PROCESS_SUMMARY[] = "_summary_cb_for_save_op";


+ 0
- 2
mindspore/ccsrc/utils/callbacks_ge.h View File

@@ -26,12 +26,10 @@

namespace mindspore {
namespace callbacks {

using mindspore::tensor::TensorPtr;

uint32_t CheckpointSaveCallback(uint32_t, const std::map<std::string, ge::Tensor> &);
uint32_t SummarySaveCallback(uint32_t, const std::map<std::string, ge::Tensor> &);

} // namespace callbacks
} // namespace mindspore



+ 1
- 1
mindspore/ccsrc/utils/convert_utils.cc View File

@@ -335,7 +335,7 @@ py::object VectorRefToPyData(const VectorRef &value_list) {
py::object ret;
MS_LOG(DEBUG) << "vector_ref";
size_t value_size = value_list.size();
py::tuple ref_tuple = py::tuple(value_size);
auto ref_tuple = py::tuple(value_size);
for (size_t i = 0; i < value_size; i++) {
ref_tuple[i] = BaseRefToPyData(value_list[i]);
}


+ 1
- 1
mindspore/ccsrc/utils/log_adapter.cc View File

@@ -35,7 +35,7 @@ static std::string GetTime() {
now_time.tm_hour, now_time.tm_min, now_time.tm_sec);
#else
struct timeval cur_time;
(void)gettimeofday(&cur_time, NULL);
(void)gettimeofday(&cur_time, nullptr);

struct tm now;
(void)localtime_r(&cur_time.tv_sec, &now);


Loading…
Cancel
Save