예제 #1
0
파일: master.py 프로젝트: 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)
예제 #2
0
def test_bytes_of_dtype():
    assert bytes_of_dtype('float32') == 4
예제 #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)
예제 #4
0
def test_bytes_of_dtype():
    assert bytes_of_dtype('float32') == 4