You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Tape.cs 624 B

1234567891011121314151617181920212223
  1. namespace Tensorflow.Eager
  2. {
  3. public class Tape
  4. {
  5. public static bool IsDtypeTrainable(DataType dtype)
  6. {
  7. switch (dtype)
  8. {
  9. case DataType.DtHalf:
  10. case DataType.DtBfloat16:
  11. case DataType.DtFloat:
  12. case DataType.DtDouble:
  13. case DataType.DtComplex64:
  14. case DataType.DtComplex128:
  15. case DataType.DtResource:
  16. case DataType.DtVariant:
  17. return true;
  18. default:
  19. return false;
  20. }
  21. }
  22. }
  23. }