Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 7,549 for Reserve (0.13 sec)

  1. pkg/scheduler/framework/plugins/examples/stateful/stateful.go

    func (mp *MultipointExample) Name() string {
    	return Name
    }
    
    // Reserve is the function invoked by the framework at "reserve" extension
    // point. In this trivial example, the Reserve method allocates an array of
    // strings.
    func (mp *MultipointExample) Reserve(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) *framework.Status {
    	// Reserve is not called concurrently, and so we don't need to lock.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 09 03:43:17 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/plugins/examples/multipoint/multipoint.go

    type stateData struct {
    	data string
    }
    
    func (s *stateData) Clone() framework.StateData {
    	copy := &stateData{
    		data: s.data,
    	}
    	return copy
    }
    
    // Reserve is the function invoked by the framework at "reserve" extension point.
    func (mc CommunicatingPlugin) Reserve(ctx context.Context, state *framework.CycleState, pod *v1.Pod, nodeName string) *framework.Status {
    	if pod == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 09 03:43:17 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. tensorflow/cc/client/client_session.cc

      }
    
      std::vector<string> output_tensor_names;
      output_tensor_names.reserve(fetch_outputs.size());
      for (auto const& output : fetch_outputs) {
        output_tensor_names.push_back(output.name());
      }
      std::vector<string> target_node_names;
      target_node_names.reserve(run_outputs.size());
      for (auto const& output : run_outputs) {
        target_node_names.push_back(output.node()->name());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 09:04:10 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. tensorflow/cc/gradients/functional_grad.cc

        (*f.mutable_attr())[attr.first] = attr.second;
      }
    
      std::vector<Output> func_inputs;
      std::vector<DataType> input_dtypes;
      const int num_inputs = op.num_inputs();
      func_inputs.reserve(num_inputs + grad_inputs.size());
      input_dtypes.reserve(num_inputs);
    
      for (int i = 0; i < num_inputs; i++) {
        func_inputs.push_back(op.input(i));
        input_dtypes.push_back(op.input_type(i));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 15 20:09:06 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/work/WorkerLeaseRegistry.java

         */
        WorkerLease getCurrentWorkerLease();
    
        /**
         * Creates a new {@link ResourceLock} that can be used to reserve a worker lease.  Note that this does not actually reserve a lease,
         * it simply creates a {@link ResourceLock} representing the worker lease.  The worker lease can be reserved only when
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. pkg/scheduler/testing/framework/framework_helpers.go

    }
    
    // RegisterReservePlugin returns a function to register a Reserve Plugin to a given registry.
    func RegisterReservePlugin(pluginName string, pluginNewFunc runtime.PluginFactory) RegisterPluginFunc {
    	return RegisterPluginAsExtensions(pluginName, pluginNewFunc, "Reserve")
    }
    
    // RegisterPermitPlugin returns a function to register a Permit Plugin to a given registry.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  7. src/runtime/mem_bsd.go

    	mmap(v, n, _PROT_NONE, _MAP_ANON|_MAP_PRIVATE|_MAP_FIXED, -1, 0)
    }
    
    // Indicates not to reserve swap space for the mapping.
    const _sunosMAP_NORESERVE = 0x40
    
    func sysReserveOS(v unsafe.Pointer, n uintptr) unsafe.Pointer {
    	flags := int32(_MAP_ANON | _MAP_PRIVATE)
    	if GOOS == "solaris" || GOOS == "illumos" {
    		// Be explicit that we don't want to reserve swap space
    		// for PROT_NONE anonymous mappings. This avoids an issue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 19:05:10 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/set_tpu_infeed_layout.cc

                                            OpBuilder &rewriter) {
      auto i64_type = rewriter.getIntegerType(64);
      if (types.size() > 1) {
        llvm::SmallVector<mlir::Attribute> v;
        v.reserve(types.size());
        for (const mlir::Type &t : types) {
          if (mlir::isa<mhlo::TokenType>(t)) continue;
          auto layout = GetTPUInfeedLayout({t}, rewriter);
          if (failed(layout)) return failure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  9. pkg/scheduler/apis/config/v1/default_plugins.go

    	defaultPlugins.Score = mergePluginSet(logger, defaultPlugins.Score, customPlugins.Score)
    	defaultPlugins.Reserve = mergePluginSet(logger, defaultPlugins.Reserve, customPlugins.Reserve)
    	defaultPlugins.Permit = mergePluginSet(logger, defaultPlugins.Permit, customPlugins.Permit)
    	defaultPlugins.PreBind = mergePluginSet(logger, defaultPlugins.PreBind, customPlugins.PreBind)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  10. pkg/scheduler/testing/framework/fake_plugins.go

    		}, nil
    	}
    }
    
    // FakeReservePlugin is a test reserve plugin.
    type FakeReservePlugin struct {
    	Status *framework.Status
    }
    
    // Name returns name of the plugin.
    func (pl *FakeReservePlugin) Name() string {
    	return "FakeReserve"
    }
    
    // Reserve invoked at the Reserve extension point.
    func (pl *FakeReservePlugin) Reserve(_ context.Context, _ *framework.CycleState, _ *v1.Pod, _ string) *framework.Status {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 9.5K bytes
    - Viewed (0)
Back to top