This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
# Tested with kernel: 4.9.20-040920-generic | |
# | |
# Make sure to install following packages | |
# | |
sudo apt install acpi acpi-call-dkms | |
# | |
# To manually disable, you can run the following command | |
# |
;;; initfile --- Summary: | |
;;; Commentary: | |
;; Emacs 25.1 and newer tested | |
;;; Code: | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Configuration/Customization: | |
;; Defines global variables that are later used to customize and set | |
;; up packages. | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
#!/bin/env python | |
# Copyright Nils Deppe, 2017 | |
# Distributed under the Boost Software License - Version 1.0 | |
# Boost Software License - Version 1.0 - August 17th, 2003 | |
# Permission is hereby granted, free of charge, to any person or organization | |
# obtaining a copy of the software and accompanying documentation covered by | |
# this license (the "Software") to use, reproduce, display, distribute, |
import json | |
from keras.models import model_from_json | |
def convert_to_inference_model(original_model): | |
original_model_json = original_model.to_json() | |
inference_model_dict = json.loads(original_model_json) | |
layers = inference_model_dict['config'] | |
for layer in layers: | |
if 'stateful' in layer['config']: |