Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 2,138 for Reserve (0.19 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

      mlir::MLIRContext* ctx = op->getContext();
      mlir::Builder builder(ctx);
    
      // Collect devices with attached metadata.
      llvm::SmallVector<mlir::NamedAttribute, 8> devices;
      devices.reserve(device_set->devices().size());
    
      // For device that do not have any metadata, or if we failed to parse metadata
      // from the DeviceSet, we add a unit attribute to the `tf.devices` attribute.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  2. pkg/scheduler/apis/config/testing/defaults/defaults.go

    			// - This is a score coming from user preference.
    			{Name: names.InterPodAffinity, Weight: 2},
    			{Name: names.NodeResourcesBalancedAllocation, Weight: 1},
    			{Name: names.ImageLocality, Weight: 1},
    		},
    	},
    	Reserve: config.PluginSet{
    		Enabled: []config.Plugin{
    			{Name: names.VolumeBinding},
    		},
    	},
    	PreBind: config.PluginSet{
    		Enabled: []config.Plugin{
    			{Name: names.VolumeBinding},
    		},
    	},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/constant_fold.cc

      if (std::any_of(operands.begin(), operands.end(), [](Attribute attr) {
            return !attr || !mlir::isa<ElementsAttr>(attr);
          }))
        return failure();
    
      SmallVector<ElementsAttr, 4> inputs;
      inputs.reserve(operands.size());
      for (auto input : operands) {
        inputs.push_back(mlir::cast<ElementsAttr>(input));
      }
    
      SmallVector<Attribute> constants;
      LogicalResult status = EvaluateOperation(inst, inputs, constants);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  4. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/locklistener/DefaultFileLockContentionHandlerTest.groovy

        }
    
        def "reserving port is safely reentrant"() {
            when:
            int port = handler.reservePort()
    
            then:
            handler.reservePort() == port
        }
    
        def "cannot reserve port when the handler was stopped"() {
            handler.stop()
    
            when:
            handler.reservePort()
    
            then:
            thrown(IllegalStateException)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:49:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.cc

        return failure();
      }
      return static_cast<int32_t>(value);
    }
    
    FailureOr<SmallVector<int32_t>> CastI64ArrayToI32(
        const ArrayRef<int64_t> int64_array) {
      SmallVector<int32_t> int32_array{};
      int32_array.reserve(int64_array.size());
    
      for (const int64_t i64 : int64_array) {
        FailureOr<int32_t> cast_i32 = CastI64ToI32(i64);
        if (failed(cast_i32)) return failure();
    
        int32_array.push_back(*cast_i32);
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/cluster_outlining.cc

    func::FuncOp BuildFunction(llvm::ArrayRef<Value> live_ins, ClusterOrLaunchOp op,
                               SymbolTable* symbol_table, OpBuilder* builder) {
      llvm::SmallVector<Type, 4> operand_types;
      operand_types.reserve(live_ins.size());
      for (Value v : live_ins) operand_types.emplace_back(v.getType());
    
      auto func_type = builder->getFunctionType(operand_types, op.getResultTypes());
    
      std::string func_name;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc

          // If this is a terminator, identify the values to use to replace the
          // original If op.
          if (op_to_inline.hasTrait<OpTrait::IsTerminator>()) {
            updated_results.reserve(op_to_inline.getNumOperands());
            for (Value operand : op_to_inline.getOperands())
              updated_results.push_back(mapper.lookup(operand));
            break;
          }
    
          // Otherwise, clone the op here.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.cc

        if (!is_reduce_dim[dim]) {
          is_reduce_dim[dim] = true;
          num_reduce_dim++;
        }
      }
    
      ArrayRef<int64_t> shape = ranked_ty.getShape();
      SmallVector<int64_t, 4> out_shape;
      out_shape.reserve(rank - (keep_dims.getValue() ? 0 : num_reduce_dim));
      for (int64_t i = 0; i < rank; ++i) {
        if (!is_reduce_dim[i])
          out_shape.push_back(shape[i]);
        else if (keep_dims.getValue())
          out_shape.push_back(1);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  9. src/runtime/netpoll_wasip1.go

    )
    
    func netpollinit() {
    	// Unlike poll(2), WASI's poll_oneoff doesn't accept a timeout directly. To
    	// prevent it from blocking indefinitely, a clock subscription with a
    	// timeout field needs to be submitted. Reserve a slot here for the clock
    	// subscription, and set fields that won't change between poll_oneoff calls.
    
    	subs = make([]subscription, 1, 128)
    	evts = make([]event, 0, 128)
    	pds = make([]*pollDesc, 0, 128)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. tensorflow/cc/framework/while_gradients.cc

    }
    
    std::vector<Output> ToOutputVector(
        const std::vector<OutputTensor>& output_tensors) {
      const int n = output_tensors.size();
      std::vector<Output> result;
      result.reserve(n);
      for (int i = 0; i < n; ++i) result.push_back(ToOutput(output_tensors[i]));
      return result;
    }
    
    // The backprop loop counter and main backprop loop run in their own execution
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 05:57:22 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top