- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 65 for hasAttr (0.14 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc
} } } }); } // Remove `kSkipIslandOutlining` attributes. for (func::FuncOp func_op : getOperation().getOps<func::FuncOp>()) { if (func_op->hasAttr(mlir::TF::kSkipIslandOutlining)) { func_op->removeAttr(mlir::TF::kSkipIslandOutlining); } } } } // namespace std::unique_ptr<OperationPass<ModuleOp>>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.7K bytes - Viewed (0) -
fastapi/_compat.py
return ( _annotation_is_complex(annotation) or _annotation_is_complex(origin) or hasattr(origin, "__pydantic_core_schema__") or hasattr(origin, "__get_pydantic_core_schema__") ) def field_annotation_is_scalar(annotation: Any) -> bool: # handle Ellipsis here to make tuple[int, ...] work nicely
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 22.6K bytes - Viewed (0) -
tensorflow/api_template_v1.__init__.py
_API_MODULE = _sys.modules[__name__].bitwise # pylint: disable=undefined-variable _current_module = _sys.modules[__name__] _tf_api_dir = _os.path.dirname(_os.path.dirname(_API_MODULE.__file__)) if not hasattr(_current_module, "__path__"): __path__ = [_tf_api_dir] elif _tf_api_dir not in __path__: __path__.append(_tf_api_dir) # Hook external TensorFlow modules.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 23 02:14:00 UTC 2024 - 7.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc
// version 8 and above. constexpr StringRef kUsesShapePolymorphismAttr = "jax.uses_shape_polymorphism"; bool IsInLiftedFunc(Operation* op) { if (op == nullptr) return false; return op->getParentOfType<func::FuncOp>()->hasAttr(kFusedFunctionAttr); } bool IsInStableHloOpRegion(Operation* op) { if (op == nullptr) return false; auto parent_op = op->getParentOp(); return parent_op != nullptr && stablehlo::IsStablehloOp(parent_op); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 21.8K bytes - Viewed (0) -
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)