MCPcopy Create free account
hub / github.com/apple/axlearn / test_eq

Method test_eq

axlearn/common/param_init_test.py:314–326  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

312 self.assertEqual(fan_axes.batch_axis, (1, 2))
313
314 def test_eq(self):
315 self.assertEqual(
316 FanAxes(in_axis=(0,), out_axis=1),
317 FanAxes(in_axis=0, out_axis=(1,)),
318 )
319 self.assertNotEqual(
320 FanAxes(in_axis=(0,), out_axis=1),
321 42,
322 )
323 self.assertNotEqual(
324 FanAxes(in_axis=(0,), out_axis=1),
325 FanAxes(in_axis=0, out_axis=(2,)),
326 )
327
328 # pytype: disable=attribute-error
329 def test_prepend_axis(self):

Callers

nothing calls this directly

Calls 1

FanAxesClass · 0.90

Tested by

no test coverage detected