python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Python generator pipeline using all available memory
I'm working on a cli application that searches through a disc image for byte strings that could be jpgs. The core of the application is a pipeline of generators that opens the disc image file, reads b...
Xochozomatli
Votes: 0
Answers: 0
Can you yield from a lambda function?
I have a generator function in a class:
self.s = [['a',1],['b',2],['c',3]
def generator(self):
for r in self.s:
yield r
In another function I initalize it as a variable:
var = self.generator()...

gator
Votes: 0
Answers: 1
random number generator that doesn't repeat it self (cpp/c++)
I want to make a function that generates numbers but doesn't repeat it self. If every number is generated the array can be emptied and it can start over again.
This is the code I made but it doesn't w...
Floris
Votes: 0
Answers: 1
Tensorflow: Failed to convert a NumPy array to a Tensor when feeding through a data generator
Below is the data I have artificially created to simulate the actual data I am working with:
train_data_list_x = []
train_data_list_y = []
number_of_patients = 20
for i in range(number_of_patients):...
Ossz
Votes: 0
Answers: 1