Skip to content

Commit

Permalink
Merge branch 'tensorflow-0.4'
Browse files Browse the repository at this point in the history
This updates the tutorial notebooks to be compatible with
tensorflow-0.4, since 0.4 has just been released to colab.
  • Loading branch information
Marc Rasi committed Jun 28, 2019
2 parents 5ceda45 + 3e22523 commit 46899bd
Show file tree
Hide file tree
Showing 4 changed files with 1,870 additions and 1,855 deletions.
6 changes: 6 additions & 0 deletions docs/site/tutorials/TutorialDatasetCSVAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ extension IrisBatch: TensorGroup {
Int32.tensorFlowDataType
]
public static var _unknownShapeList: [TensorShape?] = [nil, nil]
public var _tensorHandles: [_AnyTensorHandle] {
 fatalError("unimplemented")
}
public func _unpackTensorHandles(into address: UnsafeMutablePointer<CTensorHandle>?) {
address!.advanced(by: 0).initialize(to: features.handle._cTensorHandle)
address!.advanced(by: 1).initialize(to: labels.handle._cTensorHandle)
Expand All @@ -28,6 +31,9 @@ extension IrisBatch: TensorGroup {
features = Tensor(handle: TensorHandle(_owning: tensorHandles!.advanced(by: 0).pointee))
labels = Tensor(handle: TensorHandle(_owning: tensorHandles!.advanced(by: 1).pointee))
}
public init<C: RandomAccessCollection>(_handles: C) where C.Element: _AnyTensorHandle {
 fatalError("unimplemented")
}
}

/// Initialize an `IrisBatch` dataset from a CSV file.
Expand Down
Loading

0 comments on commit 46899bd

Please sign in to comment.