forked from SciSharp/TensorFlow.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTensor.cs
More file actions
30 lines (26 loc) · 710 Bytes
/
Copy pathTensor.cs
File metadata and controls
30 lines (26 loc) · 710 Bytes
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
30
using System;
using System.Collections.Generic;
using System.Text;
namespace Tensorflow
{
public class Tensor
{
private readonly Operation _op;
public Operation op => _op;
private readonly int _value_index;
public int value_index => _value_index;
private DataType _dtype;
public DataType dtype => _dtype;
public string name;
public Tensor(Operation op, int value_index, DataType dtype)
{
_op = op;
_value_index = value_index;
_dtype = dtype;
}
public TF_Output _as_tf_output()
{
return c_api_util.tf_output(_op._c_op, _value_index);
}
}
}