"""Increments a subtensor using advanced indexing.
"""
def__init__(self,args):#idx_list? inplace=False?
self.args=args
def__eq__(self,other):
returnself.__class__==other.__class__
def__hash__(self):
returnhash(self.__class__)
def__str__(self):
returnself.__class__.__name__
defmake_node(self,x,y,*inputs):
x=as_tensor_variable(x)
...
...
@@ -5367,12 +5528,18 @@ class AdvancedIncSubtensor(Op):
ifind1.ndim==1andind2.ndim==1:
returngof.Apply(self,
(x,y)+inputs,
[tensor(dtype=x.type.dtype,
broadcastable=x.type.broadcastable)])
raiseNotImplementedError('Advanced indexing increment of x (of dimension %i) by y (of dimension %i) with these argument dimensions (%s) not supported yet'\