提交 d2f3c8bb 编写于 作者: Q QI JUN 提交者: GitHub

Merge pull request #4973 from QiJune/clang-build-error

fix clang build error
...@@ -358,11 +358,11 @@ LoDTensor* RNNAlgorithm::ArgCache::GetTensor(const framework::Scope& scope, ...@@ -358,11 +358,11 @@ LoDTensor* RNNAlgorithm::ArgCache::GetTensor(const framework::Scope& scope,
} }
const std::array<rnn::ArgumentName, 2> RNNAlgorithm::kArgNames{ const std::array<rnn::ArgumentName, 2> RNNAlgorithm::kArgNames{
rnn::ArgumentName{"step_unit", "step_scopes", "inputs", "outputs", "states", {rnn::ArgumentName{"step_unit", "step_scopes", "inputs", "outputs",
"ex_states", "initial_states"}, "states", "ex_states", "initial_states"},
rnn::ArgumentName{"step_unit", "step_scopes@GRAD", "outputs@GRAD", rnn::ArgumentName{"step_unit", "step_scopes@GRAD", "outputs@GRAD",
"inputs@GRAD", "states", "ex_states", "inputs@GRAD", "states", "ex_states",
"initial_states@GRAD"}}; "initial_states@GRAD"}}};
void DynamicRecurrentOp::Run(const framework::Scope& scope, void DynamicRecurrentOp::Run(const framework::Scope& scope,
const platform::DeviceContext& dev_ctx) const { const platform::DeviceContext& dev_ctx) const {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册