Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 68 of 68 for FloatType (0.24 sec)

  1. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

      mlir::Value padding_value = tf_matrix_diag_v2_or_v3_op.getPaddingValue();
      mlir::Type element_type =
          mlir::cast<ShapedType>(padding_value.getType()).getElementType();
      if (mlir::isa<FloatType>(element_type)) {
        DenseFPElementsAttr padding_attr;
        if (!matchPattern(padding_value, m_Constant(&padding_attr)) ||
            !padding_attr.isSplat() ||
            !padding_attr.getSplatValue<APFloat>().isZero()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

        if (!attr) return false;
        auto splat = mlir::dyn_cast<SplatElementsAttr>(attr);
        if (!splat) return false;
        Type element_ty = splat.getType().getElementType();
        if (mlir::isa<FloatType>(element_ty))
          return splat.getSplatValue<llvm::APFloat>().isZero();
        if (mlir::isa<IntegerType>(element_ty))
          return splat.getSplatValue<llvm::APInt>().getSExtValue() == 0;
        return false;
      };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

              if (!quantizing_op->getResult(i)
                       .getType()
                       .cast<ShapedType>()
                       .getElementType()
                       .isa<FloatType>()) {
                continue;
              }
              CreateVerifier<VerifierT>(quantizing_op, quantized_op, rewriter, i,
                                        quant_params_);
    
              if (enable_whole_model_verify) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  4. src/cmd/cgo/gcc.go

    		case 1 + signedDelta:
    			t.Go = c.int8
    		case 2 + signedDelta:
    			t.Go = c.int16
    		case 4 + signedDelta:
    			t.Go = c.int32
    		case 8 + signedDelta:
    			t.Go = c.int64
    		}
    
    	case *dwarf.FloatType:
    		switch t.Size {
    		default:
    			fatalf("%s: unexpected: %d-byte float type - %s", lineno(pos), t.Size, dtype)
    		case 4:
    			t.Go = c.float32
    		case 8:
    			t.Go = c.float64
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td

    // Checks if the param passed is a float ElementsAttr.
    def FloatElementsAttr : ElementsAttrBase<
      CPred<"$_self.isa<ElementsAttr>() && $_self.cast<ElementsAttr>().getShapedType().getElementType().isa<FloatType>()">,
            "float constant tensor">;
    
    def ExtractSingleElementAsFloat : NativeCodeCall<
        "ExtractSingleElementAsFloat($_self.cast<ElementsAttr>())">;
    
    // Checks if the value has rank at most 'n'.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 66.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

                                          delta_attr.getInt());
        }
        return BuildConstRangeTensor(elem_type, num_elements, start_attr,
                                     delta_attr);
      } else if (elem_type.isa<FloatType>()) {
        auto start_attr = start_tensor.getValues<FloatAttr>()[0];
        auto limit_attr = limit_tensor.getValues<FloatAttr>()[0];
        auto delta_attr = delta_tensor.getValues<FloatAttr>()[0];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"(*Entry).Val", Method, 0},
    		{"(*EnumType).Common", Method, 0},
    		{"(*EnumType).Size", Method, 0},
    		{"(*EnumType).String", Method, 0},
    		{"(*FloatType).Basic", Method, 0},
    		{"(*FloatType).Common", Method, 0},
    		{"(*FloatType).Size", Method, 0},
    		{"(*FloatType).String", Method, 0},
    		{"(*FuncType).Common", Method, 0},
    		{"(*FuncType).Size", Method, 0},
    		{"(*FuncType).String", Method, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/optimize.cc

    // to `raw_value`.
    template <typename T>
    bool IsConstantValueOf(mlir::TypedAttr value, T raw_value) {
      auto element_type = mlir::cast<ShapedType>(value.getType()).getElementType();
    
      if (mlir::isa<FloatType>(element_type)) {
        return FloatValueEquals(value, raw_value);
      } else if (mlir::isa<IntegerType>(element_type)) {
        auto int_attr = mlir::dyn_cast_or_null<DenseIntElementsAttr>(value);
        if (!int_attr) return false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top