Skip to content
Snippets Groups Projects
Commit 39cc9c12 authored by Tao Lv's avatar Tao Lv Committed by Tianqi Chen
Browse files

fix doc (#510)

parent 510cd5ec
No related branches found
No related tags found
No related merge requests found
...@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment