(self, inputs)
| 771 | return tf.reduce_mean(inputs, axis=1) |
| 772 | |
| 773 | def call(self, inputs): |
| 774 | samples = euler_ops.sample_fanout( |
| 775 | inputs, self.metapath, self.fanouts, default_node=0)[0] |
| 776 | hidden = [self.node_encoder(sample) for sample in samples] |
| 777 | hidden = self.layerwise_embed(hidden) |
| 778 | output = self.fm(hidden) |
| 779 | |
| 780 | output_shape = inputs.shape.concatenate(self.dims[-1]) |
| 781 | output_shape = [d if d is not None else -1 |
| 782 | for d in output_shape.as_list()] |
| 783 | return tf.reshape(output, output_shape) |
| 784 | |
| 785 | def layerwise_embed(self, hidden): |
| 786 | fanouts = [self.fanouts[0]] |
nothing calls this directly
no test coverage detected