Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for EXPECT_TRUE (0.19 sec)

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

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

      EXPECT_TRUE(TFE_CancellationManagerDeregisterCallback(c_mgr, token1));
      EXPECT_TRUE(TFE_CancellationManagerTryDeregisterCallback(c_mgr, token3));
    
      TFE_CancellationManagerStartCancel(c_mgr);
      EXPECT_TRUE(TFE_CancellationManagerIsCancelled(c_mgr));
      EXPECT_TRUE(callback2_invoked);
      TFE_DeleteCancellationManager(c_mgr);
    }
    
    TEST(CAPI, ExecutorContextDestructionOrder) {
      TF_Status* status = TF_NewStatus();
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  3. tensorflow/c/c_api_test.cc

        } else {
          ASSERT_TRUE(GetNodeDef(oper, &node_def));
          ADD_FAILURE() << "Unexpected Node: " << node_def.DebugString();
        }
      }
      EXPECT_TRUE(found_placeholder);
      EXPECT_TRUE(found_scalar_const);
      EXPECT_TRUE(found_add);
      EXPECT_TRUE(found_neg);
    
      // Clean up
      TF_DeleteGraph(graph);
      TF_DeleteStatus(s);
    }
    
    TEST(CAPI, UpdateEdge) {
      TF_Status* s = TF_NewStatus();
    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)
  4. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      tf_gcs_filesystem::RamFileBlockCache cache(16, 32, 0, fetcher);
      std::vector<char> out;
    
      // First read.
      EXPECT_TRUE(cache.ValidateAndUpdateFileSignature(filename, 123));
      TF_EXPECT_OK(ReadCache(&cache, filename, 0, 16, &out));
      EXPECT_EQ(calls, 1);
    
      // Second read. Hit cache.
      EXPECT_TRUE(cache.ValidateAndUpdateFileSignature(filename, 123));
      TF_EXPECT_OK(ReadCache(&cache, filename, 0, 16, &out));
      EXPECT_EQ(calls, 1);
    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)
  5. tensorflow/c/experimental/filesystem/modular_filesystem_test.cc

    }
    
    TEST_P(ModularFileSystemTest, TestFilesExistsNoFiles) {
      const std::vector<std::string> filenames = {};
      EXPECT_TRUE(env_->FilesExist(filenames, /*status=*/nullptr));
    
      std::vector<Status> statuses;
      EXPECT_TRUE(env_->FilesExist(filenames, &statuses));
      EXPECT_TRUE(statuses.empty());
    }
    
    TEST_P(ModularFileSystemTest, TestStatEmptyFile) {
      const std::string filepath = GetURIForPath("a_file");
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri May 27 20:25:58 GMT 2022
    - 71K bytes
    - Viewed (0)
  6. tensorflow/c/c_api_experimental_test.cc

      const string malformed_text_proto(R"(cluster {
      job {
        name: "worker")");
      TF_Buffer* null_result =
          TFE_GetServerDef(malformed_text_proto.c_str(), status);
      EXPECT_NE(TF_GetCode(status), TF_OK);
      EXPECT_TRUE(absl::StrContains(TF_Message(status),
                                    "Invalid text proto for ServerDef"));
      EXPECT_EQ(null_result, nullptr);
    
      // Cleanup
      TF_DeleteBuffer(result);
      TF_DeleteStatus(status);
    }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
  7. tensorflow/c/eager/custom_device_test.cc

      matmul.reset(MatMulOp(context.get(), hcustom0.get(), hcpu.get()));
      num_retvals = 1;
      executed = false;
      TFE_Execute(matmul.get(), &retval, &num_retvals, status.get());
      EXPECT_TRUE(executed);
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      TFE_DeleteTensorHandle(retval);
    
      // Explicit placement still forces the op onto the requested device
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 18.4K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_function_test.cc

        *op = TF_FinishOperation(desc, s_);
        ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
        ASSERT_NE(*op, nullptr);
      }
    
      FunctionDef fdef() {
        tensorflow::FunctionDef fdef;
        EXPECT_TRUE(GetFunctionDef(func_, &fdef));
        return fdef;
      }
    
      // logging utility
      template <class Container>
      string ToString(const Container& v) {
        std::stringstream ss;
        ss << "{";
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  9. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

      EXPECT_TF_OK(status_);
    
      TF_FileStatistics stat;
      tf_gcs_filesystem::Stat(filesystem_, dir.c_str(), &stat, status_);
      EXPECT_TF_OK(status_);
      EXPECT_TRUE(stat.is_directory);
    }
    
    TEST_F(GCSFilesystemTest, DeleteDir) {
      tf_gcs_filesystem::Init(filesystem_, status_);
      ASSERT_TF_OK(status_);
      const std::string dir = GetURIForPath("DeleteDir");
    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)
  10. tensorflow/c/eager/c_api_test.cc

      TFE_TensorHandle* hdevice =
          TFE_TensorHandleCopyToDevice(hcpu, ctx, kErrorDevice, status.get());
      EXPECT_NE(TF_OK, TF_GetCode(status.get()));
      const char* msg = "NoSuchDevice:0 unknown device";
      EXPECT_TRUE(strstr(TF_Message(status.get()), msg) != nullptr)
          << TF_Message(status.get());
      TF_SetStatus(status.get(), TF_OK, "");
      const char* kCPUDevice = "CPU:0";
      TFE_TensorHandle* hcopy =
    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)
Back to top