- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 1,900 for Initialize (0.2 sec)
-
tensorflow/c/experimental/saved_model/core/revived_types/restored_resource.cc
TFConcreteFunction* initialize, TFConcreteFunction* destroy_resource, ImmediateTensorHandlePtr resource_handle) : TensorHandleConvertible(std::move(resource_handle)), device_(device), create_resource_(create_resource), initialize_(initialize), destroy_resource_(destroy_resource) {}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 14 19:16:58 UTC 2023 - 3.1K bytes - Viewed (0) -
src/go/printer/performance_test.go
if err := (&Config{TabIndent | UseSpaces | normalizeNumbers, 8, 0}).Fprint(out, fset, node); err != nil { log.Fatalf("print error: %s", err) } } // cannot initialize in init because (printer) Fprint launches goroutines. func initialize() { const filename = "testdata/parser.go" src, err := os.ReadFile(filename) if err != nil { log.Fatalf("%s", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 09 15:10:10 UTC 2022 - 1.8K bytes - Viewed (0) -
src/container/ring/example_test.go
// Create two rings, r and s, of size 2 r := ring.New(2) s := ring.New(2) // Get the length of the ring lr := r.Len() ls := s.Len() // Initialize r with 0s for i := 0; i < lr; i++ { r.Value = 0 r = r.Next() } // Initialize s with 1s for j := 0; j < ls; j++ { s.Value = 1 s = s.Next() } // Link ring r and ring s rs := r.Link(s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 2.9K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/ExtraPropertiesExtensionsTest.kt
import org.hamcrest.CoreMatchers.nullValue import org.hamcrest.MatcherAssert.assertThat import org.junit.Test class ExtraPropertiesExtensionsTest { @Test fun `can initialize extra property via delegate provider`() { val extra = mock<ExtraPropertiesExtension> { on { get("property") } doReturn 42 } val property by extra(42)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 2.5K bytes - Viewed (0) -
test/fixedbugs/issue30087.go
_ = 1, 2 // ERROR "assignment mismatch: 1 variable but 2 values|number of variables does not match|cannot assign" c, d := 1 // ERROR "assignment mismatch: 2 variables but 1 value|wrong number of initializations|cannot initialize" e, f := 1, 2, 3 // ERROR "assignment mismatch: 2 variables but 3 values|wrong number of initializations|cannot initialize" _, _, _, _, _, _ = a, b, c, d, e, f
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 19 14:07:00 UTC 2023 - 734 bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/CacheInitializationAction.java
boolean requiresInitialization(FileLock fileLock); /** * Executes the action to initialize the cache. Called only if {@link #requiresInitialization(FileLock)} returns true, holding an exclusive lock. * The lock is not released between calling {@link #requiresInitialization(FileLock)} and this method. */ void initialize(FileLock fileLock); CacheInitializationAction NO_INIT_REQUIRED = new CacheInitializationAction() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 1.5K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/testfixtures/internal/NativeServicesTestFixture.java
static NativeServices nativeServices; static boolean initialized; public static synchronized void initialize() { if (!initialized) { System.setProperty("org.gradle.native", "true"); File nativeDir = getNativeServicesDir(); NativeServices.initializeOnDaemon(nativeDir, NativeServicesMode.fromSystemProperties()); initialized = true; } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.8K bytes - Viewed (0) -
src/cmd/compile/internal/test/issue57434_test.go
) var output int type Object struct { Val int } func (o *Object) Initialize() *Object { o.Val = 5 return o } func (o *Object) Update() *Object { o.Val = o.Val + 1 return o } func TestAutotmpLoopDepth(t *testing.T) { f := func() { for i := 0; i < 10; i++ { var obj Object obj.Initialize().Update() output = obj.Val } } if n := testing.AllocsPerRun(10, f); n > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 14 20:24:18 UTC 2023 - 619 bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugins.go
} if !found { return nil, fmt.Errorf("unknown admission plugin: %s", name) } pluginInitializer.Initialize(plugin) // ensure that plugins have been properly initialized if err := ValidateInitialization(plugin); err != nil { return nil, fmt.Errorf("failed to initialize admission plugin %q: %v", name, err) } return plugin, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 29 15:48:39 UTC 2023 - 6K bytes - Viewed (0) -
test/fixedbugs/issue59709.dir/cmem.go
var G int type memResource struct { x *int } func (m *memResource) initialize(*int) (res *int, err error) { return nil, nil } func (m *memResource) teardown() { } func NewResource(cfg *aconfig.Config) *bresource.Resource[*int] { res := &memResource{ x: &G, } return bresource.New("Mem", res.initialize, bresource.ResConfig{ // We always would want to retry the Memcache initialization.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 05 21:04:28 UTC 2023 - 714 bytes - Viewed (0)