Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 309 for OK (0.14 sec)

  1. callbacks/create.go

    		callMethod(db, func(value interface{}, tx *gorm.DB) (called bool) {
    			if db.Statement.Schema.BeforeSave {
    				if i, ok := value.(BeforeSaveInterface); ok {
    					called = true
    					db.AddError(i.BeforeSave(tx))
    				}
    			}
    
    			if db.Statement.Schema.BeforeCreate {
    				if i, ok := value.(BeforeCreateInterface); ok {
    					called = true
    					db.AddError(i.BeforeCreate(tx))
    				}
    			}
    			return called
    		})
    	}
    }
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 08 03:29:55 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  2. internal/s3select/sql/value.go

    	case bool:
    		_, ok = b.value.(bool)
    	case string:
    		_, ok = b.value.(string)
    	case int64:
    		_, ok = b.value.(int64)
    	case float64:
    		_, ok = b.value.(float64)
    	case time.Time:
    		_, ok = b.value.(time.Time)
    	case []byte:
    		_, ok = b.value.([]byte)
    	case []Value:
    		_, ok = b.value.([]Value)
    	default:
    		ok = reflect.TypeOf(v.value) == reflect.TypeOf(b.value)
    	}
    	return ok
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Feb 25 20:31:19 GMT 2022
    - 20.2K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_unified_experimental_test.cc

        ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
        TF_OutputListPushBack(func_outputs, add_output2, s);
        ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
        TF_OutputListPushBack(func_outputs, mm_output, s);
        ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
        func = TF_FinalizeFunction(graph_ctx, func_outputs, s);
        ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_experimental_test.cc

    static bool HasSubstr(absl::string_view base, absl::string_view substr) {
      bool ok = absl::StrContains(base, substr);
      EXPECT_TRUE(ok) << base << ", expected substring " << substr;
      return ok;
    }
    
    TEST(CAPI, MonitoringCounter0) {
      TF_Status* status = TF_NewStatus();
      auto* counter =
          TFE_MonitoringNewCounter0("test/counter", status, "description");
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteStatus(status);
    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)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

      std::vector<char> out;
      TF_EXPECT_OK(ReadCache(&cache1, want_filename, want_offset, want_n, &out));
      EXPECT_EQ(calls, 1);
      TF_EXPECT_OK(ReadCache(&cache2, want_filename, want_offset, want_n, &out));
      EXPECT_EQ(calls, 2);
      TF_EXPECT_OK(ReadCache(&cache3, want_filename, want_offset, want_n, &out));
      EXPECT_EQ(calls, 3);
      TF_EXPECT_OK(ReadCache(&cache4, want_filename, want_offset, want_n, &out));
    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)
  6. finisher_api.go

    	}
    
    	if orderByClause, ok := db.Statement.Clauses["ORDER BY"]; ok {
    		if _, ok := db.Statement.Clauses["GROUP BY"]; !ok {
    			delete(tx.Statement.Clauses, "ORDER BY")
    			defer func() {
    				tx.Statement.Clauses["ORDER BY"] = orderByClause
    			}()
    		}
    	}
    
    	tx.Statement.Dest = count
    	tx = tx.callbacks.Query().Execute(tx)
    
    	if _, ok := db.Statement.Clauses["GROUP BY"]; ok || tx.RowsAffected != 1 {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Jan 12 08:42:21 GMT 2024
    - 22.7K bytes
    - Viewed (0)
  7. callbacks/associations.go

    							db.AddError(ref.ForeignKey.Set(db.Statement.Context, obj, pv))
    
    							if dest, ok := db.Statement.Dest.(map[string]interface{}); ok {
    								dest[ref.ForeignKey.DBName] = pv
    								if _, ok := dest[rel.Name]; ok {
    									dest[rel.Name] = elem.Interface()
    								}
    							}
    						}
    					}
    				}
    
    				switch db.Statement.ReflectValue.Kind() {
    				case reflect.Slice, reflect.Array:
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Apr 11 03:06:13 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  8. callbacks/query.go

    									onStmt.AddClause(c)
    								}
    
    								if join.On != nil {
    									onStmt.AddClause(join.On)
    								}
    
    								if cs, ok := onStmt.Clauses["WHERE"]; ok {
    									if where, ok := cs.Expression.(clause.Where); ok {
    										where.Build(&onStmt)
    
    										if onSQL := onStmt.SQL.String(); onSQL != "" {
    											vars := onStmt.Vars
    											for idx, v := range vars {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Jan 29 03:34:57 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  9. cmd/bucket-targets.go

    	sys.hMutex.RLock()
    	defer sys.hMutex.RUnlock()
    	if h, ok := sys.hc[ep.Host]; ok {
    		return !h.Online
    	}
    	go sys.initHC(ep)
    	return false
    }
    
    // markOffline sets endpoint to offline if network i/o timeout seen.
    func (sys *BucketTargetSys) markOffline(ep *url.URL) {
    	sys.hMutex.Lock()
    	defer sys.hMutex.Unlock()
    	if h, ok := sys.hc[ep.Host]; ok {
    		h.Online = false
    		sys.hc[ep.Host] = h
    	}
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  10. cmd/kms-handlers.go

    	if objectAPI == nil {
    		return
    	}
    
    	if GlobalKMS == nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrKMSNotConfigured), r.URL)
    		return
    	}
    
    	if _, ok := GlobalKMS.(kms.KeyManager); !ok {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrNotImplemented), r.URL)
    		return
    	}
    
    	metrics, err := GlobalKMS.Metrics(ctx)
    	if err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 20.7K bytes
    - Viewed (0)
Back to top