-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
if order_indep=True, gen_coaction function will run error as weight (line 27) will contain matrix weights of other order.
It can be corrected by:
def gen_coaction(ad, his_items, dim, mode="can", mask=None):
idx = 0
weight_orders = []
bias_orders = []
for i in range(orders):
weight, bias = [], []
for w, b in zip(weight_emb_w, weight_emb_b):
weight.append(tf.reshape(ad[:, idx:idx+w[0]*w[1]], [-1, w[0], w[1]]))
idx += w[0] * w[1]
if b == 0:
bias.append(None)
else:
bias.append(tf.reshape(ad[:, idx:idx+b], [-1, 1, b]))
idx += b
weight_orders.append(weight)
bias_orders.append(bias)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels