Skip to content

Instantly share code, notes, and snippets.

@mlazos
Created September 8, 2022 08:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlazos/e6ea41ccce68a7b1b8a7a09acb1b206a to your computer and use it in GitHub Desktop.
Save mlazos/e6ea41ccce68a7b1b8a7a09acb1b206a to your computer and use it in GitHub Desktop.
minifier output logs
>> LoweringException("AssertionError: \n target: aten._foobar.default\n args[0]: TensorBox(StorageBox(\n Pointwise(\n 'cpu',\n torch.float32,\n constant(1, torch.float32) + constant(1, torch.float32),\n ranges=[200, 200],\n origins={add}\n )\n ))")
Started off with 28 nodes
Writing checkpoint with 28 nodes to /tmp/minifier_mlazos/checkpoints/28.py
Trying granularity 16
Strategy: Eliminate dead code (G: 16) (28 nodes, 10 inputs)
FAIL: Eliminate dead code
Strategy: Remove unused inputs (G: 16) (28 nodes, 10 inputs)
FAIL: Remove unused inputs
Strategy: Truncate suffix (G: 16) (28 nodes, 10 inputs)
>> LoweringException("AssertionError: \n target: aten._foobar.default\n args[0]: TensorBox(StorageBox(\n Pointwise(\n 'cpu',\n torch.float32,\n constant(1, torch.float32) + constant(1, torch.float32),\n ranges=[200, 200],\n origins={add}\n )\n ))")
SUCCESS: Went from 28 to 18 nodes
SUCCESS: Went from 10 to 1 outputs
>> LoweringException("AssertionError: \n target: aten._foobar.default\n args[0]: TensorBox(StorageBox(\n Pointwise(\n 'cpu',\n torch.float32,\n constant(1, torch.float32) + constant(1, torch.float32),\n ranges=[200, 200],\n origins={add}\n )\n ))")
Writing checkpoint with 18 nodes to /tmp/minifier_mlazos/checkpoints/18.py
Trying granularity 16
Strategy: Eliminate dead code (G: 16) (18 nodes, 10 inputs)
FAIL: Eliminate dead code
Strategy: Remove unused inputs (G: 16) (18 nodes, 10 inputs)
>> LoweringException("AssertionError: \n target: aten._foobar.default\n args[0]: TensorBox(StorageBox(\n Pointwise(\n 'cpu',\n torch.float32,\n constant(1, torch.float32) + constant(1, torch.float32),\n ranges=[200, 200],\n origins={add}\n )\n ))")
SUCCESS: Went from 18 to 12 nodes
>> LoweringException("AssertionError: \n target: aten._foobar.default\n args[0]: TensorBox(StorageBox(\n Pointwise(\n 'cpu',\n torch.float32,\n constant(1, torch.float32) + constant(1, torch.float32),\n ranges=[200, 200],\n origins={add}\n )\n ))")
Writing checkpoint with 12 nodes to /tmp/minifier_mlazos/checkpoints/12.py
Trying granularity 8
Strategy: Eliminate dead code (G: 8) (12 nodes, 4 inputs)
FAIL: Eliminate dead code
Strategy: Remove unused inputs (G: 8) (12 nodes, 4 inputs)
FAIL: Remove unused inputs
Strategy: Truncate suffix (G: 8) (12 nodes, 4 inputs)
>> LoweringException("AssertionError: \n target: aten._foobar.default\n args[0]: TensorBox(StorageBox(\n Pointwise(\n 'cpu',\n torch.float32,\n constant(1, torch.float32) + constant(1, torch.float32),\n ranges=[200, 200],\n origins={add}\n )\n ))")
SUCCESS: Went from 12 to 10 nodes
>> LoweringException("AssertionError: \n target: aten._foobar.default\n args[0]: TensorBox(StorageBox(\n Pointwise(\n 'cpu',\n torch.float32,\n constant(1, torch.float32) + constant(1, torch.float32),\n ranges=[200, 200],\n origins={add}\n )\n ))")
Writing checkpoint with 10 nodes to /tmp/minifier_mlazos/checkpoints/10.py
Trying granularity 8
Strategy: Eliminate dead code (G: 8) (10 nodes, 4 inputs)
FAIL: Eliminate dead code
Strategy: Remove unused inputs (G: 8) (10 nodes, 4 inputs)
>> LoweringException("AssertionError: \n target: aten._foobar.default\n args[0]: TensorBox(StorageBox(\n Pointwise(\n 'cpu',\n torch.float32,\n constant(1, torch.float32) + constant(1, torch.float32),\n ranges=[200, 200],\n origins={add}\n )\n ))")
SUCCESS: Went from 10 to 8 nodes
>> LoweringException("AssertionError: \n target: aten._foobar.default\n args[0]: TensorBox(StorageBox(\n Pointwise(\n 'cpu',\n torch.float32,\n constant(1, torch.float32) + constant(1, torch.float32),\n ranges=[200, 200],\n origins={add}\n )\n ))")
Writing checkpoint with 8 nodes to /tmp/minifier_mlazos/checkpoints/8.py
Trying granularity 8
Strategy: Eliminate dead code (G: 8) (8 nodes, 2 inputs)
FAIL: Eliminate dead code
Strategy: Remove unused inputs (G: 8) (8 nodes, 2 inputs)
FAIL: Remove unused inputs
Strategy: Truncate suffix (G: 8) (8 nodes, 2 inputs)
FAIL: Truncate suffix
Strategy: Delta Debugging (G: 8) (8 nodes, 2 inputs)
FAIL: Delta Debugging
Trying granularity 4
Strategy: Truncate suffix (G: 4) (8 nodes, 2 inputs)
>> LoweringException("AssertionError: \n target: aten._foobar.default\n args[0]: TensorBox(StorageBox(\n Pointwise(\n 'cpu',\n torch.float32,\n constant(1, torch.float32) + constant(1, torch.float32),\n ranges=[200, 200],\n origins={add}\n )\n ))")
SUCCESS: Went from 8 to 6 nodes
>> LoweringException("AssertionError: \n target: aten._foobar.default\n args[0]: TensorBox(StorageBox(\n Pointwise(\n 'cpu',\n torch.float32,\n constant(1, torch.float32) + constant(1, torch.float32),\n ranges=[200, 200],\n origins={add}\n )\n ))")
Writing checkpoint with 6 nodes to /tmp/minifier_mlazos/checkpoints/6.py
Trying granularity 4
Strategy: Eliminate dead code (G: 4) (6 nodes, 2 inputs)
FAIL: Eliminate dead code
Strategy: Remove unused inputs (G: 4) (6 nodes, 2 inputs)
>> LoweringException("AssertionError: \n target: aten._foobar.default\n args[0]: TensorBox(StorageBox(\n Pointwise(\n 'cpu',\n torch.float32,\n constant(1, torch.float32) + constant(1, torch.float32),\n ranges=[200, 200],\n origins={add}\n )\n ))")
SUCCESS: Went from 6 to 4 nodes
>> LoweringException("AssertionError: \n target: aten._foobar.default\n args[0]: TensorBox(StorageBox(\n Pointwise(\n 'cpu',\n torch.float32,\n constant(1, torch.float32) + constant(1, torch.float32),\n ranges=[200, 200],\n origins={add}\n )\n ))")
Writing checkpoint with 4 nodes to /tmp/minifier_mlazos/checkpoints/4.py
Trying granularity 4
Strategy: Eliminate dead code (G: 4) (4 nodes, 0 inputs)
FAIL: Eliminate dead code
Strategy: Remove unused inputs (G: 4) (4 nodes, 0 inputs)
FAIL: Remove unused inputs
Strategy: Truncate suffix (G: 4) (4 nodes, 0 inputs)
FAIL: Truncate suffix
Strategy: Delta Debugging (G: 4) (4 nodes, 0 inputs)
FAIL: Delta Debugging
Trying granularity 2
Strategy: Truncate suffix (G: 2) (4 nodes, 0 inputs)
FAIL: Truncate suffix
Strategy: Delta Debugging (G: 2) (4 nodes, 0 inputs)
>> LoweringException("AssertionError: \n target: aten._foobar.default\n args[0]: TensorBox(StorageBox(\n InputBuffer(name='arg0_1', layout=FixedLayout('cpu', torch.float32, size=[s0, s0], stride=[s0, 1]))\n ))")
SUCCESS: Went from 4 to 3 nodes
SUCCESS: Went from 0 to 1 inputs
>> LoweringException("AssertionError: \n target: aten._foobar.default\n args[0]: TensorBox(StorageBox(\n InputBuffer(name='arg0_1', layout=FixedLayout('cpu', torch.float32, size=[s0, s0], stride=[s0, 1]))\n ))")
Writing checkpoint with 3 nodes to /tmp/minifier_mlazos/checkpoints/3.py
Trying granularity 2
Strategy: Eliminate dead code (G: 2) (3 nodes, 1 inputs)
FAIL: Eliminate dead code
Strategy: Remove unused inputs (G: 2) (3 nodes, 1 inputs)
FAIL: Remove unused inputs
Strategy: Truncate suffix (G: 2) (3 nodes, 1 inputs)
FAIL: Truncate suffix
Strategy: Delta Debugging (G: 2) (3 nodes, 1 inputs)
FAIL: Delta Debugging
Trying granularity 1
Strategy: Truncate suffix (G: 1) (3 nodes, 1 inputs)
FAIL: Truncate suffix
Strategy: Delta Debugging (G: 1) (3 nodes, 1 inputs)
FAIL: Delta Debugging
Strategy: Remove outputs (G: 1) (3 nodes, 1 inputs)
FAIL: Remove outputs
>> LoweringException("AssertionError: \n target: aten._foobar.default\n args[0]: TensorBox(StorageBox(\n InputBuffer(name='arg0_1', layout=FixedLayout('cpu', torch.float32, size=[s0, s0], stride=[s0, 1]))\n ))")
Made 20 queries
Writing checkpoint with 3 nodes to /tmp/minifier_mlazos/checkpoints/3.py
Wrote minimal repro out to repro.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment