mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-25 19:48:11 +00:00
Fix nuphar 2
This commit is contained in:
parent
7cc57c11c8
commit
cd2c891a34
1 changed files with 6 additions and 1 deletions
|
|
@ -6,7 +6,6 @@
|
|||
#include <cmath>
|
||||
#ifndef SHARED_PROVIDER
|
||||
#include "core/common/common.h"
|
||||
#include "core/framework/op_kernel.h"
|
||||
#include "core/framework/op_node_proto_helper.h"
|
||||
#include "core/framework/tensor_shape.h"
|
||||
#include "core/providers/common.h"
|
||||
|
|
@ -20,7 +19,13 @@ struct PoolAttributes {
|
|||
return op_name == "GlobalAveragePool" || op_name == "GlobalMaxPool" || op_name == "GlobalLpPool";
|
||||
}
|
||||
|
||||
#ifdef SHARED_PROVIDER
|
||||
// Shared providers don't know about OpNodeProtoHelper
|
||||
PoolAttributes(const OpKernelInfo& info,
|
||||
#else
|
||||
// Providers like Nuphar don't know about OpKernelInfo
|
||||
PoolAttributes(const OpNodeProtoHelper<ProtoHelperNodeContext>& info,
|
||||
#endif
|
||||
const std::string& op_name, int start_version)
|
||||
: global_pooling(IsGlobalPooling(op_name)) {
|
||||
if (global_pooling) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue