- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 7,453 for Reserve (0.17 sec)
-
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) -
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/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) -
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) -
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) -
src/runtime/cgo/asm_arm.s
// Saves C callee-saved registers and calls cgocallback with three arguments. // fn is the PC of a func(a unsafe.Pointer) function. TEXT crosscall2(SB),NOSPLIT|NOFRAME,$0 SUB $(8*9), R13 // Reserve space for the floating point registers. // The C arguments arrive in R0, R1, R2, and R3. We want to // pass R0, R1, and R3 to Go, so we push those on the stack. // Also, save C callee-save registers R4-R12.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 20 17:19:36 UTC 2023 - 2.2K bytes - Viewed (0) -
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) -
tensorflow/c/experimental/saved_model/core/revived_types/flat_tensor_function.cc
ImmediateExecutionContext* ctx, std::unique_ptr<FlatTensorFunction>* out) { TF_RETURN_IF_ERROR(ctx->AddFunctionDef(*function_def)); std::vector<ImmediateTensorHandlePtr> owned_captures; owned_captures.reserve(captures.size()); for (ImmediateExecutionTensorHandle* capture : captures) { capture->Ref(); owned_captures.push_back(ImmediateTensorHandlePtr(capture)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 14 19:16:58 UTC 2023 - 3.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/ir/UniformSupport.cc
std::size_t dim_size = type.getDimSize(quantization_dim_); if (dim_size != scales_.size()) { return {}; } SmallVector<UniformQuantizedValueConverter, 4> converters; converters.reserve(dim_size); for (int i = 0, e = dim_size; i != e; ++i) { converters.push_back(getPerChunkConverter(i)); } // Scan the elements of the dense elements attributes and quantize them by
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 4.3K bytes - Viewed (0) -
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)