MCPcopy Create free account
hub / github.com/LBANN/lbann / export_proto

Method export_proto

python/lbann/core/training_algorithm.py:426–435  ·  view source on GitHub ↗

Get a protobuf representation of this object.

(self)

Source from the content-addressed store, hash-verified

424 self.sample_size = sample_size
425
426 def export_proto(self):
427 """Get a protobuf representation of this object."""
428
429 msg = AlgoProto.RegularizedEvolution()
430
431 msg.metric_name = self.metric_name
432 msg.metric_strategy = self.metric_strategy
433 msg.mutation_strategy.CopyFrom(self.mutation_strategy.export_proto())
434 msg.sample_size = self.sample_size
435 return msg
436
437class KFAC(TrainingAlgorithm):
438 """Kronecker-Factored Approximate Curvature algorithm.

Callers

nothing calls this directly

Calls 2

RegularizedEvolutionMethod · 0.80
export_protoMethod · 0.45

Tested by

no test coverage detected