forked from apache/tvm
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [SYMBOLIC] Add symbolic API * Update Testcase to nnvm
- Loading branch information
Showing
12 changed files
with
680 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/*! | ||
* Copyright (c) 2016 by Contributors | ||
* \file op_attr_types.h | ||
* \brief Data structures that can appear in operator attributes. | ||
*/ | ||
#ifndef NNVM_OP_ATTR_TYPES_H_ | ||
#define NNVM_OP_ATTR_TYPES_H_ | ||
|
||
#include <vector> | ||
#include <string> | ||
#include <functional> | ||
|
||
namespace nnvm { | ||
|
||
// These types are optional attributes in each op | ||
// Some of them are needed for certain pass. | ||
|
||
/*! | ||
* \brief Return list of input arguments names of each operator. | ||
* | ||
* \param attrs The attributes of the node. | ||
* \return list of inputs | ||
* \note Register under "FListInputNames", default return {"data"}. | ||
* | ||
* FListInputNames enables automatic variable creation for missing arguments. | ||
*/ | ||
using FListInputNames = std::function<std::vector<std::string> (const NodeAttrs& attrs)>; | ||
|
||
/*! | ||
* \brief Return list of output arguments names of each operator. | ||
* | ||
* \param attrs The attributes of the node. | ||
* \return list of inputs | ||
* \note Register under "FListOutputNames", default return {"outputs"}. | ||
* | ||
* FListOutputNames customized naming for operator outputs. | ||
*/ | ||
using FListOutputNames = std::function<std::vector<std::string> (const NodeAttrs& attrs)>; | ||
|
||
} // namespace nnvm | ||
|
||
#endif // NNVM_OP_ATTR_TYPES_H_ |
Oops, something went wrong.