Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 7,716 for value$ (0.28 sec)

  1. src/sync/atomic/value.go

    package atomic
    
    import (
    	"unsafe"
    )
    
    // A Value provides an atomic load and store of a consistently typed value.
    // The zero value for a Value returns nil from [Value.Load].
    // Once [Value.Store] has been called, a Value must not be copied.
    //
    // A Value must not be copied after first use.
    type Value struct {
    	v any
    }
    
    // efaceWords is interface{} internal representation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:48:55 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. src/internal/trace/value.go

    package trace
    
    import "fmt"
    
    // Value is a dynamically-typed value obtained from a trace.
    type Value struct {
    	kind   ValueKind
    	scalar uint64
    }
    
    // ValueKind is the type of a dynamically-typed value from a trace.
    type ValueKind uint8
    
    const (
    	ValueBad ValueKind = iota
    	ValueUint64
    )
    
    // Kind returns the ValueKind of the value.
    //
    // It represents the underlying structure of the value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  3. src/runtime/metrics/value.go

    	KindFloat64Histogram
    )
    
    // Value represents a metric value returned by the runtime.
    type Value struct {
    	kind    ValueKind
    	scalar  uint64         // contains scalar values for scalar Kinds.
    	pointer unsafe.Pointer // contains non-scalar values.
    }
    
    // Kind returns the tag representing the kind of value this is.
    func (v Value) Kind() ValueKind {
    	return v.kind
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:59:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  4. test/typeparam/value.go

    package main
    
    import "fmt"
    
    type value[T any] struct {
    	val T
    }
    
    func get[T any](v *value[T]) T {
    	return v.val
    }
    
    func set[T any](v *value[T], val T) {
    	v.val = val
    }
    
    func (v *value[T]) set(val T) {
    	v.val = val
    }
    
    func (v *value[T]) get() T {
    	return v.val
    }
    
    func main() {
    	var v1 value[int]
    	set(&v1, 1)
    	if got, want := get(&v1), 1; got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/empty-value-attr.pbtxt

          attr {
            key: "dtype"
            value {
              type: DT_FLOAT
            }
          }
          attr {
            key: "value"
            value {
              tensor {
                dtype: DT_FLOAT
                tensor_shape {
                }
                float_val: 7
              }
            }
          }
        }
        ret {
          key: "constant"
          value: "X:output:0"
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Nov 11 19:14:04 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  6. platforms/core-runtime/build-option/src/test/groovy/org/gradle/internal/buildoption/DefaultInternalOptionsTest.groovy

            value2.explicit
    
            def value3 = options.getOption(new InternalFlag("prop3", true))
            !value3.get()
            value3.explicit
    
            def value4 = options.getOption(new InternalFlag("prop4", false))
            value4.get()
            value4.explicit
        }
    
        def "uses default for boolean option when system property is not set"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:02:02 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. src/runtime/pprof/label_test.go

    		}, {
    			m: labelMap{
    				"foo":             "bar",
    				"key1":            "value1",
    				"key2":            "value2",
    				"key3":            "value3",
    				"key4WithNewline": "\nvalue4",
    			},
    			expected: `{"foo":"bar", "key1":"value1", "key2":"value2", "key3":"value3", "key4WithNewline":"\nvalue4"}`,
    		},
    	} {
    		if got := tbl.m.String(); tbl.expected != got {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 23:34:11 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  8. testing/internal-performance-testing/src/test/groovy/org/gradle/performance/measure/AmountTest.groovy

        def "can add amounts with different units of same quantity"() {
            def sum = Amount.valueOf(valueA, unitsA) + Amount.valueOf(valueB, unitsB)
            expect:
            sum == Amount.valueOf(valueC, unitsC)
            sum.toString() == Amount.valueOf(valueC, unitsC).toString()
    
            where:
            valueA | unitsA        | valueB | unitsB        | valueC  | unitsC
            0      | Fruit.apples  | 0      | Fruit.oranges | 0       | Fruit.apples
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  9. testing/internal-testing/src/test/groovy/org/gradle/test/precondition/PredicateFileTest.groovy

            value << ["value1", "value2"]
        }
    
        def "accept multiple values"() {
            when:
            checkValidCombinations(combination)
    
            then:
            noExceptionThrown()
    
            where:
            combination << [["value2", "value3"], ["value3", "value2"]]
        }
    
        def "throws exception when single value not found"() {
            when:
            checkValidCombinations(["nonexistent"])
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. subprojects/diagnostics/src/integTest/resources/org/gradle/api/tasks/diagnostics/HelpTaskIntegrationTest/sortsOptionsInAlphabeticOrder/build.gradle

        @TaskAction
        void doSomething() {
        }
    
        @Option(option = "valueB", description = "descB")
        public void setValueB(boolean value) {
        }
    
        @Option(option = "valueA", description = "descA")
        public void setValueA(boolean value) {
        }
    
        @Option(option = "valueC", description = "descC")
        public void setValueC(boolean value) {
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 18 15:17:44 UTC 2018
    - 475 bytes
    - Viewed (0)
Back to top