Constructs a homogeneous GraphTensor
with node features and one edge_set.
tfgnn.homogeneous(
source: tf.Tensor,
target: tf.Tensor,
*,
node_features: Optional[FieldOrFields] = None,
edge_features: Optional[FieldOrFields] = None,
context_features: Optional[FieldOrFields] = None,
node_set_name: Optional[FieldName] = const.NODES,
edge_set_name: Optional[FieldName] = const.EDGES,
node_set_sizes: Optional[Field] = None,
edge_set_sizes: Optional[Field] = None
) -> GraphTensor
A scalar GraphTensor with a single node set and edge set.
|