Skip to content

gcn.py 报错。 #2

@tide1994cc

Description

@tide1994cc

TypeError: in converted code:

/home/jupyter-tide1994/tide/embedding/GraphNeuralNetwork-master/gnn/gcn.py:73 call *

TypeError: Input 'pred' of 'Switch' Op has type float32 that does not match expected type of bool.

def call(self, inputs, training=None, **kwargs):
    features, A = inputs
    features = self.dropout(features, training=training)
    output = tf.matmul(tf.sparse_tensor_dense_matmul(A, features), self.kernel)
    if self.bias:
        output += self.bias
    act = self.activation(output)

    act._uses_learning_phase = features._uses_learning_phase
    return act

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