MCPcopy Create free account
hub / github.com/NeuralNetworkVerification/Marabou / SoftmaxConstraint

Method SoftmaxConstraint

src/engine/SoftmaxConstraint.cpp:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30#endif
31
32SoftmaxConstraint::SoftmaxConstraint( const Vector<unsigned> &inputs,
33 const Vector<unsigned> &outputs )
34 : NonlinearConstraint()
35 , _inputs( inputs )
36 , _outputs( outputs )
37{
38 for ( unsigned i = 0; i < inputs.size(); ++i )
39 _inputToOutput[inputs[i]] = outputs[i];
40 ASSERT( _inputs.size() == _outputs.size() );
41}
42
43SoftmaxConstraint::SoftmaxConstraint( const String &serializedSoftmax )
44{

Callers

nothing calls this directly

Calls 8

substringMethod · 0.80
lengthMethod · 0.80
tokenizeMethod · 0.80
asciiMethod · 0.80
StringClass · 0.70
sizeMethod · 0.45
beginMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected