Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for RANGE (0.15 sec)

  1. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

          std::stringstream os;
          os << "EOF at offset " << offset << " in file " << filename
             << " at position " << pos << " with data size " << data.size();
          TF_SetStatus(status, TF_OUT_OF_RANGE, std::move(os).str().c_str());
          return total_bytes_transferred;
        }
        auto begin = data.begin();
        if (offset > pos) {
          // The block begins before the slice we're reading.
          begin += offset - pos;
    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/eager/gradient_checker.cc

    namespace tensorflow {
    namespace gradients {
    
    using namespace std;
    
    // ================== Helper functions =================
    
    // Fills data with values [start,end) with given step size.
    void Range(vector<int32_t>* data, int32_t start, int32_t end,
               int32_t step = 1) {
      for (int32_t i = start; i < end; i += step) {
        (*data)[i] = i;
      }
    }
    
    // Fills out_dims with the dimensions of the given tensor.
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

      ASSERT_TRUE(CompareSubString(0, 4, result, read));
    
      read = tf_random_access_file::Read(file, content_view.length() - 2, 4, result,
                                         status_);
      ASSERT_EQ(TF_GetCode(status_), TF_OUT_OF_RANGE) << TF_Message(status_);
      ASSERT_TRUE(CompareSubString(content_view.length() - 2, 2, result, read));
    
      delete[] result;
      tf_random_access_file::Cleanup(file);
      delete file;
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  4. tensorflow/c/c_api.cc

            session->graph->mu.unlock();
            return false;
          }
    
          GraphDef graph_def;
          *graph_def.mutable_versions() = graph.versions();
          // Fill graph_def with nodes with ids in the range
          // [session->last_num_graph_nodes, num_nodes), that is the nodes
          // added since the last TF_SessionRun() call.
          for (auto id = session->last_num_graph_nodes; id < num_nodes; ++id) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      // OutOfRange because the offset is past the end of the 24-byte file.
      Status status = ReadCache(&cache, "", file_size + 4, 4, &out);
      EXPECT_EQ(status.code(), error::OUT_OF_RANGE);
      EXPECT_TRUE(second_block);
      // Reading the second full block will return 8 bytes, from a cache hit.
      second_block = false;
      TF_EXPECT_OK(ReadCache(&cache, "", block_size, block_size, &out));
    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)
  6. tensorflow/c/eager/c_api_test.cc

      TFE_DeleteContext(ctx);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteStatus(status);
    }
    BENCHMARK(BM_InitOp);
    
    void BM_Execute(::testing::benchmark::State& state) {
      const int async = state.range(0);
      state.SetLabel(async ? "ExecuteAsync" : "Execute");
      TF_Status* status = TF_NewStatus();
      TFE_ContextOptions* opts = TFE_NewContextOptions();
      TFE_ContextOptionsSetAsync(opts, static_cast<unsigned char>(async));
    C++
    - Registered: Tue Apr 23 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_test.cc

                static_cast<TF_Code>(tensorflow::error::FAILED_PRECONDITION));
      EXPECT_EQ(TF_ABORTED, static_cast<TF_Code>(tensorflow::error::ABORTED));
      EXPECT_EQ(TF_OUT_OF_RANGE,
                static_cast<TF_Code>(tensorflow::error::OUT_OF_RANGE));
      EXPECT_EQ(TF_UNIMPLEMENTED,
                static_cast<TF_Code>(tensorflow::error::UNIMPLEMENTED));
      EXPECT_EQ(TF_INTERNAL, static_cast<TF_Code>(tensorflow::error::INTERNAL));
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  8. ci/official/utilities/extract_resultstore_links.py

      with open(file_path, 'r', encoding='utf-8', errors='ignore') as f:
        log_lines = f.read().splitlines()
    
      result_store_links: ResultDictType = {}
      current_url = None
      for i in range(len(log_lines)):
        line = log_lines[i]
        result_store_line_match = re.search(RESULT_STORE_LINK_RE, line)
        if not result_store_line_match:
          continue
    
        url = result_store_line_match.group(1)
    Python
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Nov 08 17:50:27 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

      StringPiece result;
      // read at least 1 byte more than test_data
      status = read_file->Read(0, test_data.size() + 1, &result, scratch);
      EXPECT_PRED2(UnimplementedOrReturnsCode, status, Code::OUT_OF_RANGE);
    }
    
    // The URI schemes that need to be tested are provided by the user via flags
    // (or, if none is supplied, all existing schemes are used). As a scheme can
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  10. .github/workflows/sigbuild-docker.yml

              echo "TF_VERSION=${major_version}.${minor_version}" >> "$GITHUB_OUTPUT"
              # Also get the current date to do cache busting. Assumes one day
              # is an ok range for rebuilds
              echo "DATE=$(date +'%Y-%m-%d')" >> "$GITHUB_OUTPUT"
            id: tf-version
          -
            name: Build and push
            id: docker_build
    Others
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Oct 23 18:43:43 GMT 2023
    - 3.8K bytes
    - Viewed (0)
Back to top