@@ -1104,7 +1104,6 @@ internal func dumpCTensorHandleContent(_ idx: Int, _ inputTensorHandle: CTensorH
1104
1104
}
1105
1105
1106
1106
@inlinable
1107
- @_cdecl ( " _swift_tfc_EagerExecute " )
1108
1107
func _TFCEagerExecute(
1109
1108
_ op: CTFEOp ,
1110
1109
_ retvals: UnsafeMutablePointer < OpaquePointer ? > ,
@@ -1136,25 +1135,19 @@ func _TFCEagerExecute(
1136
1135
//===----------------------------------------------------------------------===//
1137
1136
1138
1137
@usableFromInline
1139
- @_cdecl ( " _swift_tfc_GetGlobalEagerContext " )
1140
1138
func _TFCGetGlobalEagerContext( ) -> CTFEContext {
1141
1139
debugLog ( " Calling _GetGlobalEagerContext() " )
1142
1140
return _ExecutionContext. global. eagerContext
1143
1141
}
1144
1142
1145
- // Some of the functions are marked with @silgen_name instead of @_cdecl, because their input/output
1146
- // data types are not C-compatible (e.g., AnyTensorHandle).
1147
-
1148
1143
/// Adds `handle` as an input to `op`.
1149
1144
@usableFromInline
1150
- @_silgen_name ( " _swift_tfc_OpAddInputFromTensorHandle " )
1151
1145
func _TFCOpAddInputFromTensorHandle( _ op: CTFEOp , _ handle: _AnyTensorHandle , _ status: CTFStatus ) {
1152
1146
TFE_OpAddInput ( op, handle. _cTensorHandle, status)
1153
1147
}
1154
1148
1155
1149
/// Adds `t` as an input or inputs to `op`. Returns the number of inputs added.
1156
1150
@usableFromInline
1157
- @_silgen_name ( " _swift_tfc_OpAddInputFromTensorGroup " )
1158
1151
func _TFCOpAddInputFromTensorGroup< T: TensorArrayProtocol > (
1159
1152
_ op: CTFEOp ,
1160
1153
_ t: T ,
@@ -1187,7 +1180,6 @@ func _TFCOpAddInputFromAnyTensors(_ op: CTFEOp, _ tensors: [AnyTensor], _ status
1187
1180
// can read.
1188
1181
1189
1182
@usableFromInline
1190
- @_silgen_name ( " _swift_tfc_OpSetAttrTypeArray " )
1191
1183
func _TFCOpSetAttrTypeArray(
1192
1184
_ op: CTFEOp ,
1193
1185
_ attrName: UnsafePointer < Int8 > ,
@@ -1282,7 +1274,6 @@ class _ThreadLocalState {
1282
1274
}
1283
1275
1284
1276
@usableFromInline
1285
- @_cdecl ( " _swift_tfc_OpSetDeviceFromScope " )
1286
1277
func _TFCOpSetDeviceFromScope( _ op: CTFEOp , _ status: CTFStatus ) {
1287
1278
if let deviceName = _ExecutionContext. global. currentDeviceName {
1288
1279
TFE_OpSetDevice ( op, deviceName, status)
0 commit comments