Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of about 10,000 for Reserve (0.11 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/eager/parallel_device/parallel_device_lib_test.cc

      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      const std::vector<std::unique_ptr<ParallelTensor>>& handles = *outputs;
      std::vector<ParallelTensor*> handle_inputs;
      handle_inputs.reserve(handles.size());
      for (auto& handle : handles) {
        handle_inputs.push_back(handle.get());
      }
      std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> read_op(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 08 23:47:35 UTC 2021
    - 15.3K 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/test_side_effect_analysis.cc

          ids[op] = next_id++;
          op->emitRemark("ID: ") << ids[op];
        });
        auto join_ids = [&](const llvm::ArrayRef<Operation*> ops) {
          llvm::SmallVector<std::string, 8> id_vec;
          id_vec.reserve(ops.size());
          for (auto op : ops) id_vec.push_back(std::to_string(ids[op]));
          return llvm::join(id_vec, ",");
        };
        func.walk([&](Operation* op) {
          if (!analysis.DirectControlPredecessors(op).empty()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 19 00:13:50 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  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/jit/test_util.cc

                PartialTensorShapeUtils::PartialShapeListString(shapes));
          }
          expected_shapes.erase(it);
        }
      }
      if (!expected_shapes.empty()) {
        std::vector<string> missing;
        missing.reserve(expected_shapes.size());
        for (const auto& entry : expected_shapes) {
          missing.push_back(entry.first);
        }
        return errors::InvalidArgument("Missing shapes for nodes: ",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top