tfplot/summary_test.py
def _execute_summary_op(self, op, feed_dict={}):
        '''
        Execute the summary op, and parse the result into Summary proto object.
        '''
        with self.cached_session() as sess:
            cprint("\n >>> " + str(op), color='magenta')
            self.assertIsInstance(op, tf.Tensor)
            self.assertTrue(op.dtype, tf.string)
            ret = sess.run(op, feed_dict=feed_dict)

            # check ret is a byte
            self.assertIsInstance(ret, bytes)
            summary = Summary()
            summary.ParseFromString(ret)
            return summary

        Execute the summary op, and parse the result into Summary proto object.
        
Execute the summary op, and parse the result into Summary proto object.
Execute the summary op and parse the result into Summary proto object .
def _execute_summary_op(self, op, feed_dict={}):
        with self.cached_session() as sess:
            cprint("\n >>> " + str(op), color='magenta')
            self.assertIsInstance(op, tf.Tensor)
            self.assertTrue(op.dtype, tf.string)
            ret = sess.run(op, feed_dict=feed_dict)
            self.assertIsInstance(ret, bytes)
            summary = Summary()
            summary.ParseFromString(ret)
            return summary
def _execute_summary_op ( self , op , feed_dict = { } ) : with self . cached_session ( ) as sess : cprint ( "\n >>> " + str ( op ) , color = 'magenta' ) self . assertIsInstance ( op , tf . Tensor ) self . assertTrue ( op . dtype , tf . string ) ret = sess . run ( op , feed_dict = feed_dict ) self . assertIsInstance ( ret , bytes ) summary = Summary ( ) summary . ParseFromString ( ret ) return summary
Execute the summary op, and parse the result into Summary proto object.
Execute the summary op and parse the result into Summary proto object .
'''
        Execute the summary op, and parse the result into Summary proto object.
        ''' # check ret is a byte
self
op
feed_dict