This repository was archived by the owner on Jul 1, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-38
lines changed Expand file tree Collapse file tree 2 files changed +2
-38
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public protocol AnyTensor {
29
29
/// The generic parameter `Scalar` describes the type of scalars in the tensor (such as `Int32`,
30
30
/// `Float`, etc).
31
31
@frozen
32
- public struct Tensor < Scalar: TensorFlowScalar > : TensorProtocol {
32
+ public struct Tensor < Scalar: TensorFlowScalar > {
33
33
/// The underlying `TensorHandle`.
34
34
/// - Note: `handle` is public to allow user defined ops, but should not normally be used.
35
35
public let handle : TensorHandle < Scalar >
@@ -348,18 +348,8 @@ extension Tensor where Scalar: TensorFlowFloatingPoint {
348
348
/// during the conversion from an array literal to a `Tensor`, and is purely
349
349
/// for implementation purposes.
350
350
@frozen
351
- public struct _TensorElementLiteral < Scalar> : TensorProtocol where Scalar: TensorFlowScalar {
351
+ public struct _TensorElementLiteral < Scalar> where Scalar: TensorFlowScalar {
352
352
@usableFromInline let tensor : Tensor < Scalar >
353
-
354
- @inlinable
355
- public var handle : TensorHandle < Scalar > {
356
- return tensor. handle
357
- }
358
-
359
- @inlinable
360
- public init ( handle: TensorHandle < Scalar > ) {
361
- tensor = Tensor ( handle: handle)
362
- }
363
353
}
364
354
365
355
extension _TensorElementLiteral : ExpressibleByBooleanLiteral
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments