|
|
|
@ -12,11 +12,14 @@
|
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
|
// limitations under the License.
|
|
|
|
|
|
|
|
|
|
#include "paddle/fluid/framework/naive_executor.h"
|
|
|
|
|
#include <string>
|
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
#include "paddle/fluid/framework/channel.h"
|
|
|
|
|
#include "paddle/fluid/framework/feed_fetch_method.h"
|
|
|
|
|
#include "paddle/fluid/framework/lod_rank_table.h"
|
|
|
|
|
#include "paddle/fluid/framework/lod_tensor_array.h"
|
|
|
|
|
#include "paddle/fluid/framework/naive_executor.h"
|
|
|
|
|
#include "paddle/fluid/framework/op_registry.h"
|
|
|
|
|
#include "paddle/fluid/framework/reader.h"
|
|
|
|
|
#include "paddle/fluid/string/pretty_log.h"
|
|
|
|
@ -44,8 +47,6 @@ static void InitializeVariable(Variable *var, proto::VarType::Type var_type) {
|
|
|
|
|
var->GetMutable<platform::PlaceList>();
|
|
|
|
|
} else if (var_type == proto::VarType::READER) {
|
|
|
|
|
var->GetMutable<ReaderHolder>();
|
|
|
|
|
} else if (var_type == proto::VarType::CHANNEL) {
|
|
|
|
|
var->GetMutable<ChannelHolder>();
|
|
|
|
|
} else if (var_type == proto::VarType::RAW) {
|
|
|
|
|
// GetMutable will be called in operator
|
|
|
|
|
} else {
|
|
|
|
|