Example #1
0
	layer_smart_ptr absolute_layer::clone() const
	{
		return layer_smart_ptr(new absolute_layer(*this));
	}
Example #2
0
	void nnforge::init()
	{
		single_layer_factory::get_mutable_instance().register_layer(layer_smart_ptr(new convolution_layer(std::vector<unsigned int>(1, 1), 1, 1)));
		single_layer_factory::get_mutable_instance().register_layer(layer_smart_ptr(new sparse_convolution_layer(std::vector<unsigned int>(1, 1), 1, 1, 1U)));
		single_layer_factory::get_mutable_instance().register_layer(layer_smart_ptr(new hyperbolic_tangent_layer()));
		single_layer_factory::get_mutable_instance().register_layer(layer_smart_ptr(new average_subsampling_layer(std::vector<unsigned int>(1, 1))));
		single_layer_factory::get_mutable_instance().register_layer(layer_smart_ptr(new max_subsampling_layer(std::vector<unsigned int>(1, 1))));
		single_layer_factory::get_mutable_instance().register_layer(layer_smart_ptr(new absolute_layer()));
		single_layer_factory::get_mutable_instance().register_layer(layer_smart_ptr(new local_contrast_subtractive_layer(std::vector<unsigned int>(1, 1), std::vector<unsigned int>(1, 0), 1)));
		single_layer_factory::get_mutable_instance().register_layer(layer_smart_ptr(new rgb_to_yuv_convert_layer(std::vector<color_feature_map_config>(1, color_feature_map_config(0, 1, 2)))));
		single_layer_factory::get_mutable_instance().register_layer(layer_smart_ptr(new rectified_linear_layer()));
		single_layer_factory::get_mutable_instance().register_layer(layer_smart_ptr(new soft_rectified_linear_layer()));
		single_layer_factory::get_mutable_instance().register_layer(layer_smart_ptr(new softmax_layer()));
		single_layer_factory::get_mutable_instance().register_layer(layer_smart_ptr(new maxout_layer(2)));
		single_layer_factory::get_mutable_instance().register_layer(layer_smart_ptr(new sigmoid_layer()));
	}
	layer_smart_ptr convolution_layer::clone() const
	{
		return layer_smart_ptr(new convolution_layer(*this));
	}
	layer_smart_ptr soft_rectified_linear_layer::clone() const
	{
		return layer_smart_ptr(new soft_rectified_linear_layer(*this));
	}
	layer_smart_ptr average_subsampling_layer::clone() const
	{
		return layer_smart_ptr(new average_subsampling_layer(*this));
	}
	layer_smart_ptr parametric_rectified_linear_layer::clone() const
	{
		return layer_smart_ptr(new parametric_rectified_linear_layer(*this));
	}
	layer_smart_ptr rgb_to_yuv_convert_layer::clone() const
	{
		return layer_smart_ptr(new rgb_to_yuv_convert_layer(*this));
	}
Example #8
0
	layer_smart_ptr sigmoid_layer::clone() const
	{
		return layer_smart_ptr(new sigmoid_layer(*this));
	}
	layer_smart_ptr maxout_layer::clone() const
	{
		return layer_smart_ptr(new maxout_layer(*this));
	}
	layer_smart_ptr max_subsampling_layer::clone() const
	{
		return layer_smart_ptr(new max_subsampling_layer(*this));
	}
	layer_smart_ptr hyperbolic_tangent_layer::clone() const
	{
		return layer_smart_ptr(new hyperbolic_tangent_layer(*this));
	}