Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 3,381 for Reserve (0.3 sec)

  1. tensorflow/compiler/mlir/quantization/common/ir/FakeQuantSupport.cc

        return (emitError(loc, "unsupported FakeQuant number of bits: ") << numBits,
                nullptr);
      }
    
      SmallVector<double, 4> scales;
      SmallVector<int64_t, 4> zeroPoints;
      scales.reserve(axisSize);
      zeroPoints.reserve(axisSize);
      for (size_t axis = 0; axis != axisSize; ++axis) {
        double rmin = rmins[axis];
        double rmax = rmaxs[axis];
        if (std::fabs(rmax - rmin) < std::numeric_limits<double>::epsilon()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 11:52:27 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/ops/gen/cpp/renderers/op_renderer.cc

        }
        if (argument.HasDefaultValue()) {
          args_with_default_val.push_back(text);
        } else {
          args_without_default_val.push_back(text);
        }
      }
      std::vector<string> arguments;
      arguments.reserve(args_without_default_val.size() +
                        args_with_default_val.size());
      arguments.insert(arguments.end(),
                       std::make_move_iterator(args_without_default_val.begin()),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 05:51:40 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. src/runtime/tracebuf.go

    }
    
    // varintAt writes varint v at byte position pos in buf. This always
    // consumes traceBytesPerNumber bytes. This is intended for when the caller
    // needs to reserve space for a varint but can't populate it until later.
    // Use varintReserve to reserve this space.
    func (buf *traceBuf) varintAt(pos int, v uint64) {
    	for i := 0; i < traceBytesPerNumber; i++ {
    		if i < traceBytesPerNumber-1 {
    			buf.arr[pos] = 0x80 | byte(v)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:47:01 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

      for (int core = 0; core < num_cores_per_replica; ++core) {
        llvm::SmallVector<StringRef, 8> devices_by_core;
        devices_by_core.reserve(num_replicas);
        llvm::SmallVector<StringRef, 8> hosts_by_core;
        hosts_by_core.reserve(num_replicas);
        for (int replica = 0; replica < num_replicas; ++replica) {
          devices_by_core.push_back(tpu_devices[replica][core].device);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_unified_experimental_graph.cc

            op_->colocation_constraints.emplace(static_cast<const char*>(values[i]),
                                                lengths[i]);
          }
        } else {
          std::vector<tensorflow::StringPiece> v;
          v.reserve(num_values);
          for (int i = 0; i < num_values; ++i) {
            v.emplace_back(static_cast<const char*>(values[i]), lengths[i]);
          }
          op_->node_builder.Attr(attr_name, v);
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 20:00:09 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

      } while (succeeded(parser->parseOptionalComma()));
    
      region_args->reserve(replicated_region_args.size() +
                           packed_region_args.size());
      region_args->append(replicated_region_args.begin(),
                          replicated_region_args.end());
      region_args->append(packed_region_args.begin(), packed_region_args.end());
    
      region_arg_types->reserve(replicated_region_arg_types.size() +
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/translate/mlir_roundtrip_flags.cc

            "Length of input node array and data shape doesn't match (#arrays ",
            node_names.size(), ", #input_shapes ", node_shapes.size(), ")"));
      }
    
      // StringMap doesn't support reserve else reserve input map size here.
      for (int i = 0, end = node_names.size(); i < end; i++) {
        auto& name = node_names[i];
        const string& type = used_node_dtypes[i];
        if (name.empty()) continue;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/session_utils.cc

      return var_handle_op.getSharedName().str();
    }
    
    std::vector<std::string> GetVariableNames(
        llvm::ArrayRef<TF::VarHandleOp> var_handle_ops) {
      std::vector<std::string> names;
      names.reserve(var_handle_ops.size());
      for (auto var_handle_op : var_handle_ops)
        names.push_back(GetVariableName(var_handle_op));
      return names;
    }
    
    tensorflow::Var* GetVariableFromSession(mlir::TF::VarHandleOp var_handle_op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top