- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 47 for hasAttr (0.12 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc
if (op->hasAttr(TF::kReplicationInfoAttr)) { op->setAttr(TF::kReplicationInfoAttr, attr); } } // Replaces the replication region attribute if it already exists. void UpdateReplicationAttr(TF::TPUCompilationResultOp& op, StringAttr attr) { // Special case for getting the replication region for // TPUCompilationResultsOp. if (op->hasAttr(kTpuCompilationStatus)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 92.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc
// A map to find an attribute from its identifier. llvm::StringMap<Attribute> identifier_to_attr; for (Operation& inner_op : float_func.getBody().front().getOperations()) { if (!inner_op.hasAttr(kAttrMapAttribute)) continue; // Insert quantization related attribute if they exists. Quantization // attributes are generated in the prepare pass so the attr_map doesn't // contain the attribute names.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 54.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc
if (walked_op->hasAttr(kXlaOutsideCompilationAttr)) { return WalkResult::interrupt(); } return WalkResult::advance(); }) .wasInterrupted(); } // Returns whether `op` or any ancestors of `op` are outside compiled. bool HasOutsideCompilationAncestor(Operation* op) { while (op) { if (op->hasAttr(kXlaOutsideCompilationAttr)) { return true;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 68.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_tf_xla_call_module_to_stablehlo_pass.cc
PatternRewriter &rewriter) const override { // Removes the custom call with sharding op if the operand type is the // same as the result type. if (op->hasAttr(kShardingAttr) && op.getCallTargetName() == kShardingName && op.getNumOperands() == 1 && op.getNumResults() == 1 && op.getOperands().front().getType() == op.getResults().front().getType()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 25 09:43:18 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/preprocess_op.cc
PatternRewriter& rewriter) const override { const auto f_attr = mlir::dyn_cast<FlatSymbolRefAttr>(op.getFAttr()); // Non-quantizable op if (!op->hasAttr(kQuantTraitAttrName)) return failure(); StringRef function_name = f_attr.getValue(); // TODO(b/228928859): Improve the getter function to match attributes rather // than function name.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc
// MLIR. This will also require some trait to identify optional attributes in // MLIR. constexpr char kShapeInferenceGraph[] = "shape_inference_graph"; if (mlir::isa<mlir::TF::XlaHostComputeOp>(inst) && !inst->hasAttr(kShapeInferenceGraph) && !attrs_to_ignore.contains(kShapeInferenceGraph)) { AttrValue value; value.mutable_func()->set_name(""); (*attributes)[kShapeInferenceGraph] = value; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 11.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h
quantizing_op, custom_map)) { if (!(enable_verify && enable_whole_model_verify)) { return failure(); } if (quantizing_op->hasAttr(kDebugModeOpQuantAttrName) || quantizing_op->hasAttr(kDebugModeOpFloatAttrName)) { return failure(); } rewriter.setInsertionPoint(quantizing_op); Operation* float_op = rewriter.clone(*quantizing_op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/add_dump_tensor_op.cc
func::FuncOp new_ref_func = dyn_cast<func::FuncOp>(ref_func->clone()); return symbol_table.insert(new_ref_func); } LogicalResult match(LiftedOpT op) const override { if (!op->hasAttr(kQuantTraitAttrName) || op->getNumResults() != 1) { return failure(); } Value result = op->getResult(0); for (auto user : result.getUsers()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 22:55:22 UTC 2024 - 13K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_ops.cc
auto tf_dialect = ctx->getLoadedDialect<TF::TensorFlowDialect>(); func.walk([&](Operation *op) { if (op->getDialect() != tf_dialect) return; if (IsAllowListedOp(op)) return; if (op->hasAttr(kNoFallbackAttr)) { op->removeAttr(kNoFallbackAttr); return; } if (!ConvertToFlexOp(op)) signalPassFailure(); }); } } // namespace internal
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc
const int operand_index) { auto* defining_op = op->getOperand(operand_index).getDefiningOp(); for (auto attr : kQuantizationAxisAttrs) { if (defining_op->hasAttr(attr)) { return defining_op->getAttr(attr); } } // Not found. return rewriter.getI64IntegerAttr(-1); } LogicalResult CheckIfAttrIs8Bit(const std::string& attr, Operation* op,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 18.7K bytes - Viewed (0)