- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 147 for SmallVector (0.18 sec)
-
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.h
// Quantization parameters will be used to add the requantize ops. QuantizedType params; // Avoid clobbering all uses of the value, limit to just these ops. SmallVector<std::pair<Operation*, int>> users; }; using RequantizeStates = SmallVector<RequantizeState>; // This is a worklist-driven driver for propagating quantization parameters // across operations. //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 20 11:42:17 UTC 2024 - 16.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc
} } IslandOp CreateMergedIsland(IslandOp island, SmallVector<IslandOp, 16>& islands, SmallPtrSet<Operation*, 16>& wrapped_ops) { // Compute the result of the merged island, these are the values produced by // the islands that are merged if they have a use in an island not merged, // i.e. a value that escapes. llvm::SmallVector<Type, 4> result_types; for (IslandOp new_op : islands) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 27.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc
auto loc = op->getLoc(); if (use_region_args) { auto inputs = func.getFunctionType().getInputs(); entry->addArguments(inputs, SmallVector<Location>(inputs.size(), loc)); args = entry->getArguments(); } llvm::SmallVector<Value, 4> casted_args; casted_args.reserve(func.getNumArguments()); for (const auto& ArgAndType : zip(args, func.getFunctionType().getInputs())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc
TF::XlaCallModuleOp xla_call_module_op) { SmallVector<Type> arg_types; SmallVector<Location> arg_locs; for (const Value arg : xla_call_module_op.getArgs()) { arg_types.push_back(arg.getType()); arg_locs.push_back(arg.getLoc()); } SmallVector<Type> output_types; for (const Value output : xla_call_module_op.getOutput()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 06:04:36 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc
#include <string> #include <utility> #include "absl/algorithm/container.h" #include "absl/cleanup/cleanup.h" #include "absl/strings/str_format.h" #include "absl/strings/string_view.h" #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/raw_ostream.h" #include "mlir/IR/BuiltinOps.h" // from @llvm-project #include "mlir/IR/DialectRegistry.h" // from @llvm-project
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun May 12 12:54:52 UTC 2024 - 15.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc
llvm::StringRef host_device) { // Find results and result types of ops in block that needs to returned. llvm::SmallVector<Value, 4> launch_results; llvm::SmallVector<Type, 4> launch_result_types; for (Operation& op : *launch_block) { for (Value result : op.getResults()) { bool has_external_uses = false;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/python/saved_model_to_tfl_flatbuffer.cc
} // Get the list of input Op names from the function attribute. mlir::DictionaryAttr tf_attrs = entry_function->getAttrOfType<mlir::DictionaryAttr>("tf.entry_function"); llvm::SmallVector<llvm::StringRef, 4> function_input_names; function_input_names.reserve(model_flags.input_arrays().size()); auto input_attr = tf_attrs.get("inputs"); if (!input_attr) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun May 12 12:39:37 UTC 2024 - 11K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_weights.cc
} // Check if the constant op is connected to a quantizable op at some point. bool hasUsageFromQuantizableOp(TF::ConstOp op) const { llvm::SmallVector<mlir::Value> uses_at_current_level{op}; while (!uses_at_current_level.empty()) { llvm::SmallVector<mlir::Value> next_values_to_visit; for (auto cur_op : uses_at_current_level) { for (auto& cur_op_use : cur_op.getUses()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 11.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_tf_xla_call_module_to_stablehlo_pass.cc
#include <memory> #include <string> #include <string_view> #include <utility> #include "absl/strings/str_cat.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/SmallVector.h" #include "mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project #include "mlir/Dialect/Quant/QuantOps.h" // from @llvm-project #include "mlir/Dialect/Shape/IR/Shape.h" // from @llvm-project
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 25 09:43:18 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td
"return {mlir::OperandElementTypeIterator(values.begin()), " "mlir::OperandElementTypeIterator(values.end())};", [{ ArrayAttr::get($_ctxt, [&]() { llvm::SmallVector<Attribute, 4> ret; for (auto t : $_self) ret.push_back(TypeAttr::get(t)); return ret; }()) }] >; // A derived attribute that returns the shapes of the tensors in the actual
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Oct 30 06:52:55 UTC 2023 - 30.5K bytes - Viewed (0)