Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 164 for FlatBuffer (0.17 sec)

  1. tensorflow/compiler/mlir/lite/flatbuffer_export.h

      // Metadata key/value pairs to write to the flatbuffer.
      std::map<std::string, std::string> metadata;
      // OpOrArgNameMapper to convert location of the op to name in flatbuffer.
      // If not set, a default mapper will be used.
      tensorflow::OpOrArgNameMapper* op_or_arg_name_mapper = nullptr;
      // User-specified value of flatbuffer alignment requirement for custom
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 09 02:51:43 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/flatbuffer_to_string.cc

                  << "Converts TensorFlowLite flatbuffer to textual output format. "
                  << "One positional input argument representing the source of the "
                  << "flatbuffer is supported.\n";
        return 1;
      }
    
      std::string serialized_model;
      if (tflite::ReadAndVerify(argv[1], &serialized_model)) return 1;
    #if FLATBUFFERS_LITTLEENDIAN == 0
      // If the flatbuffer model comes from stdin, convert its tensor content from
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 15:52:23 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/input_output_names_attr.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    
    // Tests input and output names from FlatBuffer are added to `tf.entry_function` attribute.
    
    // CHECK-LABEL: @main
    func.func @main(%arg0: tensor<4xi8>, %arg1: tensor<4xi32>) -> (tensor<4xi32>, tensor<4xi8>)
    // CHECK: attributes {tf.entry_function = {inputs = "input0,input1", outputs = "output0,output1"}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 24 07:35:24 UTC 2022
    - 726 bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/math.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    // Confirm float constants and operators survive a roundtrip
    
    func.func @main(tensor<4xf32>) -> tensor<4xf32> {
    ^bb0(%arg0: tensor<4xf32>):
      // CHECK:      [[CONST:%.*]] = "tfl.pseudo_const"() <{value = dense<1.000000e+00> : tensor<4xf32>}> : () -> tensor<4xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/unranked_tensor.mlir

    // RUN: tf-opt --tfl-legalize-tf-while %s -o - | flatbuffer_translate -mlir-to-tflite-flatbuffer - -o -  | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    
    // CHECK-LABEL: main
    func.func @main(%arg0: tensor<*xf32>) -> tensor<*xf32> {
      // CHECK:     %{{.*}} = tfl.add %{{.*}}, %{{.*}} {fused_activation_function = "NONE"} : tensor<*xf32>
      // CHECK:     return %{{.*}} : tensor<*xf32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 14 16:41:28 UTC 2022
    - 554 bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/flatbuffer_translate.h

    #include "tensorflow/compiler/mlir/op_or_arg_name_mapper.h"
    
    namespace tflite {
    
    // Translates the given MLIR `module` into a FlatBuffer and stores the
    // serialized flatbuffer into the string. This uses OpOrArgLocNameMapper to
    // convert location of the op to name in flatbuffer. Returns true if translation
    // fails, otherwise returns false.
    bool MlirToFlatBufferTranslateFunction(mlir::ModuleOp module,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 22 14:25:57 UTC 2022
    - 2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/custom_op.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    
    func.func @main(%arg0: tensor<32x4x4x128xf32>, %arg1: tensor<1x32x42x128xf32>, %arg2: tensor<4xi32>) -> tensor<1x64x84x32xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 827 bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/fake_quant.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_to_string - | FileCheck %s
    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate -tflite-flatbuffer-to-mlir - -o - | FileCheck --check-prefix=IMPORT %s
    
    func.func @main(tensor<4xf32>) -> tensor<4xf32> {
    ^bb0(%arg0: tensor<4xf32>):
    // CHECK: {
    // CHECK-NEXT:   version: 3,
    // CHECK-NEXT:     operator_codes: [ {
    // CHECK-NEXT:       deprecated_builtin_code: 80,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/tf_variant_type.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    
    func.func @main(%arg0 : tensor<!tf_type.variant<tensor<2xi32>>>, %arg1: tensor<!tf_type.variant<tensor<*xi32>>>) -> tensor<!tf_type.variant<tensor<2xi32>>> {
      func.return %arg0 : tensor<!tf_type.variant<tensor<2xi32>>>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 31 21:25:51 UTC 2024
    - 629 bytes
    - Viewed (0)
Back to top