Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for EXPECT_TRUE (0.06 sec)

  1. 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();
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Aug 03 03:14:26 UTC 2023
    - 31.5K bytes
    - Viewed (0)
  2. 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();
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
  3. 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);
    }
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Jan 17 22:27:52 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  4. 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 << "{";
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
  5. 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 =
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
Back to top