Turi Create  4.0
turi::neural_net::MapPublisher< T, U > Class Template Reference

#include <ml/neural_net/combine_map.hpp>

Public Member Functions

void Receive (std::shared_ptr< Subscriber< Output >> subscriber) override
 

Detailed Description

template<typename T, typename U>
class turi::neural_net::MapPublisher< T, U >

Concrete operator Publisher that wraps a Transform.

The resulting Publisher inherits the semantics of the upstream Publisher that it subscribes to, with regard to the semantics of multiple downstream subscribers. It simply applies the Transform to each value from the upstream.

Definition at line 39 of file combine_base.hpp.

Member Function Documentation

◆ Receive()

template<typename T , typename U >
void turi::neural_net::MapPublisher< T, U >::Receive ( std::shared_ptr< Subscriber< Output >>  subscriber)
inlineoverridevirtual

Establishes a connection between this Publisher and the given Subcriber.

The Publisher must eventually call Subscriber::Receive(Subscription) on the given Subscriber (and may do so synchronously). The Publisher must then conform to the protocol established by the Subscription.

Implements turi::neural_net::Publisher< U >.

Definition at line 74 of file combine_map.hpp.


The documentation for this class was generated from the following files: