Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 13 of 13 for fail (0.4 sec)

  1. tensorflow/c/eager/c_api_unified_experimental_test.cc

      TF_AbstractOpSetOpName(placeholder_op, "my_ph", status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
    
      // This should fail.
      TF_AbstractOpSetOpType(placeholder_op, "Placeholder", status.get());
      ASSERT_EQ(TF_FAILED_PRECONDITION, TF_GetCode(status.get()));
    
      TF_DeleteAbstractOp(placeholder_op);
      TF_DeleteExecutionContext(graph_ctx);
    }
    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)
  2. tensorflow/c/eager/c_api_test.cc

        EXPECT_TRUE(strstr(TF_Message(status), msg) != nullptr)
            << TF_Message(status);
        // Since error is not cleared, the following copy with correct device will
        // still fail.
        TF_SetStatus(status, TF_OK, "");
        TFE_DeleteTensorHandle(retvals[0]);
        TFE_Executor* executor = TFE_ContextGetExecutorForThread(ctx);
        TFE_ExecutorWaitForAllPendingNodes(executor, status);
    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)
  3. tensorflow/c/c_api_test.cc

      TF_DeleteSession(sess, s);
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
      TF_DeleteGraph(graph);
      TF_DeleteStatus(s);
    }
    
    TEST(CAPI, ShapeInferenceError) {
      // TF_FinishOperation should fail if the shape of the added operation cannot
      // be inferred.
      TF_Status* status = TF_NewStatus();
      TF_Graph* graph = TF_NewGraph();
    
      // Create this failure by trying to add two nodes with incompatible shapes
    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)
Back to top