- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 70 for StringAttr (0.14 sec)
-
tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.cc
} auto& module = module_or.value(); std::srand(0); for (auto fn : module->getOps<mlir::func::FuncOp>()) { for (auto& bb : fn) { for (auto& inst : bb) { auto attr_id = mlir::StringAttr::get(context, "value"); if (auto attr = inst.getAttrOfType<mlir::ElementsAttr>(attr_id)) { mlir::Attribute rand_val; mlir::Type element_type = attr.getShapedType().getElementType();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 11:51:44 UTC 2024 - 14.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc
TF::detail::ResourceAliasAnalysisInfo::kInvalidResourceId; using OperationSetTy = SmallPtrSet<Operation*, 4>; using ResourceToOpsMapTy = DenseMap<ResourceAndDevice, OperationSetTy>; using DeviceMap = DenseMap<StringAttr, int64_t>; constexpr int64_t kAnyDevice = 0; constexpr ResourceAndDevice kInvalidResourceAndDevice{kInvalidResourceId, kAnyDevice};
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc
// Create `tf_device.cluster` operation from the discovered ops cluster. // -------------------------------------------------------------------------- // tf_device::ClusterOp CreateClusterOp(Cluster &cluster, StringAttr policy) { // Find all the values that are used outside of the cluster. These values // will be returned from the created cluster operation. llvm::DenseSet<Operation *> in_cluster;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 27.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc
bool is_supported_affine_op = false; if (llvm::isa<TF::Conv2DOp, TF::Conv3DOp, TF::DepthwiseConv2dNativeOp>(op)) { if (const auto data_format = op->getAttrOfType<StringAttr>("data_format")) { is_supported_affine_op = data_format.getValue() == "NHWC" || data_format.getValue() == "NDHWC"; } } else if (llvm::isa<TF::BatchMatMulV2Op>(op)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc
// and outline the `then` and `else` regions by moving the bodies of these // regions into these functions. Replace tf.yield with a regular return. if (if_region->hasAttrOfType<StringAttr>(kThenFuncNameAttr) && !if_region.get_thenFuncNameAttr().getValue().empty()) { then_name = mapper.GetUniqueName(if_region.get_thenFuncNameAttr().getValue()) .str(); } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc
} mlir::LogicalResult GetTopology(mlir::tf_device::ClusterOp cluster, std::string& topology) { mlir::StringAttr topology_attr = cluster->getAttrOfType<mlir::StringAttr>(tensorflow::kTopologyAttr); if (topology_attr) { topology = topology_attr.getValue(); return mlir::success(); } else { return cluster.emitOpError(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 10 20:10:40 UTC 2024 - 32.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc
} Attribute GetPaddingValue(PatternRewriter& rewriter, llvm::StringMap<Attribute>& identifier_to_attr) { llvm::StringRef padding = mlir::dyn_cast<StringAttr>(identifier_to_attr["padding"]).getValue(); return rewriter.getStringAttr(padding); } Attribute GetExplicitPaddingValue( PatternRewriter& rewriter, llvm::StringMap<Attribute>& identifier_to_attr) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 18.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc
// tf_device.cluster_func //===----------------------------------------------------------------------===// LogicalResult ClusterFuncOp::verifySymbolUses( mlir::SymbolTableCollection& symbolTable) { StringAttr func_attr = getFuncAttr().getRootReference(); func::FuncOp func = symbolTable.lookupNearestSymbolFrom<func::FuncOp>(*this, func_attr); if (!func) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc
// Signature is not modified. We do not need to keep two copies. info.signature_change = false; if (lowered_callee != callee) { lowered_callee.setName( StringAttr::get(callee->getContext(), callee.getName())); callee.erase(); SymbolTable(module).insert(lowered_callee); } } else { info.signature_change = true; for (auto& entry : callee_map) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc
for (auto var_name_and_index : llvm::enumerate(var_handle_shared_names)) function.setArgAttr(var_name_and_index.index() + var_handle_args_offset, kResourceNameArgAttr, StringAttr::get(context, var_name_and_index.value())); } } } // namespace std::unique_ptr<OperationPass<ModuleOp>> CreatePromoteResourcesToArgsPass( llvm::ArrayRef<std::string> functions) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0)