Searched refs:attr_or (Results 1 – 2 of 2) sorted by relevance
141 auto attr_or = ConvertTensor(tensor, &builder); in EvaluateOperation() local142 RETURN_FAILURE_IF_ERROR(attr_or.status()); in EvaluateOperation()143 results->push_back(attr_or.ValueOrDie()); in EvaluateOperation()
221 auto attr_or = tensorflow::ConvertTensor(tensor, &rewriter); in matchAndRewrite() local222 if (!attr_or.ok()) return failure(); in matchAndRewrite()223 rewriter.replaceOpWithNewOp<TF::ConstOp>(op, attr_or.ValueOrDie()); in matchAndRewrite()233 auto attr_or = tensorflow::ConvertTensor(tensor, &rewriter); in matchAndRewrite() local234 if (!attr_or.ok()) return failure(); in matchAndRewrite()236 auto value = rewriter.create<TF::ConstOp>(loc, attr_or.ValueOrDie()); in matchAndRewrite()