- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for createFunc (0.54 sec)
-
staging/src/k8s.io/apiserver/pkg/registry/rest/resttest/resttest.go
type InitWatchFunc func() type InjectErrFunc func(err error) type IsErrorFunc func(err error) bool type CreateFunc func(context.Context, runtime.Object) error type SetRVFunc func(uint64) type UpdateFunc func(runtime.Object) runtime.Object // Test creating an object. func (t *Tester) TestCreate(valid runtime.Object, createFn CreateFunc, getFn GetFunc, invalid ...runtime.Object) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jul 26 17:14:05 UTC 2022 - 55.8K bytes - Viewed (0) -
cmd/kubeadm/app/phases/certs/certs_test.go
} } } func TestCreateCertificateFilesMethods(t *testing.T) { var tests = []struct { createFunc func(cfg *kubeadmapi.InitConfiguration) error expectedFiles []string externalEtcd bool }{ { createFunc: CreatePKIAssets, expectedFiles: []string{ kubeadmconstants.CACertName, kubeadmconstants.CAKeyName,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 31 21:49:21 UTC 2024 - 23.3K bytes - Viewed (0) -
operator/pkg/controller/istiocontrolplane/istiocontrolplane_controller.go
{Group: "autoscaling", Version: "v2", Kind: name.HPAStr}, } return res } var ( ownedResourcePredicates = predicate.TypedFuncs[*unstructured.Unstructured]{ CreateFunc: func(_ event.TypedCreateEvent[*unstructured.Unstructured]) bool { // no action return false }, GenericFunc: func(_ event.TypedGenericEvent[*unstructured.Unstructured]) bool { // no action
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 13:56:46 UTC 2024 - 19.4K bytes - Viewed (0) -
tensorflow/c/experimental/grappler/grappler_internal.h
public: explicit CGraphOptimizer(TP_Optimizer optimizer, const char* device_type) : optimizer_(optimizer), device_type_(device_type) { if (optimizer.create_func != nullptr) { c_optimizer_ = (*optimizer_.create_func)(); } else { c_optimizer_ = nullptr; } } std::string name() const override { return "PluggableGraphOptimizer"; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 08 08:58:23 UTC 2022 - 3.5K bytes - Viewed (0) -
tensorflow/c/kernels.cc
void* (*create_func)(TF_OpKernelConstruction*), void (*compute_func)(void*, TF_OpKernelContext*), void (*delete_func)(void*)) : OpKernel(ctx), compute_func_(compute_func), delete_func_(delete_func) { if (create_func != nullptr) { c_kernel_ = (*create_func)(reinterpret_cast<TF_OpKernelConstruction*>(ctx)); } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 22:53:47 UTC 2024 - 36K bytes - Viewed (0) -
tensorflow/c/kernels.h
// // If non-null, TensorFlow will call create_func when it needs to instantiate // the kernel. The pointer returned by create_func will be passed to // compute_func and delete_func, thereby functioning as a "this" pointer for // referring to kernel instances. // // The TF_OpKernelConstruction pointer passed to create_func is owned by // TensorFlow and will be deleted once create_func returns. It must not be used // after this. //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 09 22:46:22 UTC 2024 - 24.6K bytes - Viewed (0) -
tensorflow/c/experimental/grappler/grappler.h
// TF_TriState_Off; // // // Set functions to create a new optimizer. // params->optimizer->struct_size = TP_OPTIMIZER_STRUCT_SIZE; // params->optimizer->create_func = (My_optimizer::create_func); // } #define GO_MAJOR 0 #define GO_MINOR 0 #define GO_PATCH 1 #ifdef __cplusplus extern "C" { #endif // TF_TriState is the C API typedef for tri-state.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Aug 03 18:08:43 UTC 2022 - 12.5K bytes - Viewed (0) -
src/internal/coverage/test/roundtrip_test.go
t.Fatalf("err reading function %d: %v", i, err) } res := cmpFuncDesc(cases[i], fn) if res != "" { t.Errorf("ReadFunc(%d): %s", i, res) } } } func createFuncs(i int) []coverage.FuncDesc { res := []coverage.FuncDesc{} lc := uint32(1) for fi := 0; fi < i+1; fi++ { units := []coverage.CoverableUnit{} for ui := 0; ui < (fi+1)*(i+1); ui++ { units = append(units,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 20 21:42:05 UTC 2023 - 8.5K bytes - Viewed (0) -
tensorflow/c/experimental/pluggable_profiler/pluggable_profiler.cc
std::function<std::unique_ptr<ProfilerInterface>(const ProfileOptions&)> create_func = [factory = std::move(factory)]( const ProfileOptions& options) mutable { return factory.CreatePluggableProfiler(options); }; tensorflow::profiler::RegisterProfilerFactory(std::move(create_func)); return OkStatus(); } } // namespace profiler
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 7.1K bytes - Viewed (0) -
tensorflow/c/experimental/next_pluggable_device/c_api.h
void (*delete_func)(void*), TF_Status* status); // If the ResourceMgr provided by the `ctx` has a resource // `plugin_resource_name`, returns it in `*result_plugin_resource`. Otherwise, // invokes create_func to create the resource. `delete_func` is needed for // ResourceMgr to clean up the resource. `status` will be set. If `status` is // not OK, `*result_plugin_resource` will be set as nullptr. //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Dec 20 20:01:06 UTC 2023 - 7.2K bytes - Viewed (0)