- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 3,773 for Reserve (0.16 sec)
-
tensorflow/c/eager/unified_api_testutil.cc
absl::flat_hash_set<int> null_indices; { AbstractContextPtr func_ctx(BuildFunction(fn_name)); std::vector<AbstractTensorHandle*> func_inputs; func_inputs.reserve(inputs.size()); TF_RETURN_IF_ERROR( CreateParamsForInputs(func_ctx.get(), inputs, &func_inputs)); std::vector<AbstractTensorHandle*> model_outputs; model_outputs.resize(outputs.size());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 27 13:57:45 UTC 2024 - 5.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/ir/ConvertSimQuant.cc
quant::QuantizedType convertFakeQuantAttrsToType(ConstFakeQuantPerAxis fqOp, Type expressedType) const { SmallVector<double, 4> min, max; min.reserve(fqOp.getMin().size()); max.reserve(fqOp.getMax().size()); for (auto m : fqOp.getMin()) min.push_back(cast<FloatAttr>(m).getValueAsDouble()); for (auto m : fqOp.getMax())
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 6K bytes - Viewed (0) -
src/runtime/mpagealloc_64bit.go
func (p *pageAlloc) sysInit(test bool) { // Reserve memory for each level. This will get mapped in // as R/W by setArenas. for l, shift := range levelShift { entries := 1 << (heapAddrBits - shift) // Reserve b bytes of memory anywhere in the address space. b := alignUp(uintptr(entries)*pallocSumBytes, physPageSize) r := sysReserve(nil, b) if r == nil { throw("failed to reserve page summary memory") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 03 11:00:10 UTC 2024 - 9.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/convert_type.cc
llvm::SmallVectorImpl<int64_t>* shape) { shape->reserve(input_shape.dims()); for (const auto& d : input_shape) { shape->push_back(d.size == kTFDynamicSize ? ShapedType::kDynamic : d.size); } } Status ConvertToMlirShape(const TensorShapeProto& input_shape, llvm::SmallVectorImpl<int64_t>* shape) { shape->reserve(input_shape.dim_size()); auto& dims = input_shape.dim();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/jit/variable_info_util.cc
const std::set<int>* variables_updated, std::vector<VariableInfo>* result) { result->clear(); result->reserve(variable_indices.size()); for (int var_idx : variable_indices) { Var* variable = nullptr; if (inputs[var_idx]->NumElements() == 0) { return errors::InvalidArgument("Empty resource tensor passed at index ",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 22 08:47:20 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc
if (!session) return module.emitOpError() << "no session provided"; // Read all resource variables from the session. std::vector<std::string> variable_names; variable_names.reserve(resource_names.size()); for (StringRef name : resource_names) variable_names.push_back(name.str()); std::vector<Tensor> resource_tensors; Status status = session->Run( /*inputs=*/{}, variable_names,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7.9K bytes - Viewed (0) -
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) -
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) -
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) -
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)