ExternalSource

class dragon.vm.dali.ops.ExternalSource[source]

Create a placeholder providing data from feeding.

Examples:

class MyPipeline(dali.Pipeline):
    def __init__():
        super(MyPipeline, self).__init()__
        self.image = dali.ops.ExternalSource()

    def define_graph(self):
        self.image = self.image()

    def iter_setup(self):
        images = [np.ones((224, 224, 3), 'uint8')]
        self.feed_input(self.image, images)

__new__

static ExternalSource.__new__(cls)[source]

Create a ExternalSource operator.

Returns:
nvidia.dali.ops.ExternalSource – The operator.