Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 164 for tx_status (0.15 sec)

  1. src/database/sql/sql_test.go

    func TestTxCannotCommitAfterRollback(t *testing.T) {
    	db := newTestDB(t, "tx_status")
    	defer closeDB(t, db)
    
    	// First check query reporting is correct.
    	var txStatus string
    	err := db.QueryRow("SELECT|tx_status|tx_status|").Scan(&txStatus)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if g, w := txStatus, "autocommit"; g != w {
    		t.Fatalf("tx_status=%q, wanted %q", g, w)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  2. src/database/sql/fakedb_test.go

    				}
    			}
    		}
    		if s.table == "tx_status" && s.colName[0] == "tx_status" {
    			txStatus := "autocommit"
    			if s.c.currTx != nil {
    				txStatus = "transaction"
    			}
    			cursor := &rowsCursor{
    				db:        s.c.db,
    				parentMem: s.c,
    				posRow:    -1,
    				rows: [][]*row{
    					{
    						{
    							cols: []any{
    								txStatus,
    							},
    						},
    					},
    				},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 12:38:07 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  3. tensorflow/c/tf_status.h

    // Return a new status object.
    TF_CAPI_EXPORT extern TF_Status* TF_NewStatus(void);
    
    // Delete a previously created status object.
    TF_CAPI_EXPORT extern void TF_DeleteStatus(TF_Status*);
    
    // Record <code, msg> in *s.  Any previous information is lost.
    // A common use is to clear a status: TF_SetStatus(s, TF_OK, "");
    TF_CAPI_EXPORT extern void TF_SetStatus(TF_Status* s, TF_Code code,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 20:00:09 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. tensorflow/c/tf_status.cc

    #ifndef LIBTPU_EXCLUDE_C_API_IMPL
    
    #include "tensorflow/c/tf_status.h"
    
    #include "tensorflow/c/tf_status_internal.h"
    
    // Trampoline implementation to redirect to TSL. Kept here for backward
    // compatibility only.
    
    TF_Status* TF_NewStatus() { return TSL_NewStatus(); }
    void TF_DeleteStatus(TF_Status* s) { TSL_DeleteStatus(s); }
    void TF_SetStatus(TF_Status* s, TF_Code code, const char* msg) {
      TSL_SetStatus(s, TSL_Code(code), msg);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 24 18:40:14 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  5. tensorflow/c/tf_status_helper.h

    #include <utility>
    
    #include "tensorflow/c/tf_status.h"
    #include "tsl/platform/status.h"
    
    namespace tsl {
    // Set the attribute of "tf_status" from the attributes of "status".
    void Set_TF_Status_from_Status(TF_Status* tf_status,
                                   const absl::Status& status);
    
    // Returns a "status" from "tf_status".
    absl::Status StatusFromTF_Status(const TF_Status* tf_status);
    }  // namespace tsl
    
    namespace tensorflow {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/next_pluggable_device/c_api.cc

      absl::Status cc_status;
      if (var_info == nullptr) {
        cc_status = absl::InvalidArgumentError("TF_VariableInfo is NULL.");
        status->status = cc_status;
        return nullptr;
      }
      if (var_info->var_info.var() == nullptr) {
        cc_status = absl::InvalidArgumentError(
            "VariableInfo does not track a resource variable.");
        status->status = cc_status;
        return nullptr;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 05:48:24 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. tensorflow/c/ops.cc

                                     TF_Status* status)) {
      auto* cc_builder = reinterpret_cast<OpDefBuilder*>(builder);
      cc_builder->SetShapeFn(
          [shape_inference_func](InferenceContext* ctx) -> tensorflow::Status {
            TF_Status* c_status = TF_NewStatus();
            auto c_ctx = reinterpret_cast<TF_ShapeInferenceContext*>(ctx);
            shape_inference_func(c_ctx, c_status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 28 22:41:35 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  8. tensorflow/c/kernels.cc

                                                       TF_Status* status) {
      auto* cc_ctx = reinterpret_cast<::tensorflow::OpKernelConstruction*>(ctx);
      tensorflow::NameAttrList function;
      auto cc_status = cc_ctx->GetAttr(attr_name, &function);
      if (!cc_status.ok()) {
        tsl::Set_TF_Status_from_Status(status, cc_status);
        return nullptr;
      }
      TF_Buffer* buffer = TF_NewBuffer();
      cc_status = tensorflow::MessageToBuffer(function, buffer);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 36K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/grappler/grappler.cc

      params.patch_version = GO_PATCH;
      params.optimizer = &optimizer;
      params.optimizer_configs = &optimizer_configs;
    
      OwnedTFStatus c_status(TF_NewStatus());
      init_fn(&params, c_status.get());
      TF_RETURN_IF_ERROR(tsl::StatusFromTF_Status(c_status.get()));
      TF_RETURN_IF_ERROR(ValidateTPOptimizerRegistrationParams(params));
      TF_RETURN_IF_ERROR(ValidateTPOptimizer(optimizer));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 15K bytes
    - Viewed (0)
  10. tensorflow/c/c_op_requires.h

          ::tensorflow::Set_TF_Status_from_Status(C_STATUS, _s);      \
          TF_OpKernelContext_Failure(CTX, C_STATUS);                  \
          TF_DeleteStatus(C_STATUS);                                  \
          return;                                                     \
        }                                                             \
      } while (0)
    
    #define TF_CLEANUP_AND_RETURN_IF_ERROR(C_STATUS, BUFFER, __VA_ARGS__) \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 02 21:35:06 UTC 2022
    - 2.3K bytes
    - Viewed (0)
Back to top