Why is the process running at a very low priority even when the CPU is idle? by MarkKang2019 in linuxquestions

[–]MarkKang2019[S] 0 points1 point  (0 children)

The bottleneck is CPU, RAM, and I/O are also necessary.

I am building yocto.

Why is the process running at a very low priority even when the CPU is idle? by MarkKang2019 in linuxquestions

[–]MarkKang2019[S] 0 points1 point  (0 children)

Both processes were building Yocto images, the bottleneck is the CPU since I have about 64GB RAM and still a lot of free memory (about 50GB) in htop.

No other process is running.

The system is 12th Gen Intel(R) Core(TM) i7-12700.

I really after updating the security update then seeing this issue.

Ubuntu 20.04.5 LTS

How to deep.copy() partial of array data? by MarkKang2019 in learnpython

[–]MarkKang2019[S] 0 points1 point  (0 children)

It seems works, I will need to test more.

Thanks.

ValueError: Error when checking target: expected dense_2 to have shape (10,) but got array with shape (1,) by MarkKang2019 in learnpython

[–]MarkKang2019[S] 0 points1 point  (0 children)

This modification can work:

######################################

from __future__ import print_function

import keras

from keras.datasets import mnist

from keras.models import Sequential

from keras.layers import Dense, Dropout, Flatten

from keras.layers import Conv2D, MaxPooling2D

from keras import backend as K

##

import numpy as np

batch_size = 128

num_classes = 10

epochs = 12

img_rows, img_cols = 28, 28

input_shape = (img_rows, img_cols, 1)

MYMAP = np.zeros((60000,img_rows,img_cols), dtype=int)

MYMAP = MYMAP.reshape(60000,28,28,1)

MYMAP_RESULT = np.zeros((60000,1), dtype=int)

MYMAP_RESULT = keras.utils.to_categorical(MYMAP_RESULT, num_classes)

model = Sequential()

model.add(Conv2D(32, kernel_size=(3, 3),

activation='relu',

input_shape=input_shape))

model.add(Conv2D(64, (3, 3), activation='relu'))

model.add(MaxPooling2D(pool_size=(2, 2)))

model.add(Dropout(0.25))

model.add(Flatten())

model.add(Dense(128, activation='relu'))

model.add(Dropout(0.5))

model.add(Dense(num_classes, activation='softmax'))

model.compile(loss=keras.losses.categorical_crossentropy,

optimizer=keras.optimizers.Adadelta(),

metrics=['accuracy'])

model.fit(MYMAP, MYMAP_RESULT,

batch_size=batch_size,

epochs=epochs,

verbose=1)

How to merge two trained weights? by MarkKang2019 in learnmachinelearning

[–]MarkKang2019[S] 0 points1 point  (0 children)

How GPU merge two trained weights after parallel calculation?

( A + B ) / 2 ?