These instructions are based on Mistobaan's gist but expanded and updated to work with the latest tensorflow OSX CUDA PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local function AlwaysTrue() | |
return true | |
end | |
local function EqualObjects(...) | |
local FirstObject = select(1, ...) | |
for Index = 2, select("#", ...) do | |
if FirstObject ~= select(Index, ...) then | |
return false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Get the string representing the given PositionedLayout enum. | |
* Ref: https://developers.google.com/apps-script/reference/document/positioned-layout | |
* | |
* From: gist.github.com/mogsdad/7fed0b18837b9027f968 | |
* See: stackoverflow.com/a/20661113/1677912 | |
* | |
* @param {PositionedLayout} PositionedLayout Enum value. | |
* | |
* @returns {String} English text matching enum. |