MCPcopy Create free account
hub / github.com/Kaggle/docker-python / test_torch_tensor

Method test_torch_tensor

tests/test_fastai.py:21–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

19 def test_torch_tensor(self):
20 a = tensor([1, 2, 3])
21 b = torch.tensor([1, 2, 3])
22
23 self.assertTrue(torch.all(a == b))
24
25 def test_tabular(self):
26 dls = TabularDataLoaders.from_csv(
27 "/input/tests/data/train.csv",
28 cont_names=["pixel" + str(i) for i in range(784)],

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected