Module ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call AttributeLoad BinOpMult NameLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad BinOpMult NameLoad BinOpPow NameLoad Num attr keyword Num Assign NameStore BinOpPow BinOpSub NameLoad BinOpPow NameLoad Num Num If NameLoad body AugAssignMult NameStore NameLoad Return BinOpDiv Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr BinOpSub SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Slice Num Num attr keyword Num If NameLoad body AugAssignMult NameStore SubscriptLoad NameLoad Slice Num Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad BinOpMult NameLoad Call AttributeLoad NameLoad attr BinOpAdd NameLoad Num attr keyword Num AugAssignMult NameStore NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str Num Num Assign NameStore Call AttributeLoad NameLoad attr Num Str Str Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Num Num Num Num Return Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num keyword Num decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad BinOpMult Call AttributeLoad NameLoad attr BinOpDiv Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr Str NameLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad keyword AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list
N/A theano tensor theano.tensor.nnet conv2d weights_std N/A N/A weights mask_outputs N/A None N/A N/A positions N/A N/A tensor arange N/A N/A weights shape N/A 2 N/A expected N/A N/A N/A weights positions sum axis 2 N/A expected2 N/A N/A N/A weights N/A positions 2 sum axis 2 N/A result N/A N/A expected2 N/A expected 2 0.5 N/A mask_outputs N/A N/A result mask_outputs N/A N/A N/A N/A result sum N/A N/A weights shape N/A 0 N/A monotonicity_penalty N/A N/A weights mask_x N/A None N/A N/A cumsums N/A N/A tensor cumsum weights axis 2 N/A penalties N/A N/A N/A N/A tensor maximum N/A N/A cumsums N/A 1 N/A cumsums N/A -1 0 sum axis 2 N/A mask_x N/A N/A penalties N/A mask_x N/A 1 N/A N/A N/A penalties sum N/A entropy N/A N/A weights mask_x N/A N/A N/A entropies N/A N/A N/A weights N/A N/A tensor log N/A weights 1e-07 sum axis 2 N/A entropies mask_x N/A N/A N/A entropies sum N/A conv1d N/A N/A sequences masks N/A kwargs N/A N/A Wraps Theano conv2d to perform 1D convolution.

    Parameters
    ----------
    sequence : :class:`~theano.Variable`
        (batch_size, length)
    masks : :class:`~theano.Variable`
        (num_filters, filter_length)
    **kwargs
        Will be passed to `conv2d`

    Returns
    -------
    result : :class:`~theano.Variable`
        (batch_size, num_filters, position)

     N/A sequences N/A N/A tensor as_tensor_variable sequences N/A masks N/A N/A tensor as_tensor_variable masks N/A image N/A N/A sequences dimshuffle x x 0 1 N/A filters N/A N/A masks dimshuffle 0 x x 1 N/A result N/A conv2d image filters kwargs N/A result N/A N/A result dimshuffle 2 1 3 0 N/A N/A N/A result reshape N/A N/A result shape N/A -1 ndim 3 N/A pad_to_a_multiple N/A N/A tensor_ k pad_with N/A N/A N/A Pad a tensor to make its first dimension a multiple of a number.

    Parameters
    ----------
    tensor_ : :class:`~theano.Variable`
    k : int
        The number, multiple of which the length of tensor is made.
    pad_with : float or int
        The value for padding.

     N/A new_length N/A N/A N/A N/A N/A tensor ceil N/A N/A N/A N/A N/A tensor_ shape N/A 0 astype float32 k k astype int64 N/A new_shape N/A N/A tensor set_subtensor N/A N/A tensor_ shape N/A 1 new_length N/A canvas N/A N/A N/A N/A tensor alloc pad_with N/A N/A tensor prod new_shape reshape new_shape ndim N/A tensor_ ndim N/A N/A N/A tensor set_subtensor N/A canvas N/A N/A N/A tensor_ shape N/A 0 tensor_ N/A