Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 65 for expects (0.22 sec)

  1. tensorflow/c/c_api_test.cc

                                  &Deallocator, &deallocator_called);
      EXPECT_FALSE(deallocator_called);
      EXPECT_EQ(TF_FLOAT, TF_TensorType(t));
      EXPECT_EQ(2, TF_NumDims(t));
      EXPECT_EQ(dims[0], TF_Dim(t, 0));
      EXPECT_EQ(dims[1], TF_Dim(t, 1));
      EXPECT_EQ(num_bytes, TF_TensorByteSize(t));
      EXPECT_EQ(static_cast<void*>(values), TF_TensorData(t));
      TF_DeleteTensor(t);
      EXPECT_TRUE(deallocator_called);
    }
    
    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)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      // Fill the cache.
      TF_EXPECT_OK(ReadCache(&cache, "a", 0, n, &out));
      EXPECT_EQ(out, a);
      EXPECT_EQ(calls, 1);
      TF_EXPECT_OK(ReadCache(&cache, "a", 8, n, &out));
      EXPECT_EQ(out, A);
      EXPECT_EQ(calls, 2);
      TF_EXPECT_OK(ReadCache(&cache, "b", 0, n, &out));
      EXPECT_EQ(out, b);
      EXPECT_EQ(calls, 3);
      TF_EXPECT_OK(ReadCache(&cache, "b", 8, n, &out));
      EXPECT_EQ(out, B);
      EXPECT_EQ(calls, 4);
    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/experimental/filesystem/modular_filesystem_test.cc

      if (GetParam().empty()) {
        EXPECT_EQ(fs->TranslateName(""), "");
        EXPECT_EQ(fs->TranslateName("/"), "/");
        EXPECT_EQ(fs->TranslateName("//"), "/");
        // Empty scheme also allows relative paths
        EXPECT_EQ(fs->TranslateName("a_file"), "a_file");
        EXPECT_EQ(fs->TranslateName("a_dir/.."), ".");
      } else {
        EXPECT_EQ(fs->TranslateName(tensorflow::strings::StrCat(GetParam(), "://")),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_experimental_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      float product[4] = {0};
      EXPECT_EQ(sizeof(product), TF_TensorByteSize(t));
      memcpy(&product[0], TF_TensorData(t), TF_TensorByteSize(t));
      TF_DeleteTensor(t);
      EXPECT_EQ(7, product[0]);
      EXPECT_EQ(10, product[1]);
      EXPECT_EQ(15, product[2]);
      EXPECT_EQ(22, product[3]);
      TF_DeleteStatus(status);
    }
    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)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc

      cache.Insert("d", 4);
      int value = 0;
      EXPECT_TRUE(cache.Lookup("a", &value));
      EXPECT_EQ(value, 1);
      EXPECT_TRUE(cache.Lookup("b", &value));
      EXPECT_EQ(value, 2);
      EXPECT_TRUE(cache.Lookup("c", &value));
      EXPECT_EQ(value, 3);
      EXPECT_TRUE(cache.Lookup("d", &value));
      EXPECT_EQ(value, 4);
      cache.Clear();
      EXPECT_FALSE(cache.Lookup("a", &value));
      EXPECT_FALSE(cache.Lookup("b", &value));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 7.1K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_unified_experimental_test.cc

      memcpy(&result_data[0], TF_TensorData(result_tensor),
             TF_TensorByteSize(result_tensor));
    
      // Build expected result & verify.
      float e_vals[] = {19.0f, 22.0f, 43.0f, 50.0f};
    
      int data_len = 4;  // length of e_vals
      for (int i = 0; i < data_len; i++) {
        EXPECT_EQ(result_data[i], e_vals[i]);
      }
    
      TF_DeleteTensor(result_tensor);
      TF_DeleteAbstractTensor(result);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_test.cc

      TFE_TensorHandle* h = TestMatrixTensorHandle(ctx);
      EXPECT_EQ(TF_FLOAT, TFE_TensorHandleDataType(h));
    
      TF_Tensor* t = TFE_TensorHandleResolve(h, status.get());
      ASSERT_EQ(16, TF_TensorByteSize(t));
      float data[4] = {0};
      memcpy(&data[0], TF_TensorData(t), TF_TensorByteSize(t));
      EXPECT_EQ(1.0, data[0]);
      EXPECT_EQ(2.0, data[1]);
      EXPECT_EQ(3.0, data[2]);
      EXPECT_EQ(4.0, data[3]);
      TF_DeleteTensor(t);
    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)
  8. BUILD

    exports_files([
        "configure",
        "configure.py",
        "ACKNOWLEDGEMENTS",
        "LICENSE",
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Jan 18 19:07:07 GMT 2021
    - 95 bytes
    - Viewed (0)
  9. .github/ISSUE_TEMPLATE/tflite-other.md

        compiling from source placeholder: validations: required: false
    
    -   type: textarea id: what-happened attributes: label: Current Behaviour?
        description: Also tell us, what did you expect to happen? placeholder: Tell
        us what you see! value: "A bug happened!" render: shell validations:
        required: true
    
    -   type: textarea id: code-to-reproduce attributes: label: Standalone code to
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Dec 29 22:28:29 GMT 2022
    - 3.4K bytes
    - Viewed (1)
  10. ci/official/utilities/rename_and_verify_wheels.sh

    # one, checks the filesize, and then ensures the new wheel is installable.
    set -euxo pipefail
    
    cd "$TFCI_OUTPUT_DIR"
    
    # Move extra wheel files somewhere out of the way. This script
    # expects just one wheel file to exist.
    if [[ "$(ls *.whl | wc -l | tr -d ' ')" != "1" ]]; then
      echo "More than one wheel file is present: moving the oldest to"
      echo "$TFCI_OUTPUT_DIR/extra_wheels."
    Shell Script
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 27 21:16:27 GMT 2024
    - 3.4K bytes
    - Viewed (0)
Back to top