Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 747 for Auto (0.04 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

        // Sink down constants into the functions.
        for (auto extern_value : region_extern_values) {
          if (!matchPattern(extern_value, m_Constant())) {
            extern_values.insert(extern_value);
            continue;
          }
          // Add constant at start of region.
          auto const_builder = OpBuilder::atBlockBegin(&region->front());
          auto const_value = const_builder.clone(*extern_value.getDefiningOp());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/unroll_batch_matmul.cc

        PatternRewriter& rewriter) {
      int64_t shape_rank = shape.size();
      auto shape_spec_type =
          RankedTensorType::get({shape_rank}, rewriter.getIntegerType(64));
      Type resultType = RankedTensorType::get(shape, element_type);
      auto constant_attr = DenseElementsAttr::get(shape_spec_type, shape);
      auto shape_tensor =
          rewriter.create<TF::ConstOp>(loc, shape_spec_type, constant_attr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc

        for (auto it : llvm::zip_first(loop_carried_yield_operands, types)) {
          auto value = std::get<0>(it);
          auto type = std::get<1>(it);
          if (value.getType() == type) {
            args.push_back(value);
          } else {
            if (IsCompatibleTypeWithTFLCastOp(value.getType()) &&
                IsCompatibleTypeWithTFLCastOp(type)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

      const auto mins = dyn_cast<DenseFPElementsAttr>(min);
      const auto maxs = dyn_cast<DenseFPElementsAttr>(max);
      if (mins && maxs) {
        min_value.reserve(mins.getNumElements());
        max_value.reserve(maxs.getNumElements());
        for (auto it = mins.begin(); it != mins.end(); ++it) {
          min_value.push_back(FloatAttr::getValueAsDouble(*it));
        }
        for (auto it = maxs.begin(); it != maxs.end(); ++it) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/legalize_hashtables.cc

    }
    
    bool checkWhetherGraphHasValidStaticLookupTables(ModuleOp module) {
      auto hashtables = GetAllOps<TF::HashTableV2Op>(&module);
      // No needs to run the legalization patterns.
      if (hashtables.empty()) {
        return false;
      }
    
      for (auto hashtable : hashtables) {
        auto key_dtype = hashtable.getKeyDtype();
        auto value_dtype = hashtable.getValueDtype();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/translate_utils.cc

    void PopulateTfVersions(mlir::ModuleOp module, const VersionDef& versions) {
      mlir::Builder b(module.getContext());
      auto producer =
          b.getNamedAttr("producer", b.getI32IntegerAttr(versions.producer()));
      auto min_consumer = b.getNamedAttr(
          "min_consumer", b.getI32IntegerAttr(versions.min_consumer()));
      auto bad_consumers = b.getNamedAttr(
          "bad_consumers",
          b.getI32ArrayAttr(llvm::ArrayRef<int32_t>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/push_transpose_through_ewise.cc

        }
    
        if (!tpose_arg->hasOneUse()) {
          return failure();
        }
    
        auto tpose_arg_type =
            llvm::dyn_cast<RankedTensorType>(tpose_arg->getResultTypes()[0]);
        auto cst_arg_type =
            llvm::dyn_cast<RankedTensorType>(cst_arg->getResultTypes()[0]);
    
        auto tpose_arg_rank = tpose_arg_type.getRank();
        auto cst_arg_rank = cst_arg_type.getRank();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/stream_executor/stream_executor_test.cc

                              SP_Stream stream) -> void {
        auto custom_stream = static_cast<SP_Stream_st*>(stream);
        ASSERT_EQ(custom_stream->stream_id, 14);
        delete custom_stream;
        stream_deleted = true;
      };
    
      StreamExecutor* executor = GetExecutor(0);
      ASSERT_FALSE(stream_created);
      TF_ASSERT_OK_AND_ASSIGN(auto stream, executor->CreateStream());
      ASSERT_TRUE(stream_created);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 19:54:04 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.cc

        flattened_contracting_segids[i] = 0;
      }
      auto seg_prod_result_type =
          RankedTensorType::get(static_cast<int32_t>(1), builder.getI32Type());
      auto out_segids_cst = builder.create<TFL::ConstOp>(
          builder.getI32TensorAttr(flattened_out_segids));
      auto contracting_segids_cst = builder.create<TFL::ConstOp>(
          builder.getI32TensorAttr(flattened_contracting_segids));
      auto num_segids_tensor =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc

           subgraph_idx++) {
        const auto quantized_graph = output_model->subgraphs()->Get(subgraph_idx);
        const auto float_graph = model_->subgraphs()->Get(subgraph_idx);
        ASSERT_EQ(quantized_graph->tensors()->size(),
                  float_graph->tensors()->size());
        std::vector<int> used_tensors;
        for (size_t i = 0; i < quantized_graph->tensors()->size(); i++) {
          const auto quant_tensor = quantized_graph->tensors()->Get(i);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 32.3K bytes
    - Viewed (0)
Back to top