Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for asUInt64 (0.24 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. 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)
  4. 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)
  5. staging/src/k8s.io/apimachinery/pkg/api/resource/amount_test.go

    		scale  Scale
    		result int64
    		ok     bool
    	}{
    		{100, 0, 100, true},
    		{100, 1, 1000, true},
    		{100, -5, 0, false},
    		{100, 100, 0, false},
    	} {
    		r, ok := int64Amount{value: test.value, scale: test.scale}.AsInt64()
    		if r != test.result {
    			t.Errorf("%v: unexpected result: %d", test, r)
    		}
    		if ok != test.ok {
    			t.Errorf("%v: unexpected ok: %t", test, ok)
    		}
    	}
    }
    
    func TestInt64AmountAdd(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 20:54:15 UTC 2023
    - 7K bytes
    - Viewed (0)
Back to top