- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 377 for tflite (0.43 sec)
-
tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/disable_builtin.mlir
// RUN: not flatbuffer_translate -mlir-to-tflite-flatbuffer -emit-builtin-tflite-ops=false %s 2>&1 | FileCheck %s // CHECK: 'tfl.add' op is a TFLite builtin op but builtin emission is not enabled func.func @main(tensor<3x2xi32>) -> tensor<3x2xi32> { ^bb0(%arg0: tensor<3x2xi32>): %0 = "arith.constant"() {name = "Const2", value = dense<10> : tensor<i32>} : () -> tensor<i32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 24 07:31:32 UTC 2022 - 547 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter.cc
#include "mlir/Support/LLVM.h" // from @llvm-project #include "tensorflow/compiler/mlir/lite/experimental/tac/common/targets.h" #include "tensorflow/compiler/mlir/lite/experimental/tac/hardwares/target_hardware.h" #include "tensorflow/compiler/mlir/lite/experimental/tac/runtime_metadata_generated.h" #include "tensorflow/compiler/mlir/lite/ir/tfl_ops.h" #include "tensorflow/compiler/mlir/lite/quantization/ir/QuantOps.h"
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/experimental/tac/tac.py
"""Target aware conversion for TFLite model.""" from tensorflow.compiler.mlir.lite.experimental.tac.py_wrapper import _pywrap_tac_wrapper def run_tac(model_path, targets, output_path): """Run target aware conversion for the given tflite model file. Args: model_path: Path to the tflite model file. targets: A list of string of the desired targets. E.g., ['GPU', 'CPU'].
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jul 21 01:22:53 UTC 2021 - 1.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/quantization/lite/quantize_weights.h
// quantization, specifically for // third_party/tensorflow/lite/tools/optimize/quantize_weights.h. // TODO(b/202468183): Selective quantization + quant debugger support for // dynamic range quantization for verify_numeric and whole_model_verify flags. TfLiteStatus QuantizeWeights( flatbuffers::FlatBufferBuilder* builder, const tflite::Model* input_model, const tflite::TensorType& inference_type,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 23:15:24 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_to_string.cc
#include "flatbuffers/flatbuffers.h" // from @flatbuffers #include "flatbuffers/minireflect.h" // from @flatbuffers #include "tensorflow/compiler/mlir/lite/schema/reflection/schema_generated.h" #if FLATBUFFERS_LITTLEENDIAN == 0 #include "tensorflow/lite/core/model_builder.h" #endif namespace tflite { namespace { // Reads a model from a provided file path and verifies if it is a valid
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 15:52:23 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_op_interfaces.td
def TFL_RuntimeVerification : OpInterface<"TflRuntimeVerifyOpInterface"> { let description = [{ Interface to verify TFLite runtime op verification. This verifies that the converted TFLite ops has operand/result type supported by the TFLite runtime. }]; let methods = [ StaticInterfaceMethod< [{Returns whether the op's operands/results are supported by runtime.}],
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 4.3K 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)