Skip to content

Commit

Permalink
omitempty
Browse files Browse the repository at this point in the history
  • Loading branch information
azhou-determined committed Oct 24, 2024
1 parent 6773fa7 commit 3381010
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions master/pkg/schemas/expconf/searcher_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func (a AdaptiveASHAConfigV0) Length() Length {
//go:generate ../gen.sh
type SyncHalvingConfigV0 struct {
RawNumRungs *int `json:"num_rungs"`
RawMaxLength *LengthV0 `json:"max_length,omit_empty"`
RawMaxLength *LengthV0 `json:"max_length,omitempty"`
RawBudget *LengthV0 `json:"budget"`
RawDivisor *float64 `json:"divisor"`
RawTrainStragglers *bool `json:"train_stragglers"`
Expand All @@ -191,7 +191,7 @@ type SyncHalvingConfigV0 struct {
//
//go:generate ../gen.sh
type AdaptiveConfigV0 struct {
RawMaxLength *LengthV0 `json:"max_length,omit_empty"`
RawMaxLength *LengthV0 `json:"max_length,omitempty"`
RawBudget *LengthV0 `json:"budget"`
RawBracketRungs []int `json:"bracket_rungs"`
RawDivisor *float64 `json:"divisor"`
Expand All @@ -204,7 +204,7 @@ type AdaptiveConfigV0 struct {
//
//go:generate ../gen.sh
type AdaptiveSimpleConfigV0 struct {
RawMaxLength *LengthV0 `json:"max_length,omit_empty"`
RawMaxLength *LengthV0 `json:"max_length,omitempty"`
RawMaxTrials *int `json:"max_trials"`
RawDivisor *float64 `json:"divisor"`
RawMode *AdaptiveMode `json:"mode"`
Expand Down

0 comments on commit 3381010

Please sign in to comment.