Code review changes

This commit is contained in:
Gaurav Singh 2020-01-14 23:56:20 -05:00
parent b693308b33
commit 9698a34b7e
2 changed files with 2 additions and 2 deletions

View File

@ -1345,7 +1345,7 @@ void TF_OperationGetAttrString(TF_Operation* oper, const char* attr_name,
return;
}
if (max_length == 0) {
InvalidArgument("Attribute '", max_length, "' is zero");
status->status = InvalidArgument("Attribute '", max_length, "' is zero");
return;
}
const auto& s = attr->s();

View File

@ -250,7 +250,7 @@ class NotPredicate : public Predicate {
class AndRecurrencePredicate : public Predicate {
public:
explicit AndRecurrencePredicate(int64 id, Predicate* start, Predicate* step,
std::vector<string> &frame)
std::vector<string> frame)
: Predicate(id), operands_({start, step}), frame_(std::move(frame)) {}
Predicate* start() const { return operands_[0]; }