Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
76 changes: 38 additions & 38 deletions 3rdParty/ONNX/OnnxToolsPA.h
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
/* Simple Integer Option
*
* From: https://github.com/PokemonAutomation/
*
* This option is thread-safe.
*
*/
#ifndef PokemonAutomation_3rdParty_OnnxToolsPA_H
#define PokemonAutomation_3rdParty_OnnxToolsPA_H
#include <string>
#include <onnxruntime_c_api.h>
#include "Common/Cpp/Unicode.h"
namespace PokemonAutomation{
#ifdef _WIN32
inline std::wstring str_to_onnx_str(const std::string& str){
return utf8_to_wstr(str);
}
#else
inline std::string str_to_onnx_str(std::string str){
return str;
}
#endif
}
#endif
/* Simple Integer Option
*
* From: https://github.com/PokemonAutomation/
*
* This option is thread-safe.
*
*/

#ifndef PokemonAutomation_3rdParty_OnnxToolsPA_H
#define PokemonAutomation_3rdParty_OnnxToolsPA_H

#include <string>
#include <onnxruntime_c_api.h>
#include "Common/Cpp/Unicode.h"

namespace PokemonAutomation{

#ifdef _WIN32

inline std::wstring str_to_onnx_str(const std::string& str){
return utf8_to_wstr(str);
}


#else


inline std::string str_to_onnx_str(std::string str){
return str;
}


#endif



}
#endif
38 changes: 19 additions & 19 deletions 3rdParty/ONNX/cpu_provider_factory.h
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "onnxruntime_c_api.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* \param use_arena zero: false. non-zero: true.
*/
ORT_EXPORT
ORT_API_STATUS(OrtSessionOptionsAppendExecutionProvider_CPU, _In_ OrtSessionOptions* options, int use_arena)
ORT_ALL_ARGS_NONNULL;
#ifdef __cplusplus
}
#endif
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#include "onnxruntime_c_api.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
* \param use_arena zero: false. non-zero: true.
*/
ORT_EXPORT
ORT_API_STATUS(OrtSessionOptionsAppendExecutionProvider_CPU, _In_ OrtSessionOptions* options, int use_arena)
ORT_ALL_ARGS_NONNULL;

#ifdef __cplusplus
}
#endif
Loading