Open Deep Learning API
Loading...
Searching...
No Matches
odla_ops_basic.h
Go to the documentation of this file.
1//===- odla_ops_basic.h ---------------------------------------------------===//
2//
3// Copyright (C) 2019-2020 Alibaba Group Holding Limited.
4//
5// Licensed under the Apache License, Version 2.0 (the "License");
6// you may not use this file except in compliance with the License.
7// You may obtain a copy of the License at
8//
9// http://www.apache.org/licenses/LICENSE-2.0
10//
11// Unless required by applicable law or agreed to in writing, software
12// distributed under the License is distributed on an "AS IS" BASIS,
13// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14// See the License for the specific language governing permissions and
15// limitations under the License.
16// =============================================================================
17
18#ifndef _ODLA_OPERATOR_OPS_BASIC_H_
19#define _ODLA_OPERATOR_OPS_BASIC_H_
20
21#include <ODLA/odla_common.h>
22#include <ODLA/odla_value.h>
23
28#ifdef __cplusplus
29extern "C" {
30#endif
31
34
41 const odla_value_type value_type, const odla_value_id value_id);
42
44
51 const odla_value_type value_type, const odla_value_id value_id);
52
55
62extern ODLA_API_EXPORT odla_value ODLA_API_CALL
63odla_CreateConstant(const odla_value_type value_type, const odla_void* data_ptr,
64 const odla_value_id value_id);
65
68
74extern ODLA_API_EXPORT odla_value ODLA_API_CALL
75odla_CloneValue(const odla_value src_value, const odla_value_id value_id);
76
79
86 const odla_value_id src_value_id, const odla_value_id value_id);
87
90
97 const odla_value_type value_type, const odla_value_id value_id);
98
99#ifdef __cplusplus
100} // C extern
101#endif
102
103#endif // _ODLA_OPERATOR_OPS_BASIC_H_
#define ODLA_API_EXPORT
API export directives.
Definition: odla_common.h:172
void odla_void
void
Definition: odla_common.h:137
ODLA_API_EXPORT odla_value ODLA_API_CALL odla_CreateConstant(const odla_value_type value_type, const odla_void *data_ptr, const odla_value_id value_id)
ODLA_API_EXPORT odla_value ODLA_API_CALL odla_CreateValue(const odla_value_type value_type, const odla_value_id value_id)
Create a regular value.
ODLA_API_EXPORT odla_value ODLA_API_CALL odla_CloneValue(const odla_value src_value, const odla_value_id value_id)
ODLA_API_EXPORT odla_value ODLA_API_CALL odla_CreateVariable(const odla_value_type value_type, const odla_value_id value_id)
ODLA_API_EXPORT odla_value ODLA_API_CALL odla_CreateArgument(const odla_value_type value_type, const odla_value_id value_id)
ODLA_API_EXPORT odla_value ODLA_API_CALL odla_CloneValueById(const odla_value_id src_value_id, const odla_value_id value_id)
struct _odla_value_id * odla_value_id
Unique id of each value.
Definition: odla_value.h:74
struct _odla_value * odla_value
Value definition.
Definition: odla_value.h:65
Type of value.
Definition: odla_value.h:59