Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions paddle/gserver/gradientmachines/RecurrentGradientMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ limitations under the License. */
#include <cmath>
#include <functional>
#include <limits>
#include <memory>
#include "NeuralNetwork.h"
#include "paddle/gserver/layers/AgentLayer.h"
#include "paddle/utils/Flags.h"
Expand Down Expand Up @@ -430,11 +429,7 @@ void RecurrentGradientMachine::reorganizeInput(PassType passType) {
}

{
std::unique_ptr<AsyncGpuBlock> asyncBlock;

if (useGpu_) {
asyncBlock.reset(new AsyncGpuBlock());
}
AsyncGpuBlock asyncGpuBlock;

// inFrameLine select rows in real layer one time
for (size_t i = 0; i < inFrameLines_.size(); i++) {
Expand Down