- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 83 for ArrayAttr (0.25 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_quantized_functions.cc
// For consistency, we require all quantized composite function to have // the "tf_quant.quantized_ops" attribute. if (!new_func.getSymName().starts_with("quantized_")) continue; if (!new_func->hasAttrOfType<ArrayAttr>("tf_quant.quantized_ops")) { new_func->emitError() << "Missing \"tf_quant.quantized_ops\" " "attribute in the quantized composite function."; signalPassFailure(); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 8.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_serialization.cc
constexpr llvm::StringRef kCalledIndexAttrName = "called_index"; constexpr llvm::StringRef kCalledFuncAttrName = "called_func"; // Converts `called_func` attributes in custom call ops back to `called_index`. FailureOr<ArrayAttr> DesymbolizeCustomCallCalledIndex(ModuleOp module) { Builder builder(module.getContext()); SmallVector<Attribute> function_list; llvm::DenseMap<SymbolRefAttr, int> called_indexes;
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/executor_tpuv1_outline_tpu_island.cc
mlir::dyn_cast<FlatSymbolRefAttr>(attr.getValue())) { MoveFuncOp(symbol_ref, symbol_table, outlined_symbol_table); continue; } if (auto array_attr = mlir::dyn_cast<ArrayAttr>(attr.getValue())) { for (const Attribute &attribute : array_attr) { auto symbol_ref = mlir::dyn_cast<FlatSymbolRefAttr>(attribute); if (!symbol_ref) continue;
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/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc
Region& cond = while_op.getCond(); llvm::SmallVector<std::pair<int64_t, llvm::SmallVector<Value, 4>>, 4> mapping; auto mirrored_variable_indices_attr = replicate->getAttrOfType<ArrayAttr>(kMirroredVariableIndicesAttr); if (!mirrored_variable_indices_attr) return mapping; // Finds the mapping from a replicate argument to an execute operand.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td
CPred<"$_self.cast<ElementsAttr>().getShapedType().getElementType().isInteger(64)">, "Int 64 constant tensor">; // Extract the ith int element from an ArrayAttr $0 as an 32-bit IntegerAttr // with builder. class ExtractI32At<int i> : NativeCodeCall< "$_builder.getI32IntegerAttr($_self.cast<ArrayAttr>().getValue()[" # i # "].cast<IntegerAttr>().getInt())">; // Use the tensor type information from $0 and convert min $1, max $2 and
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 04 13:30:42 UTC 2024 - 28.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_save_function_ops_to_main.cc
BlockArgument GetFilePrefixArg(func::FuncOp main_func_op) { for (int i = 0; i < main_func_op.getNumArguments(); i++) { auto index_path_attr = main_func_op.getArgAttrOfType<ArrayAttr>(i, kTfSavedModelIndexPathAttr); if (index_path_attr && !index_path_attr.empty() && mlir::cast<StringAttr>(index_path_attr[0]) == kTfFilePrefix) { return main_func_op.getArgument(i); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_with_tf2xla.cc
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)) { if (!array_attr.empty() && mlir::isa<SymbolRefAttr>(*array_attr.begin())) { return true; } } } return false; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 21:49:50 UTC 2024 - 9.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc
RankedTensorType type = RankedTensorType::get({}, f.getType()); return DenseFPElementsAttr::get(type, attr); } // TODO(fengliuai): handles ArrayAttr. Note that it can be nested ArrayAttr. } return attr; } // For each output, uses the attribute name associated to the tfr types to find // out the attribute value from the collected `attrs` and create the output type
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_dynamic_layout_pass.cc
auto copy_with_layout = BuildCopyWithLayout(execute_launch, compile_launch, get_layout, entry.value().get(), &builder); auto device_list = mlir::cast<ArrayAttr>( replicate.getDevices().value().get(execute_launch.getDevice())); copy_with_layout->setAttr(kDeviceAttr, device_list.getValue()[entry.index()]);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc
for (auto value : dnums_input.output_spatial_dimensions()) { dnums.add_output_spatial_dimensions(value); } return dnums; } DenseIntElementsAttr ConvertToDenseElementsAttr(ArrayAttr array_attr, PatternRewriter &rewriter) { SmallVector<int64_t> array; array.reserve(array_attr.size()); for (auto elem : array_attr.getAsRange<IntegerAttr>()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 30.9K bytes - Viewed (0)