Cast the parameters and buffers of Layer by the give device, dtype and blocking.
Cast the parameters and buffers of Layer by the give device, dtype and blocking.
...
@@ -1619,6 +1671,8 @@ class Layer(object):
...
@@ -1619,6 +1671,8 @@ class Layer(object):
include_sublayers(bool|True, optional): If True, deal with self and all sublayers parameters and buffers, if not only deal with self parameters and buffers. Default: True.
include_sublayers(bool|True, optional): If True, deal with self and all sublayers parameters and buffers, if not only deal with self parameters and buffers. Default: True.
floating_only(bool|False, optional): If True, only cast all floating point parameters and buffers of Layer by the give device, dtype and blocking.
Returns:
Returns:
self
self
...
@@ -1646,54 +1700,9 @@ class Layer(object):
...
@@ -1646,54 +1700,9 @@ class Layer(object):
bool),"blocking value error, must be the True, False or None"
bool),"blocking value error, must be the True, False or None"