Browse Source

!447 [MS]fix window building fail

Merge pull request !447 from chenjianping/fix-windows-bug
tags/v0.2.0-alpha
mindspore-ci-bot Gitee 5 years ago
parent
commit
0a9db34d5a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/common/trans.cc

+ 1
- 1
mindspore/ccsrc/common/trans.cc View File

@@ -920,7 +920,7 @@ bool NchwToC1hwncoc0(const FormatArgs &args, void *result) {
: static_cast<size_t>(SECUREC_MEM_MAX_LEN);
size_t c_i = c0_i + c1_i * c0;
size_t src_offset = (n_i * c * h * w + c_i * h * w + h_i * w + w_i) * size;
error_t ret;
errno_t ret;
if (c_i < c && c0_i == co_i) {
ret = memcpy_s(static_cast<uint8_t *>(result) + dst_offset, protected_size,
static_cast<uint8_t const *>(args.data) + src_offset, size);


Loading…
Cancel
Save