Commit 39cc9c12 by Tao Lv Committed by Tianqi Chen

fix doc (#510)

parent 510cd5ec
...@@ -103,7 +103,7 @@ void MyFunction() { ...@@ -103,7 +103,7 @@ void MyFunction() {
static auto& finplace_option_map = Op::GetAttr<FInplaceOption>("FInplaceOption"); static auto& finplace_option_map = Op::GetAttr<FInplaceOption>("FInplaceOption");
// quick look up attribute of add, O(1) time, vector index lookup internally. // quick look up attribute of add, O(1) time, vector index lookup internally.
auto add_inplace = finplace_option_tbl[add]; auto add_inplace = finplace_option_map[add];
} }
``` ```
Besides making the code minimum, this attribute store enables decentralization of projects. Besides making the code minimum, this attribute store enables decentralization of projects.
......
...@@ -47,7 +47,7 @@ inline Graph ApplyPass(Graph src, const std::string& pass) { ...@@ -47,7 +47,7 @@ inline Graph ApplyPass(Graph src, const std::string& pass) {
/*! /*!
* \brief Registry entry for DataIterator factory functions. * \brief Registry entry for pass functions.
*/ */
struct PassFunctionReg struct PassFunctionReg
: public dmlc::FunctionRegEntryBase<PassFunctionReg, : public dmlc::FunctionRegEntryBase<PassFunctionReg,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment