- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 185 for setAttrs (0.12 sec)
-
pkg/registry/resource/resourceclaim/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) { claim, ok := obj.(*resource.ResourceClaim) if !ok { return nil, nil, errors.New("not a resourceclaim")
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 05 20:39:24 UTC 2024 - 5.3K 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/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) -
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/insert_main_function.cc
{StringAttr::get(context, "outputs"), StringAttr::get(context, absl::StrJoin(output_names, ","))}); auto dictAttr = DictionaryAttr::get(context, func_attrs); main_func->setAttr(StringAttr::get(context, kEntryFunctionAttr), dictAttr); main_func->setAttr( kTfSavedModelExportedNamesAttr, builder.getStrArrayAttr({kImportModelDefaultGraphFuncName})); if (input_names.size() != main_func.getNumArguments() ||
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/rewrite_tpu_embedding_ops.cc
auto operands = llvm::to_vector<4>(op->getOperands()); operands.push_back(operand); auto new_op = builder->create<OpT>(op->getLoc(), op->getResultTypes(), operands, attr.getAttrs()); op->replaceAllUsesWith(new_op.getOperation()->getResults()); op->erase(); return new_op; } // Returns success if the function has at most one op of the template type and
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 22:55:42 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/api_template.__init__.py
_initializers = _KerasLazyLoader( globals(), submodule="initializers", name="initializers") setattr(_current_module, "losses", _losses) setattr(_current_module, "metrics", _metrics) setattr(_current_module, "optimizers", _optimizers) setattr(_current_module, "initializers", _initializers) # Do an eager load for Keras' code so that any function/method that needs to
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 06:27:59 UTC 2024 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/raise_target_subgraphs.cc
added_func_op->getRegion(0).getBlocks().front().front().getAttr( kInferenceType)); added_call_op->setAttr(kDevice, device); added_call_op->setAttr(kInferenceType, inference_type); added_func_op->setAttr(kDevice, device); added_func_op->setAttr(kInferenceType, inference_type); std::string function_name = absl::StrCat(interface_name.getValue().str(), "_",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc
} OpBuilder builder(call); auto new_call = builder.create<CallOp>( call.getLoc(), info.decomposed_callee.getFunctionType().getResults(), new_operands, call->getAttrs()); new_call->setAttr( "f", SymbolRefAttr::get( builder.getContext(), const_cast<func::FuncOp&>(info.decomposed_callee).getName())); for (int64_t i = 0; i < call.getNumResults(); ++i) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc
} OpBuilder builder(call); auto new_call = builder.create<CallOp>( call.getLoc(), info.decomposed_callee.getFunctionType().getResults(), new_operands, call->getAttrs()); new_call->setAttr( "f", SymbolRefAttr::get( builder.getContext(), const_cast<func::FuncOp&>(info.decomposed_callee).getName()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.2K bytes - Viewed (0)