Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 74 for set_resource (1.36 sec)

  1. pkg/test/framework/testcontext.go

    func (c *testContext) TrackResource(r resource.Resource) resource.ID {
    	id := c.suite.allocateResourceID(c.id, r)
    	rid := &resourceID{id: id}
    	c.scope.add(r, rid)
    	return rid
    }
    
    func (c *testContext) GetResource(ref any) error {
    	return c.scope.get(ref)
    }
    
    func (c *testContext) WorkDir() string {
    	return c.workDir
    }
    
    func (c *testContext) Environment() resource.Environment {
    	return c.suite.environment
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/get_compiler_ir.cc

        const Tensor* input = inputs[input_num];
    
        XlaCompiler::Argument arg;
        if (variable_info_lookup.count(input_num)) {
          // Handles tf.resource variables.
          TF_RET_CHECK(input->dtype() == DT_RESOURCE);
          const VariableInfo& variable = *variable_info_lookup[input_num];
          arg.kind = XlaCompiler::Argument::kResource;
          arg.resource_kind = XlaResource::kVariable;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 19K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/python/tf_tfl_flatbuffer_helpers.cc

          return DT_BOOL;
        case toco::IODataType::COMPLEX64:
          return DT_COMPLEX64;
        case toco::IODataType::COMPLEX128:
          return DT_COMPLEX128;
        case toco::IODataType::RESOURCE:
          return DT_RESOURCE;
        case toco::IODataType::VARIANT:
          return DT_VARIANT;
        default:
          return DT_INVALID;
      }
    }
    
    absl::StatusOr<std::pair<double, double>> InputStatsToMinMax(double mean,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/groovy/scripts/internal/DefaultScriptCompilationHandler.java

                    return compilationUnit;
                }
            };
    
            groovyClassLoader.setResourceLoader(NO_OP_GROOVY_RESOURCE_LOADER);
            String scriptText = source.getResource().getText();
            String scriptName = source.getClassName();
            GroovyCodeSource codeSource = new GroovyCodeSource(scriptText == null ? "" : scriptText, scriptName, "/groovy/script");
            try {
                try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/tf_xla_mlir_translate.cc

                                         data_type.value());
        const auto& resolved_dtype = data_types[data_type.index()];
        if (resolved_dtype == DT_INVALID || resolved_dtype == DT_STRING ||
            resolved_dtype == DT_RESOURCE || resolved_dtype == DT_VARIANT ||
            IsRefType(resolved_dtype))
          return errors::InvalidArgument("Unsupported dtype at index ",
                                         data_type.index(), ": ",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/plugin/namespace/lifecycle/admission_test.go

    	if err == nil {
    		actions := ""
    		for _, action := range mockClient.Actions() {
    			actions = actions + action.GetVerb() + ":" + action.GetResource().Resource + ":" + action.GetSubresource() + ", "
    		}
    		t.Errorf("expected error returned from admission handler: %v", actions)
    	}
    
    	// verify create operations in the namespace cause an error
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  7. plugin/pkg/auth/authorizer/node/node_authorizer.go

    	}
    
    	// subdivide access to specific resources
    	if attrs.IsResourceRequest() {
    		requestResource := schema.GroupResource{Group: attrs.GetAPIGroup(), Resource: attrs.GetResource()}
    		switch requestResource {
    		case secretResource:
    			return r.authorizeReadNamespacedObject(nodeName, secretVertexType, attrs)
    		case configMapResource:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:55 UTC 2024
    - 16K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating/dispatcher.go

    	}
    	ctx, span := tracing.Start(ctx, "Call mutating webhook",
    		attribute.String("configuration", configurationName),
    		attribute.String("webhook", h.Name),
    		attribute.Stringer("resource", attr.GetResource()),
    		attribute.String("subresource", attr.GetSubresource()),
    		attribute.String("operation", string(attr.GetOperation())),
    		attribute.String("UID", string(uid)))
    	defer span.End(500 * time.Millisecond)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl-provider-plugins/src/main/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/tasks/GeneratePrecompiledScriptPluginAccessors.kt

            }
        }
    
        private
        fun ClassLoader.scriptPluginPluginsFor(plugin: PrecompiledScriptPlugin): ScriptPluginPlugins =
            withCapturedOutputOnError(
                {
                    if (getResource(compiledScriptClassFile(plugin)) == null) {
                        // The compiled script class won't be present for precompiled script plugins
                        // which don't include a `plugins` block
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:10:49 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  10. plugin/pkg/admission/serviceaccount/admission.go

    		if err := s.limitSecretReferences(serviceAccount, pod); err != nil {
    			return admission.NewForbidden(a, err)
    		}
    	}
    
    	return nil
    }
    
    func shouldIgnore(a admission.Attributes) bool {
    	if a.GetResource().GroupResource() != api.Resource("pods") || (a.GetSubresource() != "" && a.GetSubresource() != "ephemeralcontainers") {
    		return true
    	}
    	obj := a.GetObject()
    	if obj == nil {
    		return true
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top