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.

ops._DefaultStack.cs 1.9 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. namespace Tensorflow
  16. {
  17. public partial class ops
  18. {
  19. _DefaultStack _default_session_stack = new _DefaultStack();
  20. public class _DefaultStack : ITensorFlowObject
  21. {
  22. Stack<object> stack;
  23. #pragma warning disable CS0414 // The field 'ops._DefaultStack._enforce_nesting' is assigned but its value is never used
  24. bool _enforce_nesting = true;
  25. #pragma warning restore CS0414 // The field 'ops._DefaultStack._enforce_nesting' is assigned but its value is never used
  26. public _DefaultStack()
  27. {
  28. stack = new Stack<object>();
  29. }
  30. public void __enter__()
  31. {
  32. }
  33. public void __exit__()
  34. {
  35. }
  36. public void Dispose()
  37. {
  38. throw new NotImplementedException();
  39. }
  40. public void __init__()
  41. {
  42. }
  43. public void __del__()
  44. {
  45. }
  46. }
  47. }
  48. }