MCPcopy
hub / github.com/pyg-team/pytorch_geometric / view

Method view

torch_geometric/data/feature_store.py:449–454  ·  view source on GitHub ↗

r"""Returns a view of the :class:`FeatureStore` given a not yet fully-specified :class:`TensorAttr`.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

447 # `AttrView` methods ######################################################
448
449 def view(self, *args, **kwargs) -> AttrView:
450 r"""Returns a view of the :class:`FeatureStore` given a not yet
451 fully-specified :class:`TensorAttr`.
452 """
453 attr = self._tensor_attr_cls.cast(*args, **kwargs)
454 return AttrView(self, attr)
455
456 # Helper functions ########################################################
457

Callers 15

__getitem__Method · 0.95
random_planetoid_splitsFunction · 0.80
train_runtimeFunction · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
forwardMethod · 0.80
msg_funcMethod · 0.80
forwardMethod · 0.80
msg_funcMethod · 0.80
k_foldFunction · 0.80
trainFunction · 0.80

Calls 2

AttrViewClass · 0.85
castMethod · 0.80

Tested by 15

test_to_denseFunction · 0.64
test_softmaxFunction · 0.64
test_softmax_backwardFunction · 0.64
dense_softmaxFunction · 0.64
test_scatter_validateFunction · 0.64
pytorch_scatterFunction · 0.64
test_sort_edge_indexFunction · 0.64
test_sort_edge_index_jitFunction · 0.64
test_coalesceFunction · 0.64
test_coalesce_jitFunction · 0.64