Skip to content

Instantly share code, notes, and snippets.

View DirkToewe's full-sized avatar
😔
(gas)lit

Dirk T. DirkToewe

😔
(gas)lit
View GitHub Profile
@DirkToewe
DirkToewe / gist:0199e0fabaa63edf261da0828fe82455
Created February 3, 2018 13:58
Performance Fix in com.sun.javafx.css.StyleManager.RefList
/*
* Copyright (c) 2010, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
@DirkToewe
DirkToewe / ForComprehension_experiments
Created February 20, 2019 23:22
Tensorflow4Scala for-comprehension experiments
package tf4s_experiments
import org.platanios.tensorflow.api._
import org.platanios.tensorflow.api.core.client.FeedMap
object ForComprehension_experiments
{
implicit class OutputOps[A: TF]( val tensor: Output[A] )
{
def map[B: TF]( map_fn: Output[A] => Output[B] ) =