Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 227 for hilite (0.07 sec)

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

    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    #include "mlir/IR/Location.h"  // from @llvm-project
    #include "mlir/IR/MLIRContext.h"  // from @llvm-project
    
    namespace tflite {
    // Converts a TFLite flatbuffer stored in `buffer` to a MLIR module
    // The buffer must live for the duration of the function call,
    // The caller receives ownership of the module.
    // `base_loc` is used for error reporting and debug info.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/nms_utils.h

    limitations under the License.
    ==============================================================================*/
    
    // This header file defines common utils used by TFLite transformation
    // passes to work with NMS ops in TFLite.
    
    #ifndef TENSORFLOW_COMPILER_MLIR_LITE_UTILS_NMS_UTILS_H_
    #define TENSORFLOW_COMPILER_MLIR_LITE_UTILS_NMS_UTILS_H_
    
    #include <string>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 19 00:13:50 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/vhlo_const.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer --emit-stablehlo-ops=true %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir --disable-vhlo-to-stablehlo=true - -o - | FileCheck %s
    // test stablehlo roundtrip
    
    module attributes {tfl.metadata = {"keep_stablehlo_constant" = "true"}} {
     func.func @main () -> tensor<1x1x1x96xf32> {
      %0 = "vhlo.constant_v1"() <{value = #vhlo.tensor_v1<dense<0.000000e+00> : tensor<f32>>}> : () -> tensor<1x1x1x96xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 833 bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/many_attribute_op.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    
    // Confirm a wide array of attribute survives the round-trip
    func.func @main(tensor<1x6x6x16xf32>) -> tensor<1x1x1x16xf32> {
    ^bb0(%arg0: tensor<1x6x6x16xf32>):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 824 bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/disable_flex.mlir

    // RUN: not flatbuffer_translate -mlir-to-tflite-flatbuffer %s 2>&1 | FileCheck %s
    
    // CHECK: error: 'tf.Div' op is neither a custom op nor a flex op
    // CHECK: error: failed while converting: 'main'
    // CHECK: Some ops are not supported by the native TFLite runtime
    // CHECK: tf.Div(tensor<4xf32>, tensor<4xf32>) -> (tensor<4xf32>) : {name = "div"}
    
    func.func @main(tensor<4xf32>) -> tensor<4xf32> {
    ^bb0(%arg0: tensor<4xf32>):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 24 07:31:32 UTC 2022
    - 911 bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/basic_lstm.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    // Ensure basic_lstm roundtrip exactly
    
    func.func @main(%arg0: tensor<1x384xf32>, %arg1: tensor<1x96xf32>, %arg2: tensor<384x480xf32>, %arg3: tensor<384xf32>, %arg4: tensor<1x96xf32>) -> tensor<1x96xf32> {
    // CHECK-LABEL: @main
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/type_attr.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -emit-custom-ops -emit-builtin-tflite-ops=false -o - | flatbuffer_to_string - | FileCheck %s
    
    // CHECK: {
    // CHECK:   version: 3,
    // CHECK:   operator_codes: [ {
    // CHECK:     deprecated_builtin_code: 32,
    // CHECK:     custom_code: "SomeOperation",
    // CHECK:     builtin_code: CUSTOM
    // CHECK:   } ],
    // CHECK:   subgraphs: [ {
    // CHECK:     tensors: [ {
    // CHECK:       shape: [  ],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 24 07:31:32 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/external_constant.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir --use-external-constant - -o - | FileCheck %s
    // Ensure that `tfl.external_const` is imported when the flag `-use-external-constant` is enabled.
    
    func.func @main(tensor<40x37xf32>, tensor<40x37xf32>) -> tensor<40x40xf32> {
    ^bb0(%arg0: tensor<40x37xf32>, %arg1: tensor<40x37xf32>):
      %cst = arith.constant dense<1.0> : tensor<40xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/offset_buffer_test.cc

    limitations under the License.
    ==============================================================================*/
    #include "tensorflow/compiler/mlir/lite/offset_buffer.h"
    
    #include "tensorflow/core/platform/test.h"
    
    namespace tflite {
    namespace {
    
    TEST(OffsetBufferTest, IsValidBufferOffsetTrueGreaterThan1) {
      EXPECT_TRUE(IsValidBufferOffset(/*offset=*/2));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 04 01:07:10 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/utils/size_utils.h

    #define TENSORFLOW_COMPILER_MLIR_LITE_UTILS_SIZE_UTILS_H_
    
    #include <cstdint>
    
    namespace mlir {
    namespace TFL {
    
    // Converts a TF size (64-bit) to TFLite (32-bit) and properly converts TF's
    // value for dynamic size (`std::numeric_limits<int64_t>::min()`) to the
    // TFLite-specific value.
    int32_t ConvertToTfliteSize(int64_t size);
    
    }  // namespace TFL
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 23 16:15:59 UTC 2022
    - 1.1K bytes
    - Viewed (0)
Back to top