- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for addAttributes (0.21 sec)
-
tensorflow/compiler/mlir/tfr/utils/utils.cc
it->setAttr(attr.getName(), attr.getValue()); } } } // Adds `attrs` to all the operations between `begin` and `end`. Does not // include `end`. The operations might be across multiple blocks. void AddAttributes(Block::iterator begin, Block::iterator end, const NamedAttrList& attrs) { if (begin->getBlock() == end->getBlock()) { AddAttributesInSameBlock(begin, end, attrs); } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 06 03:08:33 UTC 2023 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/gpu_fusion.cc
state.addOperands(batch_norm.getOperands()); if (side_input) state.operands.push_back(side_input); state.addTypes(batch_norm.getResultTypes()); state.addAttributes(batch_norm->getAttrs()); Operation *op = rewriter.create(state); rewriter.replaceOp(batch_norm, op->getResults()); // Depending on the case, we may fuse the add, the relu, or both.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 5.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc
const std::string tf_op_full_name = absl::StrCat("tf.", node_def.op()); mlir::OperationState op_state(loc, tf_op_full_name); op_state.addOperands(func.getArguments()); op_state.addTypes(output_tys); op_state.addAttributes(attrs); mlir::Operation* tf_op = op_builder.create(op_state); op_builder.create<mlir::func::ReturnOp>(loc, tf_op->getResults()); // Run the decompose passes on the module
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/tfl_stablehlo_pass.cc
llvm::SmallVector<mlir::Type, 4> output_tys; for (int i = 0; i < custom_op.getNumResults(); i++) { output_tys.push_back(custom_op.getType(i)); } op_state.addTypes(output_tys); op_state.addAttributes(attr); auto stablehlo_op = builder.create(op_state); custom_op.replaceAllUsesWith(stablehlo_op); custom_op.erase(); }); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 24 06:08:43 UTC 2024 - 10.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc
<< ". Please make sure the op library for " << parsed_op_name << " is linked properly"; return failure(); } op_state.addAttributes(attrs); Operation* tf_op = rewriter.create(op_state); rewriter.replaceOp(op, tf_op->getResults()); // Special type fixes for TF Resource Tensors that are casted to
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_import.cc
mlir::SymbolRefAttr::get(builder.getContext(), func_names.at(body_idx)); auto cond_attr = mlir::SymbolRefAttr::get(builder.getContext(), func_names.at(cond_idx)); op_state.addAttribute("body", body_attr); op_state.addAttribute("cond", cond_attr); return absl::OkStatus(); } if (auto* opts = op.builtin_options_2.AsStablehloScatterOptions()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 66.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
return nullptr; } void TFLDialect::initialize() { addOperations< #define GET_OP_LIST #include "tensorflow/compiler/mlir/lite/ir/tfl_ops.cc.inc" >(); addAttributes< #define GET_ATTRDEF_LIST #include "tensorflow/compiler/mlir/lite/ir/tfl_ops_attrdefs.cc.inc" >(); addInterfaces<TensorFlowLiteInlinerInterface, TensorFlowLiteDialectFoldInterface>();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0) -
platforms/documentation/docs/src/samples/templates/structuring-software-projects/server-application/app/src/main/java/com/example/myproduct/server/MyProductAdminController.java
@GetMapping("/admin") public String adminForm(Model model) { model.addAttribute("versionRange", new VersionRange()); return "admin"; } @PostMapping("/admin") public String adminSubmit(@ModelAttribute VersionRange versionRange, Model model) { AdminController.INSTANCE.update(versionRange); model.addAttribute("versionRange", versionRange); return "admin"; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 903 bytes - Viewed (0) -
src/test/java/org/codelibs/opensearch/extension/analysis/DisableGraphFilterFactory.java
Registered: Wed Jun 12 15:38:08 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 1.4K bytes - Viewed (0) -
src/test/java/org/codelibs/opensearch/extension/analysis/PosConcatenationFilterFactory.java
posTags.addAll(tagList); } } @Override public TokenStream create(final TokenStream tokenStream) { final PartOfSpeechAttribute posAtt = tokenStream.addAttribute(PartOfSpeechAttribute.class); return new PosConcatenationFilter(tokenStream, posTags, () -> posAtt.getPartOfSpeech()); }
Registered: Wed Jun 12 15:38:08 UTC 2024 - Last Modified: Thu Feb 22 01:36:54 UTC 2024 - 1.9K bytes - Viewed (0)