mxnet
c_api_test.h
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  */
19 
24 #ifndef MXNET_C_API_TEST_H_
25 #define MXNET_C_API_TEST_H_
26 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif // __cplusplus
31 
32 #include <mxnet/c_api.h>
33 
41  const char* prop_name,
42  const uint32_t num_ops,
43  const char** op_names,
44  SymbolHandle* ret_sym_handle);
45 
51 MXNET_DLL int MXSetSubgraphPropertyOpNames(const char* prop_name,
52  const uint32_t num_ops,
53  const char** op_names);
54 
62 MXNET_DLL int MXSetSubgraphPropertyOpNamesV2(const char* prop_name,
63  const uint32_t num_ops,
64  const char** op_names);
69 MXNET_DLL int MXRemoveSubgraphPropertyOpNames(const char* prop_name);
74 MXNET_DLL int MXRemoveSubgraphPropertyOpNamesV2(const char* prop_name);
75 
81 MXNET_DLL int MXGetEnv(const char* name, const char** value);
82 
88 MXNET_DLL int MXSetEnv(const char* name, const char* value);
89 
95 MXNET_DLL int MXGetMaxSupportedArch(uint32_t* max_arch);
96 
97 #ifdef __cplusplus
98 }
99 #endif // __cplusplus
100 
101 #endif // MXNET_C_API_TEST_H_
MXSetEnv
MXNET_DLL int MXSetEnv(const char *name, const char *value)
Set the value of an environment variable from the backend.
MXGetMaxSupportedArch
MXNET_DLL int MXGetMaxSupportedArch(uint32_t *max_arch)
Get the maximum SM architecture supported by the nvrtc compiler.
MXRemoveSubgraphPropertyOpNamesV2
MXNET_DLL int MXRemoveSubgraphPropertyOpNamesV2(const char *prop_name)
Given a subgraph property name, remove op_names attribute of the in the SubgraphBackend property.
MXRemoveSubgraphPropertyOpNames
MXNET_DLL int MXRemoveSubgraphPropertyOpNames(const char *prop_name)
Given a subgraph property name, delete the op name set in the SubgraphPropertyOpNameSet.
MXSetSubgraphPropertyOpNamesV2
MXNET_DLL int MXSetSubgraphPropertyOpNamesV2(const char *prop_name, const uint32_t num_ops, const char **op_names)
Given a subgraph property name, use the provided op names as the op_names attribute for that subgraph...
MXGetEnv
MXNET_DLL int MXGetEnv(const char *name, const char **value)
Get the value of an environment variable as seen by the backend.
c_api.h
C API of mxnet.
MXNET_DLL
#define MXNET_DLL
MXNET_DLL prefix for windows.
Definition: c_api.h:53
MXSetSubgraphPropertyOpNames
MXNET_DLL int MXSetSubgraphPropertyOpNames(const char *prop_name, const uint32_t num_ops, const char **op_names)
Given a subgraph property name, use the provided op names as the op_names attribute for that subgraph...
SymbolHandle
void * SymbolHandle
handle to a symbol that can be bind as operator
Definition: c_api.h:82
MXBuildSubgraphByOpNames
MXNET_DLL int MXBuildSubgraphByOpNames(SymbolHandle sym_handle, const char *prop_name, const uint32_t num_ops, const char **op_names, SymbolHandle *ret_sym_handle)
Inhibit C++ name-mangling for MXNet functions.