Value
¶
-
class
plaidml.tile.
Value
(shape, var, source, name=None)[source]¶ A PlaidML variable and associated metadata.
Methods
__init__
(shape, var, source[, name])Constructs a Value. bind
(bindings)Translates the Value to a PlaidML variable. for_op
(operation, output[, name])Builds an operation output Value. from_dimensions
([dtype, name])Builds an N-dimensional placeholder Value from a list of dimension sizes. from_ndims
([dtype, name])Builds an N-dimensional placeholder Value. from_python_value
([dtype, name, ctx, dev])Builds a Value from a Python value. from_value
()from_var
(dimensions[, dtype, name])Builds a Value from a PlaidML variable. is_bound
(bindings)Indicates whether the Value has been bound. Attributes
key
A dictionary key that unifies a Value with its shapeless slices. name