Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 53 for 4xi8 (0.05 sec)

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

      func.return %0 : tensor<4xf64>
    }
    
    func.func @i8() -> tensor<4xi8> {
      // CHECK-LABEL: @i8
      // CHECK: value = dense<[1, 2, 3, 4]> : tensor<4xi8>
      %0 = "tfl.pseudo_const" () { value = dense<[1, 2, 3, 4]> : tensor<4xi8> } : () -> tensor<4xi8>
      func.return %0 : tensor<4xi8>
    }
    
    func.func @i16() -> tensor<4xi16> {
      // CHECK-LABEL: @i16
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/constants_offset.mlir

      func.return %0 : tensor<4xf64>
    }
    
    func.func @i8() -> tensor<4xi8> {
      // CHECK-LABEL: @i8
      // CHECK: value = dense<[1, 2, 3, 4]> : tensor<4xi8>
      %0 = "tfl.pseudo_const" () { value = dense<[1, 2, 3, 4]> : tensor<4xi8> } : () -> tensor<4xi8>
      func.return %0 : tensor<4xi8>
    }
    
    func.func @i16() -> tensor<4xi16> {
      // CHECK-LABEL: @i16
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/reduce-type-precision.mlir

    func.func @testI8ToI4WithinRange() -> (tensor<4xi8>) {
      %0 = arith.constant dense<[-8, 0, 1, 7]> : tensor<4xi8>
      // expected-error@+1 {{type of return operand 0 ('tensor<4xi4>') doesn't match function result type ('tensor<4xi8>')}}
      func.return %0 : tensor<4xi8>
    }
    
    func.func @testI8ToI4NotWithinRange() -> tensor<4xi8> {
      %0 = arith.constant dense<[-10, 2, 3, 8]> : tensor<4xi8>
      func.return %0 : tensor<4xi8>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 01 20:01:11 UTC 2023
    - 502 bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/input_output_names_attr.mlir

    // 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"}}
    attributes {tf.entry_function = {inputs = "input0,input1", outputs = "output0,output1"}} {
      %0 = "tfl.neg"(%arg0) : (tensor<4xi8>) -> tensor<4xi8> loc("neg")
      %1 = "tfl.neg"(%arg1) : (tensor<4xi32>) -> tensor<4xi32> loc("neg")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 24 07:35:24 UTC 2022
    - 726 bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/vhlo_custom_call.mlir

    // Identity function to make the exporter happy
    func.func @main(%arg0: tensor<4xi8>) -> tensor<4xi8> {
      func.return %arg0 : tensor<4xi8>
    }
    
    //CHECK:func.func @main(%arg0: tensor<4xi8>) -> tensor<4xi8> attributes {tf.entry_function = {inputs = "arg0", outputs = "arg0"}} {
    //CHECK: return %arg0 : tensor<4xi8>
    //CHECK:}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tests/const-fold.mlir

    func.func @cast_i8_to_i1() -> tensor<4xi1> {
      %cst = arith.constant dense<[0, 1, 2, -1]> : tensor<4xi8>
      %0 = "tfl.cast"(%cst) : (tensor<4xi8>) -> tensor<4xi1>
      func.return %0 : tensor<4xi1>
    
    // CHECK: %[[CST:.*]] = arith.constant dense<[false, true, true, true]> : tensor<4xi1>
    // CHECK:  return %[[CST]]
    }
    
    // CHECK-LABEL: @cast_ui8_to_i1
    func.func @cast_ui8_to_i1() -> tensor<4xi1> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 45.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/quantization/ir/QuantOps.td

    // operate on quantized values.
    //
    // Examples from storage to quantized type:
    //   i8 -> !quant<"uniform[i8:f32]{1.0}">
    //   tensor<4xi8> -> tensor<4x!quant<"uniform[i8:f32]{1.0}">>
    //   vector<4xi8> -> vector<4x!quant<"uniform[i8:f32]{1.0}">>
    def quantfork_StorageCastOp : quantfork_Op<"scast", [Pure]> {
      let arguments = (ins quant_RealOrStorageValueType:$arg);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 13 12:46:08 UTC 2022
    - 10.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/svdf_v2.mlir

      %0 = "tfl.pseudo_const" () {value = dense<0.0> : tensor<4xf32>} : () -> tensor<4xf32> loc("Const")
      %1 = "tfl.svdf"(%arg0, %arg1, %arg2, %arg3, %0) {fused_activation_function = "RELU", rank = 2 : i32} : (tensor<4xf32>, tensor<4xi8>, tensor<4xf32>, tensor<4xf32>, tensor<4xf32>) -> tensor<4xf32>
      func.return %1 : tensor<4xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 14 16:41:28 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/vhlo.mlir

    // test stablehlo roundtrip
    
    // Identity function to make the exporter happy
    func.func @main(%arg0: tensor<4xi8>) -> tensor<4xi8> {
      func.return %arg0 : tensor<4xi8>
    }
    
    //CHECK:func.func @main(%arg0: tensor<4xi8>) -> tensor<4xi8> attributes {tf.entry_function = {inputs = "arg0", outputs = "arg0"}} {
    //CHECK: return %arg0 : tensor<4xi8>
    //CHECK:}
    
    func.func @logistic(%arg0: tensor<1x1x1x96xf32>) -> tensor<1x1x1x96xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/ir/QuantOps.td

    // operate on quantized values.
    //
    // Examples from storage to quantized type:
    //   i8 -> !quant<"uniform[i8:f32]{1.0}">
    //   tensor<4xi8> -> tensor<4x!quant<"uniform[i8:f32]{1.0}">>
    //   vector<4xi8> -> vector<4x!quant<"uniform[i8:f32]{1.0}">>
    def Quantization_StorageCastOp : Quantization_Op<"scast", [Pure]> {
      let arguments = (ins quant_RealOrStorageValueType:$arg);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 09 03:10:59 UTC 2024
    - 10.2K bytes
    - Viewed (0)
Back to top