1- /*****************************************************************************
2- Copyright 2018 The TensorFlow.NET Authors. All Rights Reserved.
3-
4- Licensed under the Apache License, Version 2.0 (the "License");
5- you may not use this file except in compliance with the License.
6- You may obtain a copy of the License at
7-
8- http://www.apache.org/licenses/LICENSE-2.0
9-
10- Unless required by applicable law or agreed to in writing, software
11- distributed under the License is distributed on an "AS IS" BASIS,
12- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13- See the License for the specific language governing permissions and
14- limitations under the License.
1+ /*****************************************************************************
2+ Copyright 2018 The TensorFlow.NET Authors. All Rights Reserved.
3+
4+ Licensed under the Apache License, Version 2.0 (the "License");
5+ you may not use this file except in compliance with the License.
6+ You may obtain a copy of the License at
7+
8+ http://www.apache.org/licenses/LICENSE-2.0
9+
10+ Unless required by applicable law or agreed to in writing, software
11+ distributed under the License is distributed on an "AS IS" BASIS,
12+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ See the License for the specific language governing permissions and
14+ limitations under the License.
1515******************************************************************************/
1616
1717using System ;
@@ -38,8 +38,8 @@ public OpDef GetOpDef(string type)
3838 public OperationDescription NewOperation ( string opType , string opName )
3939 {
4040 return c_api . TF_NewOperation ( _handle , opType , opName ) ;
41- }
42-
41+ }
42+
4343 public Operation [ ] ReturnOperations ( IntPtr results )
4444 {
4545 TF_Operation return_oper_handle = new TF_Operation ( ) ;
@@ -89,14 +89,14 @@ public Operation OperationByName(string operName)
8989 public ITensorOrOperation [ ] get_operations ( )
9090 {
9191 return _nodes_by_name . Values . ToArray ( ) ;
92- }
93-
92+ }
93+
9494 /// <summary>
9595 /// Returns the `Operation` with the given `name`.
9696 ///
97- /// This method may be called concurrently from multiple threads.
98- /// </summary>
99- /// <param name="name">The name of the `Operation` to return.</param>
97+ /// This method may be called concurrently from multiple threads.
98+ /// </summary>
99+ /// <param name="name">The name of the `Operation` to return.</param>
100100 public Operation get_operation_by_name ( string name )
101101 => as_graph_element ( name , allow_tensor : false , allow_operation : true ) as Operation ;
102102
@@ -109,8 +109,8 @@ public ITensorOrOperation _get_operation_by_tf_operation(IntPtr tf_oper)
109109 {
110110 var op_name = Marshal . PtrToStringAnsi ( c_api . TF_OperationName ( tf_oper ) ) ;
111111 return _get_operation_by_name_unsafe ( op_name ) ;
112- }
113-
112+ }
113+
114114 /// <summary>
115115 /// Creates an `Operation` in this graph from the supplied TF_Operation.
116116 ///
@@ -125,7 +125,7 @@ public ITensorOrOperation _get_operation_by_tf_operation(IntPtr tf_oper)
125125 /// </summary>
126126 /// <param name="c_op">a wrapped TF_Operation</param>
127127 /// <param name="compute_device">(Optional.) If True, device functions will be executed
128- /// to compute the device property of the Operation.</param>
128+ /// to compute the device property of the Operation.</param>
129129 /// <returns>An `Operation` object.</returns>
130130 public Operation _create_op_from_tf_operation ( IntPtr c_op , bool compute_device = true )
131131 {
0 commit comments