Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 467 for Auto (0.15 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec.cc

        } else if (function_name.contains("dot_general")) {
          const auto module_op = call_op->getParentOfType<ModuleOp>();
    
          const SymbolTable symbol_table(module_op);
          auto entry_func_op =
              dyn_cast_or_null<func::FuncOp>(symbol_table.lookup(function_name));
          auto dot_general_op = *entry_func_op.getOps<DotGeneralOp>().begin();
          if (auto optional_dim = GetDotGeneralQuantizationDim(dot_general_op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 05:56:10 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/nms_utils.cc

      Value max_output_size = func_.getArgument(2);
      Value iou_threshold = func_.getArgument(3);
      Value score_threshold = func_.getArgument(4);
      auto output_type0 = func_.getFunctionType().getResult(0);
      auto output_type1 = func_.getFunctionType().getResult(1);
    
      OpBuilder builder(func_.getBody());
      auto op = builder.create<mlir::TFL::NonMaxSuppressionV4Op>(
          func_.getLoc(), output_type0, output_type1, boxes, scores,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/rewrite_tpu_embedding_ops.cc

    template <typename OpT>
    OpT AddOperandAndRewriteAs(Operation* op, Value operand, NamedAttrList attr,
                               OpBuilder* builder) {
      builder->setInsertionPoint(op);
      auto operands = llvm::to_vector<4>(op->getOperands());
      operands.push_back(operand);
      auto new_op = builder->create<OpT>(op->getLoc(), op->getResultTypes(),
                                         operands, attr.getAttrs());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 22:55:42 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/fold_constant_transpose.cc

            rewriter.getFusedLoc({const_op.getLoc(), op.getLoc()});
        auto new_value_type =
            RankedTensorType::getChecked(combined_loc, transposer.GetTargetShape(),
                                         /*elementType=*/rewriter.getF32Type());
        auto new_value_attr =
            DenseFPElementsAttr::get(new_value_type, std::move(transposed_values));
        auto new_const_op = rewriter.create<mlir::stablehlo::ConstantOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/utils/perception_ops_utils.cc

               << func_.getFunctionType().getNumResults();
      }
    
      auto attrs = attr_.getAttrs();
    
      if (failed(HasIntegerArrayWithSize(&func_, attrs, "pool_size", 2))) {
        return failure();
      }
    
      if (failed(HasIntegerArrayWithSize(&func_, attrs, "strides", 2))) {
        return failure();
      }
    
      // Retrieves padding.
      auto padding = mlir::dyn_cast_or_null<StringAttr>(attrs.get("padding"));
      if (!padding) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

            if (auto symbol_ref =
                    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);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_arith_ops_folder.h

      auto lhs_type = mlir::cast<ShapedType>(arithmetic_op.getX().getType());
      auto rhs_type = mlir::cast<ShapedType>(arithmetic_op.getY().getType());
      auto result_type =
          mlir::cast<ShapedType>(arithmetic_op.getResult().getType());
    
      // We can fold arithmetic operation only of we can prove that we will not
      // accidentally hide a broadcasting error.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tpu_partitioned_op_conversion.cc

      }
    
      auto result = getOperation()->walk([&num_cores_per_replica](Operation* op) {
        std::optional<LogicalResult> status;
        if (auto partitioned_input =
                llvm::dyn_cast_or_null<TF::TPUPartitionedInputOp>(op)) {
          status = ReplacePartitionedOp(num_cores_per_replica, partitioned_input);
        } else if (auto partitioned_output =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/metrics/types_util.cc

              }
              auto new_call = mutable_location->mutable_call()->Add();
              ExtractFileLine(loc, new_call->mutable_source());
            })
            .Case<NameLoc>([&](NameLoc loc) {
              if (!mutable_location->has_type()) {
                mutable_location->set_type(ConverterErrorData::NAMELOC);
              }
    
              auto new_call = mutable_location->mutable_call()->Add();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/translate/upgrade_graph.cc

                           [](const auto& attr_def) {
                             return attr_def.name() == "use_node_name_sharing" &&
                                    attr_def.type() == "bool";
                           }))
            return false;
        }
    
        if (!std::any_of(op_def.attr().begin(), op_def.attr().end(),
                         [](const auto& attr_def) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 14:33:47 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top