- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 85 for ret_attrs (0.13 sec)
-
tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc
if (failed(max_unpooling.RewriteFunc())) { return signalPassFailure(); } } else { // We will look for the `tfl_fusable_op` attribute and fuse as a custom op. DictionaryAttr dict_attr = attr.getAttrs(); SmallVector<std::pair<StringRef, Attribute>, 4> attributes; bool tfl_fusable_op = false; for (auto attr_item : dict_attr) { // Push other attributes except the TFLFusableOp.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.6K 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/tf_saved_model_freeze_variables.cc
new_operands.emplace_back(operands[i]); } } auto new_while_op = builder.create<T>(while_op->getLoc(), new_operand_types, new_operands, while_op->getAttrs()); int new_index = 0; for (int i = 0; i < num_operands; ++i) { if (!skip_indices.test(i)) { while_op->getResult(i).replaceAllUsesWith( new_while_op->getResult(new_index++)); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 09:56:53 UTC 2024 - 19.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc
// {attribute_name, attribute_value} pair. llvm::SmallDenseMap<NamedAttribute, Operation*> attr_to_op_map; for (Operation* op : ops) { for (const NamedAttribute named_attr : op->getAttrs()) { attr_to_op_map.insert({named_attr, op}); } } for (int idx : llvm::seq<int>(0, attributes.size())) { const NamedAttribute& attribute = attributes[idx];
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/quantization/common/quantization_lib/quantization_utils.h
OperationState new_state(quantizing_op->getLoc(), quantizing_op->getName().getStringRef(), inputs, output_types, quantizing_op->getAttrs()); for (int i = 0; i < quantizing_op->getNumRegions(); ++i) { new_state.addRegion(); } Operation* quantized_op = rewriter.create(new_state); if (quantizing_op->getNumRegions() != 0) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc
AttrValue* value) { TF_RETURN_IF_ERROR(ConvertAttribute( mlir::cast<mlir::FlatSymbolRefAttr>(attr.getName()), value)); TF_RETURN_IF_ERROR(ConvertAttributes(attr.getAttrs().getValue(), /*attrs_to_ignore=*/{}, remove_ref_type, value->mutable_func()->mutable_attr())); return absl::OkStatus(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.cc
encoding.getBounds()[i] == ShapedType::kDynamic) { return false; } } return true; } bool HasSymbolRefAttr(Operation* op) { for (const auto& attr : op->getAttrs()) { Attribute attr_value = attr.getValue(); if (mlir::isa<SymbolRefAttr>(attr_value)) { return true; } else if (auto array_attr = mlir::dyn_cast<ArrayAttr>(attr_value)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:16:07 UTC 2024 - 18.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
llvm::SmallVector<mlir::DictionaryAttr, 4> arg_attrs, res_attrs; main_op.getAllArgAttrs(arg_attrs); main_op.getAllResultAttrs(res_attrs); std::vector<std::string> sig_def_inputs = GetStringsFromDictionaryAttr(arg_attrs, kTfSavedModelIndexPathAttr); std::vector<std::string> sig_def_outputs = GetStringsFromDictionaryAttr(res_attrs, kTfSavedModelIndexPathAttr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc
} xla::ConvolutionDimensionNumbers dnums = ConvertConvolutionDimensionNumbers(dnums_input); SmallVector<NamedAttribute> converted_attrs; for (auto attr : op->getAttrs()) { if (attr.getName() == op.getFeatureGroupCountAttrName() || attr.getName() == op.getBatchGroupCountAttrName()) { converted_attrs.push_back(attr);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 30.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc
assert(funcs_for_cluster != tpu_funcs.end()); assert(!funcs_for_cluster->second.empty()); if (funcs_for_cluster->second.size() == 1) return false; for (NamedAttribute attr : op->getAttrs()) { auto symbol_ref = mlir::dyn_cast<FlatSymbolRefAttr>(attr.getValue()); if (!symbol_ref) continue; func::FuncOp callee = symbol_table.lookup<func::FuncOp>(symbol_ref.getValue());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 27.6K bytes - Viewed (0)