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

Method export_proto

python/lbann/core/training_algorithm.py:351–360  ·  view source on GitHub ↗

Get a protobuf representation of this object.

(self)

Source from the content-addressed store, hash-verified

349 self.mutation_strategy = mutation_strategy
350
351 def export_proto(self):
352 """Get a protobuf representation of this object."""
353
354 msg = AlgoProto.RandomPairwiseExchange()
355 for key, value in self.metric_strategies.items():
356 msg.metric_name_strategy_map[key] = value
357
358 msg.exchange_strategy.CopyFrom(self.exchange_strategy.export_proto())
359 msg.mutation_strategy.CopyFrom(self.mutation_strategy.export_proto())
360 return msg
361
362class TruncationSelectionExchange(MetaLearningStrategy):
363 """Truncation selection metalearning strategy.

Callers

nothing calls this directly

Calls 2

export_protoMethod · 0.45

Tested by

no test coverage detected