- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 104 for get_attr (0.16 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/rewrite_util.h
float_attr.getSplatValue<APFloat>().isExactlyValue(raw_value)) return true; } else if (mlir::isa<IntegerType>(element_type)) { DenseIntElementsAttr int_attr; if (matchPattern(value, m_Constant(&int_attr)) && int_attr.isSplat() && int_attr.getSplatValue<APInt>() == raw_value) return true; } return false; } // Returns true if `op` is placed on GPU device, and false if it's on other
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 19:47:48 UTC 2024 - 4K bytes - Viewed (0) -
pkg/registry/core/event/strategy.go
return nil } func (eventStrategy) AllowUnconditionalUpdate() bool { return true } // GetAttrs returns labels and fields of a given object for filtering purposes. func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) { event, ok := obj.(*api.Event) if !ok { return nil, nil, fmt.Errorf("not an event") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 10 19:01:45 UTC 2022 - 4.8K bytes - Viewed (0) -
docs/debugging/xattr/main.go
var ( path, name string value uint64 set, list bool ) func getxattr(path, name string) (uint64, error) { buf, err := xattr.LGet(path, name) if err != nil { return 0, err } return binary.LittleEndian.Uint64(buf[:8]), nil } func listxattr(path string) ([]string, error) { return xattr.LList(path) } func setxattr(path, name string, value uint64) error { data := make([]byte, 8)
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Dec 29 23:52:41 UTC 2023 - 3.2K bytes - Viewed (0) -
pkg/registry/resource/podschedulingcontext/strategy.go
func Match(label labels.Selector, field fields.Selector) storage.SelectionPredicate { return storage.SelectionPredicate{ Label: label, Field: field, GetAttrs: GetAttrs, } } // GetAttrs returns labels and fields of a given object for filtering purposes. func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) { scheduling, ok := obj.(*resource.PodSchedulingContext) if !ok {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 05 20:39:24 UTC 2024 - 5.6K bytes - Viewed (0) -
pkg/registry/core/secret/strategy.go
} func dropDisabledFields(secret *api.Secret, oldSecret *api.Secret) { } func (strategy) AllowUnconditionalUpdate() bool { return true } // GetAttrs returns labels and fields of a given object for filtering purposes. func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) { secret, ok := obj.(*api.Secret) if !ok { return nil, nil, fmt.Errorf("not a secret") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 27 20:38:11 UTC 2023 - 4.2K bytes - Viewed (0) -
pkg/registry/resource/resourceslice/strategy.go
slice, ok := obj.(*resource.ResourceSlice) if !ok { return nil, fmt.Errorf("not a ResourceSlice") } return []string{slice.NodeName}, nil } // GetAttrs returns labels and fields of a given object for filtering purposes. func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) { slice, ok := obj.(*resource.ResourceSlice) if !ok { return nil, nil, fmt.Errorf("not a ResourceSlice") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 21:22:55 UTC 2024 - 4.4K bytes - Viewed (0) -
docs_src/sql_databases_peewee/sql_app/schemas.py
from typing import Any, List, Union import peewee from pydantic import BaseModel from pydantic.utils import GetterDict class PeeweeGetterDict(GetterDict): def get(self, key: Any, default: Any = None): res = getattr(self._obj, key, default) if isinstance(res, peewee.ModelSelect): return list(res) return res class ItemBase(BaseModel): title: str description: Union[str, None] = None
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 868 bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/ir/tfr_types.h
std::uninitialized_copy(key.begin(), key.end(), result->getTrailingObjects<StringAttr>()); return result; } bool operator==(const KeyTy& attrs) const { return attrs == GetAttrs(); } KeyTy GetAttrs() const { return {getTrailingObjects<StringAttr>(), num_attrs}; } unsigned num_attrs; }; template <typename Derived>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 05 07:17:01 UTC 2023 - 4.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/selection_predicate.go
Field fields.Selector GetAttrs AttrFunc IndexLabels []string IndexFields []string Limit int64 Continue string AllowWatchBookmarks bool } // Matches returns true if the given object's labels and fields (as // returned by s.GetAttrs) match s.Label and s.Field. An error is // returned if s.GetAttrs fails.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 04 09:20:10 UTC 2024 - 5.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_custom_aggregation_op_to_quant_stats.cc
LogicalResult matchAndRewrite(TF::CustomAggregatorOp op, PatternRewriter &rewriter) const override { FloatAttr min = mlir::dyn_cast_or_null<FloatAttr>(op->getAttr("min")); FloatAttr max = mlir::dyn_cast_or_null<FloatAttr>(op->getAttr("max")); // When there are no min and max attributes, remove op. if (min == nullptr || max == nullptr) { op.getOutput().replaceAllUsesWith(op.getInput());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.8K bytes - Viewed (0)