Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for asUInt64 (0.13 sec)

  1. tensorflow/cc/saved_model/bundle_v2_test.cc

      EXPECT_EQ(fingerprint["saved_model_checksum"].asUInt64(),
                15788619162413586750ULL);
      EXPECT_EQ(fingerprint["graph_def_program_hash"].asUInt64(),
                706963557435316516ULL);
      EXPECT_EQ(fingerprint["signature_def_hash"].asUInt64(),
                5693392539583495303ULL);
      EXPECT_EQ(fingerprint["saved_object_graph_hash"].asUInt64(),
                12074714563970609759ULL);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 12 17:51:15 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. tensorflow/cc/saved_model/metrics_test.cc

      EXPECT_EQ(fingerprint_json["saved_model_checksum"].asUInt64(), 1);
      EXPECT_EQ(fingerprint_json["graph_def_program_hash"].asUInt64(), 2);
      EXPECT_EQ(fingerprint_json["signature_def_hash"].asUInt64(), 3);
      EXPECT_EQ(fingerprint_json["saved_object_graph_hash"].asUInt64(), 4);
      EXPECT_EQ(fingerprint_json["checkpoint_hash"].asUInt64(), 5);
    }
    
    TEST(MetricsTest, TestFoundFingerprintOnLoad) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 18 23:43:59 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  3. src/log/slog/value_access_benchmark_test.go

    		_ = a
    
    	})
    	b.Run("As", func(b *testing.B) {
    		for i := 0; i < b.N; i++ {
    			for _, kv := range vs {
    				if v, ok := kv.AsString(); ok {
    					s = v
    				} else if v, ok := kv.AsInt64(); ok {
    					ii = v
    				} else if v, ok := kv.AsUint64(); ok {
    					u = v
    				} else if v, ok := kv.AsFloat64(); ok {
    					f = v
    				} else if v, ok := kv.AsBool(); ok {
    					bb = v
    				} else if v, ok := kv.AsDuration(); ok {
    					d = v
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 21 20:55:33 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc

                        builder->getContext(), value_vec[0].AsInt64(),
                        value_vec[1].AsInt64(), llvm::ArrayRef<int64_t>(vec1),
                        value_vec[3].AsInt64(), value_vec[4].AsInt64(),
                        llvm::ArrayRef<int64_t>(vec2), value_vec[6].AsInt64(),
                        value_vec[7].AsInt64(), llvm::ArrayRef<int64_t>(vec3));
                auto named_attr =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/cel/library/quantity.go

    	if !ok {
    		return types.MaybeNoSuchOverloadErr(arg)
    	}
    	_, success := q.AsInt64()
    	return types.Bool(success)
    }
    
    func quantityGetValue(arg ref.Val) ref.Val {
    	q, ok := arg.Value().(*resource.Quantity)
    	if !ok {
    		return types.MaybeNoSuchOverloadErr(arg)
    	}
    	v, success := q.AsInt64()
    	if !success {
    		return types.WrapErr(errors.New("cannot convert value to integer"))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/api/resource/generated.proto

    option go_package = "k8s.io/apimachinery/pkg/api/resource";
    
    // Quantity is a fixed-point representation of a number.
    // It provides convenient marshaling/unmarshaling in JSON and YAML,
    // in addition to String() and AsInt64() accessors.
    //
    // The serialization format is:
    //
    // ```
    // <quantity>        ::= <signedNumber><suffix>
    //
    // 	(Note that <suffix> may be empty, from the "" case in <decimalSI>.)
    //
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    			}
    
    			if asDec {
    				if i, ok := got.AsInt64(); i != 0 || ok {
    					t.Errorf("%v: expected inf.Dec to return false for AsInt64: %d", item.input, i)
    				}
    				continue
    			}
    			i, ok := item.expect.AsInt64()
    			if !ok {
    				continue
    			}
    			j, ok := got.AsInt64()
    			if !ok {
    				if got.d.Dec == nil && got.i.scale >= 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  8. common-protos/k8s.io/apimachinery/pkg/api/resource/generated.proto

    option go_package = "k8s.io/apimachinery/pkg/api/resource";
    
    // Quantity is a fixed-point representation of a number.
    // It provides convenient marshaling/unmarshaling in JSON and YAML,
    // in addition to String() and AsInt64() accessors.
    //
    // The serialization format is:
    //
    // ```
    // <quantity>        ::= <signedNumber><suffix>
    //
    // 	(Note that <suffix> may be empty, from the "" case in <decimalSI>.)
    //
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/api/resource/amount.go

    		return 0
    	case a.value > 0:
    		return 1
    	default:
    		return -1
    	}
    }
    
    // AsInt64 returns the current amount as an int64 at scale 0, or false if the value cannot be
    // represented in an int64 OR would result in a loss of precision. This method is intended as
    // an optimization to avoid calling AsDec.
    func (a int64Amount) AsInt64() (int64, bool) {
    	if a.scale == 0 {
    		return a.value, true
    	}
    	if a.scale < 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 19:42:28 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    		return base
    	}
    
    	return base * math.Pow10(exponent)
    }
    
    // AsInt64 returns a representation of the current value as an int64 if a fast conversion
    // is possible. If false is returned, callers must use the inf.Dec form of this quantity.
    func (q *Quantity) AsInt64() (int64, bool) {
    	if q.d.Dec != nil {
    		return 0, false
    	}
    	return q.i.AsInt64()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
Back to top