Exemplo n.º 1
0
Arquivo: master.py Projeto: wqren/ape
 def bytes(var):
     """ Compute the bytes that a theano variable holds """
     shape = known_shapes[str(var)]
     return prod(shape) * bytes_of_dtype(var.dtype)
Exemplo n.º 2
0
def test_bytes_of_dtype():
    assert bytes_of_dtype('float32') == 4
Exemplo n.º 3
0
 def bytes(var):
     """ Compute the bytes that a theano variable holds """
     shape = known_shapes[str(var)]
     return prod(shape) * bytes_of_dtype(var.dtype)
Exemplo n.º 4
0
def test_bytes_of_dtype():
    assert bytes_of_dtype('float32') == 4