fix bug
This commit is contained in:
parent
9324b085f2
commit
f6823d6485
|
@ -16,5 +16,10 @@
|
|||
#include "src/runtime/inner_allocator.h"
|
||||
|
||||
namespace mindspore {
|
||||
std::shared_ptr<Allocator> Allocator::Create() { return std::make_shared<DefaultAllocator>(); }
|
||||
std::shared_ptr<Allocator> Allocator::Create() {
|
||||
#ifdef SERVER_INFERENCE
|
||||
return nullptr;
|
||||
#endif
|
||||
return std::make_shared<DefaultAllocator>();
|
||||
}
|
||||
} // namespace mindspore
|
||||
|
|
|
@ -57,7 +57,7 @@ class NUMAAdapter {
|
|||
|
||||
NUMAAdapter();
|
||||
~NUMAAdapter();
|
||||
inline bool Available() const { return false; }
|
||||
inline bool Available() const { return available_; }
|
||||
void Bind(int node_id);
|
||||
void *Malloc(int node_id, size_t size);
|
||||
void Free(void *data, size_t size);
|
||||
|
|
Loading…
Reference in New Issue