This repository was archived by the owner on Apr 23, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ struct Options: ParsableArguments {
18
18
@Option ( help: ArgumentHelp ( " Path to the dataset folder " , valueName: " dataset-path " ) )
19
19
var datasetPath : String ?
20
20
21
- @Option ( default : 50 , help: ArgumentHelp ( " Number of epochs " , valueName: " epochs " ) )
22
- var epochs : Int
21
+ @Option ( help: ArgumentHelp ( " Number of epochs " , valueName: " epochs " ) )
22
+ var epochs : Int = 50
23
23
24
- @Option ( default : 20 , help: ArgumentHelp ( " Number of steps to log a sample image into tensorboard " , valueName: " sampleLogPeriod " ) )
25
- var sampleLogPeriod : Int
24
+ @Option ( help: ArgumentHelp ( " Number of steps to log a sample image into tensorboard " , valueName: " sampleLogPeriod " ) )
25
+ var sampleLogPeriod : Int = 20
26
26
}
Original file line number Diff line number Diff line change @@ -30,10 +30,10 @@ struct FractalCommand: ParsableCommand {
30
30
extension FractalCommand {
31
31
struct Parameters : ParsableArguments {
32
32
@Flag ( help: " Use eager backend. " )
33
- var eager : Bool
33
+ var eager : Bool = false
34
34
35
35
@Flag ( help: " Use X10 backend. " )
36
- var x10 : Bool
36
+ var x10 : Bool = false
37
37
38
38
@Option ( help: " Number of iterations to run. " )
39
39
var iterations : Int ?
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ struct Options: ParsableArguments {
18
18
@Option ( help: ArgumentHelp ( " Path to the dataset folder " , valueName: " dataset-path " ) )
19
19
var datasetPath : String ?
20
20
21
- @Option ( default : 1 , help: ArgumentHelp ( " Number of epochs " , valueName: " epochs " ) )
22
- var epochs : Int
21
+ @Option ( help: ArgumentHelp ( " Number of epochs " , valueName: " epochs " ) )
22
+ var epochs : Int = 1
23
23
24
- @Option ( default : 20 , help: ArgumentHelp ( " Number of steps to log a sample image into tensorboard " , valueName: " sampleLogPeriod " ) )
25
- var sampleLogPeriod : Int
24
+ @Option ( help: ArgumentHelp ( " Number of steps to log a sample image into tensorboard " , valueName: " sampleLogPeriod " ) )
25
+ var sampleLogPeriod : Int = 20
26
26
}
You can’t perform that action at this time.
0 commit comments