Skip to content

Commit

Permalink
[CNNLCORE-21427] access variable in tensor struct through function in
Browse files Browse the repository at this point in the history
tensor.cpp and tensor.h
  • Loading branch information
nizhijie committed Oct 30, 2024
1 parent 5608f85 commit 8f25c7c
Show file tree
Hide file tree
Showing 6 changed files with 193 additions and 169 deletions.
2 changes: 1 addition & 1 deletion core/gen_case.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ std::string descToString(mluOpTensorDescriptor_t desc, char delimiter) {
tensor_info << " layout: " << mluop::getNameOfTensorLayout(layout)
<< delimiter;
tensor_info << " dtype: " << mluop::getNameOfDataType(dtype) << delimiter;
if (desc->getPointer_mode() == MLUOP_POINTER_MODE_HOST) {
if (desc->getPointerMode() == MLUOP_POINTER_MODE_HOST) {
tensor_info << " pointer_mode: POINTER_MODE_HOST" << delimiter;
if ((total_element_num != 1) || (dim != 0)) {
LOG(WARNING) << "[gen_case] Tensor has been set to POINTER_MODE_HOST, "
Expand Down
Loading

0 comments on commit 8f25c7c

Please sign in to comment.