FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TensorFlow.NET/src/TensorFlowNET.Core/Tensors/Dimension.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.Core
/
Tensors
/
Dimension.cs
Copy path
More file actions
More file actions
Latest commit
History
History
History
29 lines (24 loc) · 698 Bytes
Breadcrumbs
TensorFlow.NET
/
src
/
TensorFlowNET.Core
/
Tensors
/
Dimension.cs
Copy path
File metadata and controls
29 lines (24 loc) · 698 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
19
20
21
22
23
24
25
26
27
28
29
namespace
Tensorflow
{
public
class
Dimension
{
long
_value
;
public
long
value
=>
_value
;
public
Dimension
(
long
value
)
{
_value
=
value
;
}
public
Dimension
merge_with
(
Dimension
other
)
{
if
(
_value
==
-
1
)
return
new
Dimension
(
other
.
value
)
;
else
return
new
Dimension
(
_value
)
;
}
public
static
implicit
operator
Dimension
(
long
value
)
=>
new
Dimension
(
value
)
;
public
static
implicit
operator
long
(
Dimension
dimension
)
=>
dimension
.
value
;
public
override
string
ToString
(
)
=>
$
"Dimension(
{
_value
}
)"
;
}
}
Back
|
FazBrowse Home
|
New Git URL