diversity_SR/conditionalMoments/util/tensorflowUtils.py
def _bytes_feature(value):
    """Returns a bytes_list from a string / byte."""
    if isinstance(value, type(tf.constant(0))):
      value = value.numpy() # BytesList won't unpack a string from an EagerTensor.
    return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value]))
Returns a bytes_list from a string / byte.
Returns a bytes_list from a string / byte.
Returns a bytes_list from a string / byte .
def _bytes_feature(value):
    if isinstance(value, type(tf.constant(0))):
      value = value.numpy() 
    return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value]))
def _bytes_feature ( value ) : if isinstance ( value , type ( tf . constant ( 0 ) ) ) : value = value . numpy ( ) return tf . train . Feature ( bytes_list = tf . train . BytesList ( value = [ value ] ) )
Returns a bytes_list from a string / byte.
Returns a bytes_list from a string / byte .
"""Returns a bytes_list from a string / byte.""" # BytesList won't unpack a string from an EagerTensor.
value