- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 286 for TfLite (0.18 sec)
-
tensorflow/compiler/mlir/lite/tf_to_tfl_flatbuffer.cc
const ::tflite::Model* input_model = ::tflite::GetModel(buffer); ::tflite::optimize::BufferType quantized_type; switch (quant_specs.inference_type) { case DT_QINT8: quantized_type = ::tflite::optimize::BufferType::QUANTIZED_INT8; break; case DT_HALF: quantized_type = ::tflite::optimize::BufferType::QUANTIZED_FLOAT16; break; default:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 18:01:23 UTC 2024 - 23.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/quantize_model.h
// of double, and call TOCO's quantization routines to maintain bit-exactness of // the values with the TOCO quantizer. TfLiteStatus QuantizeModel( absl::string_view model_buffer, const tflite::TensorType &input_type, const tflite::TensorType &output_type, const tflite::TensorType &inference_type, const std::unordered_set<std::string> &operator_names, bool disable_per_channel, bool fully_quantize, std::string &output_buffer,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/input_arrays.mlir
// RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate -input-arrays=squared_difference --experimental-prune-unreachable-nodes-unconditionally --tflite-flatbuffer-to-mlir - -o - // TODO(b/329300758): re-enable filecheck | FileCheck %s // Tests -input-arrays flag. func.func @main(%arg0: tensor<4xf32>) -> tensor<4xf32> { %0 = "tfl.pseudo_const" () {value = dense<1.0> : tensor<4xf32>} : () -> tensor<4xf32> loc("Const")
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 14 19:15:40 UTC 2024 - 867 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/passes.h
// op. std::unique_ptr<OperationPass<ModuleOp>> CreateUnfoldSplatConstantPass(); // Create a pass that legalizes MHLO to TFLite dialect. std::unique_ptr<OperationPass<ModuleOp>> CreateLegalizeHloToTfLitePass(); // Creates a pass that lowers stablehlo composite ops to tflite ops. std::unique_ptr<OperationPass<ModuleOp>> CreateCompositeLoweringPass(); // Adds the HLO to TF rewrite patterns to the specified pattern list.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 21:59:06 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter.cc
#include "tensorflow/compiler/mlir/lite/ir/tfl_ops.h" #include "tensorflow/compiler/mlir/lite/quantization/ir/QuantOps.h" #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h" namespace tflite { namespace { bool IsConst(mlir::Operation* op) { return llvm::isa<mlir::arith::ConstantOp, mlir::TF::ConstOp, mlir::TFL::ConstOp, mlir::TFL::QConstOp>(op); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 06:11:34 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/common/tfl_pass_config.h
bool outline_tf_while = false; // Whether to do shape inference. bool shape_inference = true; // Whether to do TFLite runtime verification. bool runtime_verification = true; // Whether to enable TFLite variables or not, this will allow // mutable variables and produce ReadVariable/AssignVariable ops in TFLite. bool enable_tflite_variables = false; // Whether to disable the variable freezing pass or not.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 19:05:30 UTC 2024 - 6.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/py_wrapper/tac_wrapper.cc
#include "tensorflow/compiler/mlir/lite/experimental/tac/transforms/passes.h" #include "tensorflow/compiler/mlir/tensorflow/dialect_registration.h" namespace tflite { namespace { std::unique_ptr<mlir::TFL::tac::TacImporter> CreateTfLiteImporter( const std::string input_file_name) { mlir::TFL::tac::TfLiteImporter::Options options; options.file_name = input_file_name;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 06 03:08:33 UTC 2023 - 2.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_operator.h
bool IsStablehloOp(const tflite::OperatorCodeT &op_code); // Returns the MLIR op name for the flatbuffer operator corresponding to // `op_code`. std::string GetMlirOpNameFromOpCode(const ::tflite::OperatorCodeT &op_code); // Returns the builtin op code for the given MLIR operation on success; emits // error and returns std::nullopt on failure. std::optional<tflite::BuiltinOperator> GetBuiltinOpCode(Operation *mlir_op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 21:00:09 UTC 2024 - 11.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/simple.mlir
// RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - // TODO(b/329300758): add file check back after the cl is fixed | FileCheck %s // Check a few basic properties of the import-export, // including constants retaining their shape // and the module including the TFLite version. func.func @main(tensor<3x2xi32>) -> tensor<3x2xi32> { ^bb0(%arg0: tensor<3x2xi32>): // CHECK: module attributes
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/py_wrapper/tac_wrapper.h
#include <Python.h> namespace tflite { // Run target-aware-conversion for the given tflite model with the given device // specs. // Warning: The API is experimental and subject to change. bool run_tac(const std::string& model_file_path, const std::vector<std::string>& device_specs, const std::string& model_output_path); } // namespace tflite
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jul 21 01:22:53 UTC 2021 - 1.5K bytes - Viewed (0)