Commit 56a0bad2 authored by Zohreh MOSTAANI's avatar Zohreh MOSTAANI

[general][doc] fixes minor tabs

parent 7946dc0b
Pipeline #24918 passed with stage
in 9 minutes and 29 seconds
......@@ -622,7 +622,7 @@ The example below illustrates how such an algorithm could be implemented:
def process(self, inputs, data_loaders, outputs):
self.objs.append(inputs['in'].data.value) # accumulates
if not (inputs['in2'].hasMoreData()):
if not (inputs['in2'].hasMoreData()):
out = magical_processing(self.objs)
outputs['out'].write({'value': out})
self.objs = [] #reset accumulator for next label
......@@ -697,12 +697,12 @@ unsynchronized input (``in3``).
def prepare(self, data_loaders):
# Loads the "model" data at the beginning
loader = data_loaders.loaderOf('in3')
for i in range(loader.count()):
view = loader.view('in3', i)
data, _, _ = view[0]
self.models.append(data['in3'].value)
# Loads the "model" data at the beginning
loader = data_loaders.loaderOf('in3')
for i in range(loader.count()):
view = loader.view('in3', i)
data, _, _ = view[0]
self.models.append(data['in3'].value)
......@@ -775,14 +775,14 @@ it is safer to treat inputs using their *group*. For example:
def prepare(self, data_loaders):
#??? Is the concept of groups any use when we have dataloaders assuming this scenario???
#??? Is the concept of groups any use when we have dataloaders assuming this scenario???
# Loads the "model" data at the beginning
loader = data_loaders.loaderOf('in3')
for i in range(loader.count()):
view = loader.view('in3', i)
data, _, _ = view[0]
self.models.append(data['in3'].value)
# Loads the "model" data at the beginning
loader = data_loaders.loaderOf('in3')
for i in range(loader.count()):
view = loader.view('in3', i)
data, _, _ = view[0]
self.models.append(data['in3'].value)
def process(self, inputs, data_loaders, outputs):
# N.B.: this will be called for every unit in `in'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment