Skip to content

Commit

Permalink
set default TensorPlace name in ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
itikhono committed Apr 16, 2021
1 parent ff39318 commit bb1b949
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ngraph/frontend/paddlepaddle/src/place.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@


#include <paddlepaddle_frontend/place.hpp>
#include "framework.pb.h"

using namespace ngraph;
using namespace frontend;
Expand Down Expand Up @@ -57,7 +58,7 @@ TensorPlacePDPD::TensorPlacePDPD(const InputModel &input_model, const std::vecto

TensorPlacePDPD::TensorPlacePDPD(const InputModel &input_model,
const std::shared_ptr<paddle::framework::proto::VarDesc> &var_desc)
: TensorPlacePDPD(input_model, {}, var_desc) {
: TensorPlacePDPD(input_model, {var_desc->name()}, var_desc) {
}

std::vector<Place::Ptr> TensorPlacePDPD::getConsumingPorts() const {
Expand Down

0 comments on commit bb1b949

Please sign in to comment.