 //===----------------------------------------------------------------------===//
 
 @usableFromInline
-@_cdecl("_swift_tfc_GetGlobalEagerContext")
 func _TFCGetGlobalEagerContext() -> CTFEContext {
     debugLog("Calling _GetGlobalEagerContext()")
     return _ExecutionContext.global.eagerContext
 }
 
-// Some of the functions are marked with @silgen_name instead of @_cdecl, because their input/output
-// data types are not C-compatible (e.g., AnyTensorHandle).
-
 /// Adds `handle` as an input to `op`.
 @usableFromInline
-@_silgen_name("_swift_tfc_OpAddInputFromTensorHandle")
 func _TFCOpAddInputFromTensorHandle(_ op: CTFEOp, _ handle: _AnyTensorHandle, _ status: CTFStatus) {
     TFE_OpAddInput(op, handle._cTensorHandle, status)
 }
 
 /// Adds `t` as an input or inputs to `op`. Returns the number of inputs added.
 @usableFromInline
-@_silgen_name("_swift_tfc_OpAddInputFromTensorGroup")
 func _TFCOpAddInputFromTensorGroup<T: TensorArrayProtocol>(
     _ op: CTFEOp,
     _ t: T,

}

@usableFromInline
@_cdecl("_swift_tfc_OpSetDeviceFromScope")
func _TFCOpSetDeviceFromScope(_ op: CTFEOp, _ status: CTFStatus) {
    if let deviceName = _ExecutionContext.global.currentDeviceName {
        TFE_OpSetDevice(op, deviceName, status)

        buffer.withMemoryRebound(to: TF_DataType.self) { reboundBuffer in
            TFE_OpSetAttrTypeList(
                op, attrName, reboundBuffer.baseAddress, Int32(reboundBuffer.count))
        }
    }
}
