Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for subgraph_idx (0.19 sec)

  1. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc

      const Model* output_model = GetModel(buffer);
      ASSERT_TRUE(output_model);
    
      for (size_t subgraph_idx = 0; subgraph_idx < model_->subgraphs()->size();
           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());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/lite/quantize_model_test.cc

      ASSERT_THAT(model.subgraphs, SizeIs(expected_model.subgraphs.size()));
      for (size_t subgraph_idx = 0; subgraph_idx < model.subgraphs.size();
           subgraph_idx++) {
        const auto graph = model.subgraphs[subgraph_idx].get();
        const auto expected_graph = expected_model.subgraphs[subgraph_idx].get();
        for (auto& op : graph->operators) {
          for (int idx = 0; idx < op->inputs.size(); idx++) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 73.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

        uint32_t subgraph_idx = opts->update_computation_subgraph_index;
    
        if (subgraph_idx >= func_names.size()) {
          return absl::AbortedError(
              absl::StrCat("subgraph with index not found: ", subgraph_idx));
        }
        mlir::FlatSymbolRefAttr subgraph_attr = mlir::SymbolRefAttr::get(
            builder.getContext(), func_names.at(subgraph_idx));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

      // the entry functions at the beginning of the subgraph list and the
      // subgraph_index is the index in entry functions and at the same, is the
      // index in the subgraph list.
      int subgraph_index = 0;
      for (const auto& signature_def_data : signature_defs) {
        auto inputs = GetList(subgraph_index, signature_def_data.inputs);
        auto outputs = GetList(subgraph_index, signature_def_data.outputs);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/common/outline_operations.h

      // Subgraphs are given a unique incremented integer id based on when
      // they were encountered in this pass.
      const int subgraph_id_;
    
      const llvm::StringRef dialect_namespace_;
    
      Subgraph(const llvm::SetVector<Operation*> partition_ops, int num_subgraphs)
          : partition_ops_(partition_ops),
            subgraph_id_(num_subgraphs),
            func_arguments_(AccumulateOperandsDefinedAbove(partition_ops)),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 17 18:49:43 UTC 2022
    - 6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/signature_def_with_multiple_entry_points.mlir

    // CHECK-NEXT:    } ],
    // CHECK-NEXT:    outputs: [ {
    // CHECK-NEXT:      name: "result",
    // CHECK-NEXT:      tensor_index: 2
    // CHECK-NEXT:    } ],
    // CHECK-NEXT:    signature_key: "sub",
    // CHECK-NEXT:    subgraph_index: 1
    // CHECK-NEXT:  } ]
    // CHECK-NEXT: }
    module attributes {tf.versions = {bad_consumers = [], min_consumer = 12 : i32, producer = 554 : i32}, tf_saved_model.semantics} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 14 16:41:28 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/common/outline_operations.cc

          TypesFromValues(subgraph.FuncOutputs());
    
      FunctionType function_type =
          builder.getFunctionType(input_types, return_types);
    
      std::string function_name = absl::StrCat("func_", subgraph.subgraph_id_);
    
      func::FuncOp new_func = func::FuncOp::create(builder.getUnknownLoc(),
                                                   function_name, function_type);
      new_func.setVisibility(func::FuncOp::Visibility::Private);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/schema/schema_generated.h

        fbb_.AddOffset(SignatureDef::VT_SIGNATURE_KEY, signature_key);
      }
      void add_subgraph_index(uint32_t subgraph_index) {
        fbb_.AddElement<uint32_t>(SignatureDef::VT_SUBGRAPH_INDEX, subgraph_index, 0);
      }
      explicit SignatureDefBuilder(::flatbuffers::FlatBufferBuilder &_fbb)
            : fbb_(_fbb) {
        start_ = fbb_.StartTable();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 1M bytes
    - Viewed (0)
Back to top