SyntaxFix
Write A Post
Hire A Developer
Questions
A function to access the values:
def shape(tensor): s = tensor.get_shape() return tuple([s[i].value for i in range(0, len(s))])
Example:
batch_size, num_feats = shape(logits)