Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 371 for hilite (0.53 sec)

  1. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/bucketize.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    // Ensure bucketize roundtrip exactly
    
    func.func @main(%arg0: tensor<3x2xf32>) -> tensor<3x2xi32> {
      // CHECK-LABEL: @main
      // CHECK: "tfl.bucketize"(%arg0) <{boundaries = [0.000000e+00 : f32, 1.000000e+01 : f32, 1.000000e+02 : f32]}> : (tensor<3x2xf32>) -> tensor<3x2xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 571 bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/cast_bf16.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    // Ensure cast with bfloat16 roundtrip exactly
    
    func.func @main(tensor<4x5xbf16>) -> tensor<4x5xbf16> {
    ^bb0(%arg0: tensor<4x5xbf16>):
      // CHECK-LABEL: @main
      // CHECK:  (tensor<4x5xbf16>) -> tensor<4x5xf32>
      // CHECK-NEXT:  (tensor<4x5xf32>) -> tensor<4x5xbf16>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 18 21:28:19 UTC 2024
    - 596 bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/quant_stats.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    // Ensure "quantfork.stats" roundtrip exactly
    
    func.func @main(%arg0: tensor<1x512x672x8xf32>) -> tensor<1x512x672x8xf32> {
    // CHECK-LABEL: @main
    // CHECK: %[[RES0:.*]] = "quantfork.stats"(%arg0) <{layerStats = dense<[0.000000e+00, 2.550000e+02]> : tensor<2xf32>}> : (tensor<1x512x672x8xf32>) -> tensor<1x512x672x8xf32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 06:25:50 UTC 2024
    - 657 bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/variable.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    
    // CHECK-LABEL: main
    func.func @main() -> tensor<3x2xi32> {
      // CHECK: "tfl.pseudo_const"() <{value = dense<0> : tensor<3x2xi32>}> {tfl.is_variable} : () -> tensor<3x2xi32>
      %0 = "tfl.pseudo_const"() {value = dense<0> : tensor<3x2xi32>, tfl.is_variable} : () -> tensor<3x2xi32> loc("variable")
      func.return %0 : tensor<3x2xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 470 bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc

      for (auto dim : tensor.shape) {
        shape->add_dim()->set_size(int64_t{dim});
      }
      // TensorFlow Lite uses tflite::DynamicBufer to encode vector of strings.
      if (tensor.type == tflite::TensorType_STRING) {
        for (int i = 0; i < tflite::GetStringCount(buffer.data()); ++i) {
          tflite::StringRef str = tflite::GetString(buffer.data(), i);
          ret.add_string_val(str.str, str.len);
        }
        return ret;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/dynamic_shape.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    
    // CHECK: func @main(%arg0: tensor<?x19x19x3xf32>) -> tensor<?x9x9x4xf32>
    func.func @main(%arg0: tensor<?x19x19x3xf32>) -> tensor<?x9x9x4xf32> {
      %cst = arith.constant dense<1.0> : tensor<4xf32>
      %cst_3 = arith.constant dense<2.0> : tensor<4x3x3x3xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 24 07:35:24 UTC 2022
    - 716 bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/reshape.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    // Confirm we can extract type info from reshape
    
    func.func @main() -> tensor<2x2xf32> {
      // CHECK: %[[cst:.*]] = "tfl.pseudo_const"() <{value = dense<2> : tensor<2xi32>}> : () -> tensor<2xi32>
      // CHECK: %{{.*}} = "tfl.reshape"(%{{.*}}, %[[cst]]) : (tensor<4xf32>, tensor<2xi32>) -> tensor<2x2xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 730 bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top