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.

ITensorOrOperation.cs 1.2 kB

6 years ago
1234567891011121314151617181920212223242526272829303132333435
  1. /*****************************************************************************
  2. Copyright 2018 The TensorFlow.NET Authors. All Rights Reserved.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ******************************************************************************/
  13. using System;
  14. using System.Collections.Generic;
  15. using System.Text;
  16. namespace Tensorflow
  17. {
  18. /// <summary>
  19. /// in order to limit function return value
  20. /// is Tensor or Operation
  21. /// </summary>
  22. public interface ITensorOrOperation
  23. {
  24. string Device { get; }
  25. Operation op { get; }
  26. string name { get; }
  27. TF_DataType dtype { get; }
  28. Tensor[] outputs { get; }
  29. }
  30. }