Skip to content

Instantly share code, notes, and snippets.

View haimat's full-sized avatar

Matthias haimat

View GitHub Profile
@haimat
haimat / gist-tf-33135.py
Last active October 10, 2019 11:38
Minimal working example for tensorflow issue 33135
from tensorflow.keras.applications import VGG16
from tensorflow.keras.applications import vgg16
from tensorflow.keras import preprocessing
from tensorflow.keras import backend as K
from tensorflow.keras import optimizers
from tensorflow.keras import layers
from tensorflow.keras import models
import tensorflow as tf
import numpy as np
@haimat
haimat / tf-github-32239.py
Created September 6, 2019 08:31
A minimal working example for Tensorflow issue #32239
from tensorflow.keras import models
from tensorflow.keras import layers
from tensorflow.keras import optimizers
from tensorflow.keras.preprocessing import image
from tensorflow.keras.preprocessing.image import ImageDataGenerator
from tensorflow.keras.applications import VGG16
from tensorflow.keras.applications import vgg16
PRETTY_NAME="Debian GNU/Linux stretch/sid"
NAME="Debian GNU/Linux"
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
from com.badlogic.gdx import Game
class MyGame(Game):
def render(self):
# here I want to call super's render(), which takes no arguments;
# but none of the following three options work.
Game.render() # error: expected 1 args; got 0
Game.render(self) # error: render() takes exactly 1 argument (2 given)
self.super__render() # error: render() takes exactly 1 argument (2 given)