FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TensorFlow.NET/src/TensorFlowNET.Core/Data/RepeatDataset.cs at master · hartoto2/TensorFlow.NET · GitHub
hartoto2
/
TensorFlow.NET
Public
forked from
SciSharp/TensorFlow.NET
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
TensorFlow.NET
/
src
/
TensorFlowNET.Core
/
Data
/
RepeatDataset.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
18 lines (18 loc) · 626 Bytes
Breadcrumbs
TensorFlow.NET
/
src
/
TensorFlowNET.Core
/
Data
/
RepeatDataset.cs
Copy path
File metadata and controls
18 lines (18 loc) · 626 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
18
namespace
Tensorflow
{
/// <summary>
/// A `Dataset` that repeats its input several times.
/// </summary>
public
class
RepeatDataset
:
UnaryUnchangedStructureDataset
{
public
RepeatDataset
(
IDatasetV2
input_dataset
,
int
count
=
-
1
)
:
base
(
input_dataset
)
{
var
count_tensor
=
constant_op
.
constant
(
count
,
dtype
:
TF_DataType
.
TF_INT64
,
name
:
"count"
)
;
variant_tensor
=
ops
.
repeat_dataset
(
input_dataset
.
variant_tensor
,
count_tensor
,
input_dataset
.
output_types
,
input_dataset
.
output_shapes
)
;
}
}
}
Back
|
FazBrowse Home
|
New Git URL