But, as I read [this article], and looked at the interface and implementation of the Dataloader, I thought I can make something simpler, which would not have any sampler or data iterator, which could be potentially slowing down the data loading.
Na początku nie chciałem nic robić z samymi loaderami, ale po przeczytaniu tego artykułu i spojrzeniu na interfejs oraz implementację Dataloadera, pomyślałem, że mogę zrobić coś prostszego; coś, co nie ma żadnego samplera czy iteratora danych, które mogłyby potencjalnie zwalniać samo ładowanie.
In Magik generator methods are called iterator methods.
W Magiku metody generatora są zwane metodami iteratora.
An iterator is invalidated only when the corresponding element is deleted.
Iterator jest unieważniany tylko wtedy, gdy odpowiadający mu element jest usuwany.
All iterators, including the past-the-end iterator, are invalidated.
Wszystkie iteratory, wliczając iterator zakońcowy, zostają unieważnione.
Let us now see an example of creating our own iterator in which we will be using closures.
Zobaczmy teraz przykład tworząc własny iterator, w których będziemy używać zamknięć.
This construction in loop is often used as an iterator in the algorithms using a list.
Taka konstrukcja w pętli jest często wykorzystywana jako iterator w algorytmach korzystających z list.
Let us now see an example of creating our own iterator using a simple function that prints the squares of n numbers.
Zobaczmy teraz przykład tworząc własny iterator stosując prostą funkcję, która drukuje kwadraty n liczb.
Iterators are created by the corresponding container class, typically by a method named iterator().
Iteratory tworzone są metodą iterator() odpowiedniej klasy kolekcji.
Original: iterator pointing to the first element inserted, or pos if ilist is empty.
Iterator wskazujący na pierwszy wstawiony element, lub pos jeśli lista inicjalizacyjna ilist jest pusta.
Original: iterator pointing to the first element inserted, or pos if count==0.
Iterator wskazujący na pierwszy wstawiony element, lub pos jeśli count==0.
The list uses an iterator.
W opisie używany jest iterator.
Conteúdo potencialmente sensível ou impróprio
Os exemplos servem apenas como ajuda na tradução da palavra ou da expressão procurada. Eles não são selecionados ou validados por nós e podem conter linguagem inapropriada. Pedimos que reporte exemplos que devem ser modificados ou que não devem ser exibidos. As traduções potencialmente sensivéis, impróprias ou coloquiais geralmente são marcadas em vermelho ou em laranja.