- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 85 for MatchPattern (0.21 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/init_text_file_to_import.cc
op.getValueIndex() != kTextFileIndex_LineNumber) { return failure(); } // Try to find filename from constant op. DenseStringElementsAttr filename_attr; if (!matchPattern(op.getFilename().getDefiningOp(), m_Constant(&filename_attr))) { return failure(); } if (filename_attr.getRawStringData().size() != 1) { return failure(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/utils.td
"TFL::AreLastTwoDimsTransposed($0)">>; // Checks if the param passed is of NoneType. def IsNoneType : Constraint<CPred<"$0.getType().isa<NoneType>()">>; def ConstantLikePred : CPred<"::mlir::matchPattern($0, ::mlir::m_Constant())">; def IsConstantLike : Constraint<ConstantLikePred>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc
// Check whether the scales operand has constant op. DenseFPElementsAttr scales; if (!matchPattern(scales_value, m_Constant(&scales))) { return rewriter.notifyMatchFailure(op, "scales must be constant"); } // Check whether the zero_points operand has constant op. DenseIntElementsAttr zero_points; if (!matchPattern(zero_points_value, m_Constant(&zero_points))) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 30.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/post_quantize.cc
Operation* def_op = op.getInput().getDefiningOp(); auto qconst_op = llvm::dyn_cast_or_null<QConstOp>(def_op); if (qconst_op == nullptr) return failure(); DenseIntElementsAttr perm_tensor; if (!matchPattern(op.getPerm(), m_Constant(&perm_tensor))) return failure(); if (!mlir::isa<quant::UniformQuantizedType>( (getElementTypeOrSelf(op.getOutput().getType())))) return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
pilot/pkg/networking/core/cluster_waypoint.go
} } } } return clusters } func (cb *ClusterBuilder) buildWaypointConnectOriginate(proxy *model.Proxy, push *model.PushContext) *cluster.Cluster { m := &matcher.StringMatcher{} m.MatchPattern = &matcher.StringMatcher_Prefix{ Prefix: spiffe.URIPrefix + push.Mesh.GetTrustDomain() + "/ns/" + proxy.Metadata.Namespace + "/sa/", } return cb.buildConnectOriginate(proxy, push, m) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 23 21:07:03 UTC 2024 - 9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc
rewriter.eraseOp(op.getOperation()); return success(); } // Extract the constant cond value. DenseElementsAttr cond; if (!matchPattern(op.getCond(), m_Constant(&cond))) return failure(); // TODO(hinsu): Handle constants that are not scalar booleans. auto cond_type = mlir::dyn_cast<RankedTensorType>(cond.getType());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.cc
LogicalResult matchAndRewrite(Operation *op, PatternRewriter &rewriter) const override { auto rng_op = cast<RngReadAndSkipOp>(op); DenseIntElementsAttr alg_constant; if (!matchPattern(rng_op.getAlg(), m_Constant(&alg_constant))) { return rewriter.notifyMatchFailure( op, "unable to determine algorithm statically"); } if (alg_constant.getNumElements() != 1) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.h
Operation *op = result.getOwner(); if (!isa<IdentityOp>(op) && !isa<IdentityNOp>(op)) break; val = op->getOperand(result.getResultNumber()); } return matchPattern(val, m_Constant(&attr)); } // Checks if both compilation and replication attributes are present in the // operation, and if their values are valid.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 19:47:48 UTC 2024 - 8.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize_drq.cc
const bool is_per_channel_quantization = enable_per_channel_quantization_ && quant_dim != -1; QuantizedType quant_type; DenseFPElementsAttr attr; if (!matchPattern(op->getResult(0), m_Constant(&attr))) return false; if (attr.size() < quant_specs_.minimum_elements_for_weights) { op->emitRemark("Quantization is skipped for ")
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc
namespace mlir { namespace TFL { namespace common { bool IsConstantOrNone(Operation* op) { return (op->getNumResults() == 1 && mlir::isa<NoneType>(op->getResult(0).getType())) || matchPattern(op, m_Constant()) || isa<QConstOp>(op); } // Pre-order traverse, adding results and BlockArgs to `been_defined` and // collecting operands not contained within `been_defined`. If we encounter an
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.5K bytes - Viewed (0)