- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 747 for Auto (0.07 sec)
-
tensorflow/compiler/mlir/lite/experimental/tac/transforms/fold_constants_to_subgraph.cc
return false; if (auto arith_const_op = dyn_cast_or_null<arith::ConstantOp>(op)) { // arith ConstOp path. auto type = mlir::cast<ShapedType>(arith_const_op.getType()).getElementType(); if (!type.isInteger(32) && !type.isInteger(64)) return false; } else if (auto const_op = dyn_cast_or_null<TFL::ConstOp>(op)) { // ConstOp path.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/numerical_utils_test.cc
} TEST(NumericalUtils, ActivationRange) { // zero point = 0 auto a = CalculateQuantizedRange(1e-6, 0, std::nullopt, std::nullopt, -128, 127); ASSERT_EQ(a.first, -128); ASSERT_EQ(a.second, 127); auto b = CalculateQuantizedRange(1e-6, 0, 0.0, std::nullopt, -128, 127); ASSERT_EQ(b.first, 0); ASSERT_EQ(b.second, 127); auto c = CalculateQuantizedRange(1e-6, 0, -1.0, 1.0, -128, 127);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 08 01:38:03 UTC 2024 - 3.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc
llvm::BitVector& erase_indices) { auto terminator = func.front().getTerminator(); int num_operands = terminator->getNumOperands(); erase_indices.resize(num_operands); for (auto arg_index : arguments_to_erase) { auto argument = func.getArgument(arg_index); for (auto& use : argument.getUses()) { if (llvm::isa<func::ReturnOp, TF::YieldOp>(use.getOwner())) {
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/lite/stablehlo/odml_converter/folders.cc
std::vector<ResultType> res; res.reserve(num_results); auto lhs_start = lhs_vals.begin(); auto rhs_start = rhs_vals.begin(); for (int i = 0; i < num_results; ++i) { auto lhs_val = lhs_splat ? *lhs_start : *(lhs_start++); auto rhs_val = rhs_splat ? *rhs_start : *(rhs_start++); auto signed_lhs_val = AddSign(lhs_val); auto signed_rhs_val = AddSign(rhs_val); if (signed_rhs_val.isZero()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 06:11:55 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.cc
for (auto& bb : fn) { for (auto& inst : bb) { auto attr_id = mlir::StringAttr::get(context, "value"); if (auto attr = inst.getAttrOfType<mlir::ElementsAttr>(attr_id)) { mlir::Attribute rand_val; mlir::Type element_type = attr.getShapedType().getElementType(); if (mlir::isa<mlir::IntegerType>(element_type)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 11:51:44 UTC 2024 - 14.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
auto tf_matmul_op = cast<TF::MatMulOp>(op); auto lhs = op->getOperand(0); auto rhs = op->getOperand(1); auto transpose = [&](Value input) -> std::pair<LogicalResult, Value> { RankedTensorType type = mlir::dyn_cast_or_null<RankedTensorType>(input.getType()); if (!type || type.getRank() != 2) return {failure(), nullptr}; auto permute_attr = DenseIntElementsAttr::get(
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/op_or_arg_name_mapper.cc
if (auto* op = op_or_val.dyn_cast<mlir::Operation*>()) { auto name_from_loc = mlir::GetNameFromLoc(op->getLoc()); if (!name_from_loc.empty()) return name_from_loc; // If the location is none of the expected types, then simply use name // generated using the op type. return std::string(op->getName().getStringRef()); } auto val = op_or_val.dyn_cast<mlir::Value>();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/tfl_to_std.cc
func.walk([&](Operation* op) { b.setInsertionPoint(op); if (auto dq = llvm::dyn_cast<DequantizeOp>(op)) { auto dcast = b.create<quantfork::DequantizeCastOp>( dq.getLoc(), dq.getOutput().getType(), dq.getInput()); dq.getOutput().replaceAllUsesWith(dcast); dq.erase(); } else if (auto q = llvm::dyn_cast<QuantizeOp>(op)) { auto qcast = b.create<quantfork::QuantizeCastOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 02:50:01 UTC 2024 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
} auto top_k_attr = backend_config.getAs<IntegerAttr>("top_k"); auto reduction_dim_attr = backend_config.getAs<IntegerAttr>("reduction_dim"); auto recall_target_attr = backend_config.getAs<FloatAttr>("recall_target"); auto aggregate_to_topk_attr = backend_config.getAs<BoolAttr>("aggregate_to_topk"); auto reduction_input_size_override_attr =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc
devices.reserve(device_map.size()); for (auto it : device_map) { auto device_alias = it.getName().strref(); auto device_list = mlir::cast<ArrayAttr>(it.getValue()); llvm::SmallVector<StringRef, 4> device_list_for_alias; device_list_for_alias.reserve(device_list.size()); for (auto device : device_list) device_list_for_alias.emplace_back(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.9K bytes - Viewed (0)