Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for rebegin (0.19 sec)

  1. 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)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

                  << ", n = " << n;
            }
            // Verify the contents of the read.
            std::vector<char>::const_iterator begin = buf.begin() + offset;
            std::vector<char>::const_iterator end =
                offset + n > buf.size() ? buf.end() : begin + n;
            std::vector<char> want(begin, end);
            EXPECT_EQ(got, want) << "block size = " << block_size
                                 << ", offset = " << offset << ", n = " << n;
    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)
  3. tensorflow/c/c_api_test.cc

      EXPECT_TF_META("v", list_size, TF_ATTR_INT, -1);
      TF_OperationGetAttrIntList(oper, "v", values, list_size, s_);
      EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      EXPECT_TRUE(std::equal(std::begin(list), std::end(list), std::begin(values)));
    }
    
    TEST_F(CApiAttributesTest, Float) {
      auto desc = init("float");
      TF_SetAttrFloat(desc, "v", 2.718);
    
      auto oper = TF_FinishOperation(desc, s_);
    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)
  4. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

        if (!user_schemes->empty()) {
          auto is_requested_scheme = [user_schemes](const auto& scheme) {
            return std::find(user_schemes->begin(), user_schemes->end(), scheme) ==
                   user_schemes->end();
          };
          auto end = std::remove_if(all_schemes->begin(), all_schemes->end(),
                                    is_requested_scheme);
          all_schemes->erase(end, all_schemes->end());
        }
      }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  5. tensorflow/c/eager/c_api_experimental_test.cc

        const std::vector<std::string>& device_names = ListDeviceNames(ctx_0);
        ASSERT_TRUE(std::find(device_names.begin(), device_names.end(),
                              remote_device) != device_names.end());
      }
    
      {
        const std::vector<std::string>& device_names = ListDeviceNames(ctx_1);
        ASSERT_TRUE(std::find(device_names.begin(), device_names.end(),
                              remote_device) != device_names.end());
      }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  6. tensorflow/c/eager/c_api_test.cc

        const std::vector<std::string>& device_names = ListDeviceNames(ctx_0);
        ASSERT_TRUE(std::find(device_names.begin(), device_names.end(),
                              remote_device) != device_names.end());
      }
    
      {
        const std::vector<std::string>& device_names = ListDeviceNames(ctx_1);
        ASSERT_TRUE(std::find(device_names.begin(), device_names.end(),
                              remote_device) != device_names.end());
      }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 20:50:20 GMT 2023
    - 94.6K bytes
    - Viewed (1)
  7. tensorflow/c/c_api.cc

      } else {
        if (!desc->colocation_constraints.empty()) {
          desc->node_builder.Attr(
              tensorflow::kColocationAttrName,
              std::vector<string>(desc->colocation_constraints.begin(),
                                  desc->colocation_constraints.end()));
        }
        status->status = desc->node_builder.Finalize(&desc->graph->graph, &ret,
                                                     /*consume=*/true);
    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)
  8. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

                       TF_Message(status));
        }
    
        if (device_index == 0) {
          first_op_output_count = per_device_output_tensors.rbegin()->size();
        } else {
          if (first_bad_status == nullptr &&
              per_device_output_tensors.rbegin()->size() != first_op_output_count) {
            first_bad_status.reset(TF_NewStatus());
            TF_SetStatus(first_bad_status.get(), TF_INTERNAL,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  9. tensorflow/c/eager/parallel_device/parallel_device_lib.h

                     absl::Span<const int64_t> shape, const TF_DataType dtype)
          : device_(device),
            tensors_(std::move(tensors)),
            shape_(std::vector<int64_t>(shape.begin(), shape.end())),
            dtype_(dtype) {}
      ParallelTensor(const ParallelDevice& device,
                     std::vector<TensorHandlePtr> tensors, const TF_DataType dtype)
          : device_(device),
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 25 15:21:13 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_function.cc

        const auto& iter = input_nodes->find(node);
        if (iter == input_nodes->end()) {
          input_nodes->insert({node, {idx}});
        } else {
          auto& indices = iter->second;
          if (std::find(indices.begin(), indices.end(), idx) != indices.end()) {
            return InvalidArgument("TF_Output ", node->name(), ":", idx,
                                   " appears more than once in the input list");
          }
          indices.push_back(idx);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
Back to top