MCPcopy Create free account
hub / github.com/Atrovast/THGS / get_batch_class

Method get_batch_class

ext/spt/data/instance.py:105–109  ·  view source on GitHub ↗

Helps `self.from_list()` and `self.to_list()` identify which classes to use for batch collation and un-collation.

(cls)

Source from the content-addressed store, hash-verified

103
104 @classmethod
105 def get_batch_class(cls) -> type:
106 """Helps `self.from_list()` and `self.to_list()` identify which
107 classes to use for batch collation and un-collation.
108 """
109 return InstanceBatch
110
111 @property
112 def obj(self) -> torch.Tensor:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected