forked from huawei/mindspore2022
!31734 fix mac undefined symbol error
Merge pull request !31734 from xulei/mac_fix
This commit is contained in:
commit
4d1d38da81
|
|
@ -12,4 +12,5 @@ endif()
|
|||
|
||||
set_property(SOURCE ${GRAPH_SCHEDULER_SRC_LIST}
|
||||
PROPERTY COMPILE_DEFINITIONS SUBMODULE_ID=mindspore::SubModuleId::SM_RUNTIME_FRAMEWORK)
|
||||
|
||||
add_library(_mindspore_runtime_graph_scheduler_obj OBJECT ${GRAPH_SCHEDULER_SRC_LIST})
|
||||
|
|
@ -29,6 +29,7 @@
|
|||
#include "backend/common/session/session_basic.h"
|
||||
#include "backend/common/session/session_factory.h"
|
||||
#include "ir/tensor.h"
|
||||
#include "include/backend/visible.h"
|
||||
|
||||
namespace mindspore {
|
||||
using device::DeviceContext;
|
||||
|
|
@ -55,7 +56,7 @@ using KernelMapPosition = std::map<KernelWithIndex, std::vector<size_t>, session
|
|||
// The origin parameters order is used to correspond to the input args.
|
||||
// The origin outputs order is used to correspond to the output args.
|
||||
// The need_erase means need erase this GraphCompilerInfo object after run actor set.
|
||||
struct GraphCompilerInfo {
|
||||
struct BACKEND_EXPORT GraphCompilerInfo {
|
||||
GraphCompilerInfo(const std::vector<KernelGraphPtr> &graphs, const std::vector<DeviceContext *> &device_contexts,
|
||||
const std::vector<std::vector<int64_t> *> &tensors_mask,
|
||||
const std::vector<std::vector<TensorPtr> *> &input_tensors,
|
||||
|
|
|
|||
Loading…
Reference in New Issue