"remove attribute"

revert-3824-remove_grad_op_type
dongzhihong 8 years ago
parent 70825506d1
commit df4fe671fe

@ -12,9 +12,9 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and See the License for the specific language governing permissions and
limitations under the License. */ limitations under the License. */
#include "paddle/framework/operator.h"
#include <algorithm> #include <algorithm>
#include <iterator>
#include "paddle/framework/operator.h"
namespace paddle { namespace paddle {
namespace framework { namespace framework {
@ -103,16 +103,6 @@ std::string OperatorBase::DebugString() const {
ss << ", "; ss << ", ";
} }
} }
ss << "), ";
ss << "Attrs:(";
size_t i = 0;
for (auto& attr : attrs_) {
ss << attr.first;
if (i != attrs_.size() - 1) {
ss << ", ";
}
i++;
}
ss << ")."; ss << ").";
return ss.str(); return ss.str();
} }

Loading…
Cancel
Save