Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for asUInt64 (0.18 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. tensorflow/compiler/mlir/lite/flatbuffer_operator.cc

        } else if (value.IsString()) {
          mlir_vector.push_back(
              BuildVhloStringV1Attr(value.AsString().str(), builder));
        } else if (value.IsInt()) {
          mlir_vector.push_back(BuildVhloIntV1Attr(value.AsInt64(), builder));
        } else if (value.IsFloat()) {
          mlir_vector.push_back(BuildVhloFloatV1Attr(value.AsFloat(), builder));
        } else if (value.IsVector()) {
          std::vector<mlir::Attribute> nested_mlir_vector =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 38K bytes
    - Viewed (0)
  7. pkg/kubelet/logs/container_log_manager.go

    func parseMaxSize(size string) (int64, error) {
    	quantity, err := resource.ParseQuantity(size)
    	if err != nil {
    		return 0, err
    	}
    	maxSize, ok := quantity.AsInt64()
    	if !ok {
    		return 0, fmt.Errorf("invalid max log size")
    	}
    	return maxSize, nil
    }
    
    type containerLogManager struct {
    	runtimeService   internalapi.RuntimeService
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 15K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_node_status_test.go

    	updatedNode, err = applyNodeStatusPatch(updatedNode, patchAction.GetPatch())
    	require.NoError(t, err)
    	memCapacity := updatedNode.Status.Capacity[v1.ResourceMemory]
    	updatedMemoryCapacity, _ := (&memCapacity).AsInt64()
    	assert.Equal(t, newMemoryCapacity, updatedMemoryCapacity, "Memory capacity")
    
    	now = metav1.NewTime(clock.Now()).Rfc3339Copy()
    	for _, cond := range updatedNode.Status.Conditions {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 19:23:19 UTC 2024
    - 115.8K bytes
    - Viewed (0)
  9. api/openapi-spec/v3/apis__node.k8s.io__v1_openapi.json

          "io.k8s.apimachinery.pkg.api.resource.Quantity": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 122.9K bytes
    - Viewed (0)
  10. api/openapi-spec/v3/apis__autoscaling__v2_openapi.json

          "io.k8s.apimachinery.pkg.api.resource.Quantity": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 186.6K bytes
    - Viewed (0)
Back to top