Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 242 for get_attr (0.13 sec)

  1. pkg/registry/core/pod/strategy.go

    func (podEphemeralContainersStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string {
    	return nil
    }
    
    // GetAttrs returns labels and fields of a given object for filtering purposes.
    func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
    	pod, ok := obj.(*api.Pod)
    	if !ok {
    		return nil, nil, fmt.Errorf("not a pod")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 17:51:48 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/device_util_test.cc

      mlir::OwningOpRef<mlir::ModuleOp> module_ref =
          mlir::ModuleOp::create(mlir::UnknownLoc::get(&context));
    
      AddDevicesToOp(*module_ref, /*device_set=*/nullptr);
      EXPECT_EQ((*module_ref)->getAttr("tf.devices"), nullptr);
    }
    
    TEST(DeviceUtilTest, GetDevicesFromOpNoDevicesAttribute) {
      mlir::MLIRContext context;
      mlir::OwningOpRef<mlir::ModuleOp> module_ref =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

               llvm::all_of(op->getResultTypes(), is_not_variant);
      };
    
      auto is_set_item_legal = [](Operation *op) {
        return op->hasAttr("resize_if_index_out_of_bounds") &&
               op->getAttr("resize_if_index_out_of_bounds")
                   .cast<mlir::BoolAttr>()
                   .getValue();
      };
    
      ConversionTarget target(*context);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/strategy_test.go

    		t.Run(tc.name, func(t *testing.T) {
    			strategy := customResourceStrategy{selectableFieldSet: prepareSelectableFields(tc.selectableFields)}
    
    			_, fields, err := strategy.GetAttrs(tc.obj)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if !reflect.DeepEqual(tc.expectFields, fields) {
    				t.Errorf("Expected fields '%+#v' but got '%+#v'", tc.expectFields, fields)
    			}
    		})
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. pkg/registry/certificates/certificates/storage/storage.go

    		TableConvertor: printerstorage.TableConvertor{TableGenerator: printers.NewTableGenerator().With(printersinternal.AddHandlers)},
    	}
    	options := &generic.StoreOptions{RESTOptions: optsGetter, AttrFunc: csrregistry.GetAttrs}
    	if err := store.CompleteWithOptions(options); err != nil {
    		return nil, nil, nil, err
    	}
    
    	// Subresources use the same store and creation strategy, which only
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:19 UTC 2022
    - 6.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.h

    }
    
    // Returns the function attribute for the given call op which is lifted for
    // quantization.
    inline FlatSymbolRefAttr GetFuncAttr(TF::PartitionedCallOp call_op) {
      return mlir::dyn_cast<FlatSymbolRefAttr>(call_op.getFAttr());
    }
    
    inline FlatSymbolRefAttr GetFuncAttr(TF::XlaCallModuleOp call_op) {
      return call_op->getAttrOfType<FlatSymbolRefAttr>(
          TF::kStablehloEntryFunctionAttrName);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/arch/arm64/arm64asm/inst.go

    func (s sysInstFields) isArg() {}
    
    func (s sysInstFields) getAttrs() sysInstAttrs {
    	attrs, ok := sysInstsAttrs[sysInstFields{s.op1, s.cn, s.cm, s.op2}]
    	if !ok {
    		return sysInstAttrs{typ: sys_SYS}
    	}
    	return attrs
    }
    
    func (s sysInstFields) String() string {
    	return s.getAttrs().name
    }
    
    func (s sysInstFields) getType() sys {
    	return s.getAttrs().typ
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 21.5K bytes
    - Viewed (0)
  8. pkg/registry/core/node/storage/storage.go

    		TableConvertor: printerstorage.TableConvertor{TableGenerator: printers.NewTableGenerator().With(printersinternal.AddHandlers)},
    	}
    	options := &generic.StoreOptions{
    		RESTOptions: optsGetter,
    		AttrFunc:    node.GetAttrs,
    	}
    	if err := store.CompleteWithOptions(options); err != nil {
    		return nil, err
    	}
    
    	statusStore := *store
    	statusStore.UpdateStrategy = node.StatusStrategy
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 20:38:11 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

      auto new_cluster = builder->create<mlir::tf_device::ClusterOp>(
          cluster.getLoc(), new_cluster_result_types,
          /*operands=*/llvm::ArrayRef<Value>{}, cluster->getAttrs());
      new_cluster.getBody().takeBody(cluster.getBody());
    
      auto operand_not_in_cluster = [&](mlir::OpOperand& operand) {
        return !new_cluster.getOperation()->isProperAncestor(operand.getOwner());
      };
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_partitioning.cc

    mlir::Attribute GetDeviceOfResource(mlir::func::FuncOp func,
                                        mlir::Value resource) {
      if (auto* resource_op = resource.getDefiningOp()) {
        return resource_op->getAttr(kDeviceAttr);
      } else {
        const auto resource_arg = resource.dyn_cast_or_null<BlockArgument>();
        if (resource_arg && (resource_arg.getOwner() == &(func.front()))) {
          return func.getArgAttrOfType<mlir::StringAttr>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 11.8K bytes
    - Viewed (0)
Back to top