public class HashingOptions extends Object implements com.oracle.labs.mlrg.olcut.config.Options
Modifier and Type | Class and Description |
---|---|
static class |
HashingOptions.ModelHashingType
Supported types of hashes in CLI programs.
|
Modifier and Type | Field and Description |
---|---|
HashingOptions.ModelHashingType |
modelHashingAlgorithm |
String |
modelHashingSalt |
Constructor and Description |
---|
HashingOptions() |
Modifier and Type | Method and Description |
---|---|
<T extends Output<T>> |
getHashedTrainer(Trainer<T> innerTrainer)
Gets the trainer wrapped in a hashing trainer.
|
Optional<Hasher> |
getHasher()
Get the specified hasher.
|
@Option(longName="model-hashing-algorithm", usage="Hash the model during training, options are {NONE,MOD,HC,SHA1,SHA256}") public HashingOptions.ModelHashingType modelHashingAlgorithm
@Option(longName="model-hashing-salt", usage="Salt for hashing the model") public String modelHashingSalt
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.