Open prateekgargX opened 1 year ago
I also tried to cast input into keras_core.KerasTensor
object but that throws the error:
Two things:
gnn_model(...)
and not a listcall(...)
has been built? You can check it using the built
attributeTried ndarray as well
Interestingly, input_node_indices
is being cast into tf.Tensor(shape=(3,), dtype=float32)
here with the error thrown for a layer inside Model.
I'll try to make it work with your suggestions, but it should be noted that I started with code that had no issues using Keras. So something is broken with keras_core
And no graph_conv1
is not built.
these print statements are inside call(...)
for gnn_model(...)
Interestingly, input_node_indices is being cast into tf.Tensor(shape=(3,), dtype=float32)
That is fine. Depending upon the backend, the inputs would be converted to the corresponding tensors.
And no graph_conv1 is not built.
Can you build it and try again?
Not sure how to do that
In my attempt to port Node Classification with Graph Neural Networks to keras_core, I hit an issue when trying to pass a list of indices to the
gnn_model
line 613:produces the error:
It seems that instead of considering [1,10,100] as argument, it just considers 1 as argument.
diff.txt
Colab-Notebook