- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 317 for setAttrs (0.26 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc
attrs.push_back(rewriter.getNamedAttr("output_quantization_axis", rewriter.getI64IntegerAttr(quant_dim))); op->setAttrs(rewriter.getDictionaryAttr(attrs)); return success(); } // This LogicalResult covers both the hybrid and fully quantized op cases. LogicalResult FillAttributesForUniformQuantizedConvolutionOp(
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/utils/visitor.cc
SymbolTableCollection symbol_table; OpBuilder builder(module.getContext()); OwningOpRef<ModuleOp> pruned = builder.create<ModuleOp>(module->getLoc()); (*pruned)->setAttrs(module->getAttrs()); builder.setInsertionPointToEnd(pruned->getBody()); llvm::SmallDenseSet<func::FuncOp> added; for (const llvm::StringRef function_name : function_names) { auto func =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 19 03:46:51 UTC 2023 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/raise_custom_ops.cc
for (const auto &idx_args : llvm::enumerate(new_block->getArguments())) { inner_op->setOperand(idx_args.index(), idx_args.value()); } custom_op->setAttrs(inner_op->getAttrs()); builder.create<YieldOp>(loc, inner_op->getResults()); custom_op.getBody().takeBody(region); op->replaceAllUsesWith(custom_op); op->erase(); } } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 07:31:01 UTC 2023 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc
return signalPassFailure(); } ModuleOp outlined_module = ModuleOp::create(getOperation().getLoc()); outlined_module->setAttrs(getOperation()->getAttrDictionary()); outlined_module->setAttr(SymbolTable::getSymbolAttrName(), StringAttr::get(ctx, kNestedModule)); symbol_table.insert(outlined_module); SymbolTable outlined_symbol_table(outlined_module);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/add_dump_tensor_op.cc
new_call_op->setAttr(kEntryFuncAttrName, rewriter.getStringAttr(new_ref_func_name.getValue())); new_call_op->setAttrs(call_op->getAttrs()); new_call_op->removeAttr(rewriter.getStringAttr(kQuantTraitAttrName)); FlatSymbolRefAttr new_func_name_attr = FlatSymbolRefAttr::get(rewriter.getContext(), new_ref_func_name); new_call_op->setAttr(kEntryFuncAttrName, new_func_name_attr);
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/tensorflow/transforms/xla_call_module_serialization.cc
auto original_stablehlo_module_attrs = op->getAttrOfType<DictionaryAttr>(kStablehloModuleAttrsAttrName); if (original_stablehlo_module_attrs) { (*stablehlo_module)->setAttrs(original_stablehlo_module_attrs); // Now, remove the attribute because later passes may not know how to handle // it, we may encounter errors such as:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc
graph_func.getLoc(), graph_func->getAttrOfType<StringAttr>(SymbolTable::getSymbolAttrName()) .getValue(), ftype); func->setAttrs(graph_func->getAttrs()); llvm::SmallVector<Type> arg_types; llvm::SmallVector<Type> res_types; llvm::SmallVector<DictionaryAttr> arg_attrs; llvm::SmallVector<DictionaryAttr> res_attrs;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 21.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc
num_cores_per_replica))) return mlir::failure(); // Copy TPUReplicateMetadata attributes to `tf_device.cluster`. cluster->setAttrs( cluster_metadata->second.getDictionary(cluster.getContext())); // Exclude `num_replicas` as cluster should be replicated if necessary. cluster->removeAttr(kNumReplicasAttr); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 22:03:30 UTC 2024 - 39.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc
operands.push_back(new_control_input); } } state.addOperands(operands); Operation* new_op = builder.create(state); item.replaceAllUsesWith(new_op); new_op->setAttrs(item.getAttrDictionary()); item.erase(); } AddStatefulControlFlowDependencies(graph_op); } // Populates an empty IslandOp and with a NoOp or Identity/IdentityN depending
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 11 20:52:36 UTC 2023 - 16.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc
auto new_call = builder.create<CallOpType>( call_op.getLoc(), lifting_info.lifted_callee.getFunctionType().getResults(), new_operands, call_op->getAttrs()); new_call->setAttr("f", SymbolRefAttr::get(builder.getContext(), lifting_info.lifted_callee.getName())); AddLoadsStoresOutsideControlFlowOp(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 55.1K bytes - Viewed (0)