Skip to content

Question: first read memories #19

Description

@pfeatherstone

During the first run, mems == None, and the model doesn't attend to any "read" tokens, as per:

if exists(read_memories):
read_mem_length = mem_length
read_memories = read_memories + self.read_memory_emb
else:
read_mem_length = 0
read_memories = x[:, 0:0]

Why not attend to read_memory_emb, and replace with

 read_mem_length = mem_length 
 read_mems = repeat(self.read_memory_emb, 'm d -> b m d', b = batch)
 if exists(read_memories): 
     read_mems += read_memories

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions