- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 53 for set_kind (0.3 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.cc
arg->set_dtype(dtype); // TODO(lyandy): Support other arg kinds. if (dtype == tensorflow::DT_RESOURCE) arg->set_kind(tensorflow::tpu::TPUCompileMetadataProto::Arg::VARIABLE); else arg->set_kind(tensorflow::tpu::TPUCompileMetadataProto::Arg::PARAMETER); // Populate argument shapes. *arg->mutable_shape() = tensorflow::TensorShapeProto();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/test/apis_meta_v1_unstructed_unstructure_test.go
Object: map[string]interface{}{ "kind": "test_kind", "apiVersion": "test_version", "metadata": map[string]interface{}{ "resourceVersion": "test_resourceVersion", "selfLink": "test_selfLink", }, }, } unstruct.SetAPIVersion("test_version") unstruct.SetKind("test_kind") unstruct.SetResourceVersion("test_resourceVersion")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 05 20:12:50 UTC 2022 - 17.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/meta.go
type resourceAccessor struct{} func (resourceAccessor) Kind(obj runtime.Object) (string, error) { return objectAccessor{obj}.GetKind(), nil } func (resourceAccessor) SetKind(obj runtime.Object, kind string) error { objectAccessor{obj}.SetKind(kind) return nil } func (resourceAccessor) APIVersion(obj runtime.Object) (string, error) { return objectAccessor{obj}.GetAPIVersion(), nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Jun 25 16:23:43 UTC 2022 - 16.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/test/api_meta_meta_test.go
t.Errorf("expected %v, got %v", e, a) } if e, a := "b", typeAccessor.GetKind(); e != a { t.Errorf("expected %v, got %v", e, a) } accessor.SetNamespace("baz") accessor.SetName("bar") accessor.SetGenerateName("generate") accessor.SetUID("other") typeAccessor.SetAPIVersion("c") typeAccessor.SetKind("d") accessor.SetResourceVersion("2") accessor.SetSelfLink("google.com")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 14 10:11:56 UTC 2022 - 12.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/unstructured.go
} func (u *Unstructured) SetAPIVersion(version string) { u.setNestedField(version, "apiVersion") } func (u *Unstructured) GetKind() string { return getNestedString(u.Object, "kind") } func (u *Unstructured) SetKind(kind string) { u.setNestedField(kind, "kind") } func (u *Unstructured) GetNamespace() string { return getNestedString(u.Object, "metadata", "namespace") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun May 28 03:26:35 UTC 2023 - 13.7K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/yaml_test.go
t.Fatalf("expected mytest, got %s", obj.GetName()) } if obj.GetAPIVersion() != apiVersion { t.Fatalf("expected %s, got %s", apiVersion, obj.GetAPIVersion()) } if obj.GetKind() != kind { t.Fatalf("expected %s, got %s", kind, obj.GetKind()) } if v, ok, err := unstructured.NestedFloat64(obj.Object, "values", "numVal"); v != 1 || !ok || err != nil { t.Fatal(v, ok, err, string(result)) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 02 19:34:41 UTC 2021 - 16.5K bytes - Viewed (0) -
platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/groovy/InterceptGroovyCallsGenerator.java
} } private static boolean hasGroovyPropertyRequests(List<CallInterceptionRequest> requests) { return requests.stream().anyMatch(it -> it.getInterceptedCallable().getKind() == GROOVY_PROPERTY_GETTER || it.getInterceptedCallable().getKind() == GROOVY_PROPERTY_SETTER); } @SuppressWarnings("ReturnValueIgnored") private static CodeBlock interceptorClassJavadoc(Collection<CallInterceptionRequest> requests) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue May 28 13:09:40 UTC 2024 - 16.4K bytes - Viewed (0) -
platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/jvmbytecode/InterceptJvmCallsGenerator.java
CodeBlock result = interceptedCallable.getKind() == CallableKindInfo.STATIC_METHOD ? CodeBlock.of("opcode == $T.INVOKESTATIC", Opcodes.class) : interceptedCallable.getKind() == CallableKindInfo.INSTANCE_METHOD ? CodeBlock.of("(opcode == $1T.INVOKEVIRTUAL || opcode == $1T.INVOKEINTERFACE)", Opcodes.class) :
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 10 18:50:01 UTC 2024 - 27.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured/helpers.go
return err } // This is hacky. Set the item's Kind and APIVersion to those inferred // from the List. if len(unstruct.GetKind()) == 0 && len(unstruct.GetAPIVersion()) == 0 { unstruct.SetKind(itemKind) unstruct.SetAPIVersion(listAPIVersion) } list.Items = append(list.Items, *unstruct) } return nil } type jsonFallbackEncoder struct {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jun 29 20:39:55 UTC 2023 - 16.3K bytes - Viewed (0) -
istioctl/pkg/validate/validate.go
_ = un.EachListItem(func(item runtime.Object) error { castItem := item.(*unstructured.Unstructured) if castItem.GetKind() == name.ServiceStr { err := v.validateServicePortPrefix(istioNamespace, castItem) if err != nil { errs = multierror.Append(errs, err) } } if castItem.GetKind() == name.DeploymentStr { err := v.validateDeploymentLabel(istioNamespace, castItem, writer) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jan 22 17:58:52 UTC 2024 - 15K bytes - Viewed (0)