Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 332 for quint8 (0.1 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/tests/bridge/convert-tf-quant-types.mlir

        %cst = "tf.Const"()  {value = dense<1> : tensor<i1>}  : () -> tensor<i1>
        "tf.Yield"(%cst) : (tensor<i1>) -> ()
        }, {
      ^bb0(%barg0: tensor<2x?x!tf_type.qint8>, %barg1: tensor<?x2x!tf_type.qint8>):
        %id = "tf.Identity"(%barg0) : (tensor<2x?x!tf_type.qint8>) -> tensor<2x?x!tf_type.qint8>
        "tf.Yield"(%id, %barg1) : (tensor<2x?x!tf_type.qint8>, tensor<?x2x!tf_type.qint8>) -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 25.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_op_base.td

    def TF_Qint8   : AnyTypeOf<
      [TF_TensorFlowType<"Qint8", "qint8">, TF_Qint8Ref],
      "8-bit quantized integer">;
    def TF_Qint16  : AnyTypeOf<
      [TF_TensorFlowType<"Qint16", "qint16">, TF_Qint16Ref],
      "16-bit quantized integer">;
    def TF_Qint32  : AnyTypeOf<
      [TF_TensorFlowType<"Qint32", "qint32">, TF_Qint32Ref],
      "32-bit quantized integer">;
    def TF_Quint8  : AnyTypeOf<
      [TF_TensorFlowType<"Quint8", "quint8">, TF_Quint8Ref],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 30.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc

                                                                 DataType type) {
      // Only qint8 and quint8 are considered here.
      double qmin, qmax;
      if (type == DT_QUINT8) {
        qmin = 0.0;
        qmax = 255.0;
      } else if (type == DT_QINT8) {
        qmin = -128.0;
        qmax = 127.0;
      } else {
        return absl::InvalidArgumentError("Only int8 and uint8 are considered.");
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/quantization/tools/tflite_op_coverage_spec_getters_gen.cc

          {"I64", "64-bit signless integer"},
          {"QI16", "QI16 type"},
          {"I8", "8-bit signless integer"},
          {"UI8", "8-bit unsigned integer"},
          {"QI8", "QI8 type"},
          {"QUI8", "QUI8 type"},
          {"TFL_Quint8", "TFLite quint8 type"},
      });
    
      return *entries;
    }
    
    void EmitDynamicRangeOp(std::vector<Record *> &defs, raw_ostream *ostream) {
      std::string dynamic_quant_kernel_support_regex =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc

          elemType.isInteger(64))
        return true;
    
      // Complex<F<32>> is allowed.
      if (mlir::isa<ComplexType>(elemType) &&
          mlir::cast<ComplexType>(elemType).getElementType().isF32())
        return true;
    
      // QUINT8 and UI8 are allowed.
      if (mlir::isa<TF::Quint8Type>(elemType) ||
          (elemType.isInteger(8) && mlir::cast<IntegerType>(elemType).isUnsigned()))
        return true;
    
      return false;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-quant.mlir

        %check = "tf.Equal"(%arg1, %one) : (tensor<i32>, tensor<i32>) -> tensor<i1>
        "tf.Yield"(%check) : (tensor<i1>) -> ()
        }, {
      ^bb0(%barg0: tensor<2x?x!tf_type.qint8>, %barg1: tensor<?x2x!tf_type.qint8>):
        %id = "tf.Identity"(%barg0) : (tensor<2x?x!tf_type.qint8>) -> tensor<2x?x!tf_type.qint8>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 01:25:29 UTC 2024
    - 37.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/convert.go

    		base.Fatalf("can only handle non-interfaces")
    	}
    	switch {
    	case from.Size() == 2 && uint8(from.Alignment()) == 2:
    		return "convT16", types.Types[types.TUINT16], false
    	case from.Size() == 4 && uint8(from.Alignment()) == 4 && !from.HasPointers():
    		return "convT32", types.Types[types.TUINT32], false
    	case from.Size() == 8 && uint8(from.Alignment()) == uint8(types.Types[types.TUINT64].Alignment()) && !from.HasPointers():
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/config.go

    	return t
    }
    
    // SetTypPtrs populates t.
    func (t *Types) SetTypPtrs() {
    	t.Bool = types.Types[types.TBOOL]
    	t.Int8 = types.Types[types.TINT8]
    	t.Int16 = types.Types[types.TINT16]
    	t.Int32 = types.Types[types.TINT32]
    	t.Int64 = types.Types[types.TINT64]
    	t.UInt8 = types.Types[types.TUINT8]
    	t.UInt16 = types.Types[types.TUINT16]
    	t.UInt32 = types.Types[types.TUINT32]
    	t.UInt64 = types.Types[types.TUINT64]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types/size.go

    	// compiler-specific stuff
    	case TINT8, TUINT8, TBOOL:
    		// bool is int8
    		w = 1
    		t.intRegs = 1
    
    	case TINT16, TUINT16:
    		w = 2
    		t.intRegs = 1
    
    	case TINT32, TUINT32:
    		w = 4
    		t.intRegs = 1
    
    	case TINT64, TUINT64:
    		w = 8
    		t.align = uint8(RegSize)
    		t.intRegs = uint8(8 / RegSize)
    
    	case TFLOAT32:
    		w = 4
    		t.floatRegs = 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/value.go

    }
    
    func (v *Value) AuxInt8() int8 {
    	if opcodeTable[v.Op].auxType != auxInt8 && opcodeTable[v.Op].auxType != auxNameOffsetInt8 {
    		v.Fatalf("op %s doesn't have an int8 aux field", v.Op)
    	}
    	return int8(v.AuxInt)
    }
    
    func (v *Value) AuxUInt8() uint8 {
    	if opcodeTable[v.Op].auxType != auxUInt8 {
    		v.Fatalf("op %s doesn't have a uint8 aux field", v.Op)
    	}
    	return uint8(v.AuxInt)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
Back to top