Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ public extension AnyTensor {
/// This class encapsulates a type-erasing `AnyTensor` instance and provides a variety of
/// initializers and utility methods to work with tensor data.
@available(*, deprecated, message: "This API is experimental.")
public class Tensor<T: Scalar>: Equatable {
public final class Tensor<T: Scalar>: Equatable {
/// The data type of the tensor's elements.
public var dataType: DataType { anyTensor.dataType }

Expand Down
1 change: 1 addition & 0 deletions extension/apple/ExecuTorch/Exported/ExecuTorchTensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ NSInteger ExecuTorchElementCountOfShape(NSArray<NSNumber *> *shape)
*/
NS_SWIFT_NAME(AnyTensor)
__attribute__((deprecated("This API is experimental.")))
__attribute__((objc_subclassing_restricted))
@interface ExecuTorchTensor : NSObject<NSCopying>

/**
Expand Down
1 change: 1 addition & 0 deletions extension/apple/ExecuTorch/Exported/ExecuTorchValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ typedef float ExecuTorchFloatValue
*/
NS_SWIFT_NAME(Value)
__attribute__((deprecated("This API is experimental.")))
__attribute__((objc_subclassing_restricted))
@interface ExecuTorchValue : NSObject <NSCopying>

/**
Expand Down
Loading