Posts by Maf • 151 points
4 posts
-
2
votes2
answers70
viewsA: Pointer pointing to another pointer, how to use the free() correctly?
In doing ponteiro2 = ponteiro1, ponteiro2 is not pointing to ponteiro1, but are sharing the same memory address since you are assigning to it the value of ponteiro1 which is this memory address.…
-
1
votes1
answer68
viewsQ: What is the advantage of using the setState() function to modify an array?
I checked that it is possible to modify an array in the state in two ways: this.setState({meuArray: [...meuArray, 'novoValor']}); // ...meuArray é o espalhamento de meuArray…
-
1
votes0
answers16
viewsQ: In order to use the Tf.data.Dataset.from_tensor_slices method, do I need to have GPU on the PC?
I’m doing my tensorflow training. So far so good: data = numpy.random.random((1000, 32)) labels = numpy.random.random((1000, 10)) model.fit(data, labels, epochs=10, batch_size=32) But when I do…
-
-3
votes3
answers5033
viewsA: Use UTF-8 or Latin1?
Use latin1 only if you’re sure you won’t need characters other than those we need in Latin. latin1 is no longer recommended because it represents insufficient characters (including by the breeders…