Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for FloatType (0.12 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/celcoststability_test.go

    			},
    		},
    		{name: "numbers",
    			obj:    objs(math.MaxFloat64, math.MaxFloat64, math.MaxFloat32, math.MaxFloat32, math.MaxFloat64, math.MaxFloat64, int64(1)),
    			schema: schemas(numberType, numberType, floatType, floatType, doubleType, doubleType, doubleType),
    			expectCost: map[string]int64{
    				ValsEqualThemselvesAndDataLiteral("self.val1", "self.val2", fmt.Sprintf("%f", math.MaxFloat64)): 11,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:20:16 UTC 2024
    - 80.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

        // in float32 for that case.
        TensorType tensor_type = original_tensor_type;
        FloatType float_type = mlir::cast<FloatType>(tensor_type.getElementType());
        bool needs_cast = float_type.getWidth() < 32;
        if (needs_cast) {
          MLIRContext *context = rewriter.getContext();
          float_type = FloatType::getF32(context);
          if (original_tensor_type.hasRank()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc

                                << inverse_scales_type << ".\n");
        return failure();
      }
    
      if (Type inverse_scales_element_type = inverse_scales_type.getElementType();
          !mlir::isa<FloatType>(inverse_scales_element_type)) {
        LLVM_DEBUG(llvm::dbgs()
                   << "Inverse scales element should be a float type. Got: "
                   << inverse_scales_element_type << ".\n");
        return failure();
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

      // If the result isn't float and unquantizable, the min/max is ignored.
      if (!res.getType()
               .cast<mlir::ShapedType>()
               .getElementType()
               .isa<mlir::FloatType>()) {
        return nullptr;
      }
      auto mins = tensor.quantization->min;
      auto maxs = tensor.quantization->max;
      if (mins.size() != maxs.size() || mins.empty()) return nullptr;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  5. 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)
  6. 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)
Back to top