提交 c5bc1267 编写于 作者: Y Yu Yang

Follow comment, rename to `GenerateTempVariableName`

上级 68f6ac01
...@@ -220,7 +220,7 @@ class OpRegistry { ...@@ -220,7 +220,7 @@ class OpRegistry {
op_checkers().at(op_type).Check(op->attrs_); op_checkers().at(op_type).Check(op->attrs_);
//! Convert Temporary variable name to an unique variable name. //! Convert Temporary variable name to an unique variable name.
AssignTempVariable(op.get()); GenerateTempVariableName(op.get());
//! Other op's custom Init for a complex Op. For simple Op, the Init //! Other op's custom Init for a complex Op. For simple Op, the Init
//! method do nothing. //! method do nothing.
...@@ -234,7 +234,7 @@ class OpRegistry { ...@@ -234,7 +234,7 @@ class OpRegistry {
}; };
private: private:
static void AssignTempVariable(OperatorBase* op) { static void GenerateTempVariableName(OperatorBase* op) {
static std::atomic<size_t> gUniqId(0UL); static std::atomic<size_t> gUniqId(0UL);
for (auto& outname : op->outputs_) { for (auto& outname : op->outputs_) {
if (outname == OperatorBase::TMP_VAR_NAME()) { if (outname == OperatorBase::TMP_VAR_NAME()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册