• Razvan Pascanu's avatar
    Added two function to help deal with subtensors. One function defines the · 9c07bd65
    Razvan Pascanu 提交于
    slices given the idx_list and the list of node inputs. The other function
    transforms a slice into a canonical form ( where all entries are positives),
    which makes dealing with slices much easier. I've also refractored the
    perform of the Subtensor to use the first function ( since is mostly copy
    paste from that code anyway)
    9c07bd65
basic.py 182.7 KB