-
Notifications
You must be signed in to change notification settings - Fork 44
Expand file tree
/
Copy pathsnap_test_activations.py
More file actions
16 lines (11 loc) · 1.46 KB
/
snap_test_activations.py
File metadata and controls
16 lines (11 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots[
"TestTextNeuronActivations.test_multi_matches_snapshot 1"
] = """<div id="circuits-vis-mock" style="margin: 15px 0;"/>\n <script crossorigin type="module">\n import { render, TextNeuronActivations } from "https://unpkg.com/circuitsvis@0.0.0/dist/cdn/esm.js";\n render(\n "circuits-vis-mock",\n TextNeuronActivations,\n {"tokens": [["a", "b"], ["c", "d", "e"]], "activations": [[[[0, 1, 0], [0, 1, 1]], [[0, 1, 1], [1, 1, 1]]], [[[0, 1, 0], [0, 1, 1]], [[0, 1, 1], [1, 1, 1]], [[0, 1, 1], [1, 1, 1]]]], "firstDimensionName": "Layer", "secondDimensionName": "Neuron", "firstDimensionDefault": 0, "secondDimensionDefault": 0, "showSelectors": true}\n )\n </script>"""
snapshots[
"TestTextNeuronActivations.test_single_matches_snapshot 1"
] = """<div id="circuits-vis-mock" style="margin: 15px 0;"/>\n <script crossorigin type="module">\n import { render, TextNeuronActivations } from "https://unpkg.com/circuitsvis@0.0.0/dist/cdn/esm.js";\n render(\n "circuits-vis-mock",\n TextNeuronActivations,\n {"tokens": ["a", "b"], "activations": [[[0, 1, 0], [0, 1, 1]], [[0, 1, 1], [1, 1, 1]]], "firstDimensionName": "Layer", "secondDimensionName": "Neuron", "firstDimensionDefault": 0, "secondDimensionDefault": 0, "showSelectors": true}\n )\n </script>"""