Skip to content

Error on more than on dimension input #17

@gkorland

Description

@gkorland
127.0.0.1:6379> TF.TENSOR gg3 FLOAT 3 1 2 2 VALUES 2 2 2 2
(error) ERR wrong number of arguments for 'TF.TENSOR' command

It seems the bug is in

398:  if (hasdata && datafmt == REDISTF_DATA_VALUES && argc != len + 6) {

Should be:

  if (hasdata && datafmt == REDISTF_DATA_VALUES && argc != len + 5 + ndims) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions