Skip to content

Instantly share code, notes, and snippets.

View vierja's full-sized avatar
👀

vierja vierja

👀
View GitHub Profile
import sonnet as snt
import tensorflow as tf
class SubmoduleA(snt.AbstractModule):
def __init__(self, name='submodule_a'):
super().__init__(name=name)
def _build(self):
return tf.Variable(tf.constant(1.0))
import os
import sonnet as snt
import tensorflow as tf
LOG_DIR = '/tmp/'
class MainModule(snt.AbstractModule):
def __init__(self, in_build):
{0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
9: 'ostrich, Struthio camelus',
["tench, Tinca tinca",
"goldfish, Carassius auratus",
"great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias",
"tiger shark, Galeocerdo cuvieri",
"hammerhead, hammerhead shark",
"electric ray, crampfish, numbfish, torpedo",
"stingray",
"cock",
"hen",
"ostrich, Struthio camelus",