Skip to content

Error when running 03. stock notebook #10

@jwbrown

Description

@jwbrown

I am getting
NotImplementedError: Cannot convert a symbolic Tensor (bidirectional/forward_cu_dnnlstm/strided_slice:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported

for
model.add(Bidirectional(CuDNNLSTM(WINDOW_SIZE, return_sequences=True),
input_shape=(WINDOW_SIZE, X_train.shape[-1])))

I am running Tensorflow 2.4.0rc0 and numpy 1.21.4

i saw somewhere the moving back to numpy==1.19.5 could resolve it, but it did not have an impact

Can you advise the best direction here?

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