- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 126 for SmallVector (0.37 sec)
-
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc
// inputs. std::optional<llvm::StringRef> GetXlaShardingFromArg( Value value, const llvm::SmallVector<std::string>& logical_device_vec) { llvm::SmallPtrSet<Value, 4> visited_values; llvm::SmallVector<Value, 4> values_to_visit{value}; while (!values_to_visit.empty()) { llvm::SmallVector<Value, 4> next_values_to_visit; for (Value value_to_visit : values_to_visit) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 02:01:13 UTC 2024 - 28.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc
if (!first->hasOneUse() || !second->hasOneUse()) return rewriter.notifyMatchFailure(concat, "slice ops are used elsewhere"); SmallVector<int64_t> new_start; SmallVector<int64_t> new_limit; SmallVector<int64_t> new_slice_shape; new_start.reserve(first.getStrides().size()); new_limit.reserve(first.getStrides().size()); new_slice_shape.reserve(first.getStrides().size());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 26.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc
zero_point, qmin, qmax); } else if (auto q_type = dyn_cast<quant::UniformQuantizedPerAxisType>(type)) { const int size = q_type.getScales().size(); SmallVector<double, 4> scales(size); SmallVector<int64_t, 4> zero_points(size); for (int i = 0; i < size; ++i) { scales[i] = recalculate_scale(q_type.getScales()[i]); zero_points[i] = recalculate_zero_point(q_type.getZeroPoints()[i]);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 43.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc
// Parse operands, attributes, and region of op. llvm::SmallVector<llvm::SmallVector<OpAsmParser::UnresolvedOperand, 8>, 8> replicated_inputs; llvm::SmallVector<OpAsmParser::UnresolvedOperand, 8> packed_inputs; llvm::SmallVector<OpAsmParser::UnresolvedOperand, 8> region_args; llvm::SmallVector<Type, 8> region_arg_types; int32_t n = 0; Region& body = *result.addRegion();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc
#include "tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.h" #include <optional> #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/DenseMap.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/SmallVector.h" #include "llvm/Support/Casting.h" #include "mlir/Dialect/Func/IR/FuncOps.h" // from @llvm-project #include "mlir/IR/Attributes.h" // from @llvm-project #include "mlir/IR/Builders.h" // from @llvm-project
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
// UnidirectionalSequenceLstm should only have 1 output, and that is the // original ophint converted node's 3rd output. SmallVector<Type, 4> result_types; result_types.push_back(op->getOpResult(2).getType()); // Populate attributes. SmallVector<NamedAttribute, 4> attributes; // Activation will always be tanh. attributes.push_back(rewriter.getNamedAttr("fused_activation_function",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc
std::vector<std::string> input_names, output_names; GetUniqueInputOutputNodeNames(module_op, input_names, output_names); // Collects argument and result types. llvm::SmallVector<Location> arg_locs; llvm::SmallVector<Type> arg_types, result_types; for (auto func_op : module_op.getOps<func::FuncOp>()) { if (!ShouldIncludeInMainFunction(func_op)) continue;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc
// tuple type, a new tuple type with `type` and `mhlo.token` type is created // instead. SmallVector<Type> GetTypeWithToken(OpBuilder& builder, ArrayRef<Type> types, bool flatten_tuple) { SmallVector<Type> new_result_types; auto token_type = TokenType::get(builder.getContext()); if (flatten_tuple) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 40.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc
} return op->emitError() << "unknown tf_saved_model dialect attribute '" << named_attr.getName().getValue() << "'"; } SmallVector<StringRef, 2> GetExportedNames(Operation *op) { SmallVector<StringRef, 2> ret; auto exported_names = op->getAttrOfType<ArrayAttr>(kTfSavedModelExportedNamesAttr); if (exported_names) { for (auto name : exported_names) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc
const auto result_shape = result_type.getShape(); // Index for the broadcasted matrix. llvm::SmallVector<int64_t, 16> current_index(result_type.getRank(), 0); // Computes the new operand shape using the original shape and the broadcast // dimensions to match result shape. llvm::SmallVector<int64_t, 16> operand_new_shape(result_type.getRank(), 1); for (int i = 0; i < dimensions.size(); ++i) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.5K bytes - Viewed (0)