Package pylearn :: Package io :: Module wavread :: Class WavRead
[hide private]

type WavRead

source code


Read a wave file

input - the path to a wave file output - the contents of the wave file in pcm format, and the samplerate

Instance Methods [hide private]
 
__init__(self, out_type) source code
 
__eq__(self, other) source code
 
__hash__(self) source code
 
make_node(self, path)
Required: return an Apply instance representing the application of this Op to the provided inputs.
source code
 
perform(self, node, (path,), (out, sr))
Required: Calculate the function on the inputs and put the variables in the output storage. Return None.
source code
 
grad(self, inputs, g_output) source code

Inherited from theano.gof.utils.object2: __ne__

Inherited from theano.gof.op.PureOp: __call__

Inherited from theano.gof.op.CLinkerOp: c_code, c_code_cleanup, c_support_code_apply

Inherited from theano.gof.op.CLinkerObject: c_code_cache_version, c_code_cache_version_apply, c_compile_args, c_header_dirs, c_headers, c_lib_dirs, c_libraries, c_no_compile_args, c_support_code

Class Variables [hide private]
  out_type = None
The type for the output of this op.

Inherited from theano.gof.op.PureOp: default_output

Method Details [hide private]

__init__(self, out_type)
(Constructor)

source code 
Overrides: object.__init__
(inherited documentation)

__hash__(self)
(Hashing function)

source code 
Overrides: theano.gof.utils.object2.__hash__

make_node(self, path)

source code 

Required: return an Apply instance representing the application of this Op to the provided inputs.

All subclasses should over-ride this function.

Raises:
  • MethodNotDefined - : the subclass does not override this method
Overrides: theano.gof.op.PureOp.make_node
(inherited documentation)

perform(self, node, (path,), (out, sr))

source code 

Required: Calculate the function on the inputs and put the variables in the output storage. Return None.

The output\_storage list might contain data. If an element of output_storage is not None, it is guaranteed that it was produced by a previous call to impl and impl is free to reuse it as it sees fit.

Parameters:
  • node - contains the symbolic inputs and outputs
  • inputs - sequence of inputs (immutable)
  • output_storage - list of mutable 1-element lists (do not change the length of these lists)
Raises:
  • MethodNotDefined - : the subclass does not override this method
Overrides: theano.gof.op.PureOp.perform
(inherited documentation)

Class Variable Details [hide private]

out_type

The type for the output of this op.

Currently only wvector (aka int16) and dvector (aka double) are supported

Value:
None