File: fail_plugin.py

package info (click to toggle)
python-thinc 9.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,896 kB
  • sloc: python: 17,122; javascript: 1,559; ansic: 342; makefile: 15; sh: 13
file content (20 lines) | stat: -rw-r--r-- 565 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from thinc.api import Relu, Softmax, add, chain, concatenate, reduce_max

bad_model = chain(Relu(10), reduce_max(), Softmax())

bad_model2 = add(Relu(10), reduce_max(), Softmax())

bad_model_only_plugin = chain(
    Relu(10), Relu(10), Relu(10), Relu(10), reduce_max(), Softmax()
)

bad_model_only_plugin2 = add(
    Relu(10), Relu(10), Relu(10), Relu(10), reduce_max(), Softmax()
)
reveal_type(bad_model_only_plugin2)

bad_model_only_plugin3 = concatenate(
    Relu(10), Relu(10), Relu(10), Relu(10), reduce_max(), Softmax()
)

reveal_type(bad_model_only_plugin3)