tensorflow
saving and loading only architecture of tf.keras model
One can export only the model’s architecture information as JSON file like the following. To load this back to model, here is a sample code
One can export only the model’s architecture information as JSON file like the following. To load this back to model, here is a sample code
open with vi, and execute :set fileformat=unix and save the file. referred from here.
Here is an example code and its output. I think it is easy to expand from here. And the output: This was coded with python 3.6.6 and the packge used was the this one: https://pypi.org/project/nvidia-ml-py3/
even confirming nvsysinfo is installed through apt, running nvsysinfo with sudo or even in root account produces the following error. I tried reinstalling subprocess32module but it did not fix the problem. However, checking out the nvsysinfo exec file which is a bash script file that practically launched a nvsysinfo.py file Read more…
ref: https://stackoverflow.com/questions/15404535/how-to-git-reset-hard-a-subdirectory
learned from https://stackoverflow.com/questions/41159797/how-to-disable-password-request-for-a-jupyter-notebook-session
After I changed my permalink type to use postname and applied the changes, accessing posts gave me a 404 while the wordpress site was running perfectly fine. The problem was due to the fact that I was using nginx. If I was using apache, I would have had the changes Read more…
Assume we have a series that contains time difference values. Let’s find rows which have time difference more than an hour. According to the pandas documentation, the pandas timedelta is actually using the python’s datetime module’s timedelta. For first make a datetime.timedelta object that contains a value of one hour Read more…