forked from SciSharp/TensorFlow.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTape.cs
More file actions
27 lines (26 loc) · 692 Bytes
/
Tape.cs
File metadata and controls
27 lines (26 loc) · 692 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
using System;
using System.Collections.Generic;
using System.Text;
namespace Tensorflow.Eager
{
public class Tape
{
public static bool IsDtypeTrainable(DataType dtype)
{
switch (dtype)
{
case DataType.DtHalf:
case DataType.DtBfloat16:
case DataType.DtFloat:
case DataType.DtDouble:
case DataType.DtComplex64:
case DataType.DtComplex128:
case DataType.DtResource:
case DataType.DtVariant:
return true;
default:
return false;
}
}
}
}