- Sort Score
- Result 10 results
- Languages All
Results 41 - 46 of 46 for StringAttr (0.21 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/cluster_outlining.cc
auto func_type = builder->getFunctionType(operand_types, op.getResultTypes()); std::string func_name; if (auto outlined_func_name = op->template getAttrOfType<StringAttr>( TF::kClusterOutlinedFunctionNameAttr)) { op->removeAttr(TF::kClusterOutlinedFunctionNameAttr); func_name = outlined_func_name.str(); } else { func_name = "_func"; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 21:25:12 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter.cc
// execution. if (llvm::isa<mlir::func::ReturnOp, mlir::quantfork::StatisticsOp>(op)) return std::nullopt; if (!HasValidHardwareTarget(op)) return std::nullopt; auto device = op->getAttrOfType<mlir::StringAttr>(mlir::TFL::tac::kDevice); if (device == nullptr) return std::nullopt; llvm::StringRef device_name_str = device.getValue(); return device_name_str.str(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 06:11:34 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util.cc
const llvm::StringRef tpu_replicate_attr_name(kTpuReplicateAttr.data(), kTpuReplicateAttr.size()); auto replicate_attr = op->getAttrOfType<mlir::StringAttr>(tpu_replicate_attr_name); if (replicate_attr) return mlir::WalkResult::interrupt(); return mlir::WalkResult::advance(); }); return walk_result.wasInterrupted(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 12:22:33 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/lift_quantizable_spots_as_functions.cc
// Set the text representation of `Method` to matched // `TF::XlaCallModuleOp`. xla_call_module_op->setAttr( kQuantizationMethodAttr, StringAttr::get(module_op.getContext(), std::move(*quantization_method_txtpb))); } } return success(); } void LiftQuantizableSpotsAsFunctionsPass::runOnOperation() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 9.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc
for (const auto& attr : node_def.attr()) { TF_ASSIGN_OR_RETURN(auto mlir_attr, ConvertAttributeValue(attr.second, &builder)); attrs.push_back({mlir::StringAttr::get(context, attr.first), mlir_attr}); } mlir::Location loc = mlir::UnknownLoc::get(context); mlir::ModuleOp module = mlir::ModuleOp::create(loc); mlir::FunctionType func_type =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 29 02:34:43 UTC 2024 - 9.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_avg_pool.cc
llvm::SmallVector<int64_t> shape = {pool.n, h, w, pool.c}; auto op_type = mlir::cast<RankedTensorType>(op->getResult(0).getType()); return RankedTensorType::get(shape, op_type.getElementType()); } StringAttr GetAvgPoolOpPadAttr(Builder& builder, CompositeOp op) { const TorchAvgPoolData pool = GetTorchAvgPoolData(op); if (pool.ph == 0 && pool.pw == 0) { return builder.getStringAttr("VALID"); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 23:16:05 UTC 2024 - 9.2K bytes - Viewed (0)