ONE - On-device Neural Engine
Loading...
Searching...
No Matches
ggma_types.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2025 Samsung Electronics Co., Ltd. All Rights Reserved
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
21
#ifndef __GGMA_GGMA_TYPES_H__
22
#define __GGMA_GGMA_TYPES_H__
23
24
#include <stddef.h>
25
#include <stdint.h>
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
34
typedef
enum
35
{
37
GGMA_STATUS_NO_ERROR
= 0,
42
GGMA_STATUS_ERROR
= 1,
44
GGMA_STATUS_UNEXPECTED_NULL
= 2,
46
GGMA_STATUS_OUT_OF_MEMORY
= 4,
48
GGMA_STATUS_DEPRECATED_API
= 6,
49
}
GGMA_STATUS
;
50
51
/* Forward declarations */
52
typedef
struct
ggma_context
ggma_context
;
53
typedef
int32_t
ggma_token
;
54
typedef
struct
ggma_tokenizer
ggma_tokenizer
;
55
56
#ifdef __cplusplus
57
}
58
#endif
59
60
#endif
// __GGMA_GGMA_TYPES_H__
ggma_context
struct ggma_context ggma_context
Opaque handle to a GGMA inference context.
Definition
ggma_context.h:36
ggma_tokenizer
struct ggma_tokenizer ggma_tokenizer
Opaque handle to a GGMA tokenizer.
Definition
ggma_tokenize.h:36
GGMA_STATUS
GGMA_STATUS
Enumeration of status codes returned by GGMA API functions.
Definition
ggma_types.h:35
GGMA_STATUS_NO_ERROR
@ GGMA_STATUS_NO_ERROR
Definition
ggma_types.h:37
GGMA_STATUS_UNEXPECTED_NULL
@ GGMA_STATUS_UNEXPECTED_NULL
Definition
ggma_types.h:44
GGMA_STATUS_DEPRECATED_API
@ GGMA_STATUS_DEPRECATED_API
Definition
ggma_types.h:48
GGMA_STATUS_ERROR
@ GGMA_STATUS_ERROR
Definition
ggma_types.h:42
GGMA_STATUS_OUT_OF_MEMORY
@ GGMA_STATUS_OUT_OF_MEMORY
Definition
ggma_types.h:46
ggma_token
int32_t ggma_token
Definition
ggma_types.h:53
runtime
ggma
include
ggma_types.h
Generated by
1.9.8