ModularM
Modular16mo ago
3 replies
taalhaataahir01022001

Reshape MAX API OP giving error

My code:
fn main() raises:
    dim1 = Dim(2)
    dim2 = Dim(2)
    x = List[Dim] ()
    x.append(dim1)
    x.append(dim2)

    var graph0 = Graph(in_types=List[Type](TensorType(DType.float32, 1, 2, 2)))
    var r = ops.reshape(graph0[0], x)

Error:
candidate not viable: argument #1 cannot be converted from 'List[Dim, 0]' to 'List[Dim, 0]'
Was this page helpful?