Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.
Merged
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
12 changes: 8 additions & 4 deletions Sources/TensorFlow/StdlibExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,14 @@ extension Array.DifferentiableView: ElementaryFunctions
public static func root(_ x: Self, _ n: Int) -> Self { .init(Array.root(x.base, n)) }
}

extension Array.DifferentiableView
: MutableCollection, RandomAccessCollection, RangeReplaceableCollection
where Element: Differentiable
{
extension Array.DifferentiableView:
BidirectionalCollection,
Collection,
MutableCollection,
RandomAccessCollection,
RangeReplaceableCollection,
Sequence
where Element: Differentiable {
public typealias Element = Array<Element>.Element
public typealias Index = Array<Element>.Index
public typealias Indices = Array<Element>.Indices
Expand Down