- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for withDevices (0.18 sec)
-
tensorflow/compiler/jit/clone_constants_for_better_clustering_test.cc
} TEST(CloneConstantsForBetterClusteringTest, HostConstantPlacedOnCpu) { Scope root = Scope::NewRootScope().ExitOnError(); Scope on_gpu = root.WithAssignedDevice(kGPU).WithDevice(kGPU); Scope on_cpu = root.WithAssignedDevice(kCPU).WithDevice(kCPU); Output in0 = ops::Placeholder(on_gpu.WithOpName("in0"), DT_FLOAT); Output in1 = ops::Placeholder(on_gpu.WithOpName("in1"), DT_FLOAT);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 8.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/DefaultInstantiationSchemeTest.groovy
def "can specify a set of services to inject"() { def services = Mock(ServiceLookup) _ * services.get(String) >> "value" when: def value = scheme.withServices(services).instantiator().newInstance(WithServices) then: value.prop == "value" } def "can create instances without invoking their constructor to use for deserialization"() { when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/DefaultInstantiatorFactory.java
return decoratingLenientScheme.withServices(services).instantiator(); } @Override public InstantiationScheme decorateScheme() { return decoratingScheme; } @Override public InstanceGenerator decorate(ServiceLookup services) { return decoratingScheme.withServices(services).instantiator(); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 8.3K bytes - Viewed (0) -
tensorflow/cc/framework/while_gradients_test.cc
// Place body on cpu1 Scope cpu1_scope = s.WithDevice("/cpu:1"); outputs->push_back(ops::AddN(cpu1_scope, {inputs[0], inputs[1]})); outputs->push_back(inputs[1]); return cpu1_scope.status(); }); // Build gradient graph on cpu1 Scope cpu1_scope = scope_.WithDevice("/cpu:1"); TF_ASSERT_OK(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 27 20:32:17 UTC 2017 - 7.7K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/InstantiationScheme.java
/** * Creates a new {@link InstantiationScheme} which creates instances using the given services, based on the configuration of this scheme. */ InstantiationScheme withServices(ServiceLookup services); /** * Returns the instantiator which creates instances using a default set of services, based on the configuration of this scheme. */ InstanceGenerator instantiator();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.9K bytes - Viewed (0) -
platforms/core-configuration/flow-services/src/main/kotlin/org/gradle/internal/flow/services/FlowScheduler.kt
instantiatorFactory: InstantiatorFactory, serviceRegistry: ServiceRegistry, ) { private val instantiator by lazy { instantiatorFactory .injectScheme() .withServices(injectableServicesOf(serviceRegistry)) .instantiator() } fun schedule(scheduled: List<RegisteredFlowAction>) { scheduled.forEach { flowAction -> instantiator
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 15:01:34 UTC 2024 - 2.1K bytes - Viewed (0) -
platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/BeanPropertyReader.kt
} override fun ReadContext.newBean(generated: Boolean): Any = if (generated) { val services = ownerService<ServiceRegistry>() instantiationScheme.withServices(services).deserializationInstantiator().newInstance(beanType, Any::class.java) } else { constructorForSerialization.newInstance() } override suspend fun ReadContext.readStateOf(bean: Any) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 3.5K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/DefaultInstantiationScheme.java
} @Override public <T> InstanceFactory<T> forType(Class<T> type) { return instantiator.factoryFor(type); } @Override public InstantiationScheme withServices(ServiceLookup services) { return new DefaultInstantiationScheme(constructorSelector, classGenerator, services, injectionAnnotations, deserializationConstructorCache); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5.2K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/DefaultVariantTransformRegistry.java
try { Class<T> parameterType = isolationScheme.parameterTypeFor(actionType); T parameterObject = parameterType == null ? null : parametersInstantiationScheme.withServices(services).instantiator().newInstance(parameterType); registration = Cast.uncheckedNonnullCast(instantiatorFactory.decorateLenient().newInstance(TypedRegistration.class, parameterObject, immutableAttributesFactory));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 8.3K bytes - Viewed (0) -
platforms/core-configuration/flow-services/src/main/kotlin/org/gradle/internal/flow/services/FlowParametersInstantiator.kt
} ) DefaultTypeValidationContext.throwOnProblemsOf(type, problems.build()) } private val instantiator by lazy { instantiatorFactory.decorateScheme().withServices(services).instantiator() } private val problemsService = services.get(Problems::class.java) private val inspection by lazy { inspectionSchemeFactory.inspectionScheme(
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 15:01:34 UTC 2024 - 4.6K bytes - Viewed (0)