Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for flatbuffer_to_mlir (0.23 sec)

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

      MLIRContext context(registry);
      StatusScopedDiagnosticHandler statusHandler(&context,
                                                  /*propagate=*/true);
    
      OwningOpRef<mlir::ModuleOp> module = tflite::FlatBufferToMlir(
          model_buffer, &context, UnknownLoc::get(&context));
      if (!module) {
        LOG(ERROR) << "Couldn't import flatbuffer to MLIR.";
        return kTfLiteError;
      }
    
      // Apply quantization passes.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights.cc

      std::string serialized_model(
          reinterpret_cast<const char*>(input_builder.GetBufferPointer()),
          input_builder.GetSize());
    
      OwningOpRef<mlir::ModuleOp> module = tflite::FlatBufferToMlir(
          serialized_model, &context, UnknownLoc::get(&context));
    
      // Apply quantization passes.
      PassManager pm((*module)->getName(), OpPassManager::Nesting::Implicit);
      quant::QuantizationSpecs quant_specs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/flatbuffer_translate.cc

        return emitError(loc, "parsing output array info failed ")
                   << output_arrays_flag,
               nullptr;
      }
      return tflite::FlatBufferToMlir(
          absl::string_view(input->getBufferStart(), input->getBufferSize()),
          context, loc, use_external_constant, inputs, outputs,
          experimental_prune_unreachable_nodes_unconditionally,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/python/mlir.cc

                       ("Unable to load input file " + error).c_str());
          return;
        }
    
        auto buffer_view =
            std::string_view(buffer->getBufferStart(), buffer->getBufferSize());
        module = tflite::FlatBufferToMlir(
            buffer_view, &context, loc, use_external_constant, ordered_input_arrays,
            ordered_output_arrays);
        mlir::PassManager pm(&context, module.get()->getName().getStringRef(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

        to_delete_funcs.push_back(cond);
      });
      for (auto& func : to_delete_funcs) {
        func.erase();
      }
    }
    }  // namespace
    
    OwningOpRef<mlir::ModuleOp> tflite::FlatBufferToMlir(
        absl::string_view buffer, MLIRContext* context, Location base_loc,
        bool use_external_constant,
        const std::vector<std::string>& ordered_input_arrays,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
Back to top