Skip to content

Commit ad05704

Browse files
authored
Add git attributes (#634)
1 parent fcc605e commit ad05704

File tree

2,751 files changed

+527545
-527544
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,751 files changed

+527545
-527544
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto

3rdParty/ONNX/OnnxToolsPA.h

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
/* Simple Integer Option
2-
*
3-
* From: https://github.com/PokemonAutomation/
4-
*
5-
* This option is thread-safe.
6-
*
7-
*/
8-
9-
#ifndef PokemonAutomation_3rdParty_OnnxToolsPA_H
10-
#define PokemonAutomation_3rdParty_OnnxToolsPA_H
11-
12-
#include <string>
13-
#include <onnxruntime_c_api.h>
14-
#include "Common/Cpp/Unicode.h"
15-
16-
namespace PokemonAutomation{
17-
18-
#ifdef _WIN32
19-
20-
inline std::wstring str_to_onnx_str(const std::string& str){
21-
return utf8_to_wstr(str);
22-
}
23-
24-
25-
#else
26-
27-
28-
inline std::string str_to_onnx_str(std::string str){
29-
return str;
30-
}
31-
32-
33-
#endif
34-
35-
36-
37-
}
38-
#endif
1+
/* Simple Integer Option
2+
*
3+
* From: https://github.com/PokemonAutomation/
4+
*
5+
* This option is thread-safe.
6+
*
7+
*/
8+
9+
#ifndef PokemonAutomation_3rdParty_OnnxToolsPA_H
10+
#define PokemonAutomation_3rdParty_OnnxToolsPA_H
11+
12+
#include <string>
13+
#include <onnxruntime_c_api.h>
14+
#include "Common/Cpp/Unicode.h"
15+
16+
namespace PokemonAutomation{
17+
18+
#ifdef _WIN32
19+
20+
inline std::wstring str_to_onnx_str(const std::string& str){
21+
return utf8_to_wstr(str);
22+
}
23+
24+
25+
#else
26+
27+
28+
inline std::string str_to_onnx_str(std::string str){
29+
return str;
30+
}
31+
32+
33+
#endif
34+
35+
36+
37+
}
38+
#endif
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
// Copyright (c) Microsoft Corporation. All rights reserved.
2-
// Licensed under the MIT License.
3-
4-
#include "onnxruntime_c_api.h"
5-
6-
#ifdef __cplusplus
7-
extern "C" {
8-
#endif
9-
10-
/**
11-
* \param use_arena zero: false. non-zero: true.
12-
*/
13-
ORT_EXPORT
14-
ORT_API_STATUS(OrtSessionOptionsAppendExecutionProvider_CPU, _In_ OrtSessionOptions* options, int use_arena)
15-
ORT_ALL_ARGS_NONNULL;
16-
17-
#ifdef __cplusplus
18-
}
19-
#endif
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License.
3+
4+
#include "onnxruntime_c_api.h"
5+
6+
#ifdef __cplusplus
7+
extern "C" {
8+
#endif
9+
10+
/**
11+
* \param use_arena zero: false. non-zero: true.
12+
*/
13+
ORT_EXPORT
14+
ORT_API_STATUS(OrtSessionOptionsAppendExecutionProvider_CPU, _In_ OrtSessionOptions* options, int use_arena)
15+
ORT_ALL_ARGS_NONNULL;
16+
17+
#ifdef __cplusplus
18+
}
19+
#endif

0 commit comments

Comments
 (0)