D | array_ops.py | 52 def _check_scatter_shape(self, x_shape, indices_shape, updates_shape, prim_name): argument 53 if indices_shape != [-1] and updates_shape and updates_shape != indices_shape + x_shape[1:]: 65 def infer_shape(self, x_shape, indices_shape, updates_shape): argument 66 self._check_scatter_shape(x_shape, indices_shape, updates_shape, self.name) 86 def _check_scatter_shape(self, x_shape, indices_shape, updates_shape, prim_name): argument 92 if np.any(np.array(indices_shape) == -1) or np.any(np.array(updates_shape) == -1): 94 … elif indices_shape != [-1] and updates_shape and updates_shape != indices_shape + x_shape[1:]: 106 def check_shape(self, x_shape, indices_shape, updates_shape): argument 107 self._check_scatter_shape(x_shape, indices_shape, updates_shape, self.name) 120 def _check_scatter_shape(self, x_shape, indices_shape, updates_shape, prim_name): argument [all …]
|