35 #ifndef CYPRESS_CORE_TRANSFORMATION_HPP 36 #define CYPRESS_CORE_TRANSFORMATION_HPP 41 #include <unordered_set> 109 virtual void do_copy_results(
const NetworkBase &src,
131 virtual std::string id()
const = 0;
161 std::function<bool(const Backend &, const NetworkBase &)>;
181 static std::vector<TransformationCtor>
182 construct_neuron_type_transformation_chain(
183 const std::vector<const NeuronType *> &unsupported_types,
184 const std::unordered_set<const NeuronType *> &supported_types,
206 std::unordered_set<std::string> disabled_trafo_ids =
207 std::unordered_set<std::string>(),
208 bool use_lossy =
true);
243 template <
typename SourceType,
typename TargetType>
247 return register_neuron_type_transformation(ctor, SourceType::inst(),
Definition: neurons_base.hpp:54
std::function< bool(const Backend &, const NetworkBase &)> TransformationTest
Definition: transformation.hpp:161
bool lossy
Definition: transformation.hpp:71
Definition: backend.hpp:50
Real duration
Definition: transformation.hpp:82
double Real
Definition: types.hpp:56
Definition: network_base.hpp:116
size_t cost
Definition: transformation.hpp:64
Definition: brainscales_lib.hpp:39
std::function< std::unique_ptr< Transformation >()> TransformationCtor
Definition: transformation.hpp:154
size_t RegisteredTransformation
Definition: transformation.hpp:167