Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
old_macaon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Franck Dary
old_macaon
Commits
0b3b6072
Commit
0b3b6072
authored
Nov 2, 2019
by
Franck Dary
Browse files
Options
Downloads
Patches
Plain Diff
Deleted unused capture in lambda
parent
03c7072f
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
transition_machine/src/ActionBank.cpp
+3
-3
3 additions, 3 deletions
transition_machine/src/ActionBank.cpp
with
3 additions
and
3 deletions
transition_machine/src/ActionBank.cpp
+
3
−
3
View file @
0b3b6072
...
@@ -16,7 +16,7 @@ Action::BasicAction ActionBank::moveHead(int movement)
...
@@ -16,7 +16,7 @@ Action::BasicAction ActionBank::moveHead(int movement)
{
c
.
moveHead
(
movement
);};
{
c
.
moveHead
(
movement
);};
auto
undo
=
[
movement
](
Config
&
c
,
Action
::
BasicAction
&
)
auto
undo
=
[
movement
](
Config
&
c
,
Action
::
BasicAction
&
)
{
c
.
moveHead
(
-
movement
);};
{
c
.
moveHead
(
-
movement
);};
auto
appliable
=
[
movement
](
Config
&
,
Action
::
BasicAction
&
)
auto
appliable
=
[](
Config
&
,
Action
::
BasicAction
&
)
{
return
true
;};
{
return
true
;};
Action
::
BasicAction
basicAction
=
Action
::
BasicAction
basicAction
=
{
Action
::
BasicAction
::
Type
::
MoveHead
,
""
,
apply
,
undo
,
appliable
};
{
Action
::
BasicAction
::
Type
::
MoveHead
,
""
,
apply
,
undo
,
appliable
};
...
@@ -775,7 +775,7 @@ std::vector<Action::BasicAction> ActionBank::str2sequence(const std::string & na
...
@@ -775,7 +775,7 @@ std::vector<Action::BasicAction> ActionBank::str2sequence(const std::string & na
{
{
// Puting the EOS tag on the last element of the sentence.
// Puting the EOS tag on the last element of the sentence.
{
{
auto
apply
=
[
b2
](
Config
&
c
,
Action
::
BasicAction
&
)
auto
apply
=
[](
Config
&
c
,
Action
::
BasicAction
&
)
{
{
int
b0
=
c
.
getHead
();
int
b0
=
c
.
getHead
();
int
s0
=
c
.
stackTop
();
int
s0
=
c
.
stackTop
();
...
@@ -1030,7 +1030,7 @@ std::vector<Action::BasicAction> ActionBank::str2sequence(const std::string & na
...
@@ -1030,7 +1030,7 @@ std::vector<Action::BasicAction> ActionBank::str2sequence(const std::string & na
undoForReal
(
c
,
classifierName
);
undoForReal
(
c
,
classifierName
);
};
};
auto
undo
=
[
dist
](
Config
&
,
Action
::
BasicAction
&
)
auto
undo
=
[](
Config
&
,
Action
::
BasicAction
&
)
{
{
};
};
auto
appliable
=
[
dist
](
Config
&
c
,
Action
::
BasicAction
)
auto
appliable
=
[
dist
](
Config
&
c
,
Action
::
BasicAction
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment