FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TensorFlow.NET/src/TensorFlowNET.Keras/Regularizers/L2.cs at master · MSavameri/TensorFlow.NET · GitHub
MSavameri
TensorFlow.NET
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
TensorFlow.NET
/
src
/
TensorFlowNET.Keras
/
Regularizers
/
L2.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (15 loc) · 323 Bytes
Breadcrumbs
TensorFlow.NET
/
src
/
TensorFlowNET.Keras
/
Regularizers
/
L2.cs
Copy path
File metadata and controls
17 lines (15 loc) · 323 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
namespace
Tensorflow
.
Keras
{
public
class
L2
:
IRegularizer
{
float
l2
;
public
L2
(
float
l2
=
0.01f
)
{
this
.
l2
=
l2
;
}
public
Tensor
Apply
(
RegularizerArgs
args
)
{
return
l2
*
math_ops
.
reduce_sum
(
math_ops
.
square
(
args
.
X
)
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL