Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for isF64 (0.04 sec)

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

    }
    
    bool IsCompatibleTypeWithTFLCastOp(Type type) {
      auto elemType = getElementTypeOrSelf(type);
      // F16, F32, F64, BF16 types are allowed.
      if (elemType.isBF16() || elemType.isF16() || elemType.isF32() ||
          elemType.isF64())
        return true;
    
      // I1, I4, I8, I16, I32, I64 types are allowed.
      if (elemType.isInteger(1) || elemType.isInteger(4) || elemType.isInteger(8) ||
          elemType.isInteger(16) || elemType.isInteger(32) ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.cc

                rand_val = mlir::IntegerAttr::get(element_type, std::rand());
              } else if (element_type.isF16() || element_type.isF32() ||
                         element_type.isF64()) {
                rand_val = mlir::FloatAttr::get(element_type,
                                                std::rand() * 1.0 / RAND_MAX);
    
              } else {
                inst.emitWarning()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 11:51:44 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/flatbuffer_operator.h

      return std::vector<float>();
    }
    
    template <>
    inline std::vector<double> GetVector(DenseElementsAttr elements) {
      auto type = elements.getType();
      auto elemType = type.getElementType();
      if (elemType.isF64()) {
        auto vec = llvm::to_vector(llvm::map_range(
            elements.getValues<APFloat>(),
            [&](APFloat value) -> double { return value.convertToFloat(); }));
        return std::vector<double>(vec.begin(), vec.end());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 21:00:09 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc

                 << ")";
          });
          return false;
        }
    
        // Verify the data type is supported.
        Type element_ty = getElementTypeOrSelf(conv.getType());
        if (!element_ty.isF32() && !element_ty.isF64()) {
          (void)rewriter.notifyMatchFailure(conv, [&](Diagnostic &diag) {
            diag << "supported data types for _FusedConv2D are float and double, "
                 << " but got " << element_ty;
          });
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  5. src/time/zoneinfo_read.go

    	// describe a broader range of dates.
    
    	is64 := false
    	if version > 1 {
    		// Skip the 32-bit data.
    		skip := n[NTime]*4 +
    			n[NTime] +
    			n[NZone]*6 +
    			n[NChar] +
    			n[NLeap]*8 +
    			n[NStdWall] +
    			n[NUTCLocal]
    		// Skip the version 2 header that we just read.
    		skip += 4 + 16
    		d.read(skip)
    
    		is64 = true
    
    		// Read the counts again, they can differ.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top