- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 752 for ok (0.17 sec)
-
utils/utils.go
yval := reflect.ValueOf(y) if xval.Kind() == reflect.Ptr && xval.IsNil() || yval.Kind() == reflect.Ptr && yval.IsNil() { return false } if valuer, ok := x.(driver.Valuer); ok { x, _ = valuer.Value() } if valuer, ok := y.(driver.Valuer); ok { y, _ = valuer.Value() } return reflect.DeepEqual(x, y) } func ToString(value interface{}) string { switch v := value.(type) { case string:
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Mon Apr 22 06:43:02 GMT 2024 - 3.8K bytes - Viewed (0) -
migrator/column_type.go
} // ColumnType returns the database type of the column. like `varchar(16)` func (ct ColumnType) ColumnType() (columnType string, ok bool) { return ct.ColumnTypeValue.String, ct.ColumnTypeValue.Valid } // PrimaryKey returns the column is primary key or not. func (ct ColumnType) PrimaryKey() (isPrimaryKey bool, ok bool) { return ct.PrimaryKeyValue.Bool, ct.PrimaryKeyValue.Valid }
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Thu Mar 24 01:31:58 GMT 2022 - 3.3K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc
ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get()); TFE_OpSetAttrType(read_op.get(), "dtype", TF_FLOAT); parallel_device.Execute(context.get(), handle_inputs, "ReadVariableOp", TFE_OpGetAttrs(read_op.get()), /*expected_max_outputs=*/1, status.get()); ASSERT_FALSE(TF_GetCode(status.get()) == TF_OK); TF_SetStatus(status.get(), TF_OK, "");
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jul 08 23:47:35 GMT 2021 - 15.3K bytes - Viewed (0) -
cmd/erasure-metadata.go
if fi.TransitionTier != "" { objInfo.StorageClass = fi.TransitionTier } else if sc, ok := fi.Metadata[xhttp.AmzStorageClass]; ok { objInfo.StorageClass = sc } else { objInfo.StorageClass = globalMinioDefaultStorageClass } // set restore status for transitioned object restoreHdr, ok := fi.Metadata[xhttp.AmzRestore] if ok { if restoreStatus, err := parseRestoreObjStatus(restoreHdr); err == nil {
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Sun Apr 28 17:53:50 GMT 2024 - 19.2K bytes - Viewed (1) -
tensorflow/c/experimental/gradients/math_grad_test.cc
status_ = StatusFromTF_Status(status.get()); ASSERT_EQ(errors::OK, status_.code()) << status_.message(); { AbstractContext* ctx_raw = nullptr; status_ = BuildImmediateExecutionContext(std::get<1>(GetParam()), &ctx_raw); ASSERT_EQ(errors::OK, status_.code()) << status_.message(); immediate_execution_ctx_.reset(ctx_raw); }
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Thu Apr 13 17:32:14 GMT 2023 - 16.3K bytes - Viewed (0) -
internal/bucket/bandwidth/monitor.go
NodeCount: numNodes, } go m.trackEWMA() return m } func (m *Monitor) updateMeasurement(opts BucketOptions, bytes uint64) { m.mlock.Lock() defer m.mlock.Unlock() tm, ok := m.bucketsMeasurement[opts] if !ok { tm = &bucketMeasurement{} } tm.incrementBytes(bytes) m.bucketsMeasurement[opts] = tm } // SelectionFunction for buckets type SelectionFunction func(bucket string) bool
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Mon Feb 19 22:54:46 GMT 2024 - 6K bytes - Viewed (0) -
schema/schema_helper_test.go
f.TagSettings = schema.ParseTagSetting(f.Tag.Get("gorm"), ";") } else { f.TagSettings = map[string]string{} } } parsedField, ok := s.FieldsByDBName[f.DBName] if !ok { parsedField, ok = s.FieldsByName[f.Name] } if !ok { t.Errorf("schema %v failed to look up field with name %v", s, f.Name) } else {
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Fri Dec 15 08:31:23 GMT 2023 - 7.5K bytes - Viewed (0) -
internal/s3select/sql/stringfuncs.go
return true, nil } case underscore: if len(s) == 0 { text, ok = dropRune(text) if !ok { return false, nil } continue } text, ok = matcher(text, string(s), hasLeadingPercent) if !ok { return false, nil } hasLeadingPercent = false text, ok = dropRune(text) if !ok { return false, nil } s = []rune{} case escape:
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 4.2K bytes - Viewed (0) -
callbacks/delete.go
func BeforeDelete(db *gorm.DB) { if db.Error == nil && db.Statement.Schema != nil && !db.Statement.SkipHooks && db.Statement.Schema.BeforeDelete { callMethod(db, func(value interface{}, tx *gorm.DB) bool { if i, ok := value.(BeforeDeleteInterface); ok { db.AddError(i.BeforeDelete(tx)) return true } return false }) } } func DeleteBeforeAssociations(db *gorm.DB) { if db.Error == nil && db.Statement.Schema != nil {
Go - Registered: Sun Apr 28 09:35:09 GMT 2024 - Last Modified: Fri Feb 25 02:48:23 GMT 2022 - 5.6K bytes - Viewed (0) -
tensorflow/c/c_api_experimental_test.cc
// TODO(bgogul): Add some death tests where status is not OK. } TEST_F(ShapeInferenceTest, InfersShapesFromInputTensors) { // Prepare some tensors for shape. TF_Tensor* tensor_1X6 = Int32Tensor({1, 6}); CHECK_EQ(TF_OK, TF_GetCode(status_)) << TF_Message(status_); TF_Tensor* tensor_1X1X6 = Int32Tensor({1, 1, 6}); CHECK_EQ(TF_OK, TF_GetCode(status_)) << TF_Message(status_);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Jan 17 22:27:52 GMT 2023 - 13.1K bytes - Viewed (1)