- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for splice (0.16 sec)
-
tensorflow/c/c_api.cc
#include "tensorflow/core/framework/versions.pb.h" #include "tensorflow/core/graph/graph.h" #include "tensorflow/core/graph/node_builder.h" #include "tensorflow/core/graph/validate.h" #include "tensorflow/core/lib/gtl/array_slice.h" #include "tensorflow/core/platform/coding.h" #include "tensorflow/core/platform/errors.h" #include "tensorflow/core/platform/mem.h" #include "tensorflow/core/platform/mutex.h" #include "tensorflow/core/platform/protobuf.h"
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 102.3K bytes - Viewed (0) -
tensorflow/c/c_test_util.cc
TF_OperationDescription* desc = TF_NewOperation(graph, "Split", name); TF_AddInput(desc, {zero, 0}); TF_AddInput(desc, {input, 0}); TF_SetAttrInt(desc, "num_split", 3); TF_SetAttrType(desc, "T", TF_INT32); // Set device to CPU since there is no version of split for int32 on GPU // TODO(iga): Convert all these helpers and tests to use floats because
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Oct 15 03:16:52 GMT 2021 - 17.8K bytes - Viewed (2) -
tensorflow/c/c_api_function_test.cc
{{func_op, 0}, {func_op, 1}}, {{1, 2}, {5, 6}}); VerifyFDef({"split3_const0", "split3_1"}, M({{"feed"}}), M({{"split3"}, {"split3_0"}}), {{"split3_const0:output:0", "split3_1:0"}, {"feed", "split3_1:1"}, {"split3_1:output:0", "split3"}, {"split3_1:output:2", "split3_0"}}, {}); }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jul 20 22:08:54 GMT 2023 - 63.6K bytes - Viewed (6) -
tensorflow/c/checkpoint_reader.cc
<< entry.InitializationErrorString(); for (int i = 0; i < entry.slices_size(); ++i) { const auto& slice_proto = entry.slices(i); CHECK(filtered_keys .insert(EncodeTensorNameSlice( string(v2_reader_->key()) /* full var's name */, TensorSlice(slice_proto))) .second); } }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Aug 25 21:29:12 GMT 2023 - 5.5K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc
} auto begin = data.begin(); if (offset > pos) { // The block begins before the slice we're reading. begin += offset - pos; } auto end = data.end(); if (pos + data.size() > offset + n) { // The block extends past the end of the slice we're reading. end -= (pos + data.size()) - (offset + n); } if (begin < end) {
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Thu Jul 16 01:39:09 GMT 2020 - 11.1K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
} TF_DeleteTensor(a); } TEST(CAPI, TestTensorIsNotAligned) { // Test unaligned access via a Slice. Tensor x(DT_FLOAT, TensorShape({30})); x.flat<float>().setConstant(0.0); // Take an unaligned slice. Tensor y = x.Slice(1, 13); Status status; TF_Tensor* a = TF_TensorFromTensor(y, &status); if (TF_TensorDefaultAlignment() > 0) {
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 96.9K bytes - Viewed (3) -
tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc
// do in this test. const size_t size = 256; std::vector<char> buf; buf.reserve(size); for (int i = 0; i < size; i++) { buf.push_back(i); } // The fetcher just fetches slices of the buffer. auto fetcher = [&buf](const string& filename, size_t offset, size_t n, char* buffer, TF_Status* status) -> int64_t { int64_t bytes_transferred; if (offset < buf.size()) {
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Fri Oct 15 03:16:57 GMT 2021 - 23.2K bytes - Viewed (0)