Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 3,700 for Reserve (0.18 sec)

  1. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/WorkerDaemonClientsManagerTest.groovy

        def "does not reserve idle client when no clients"() {
            expect:
            manager.reserveIdleClient(options) == null
        }
    
        def "does not reserve idle client when no matching client found"() {
            def noMatch = Stub(WorkerDaemonClient) {
                isCompatibleWith(_) >> false
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 21 14:56:11 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/python/saved_model_to_tfl_flatbuffer.cc

      mlir::DictionaryAttr tf_attrs =
          entry_function->getAttrOfType<mlir::DictionaryAttr>("tf.entry_function");
      llvm::SmallVector<llvm::StringRef, 4> function_input_names;
      function_input_names.reserve(model_flags.input_arrays().size());
      auto input_attr = tf_attrs.get("inputs");
      if (!input_attr) {
        return errors::InvalidArgument("no inputs attribute found");
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun May 12 12:39:37 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

                         llvm::ArrayRef<Value> outputs, OpBuilder* builder) {
      llvm::SmallVector<Type, 4> operand_types;
      operand_types.reserve(inputs.size());
      for (Value v : inputs) operand_types.emplace_back(v.getType());
      llvm::SmallVector<Type, 4> output_types;
      output_types.reserve(outputs.size());
      for (Value v : outputs) output_types.emplace_back(v.getType());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

      mlir::OpBuilder builder(func.getBody());
      auto& bb = func.front();
      auto loc = func.getLoc();
    
      int num_args = bb.getNumArguments();
      llvm::SmallVector<Type, 4> input_types;
      input_types.reserve(num_args);
      // Edit the block arguments and create the new input ops in place to replace
      // the old input ops and quantize ops.
      for (int i = 0; i != num_args; ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.cc

      if (!attr) return success();
    
      // ID pairs are separated by `,`.
      llvm::SmallVector<std::string, 8> str_list =
          absl::StrSplit(attr.getValue().str(), ',', absl::SkipWhitespace());
      id_pairs.reserve(str_list.size());
      for (const std::string& str : str_list) {
        // IDs of one pair are separated by `:`.
        llvm::SmallVector<std::string, 8> id_pair = absl::StrSplit(str, ':');
    
        // Check for malformed IDs.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.cc

    GetTPUDevices(ParsedDevices devices,
                  llvm::ArrayRef<ParsedDevice> system_devices) {
      llvm::SmallVector<llvm::SmallVector<ParsedDevice, 8>, 8> tpu_devices;
      tpu_devices.reserve(system_devices.size());
    
      auto lookup = [&devices](ParsedDevice device_spec) {
        device_spec.has_type = true;
        device_spec.type = kDeviceTPU;
        // Enumerate all the available TPUs.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 10 20:10:40 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  7. tensorflow/c/eager/tape.h

      std::vector<int64_t> targets;
      std::vector<Gradient*> used_in_grads;
      // We may end up with slightly fewer elements than we reserve, but grad.size()
      // should be a reasonably tight upper bound.
      targets.reserve(grad.size());
      used_in_grads.reserve(grad.size());
      std::unordered_map<int64_t, TapeTensor> sources_that_are_targets;
      for (int grad_index = 0, end = grad.size(); grad_index < end; ++grad_index) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 12:40:29 UTC 2024
    - 47.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.h

              IsWeightOnlyQuantizableOp(*candidate_op);
    
          // Collect all the quantized inputs and "clone" the matched op by these
          // inputs.
          SmallVector<Value, 4> inputs;
          inputs.reserve(candidate_op->getNumOperands());
          for (auto operand : candidate_op->getOperands()) {
            Type operand_type = operand.getType();
            if (mlir::isa<NoneType>(operand_type)) {
              inputs.push_back(operand);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/fold_broadcast_pass.cc

        operand_new_shape[dimensions[i]] = operand.getType().getDimSize(i);
      }
    
      llvm::SmallVector<ElementValueT, 16> new_values;
      auto num_elements = result_type.getNumElements();
      new_values.reserve(num_elements);
      auto operand_values = operand.getValues<ElementValueT>();
      for (int64_t i = 0; i < num_elements; ++i) {
        const int64_t operand_index =
            GetElementIndex(operand_new_shape, current_index);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_device_compiler_client.cc

    #include "xla/client/local_client.h"
    
    namespace tensorflow {
    namespace {
    std::vector<const xla::Shape*> GetShapePointers(
        absl::Span<const xla::Shape> shapes) {
      std::vector<const xla::Shape*> shape_ptrs;
      shape_ptrs.reserve(shapes.size());
      for (const auto& shape : shapes) {
        shape_ptrs.push_back(&shape);
      }
      return shape_ptrs;
    }
    }  // namespace
    
    absl::StatusOr<std::unique_ptr<xla::LocalExecutable>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top