{- This file was auto-generated from tensorflow/core/framework/cost_graph.proto by the proto-lens-protoc program. -}
{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, DataKinds, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies#-}
{-# OPTIONS_GHC -Wno-unused-imports#-}
{-# OPTIONS_GHC -Wno-duplicate-exports#-}
{-# OPTIONS_GHC -Wno-dodgy-exports#-}
module Proto.Tensorflow.Core.Framework.CostGraph (
        CostGraphDef(), CostGraphDef'AggregatedCost(), CostGraphDef'Node(),
        CostGraphDef'Node'InputInfo(), CostGraphDef'Node'OutputInfo()
    ) where
import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism
import qualified Data.ProtoLens.Runtime.Prelude as Prelude
import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int
import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid
import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word
import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum
import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types
import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2
import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked
import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text
import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map
import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString
import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8
import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding
import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector
import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic
import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed
import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read
import qualified Proto.Tensorflow.Core.Framework.TensorShape
import qualified Proto.Tensorflow.Core.Framework.Types
{- | Fields :
     
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.node' @:: Lens' CostGraphDef [CostGraphDef'Node]@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.vec'node' @:: Lens' CostGraphDef (Data.Vector.Vector CostGraphDef'Node)@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.cost' @:: Lens' CostGraphDef [CostGraphDef'AggregatedCost]@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.vec'cost' @:: Lens' CostGraphDef (Data.Vector.Vector CostGraphDef'AggregatedCost)@ -}
data CostGraphDef
  = CostGraphDef'_constructor {CostGraphDef -> Vector CostGraphDef'Node
_CostGraphDef'node :: !(Data.Vector.Vector CostGraphDef'Node),
                               CostGraphDef -> Vector CostGraphDef'AggregatedCost
_CostGraphDef'cost :: !(Data.Vector.Vector CostGraphDef'AggregatedCost),
                               CostGraphDef -> FieldSet
_CostGraphDef'_unknownFields :: !Data.ProtoLens.FieldSet}
  deriving stock (CostGraphDef -> CostGraphDef -> Bool
(CostGraphDef -> CostGraphDef -> Bool)
-> (CostGraphDef -> CostGraphDef -> Bool) -> Eq CostGraphDef
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CostGraphDef -> CostGraphDef -> Bool
$c/= :: CostGraphDef -> CostGraphDef -> Bool
== :: CostGraphDef -> CostGraphDef -> Bool
$c== :: CostGraphDef -> CostGraphDef -> Bool
Prelude.Eq, Eq CostGraphDef
Eq CostGraphDef =>
(CostGraphDef -> CostGraphDef -> Ordering)
-> (CostGraphDef -> CostGraphDef -> Bool)
-> (CostGraphDef -> CostGraphDef -> Bool)
-> (CostGraphDef -> CostGraphDef -> Bool)
-> (CostGraphDef -> CostGraphDef -> Bool)
-> (CostGraphDef -> CostGraphDef -> CostGraphDef)
-> (CostGraphDef -> CostGraphDef -> CostGraphDef)
-> Ord CostGraphDef
CostGraphDef -> CostGraphDef -> Bool
CostGraphDef -> CostGraphDef -> Ordering
CostGraphDef -> CostGraphDef -> CostGraphDef
forall a.
Eq a =>
(a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: CostGraphDef -> CostGraphDef -> CostGraphDef
$cmin :: CostGraphDef -> CostGraphDef -> CostGraphDef
max :: CostGraphDef -> CostGraphDef -> CostGraphDef
$cmax :: CostGraphDef -> CostGraphDef -> CostGraphDef
>= :: CostGraphDef -> CostGraphDef -> Bool
$c>= :: CostGraphDef -> CostGraphDef -> Bool
> :: CostGraphDef -> CostGraphDef -> Bool
$c> :: CostGraphDef -> CostGraphDef -> Bool
<= :: CostGraphDef -> CostGraphDef -> Bool
$c<= :: CostGraphDef -> CostGraphDef -> Bool
< :: CostGraphDef -> CostGraphDef -> Bool
$c< :: CostGraphDef -> CostGraphDef -> Bool
compare :: CostGraphDef -> CostGraphDef -> Ordering
$ccompare :: CostGraphDef -> CostGraphDef -> Ordering
$cp1Ord :: Eq CostGraphDef
Prelude.Ord)
instance Prelude.Show CostGraphDef where
  showsPrec :: Int -> CostGraphDef -> ShowS
showsPrec _ __x :: CostGraphDef
__x __s :: String
__s
    = Char -> ShowS
Prelude.showChar
        '{'
        (String -> ShowS
Prelude.showString
           (CostGraphDef -> String
forall msg. Message msg => msg -> String
Data.ProtoLens.showMessageShort CostGraphDef
__x) (Char -> ShowS
Prelude.showChar '}' String
__s))
instance Data.ProtoLens.Field.HasField CostGraphDef "node" [CostGraphDef'Node] where
  fieldOf :: Proxy# "node"
-> ([CostGraphDef'Node] -> f [CostGraphDef'Node])
-> CostGraphDef
-> f CostGraphDef
fieldOf _
    = ((Vector CostGraphDef'Node -> f (Vector CostGraphDef'Node))
 -> CostGraphDef -> f CostGraphDef)
-> (([CostGraphDef'Node] -> f [CostGraphDef'Node])
    -> Vector CostGraphDef'Node -> f (Vector CostGraphDef'Node))
-> ([CostGraphDef'Node] -> f [CostGraphDef'Node])
-> CostGraphDef
-> f CostGraphDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef -> Vector CostGraphDef'Node)
-> (CostGraphDef -> Vector CostGraphDef'Node -> CostGraphDef)
-> Lens
     CostGraphDef
     CostGraphDef
     (Vector CostGraphDef'Node)
     (Vector CostGraphDef'Node)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef -> Vector CostGraphDef'Node
_CostGraphDef'node (\ x__ :: CostGraphDef
x__ y__ :: Vector CostGraphDef'Node
y__ -> CostGraphDef
x__ {_CostGraphDef'node :: Vector CostGraphDef'Node
_CostGraphDef'node = Vector CostGraphDef'Node
y__}))
        ((Vector CostGraphDef'Node -> [CostGraphDef'Node])
-> (Vector CostGraphDef'Node
    -> [CostGraphDef'Node] -> Vector CostGraphDef'Node)
-> Lens
     (Vector CostGraphDef'Node)
     (Vector CostGraphDef'Node)
     [CostGraphDef'Node]
     [CostGraphDef'Node]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           Vector CostGraphDef'Node -> [CostGraphDef'Node]
forall (v :: * -> *) a. Vector v a => v a -> [a]
Data.Vector.Generic.toList
           (\ _ y__ :: [CostGraphDef'Node]
y__ -> [CostGraphDef'Node] -> Vector CostGraphDef'Node
forall (v :: * -> *) a. Vector v a => [a] -> v a
Data.Vector.Generic.fromList [CostGraphDef'Node]
y__))
instance Data.ProtoLens.Field.HasField CostGraphDef "vec'node" (Data.Vector.Vector CostGraphDef'Node) where
  fieldOf :: Proxy# "vec'node"
-> (Vector CostGraphDef'Node -> f (Vector CostGraphDef'Node))
-> CostGraphDef
-> f CostGraphDef
fieldOf _
    = ((Vector CostGraphDef'Node -> f (Vector CostGraphDef'Node))
 -> CostGraphDef -> f CostGraphDef)
-> ((Vector CostGraphDef'Node -> f (Vector CostGraphDef'Node))
    -> Vector CostGraphDef'Node -> f (Vector CostGraphDef'Node))
-> (Vector CostGraphDef'Node -> f (Vector CostGraphDef'Node))
-> CostGraphDef
-> f CostGraphDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef -> Vector CostGraphDef'Node)
-> (CostGraphDef -> Vector CostGraphDef'Node -> CostGraphDef)
-> Lens
     CostGraphDef
     CostGraphDef
     (Vector CostGraphDef'Node)
     (Vector CostGraphDef'Node)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef -> Vector CostGraphDef'Node
_CostGraphDef'node (\ x__ :: CostGraphDef
x__ y__ :: Vector CostGraphDef'Node
y__ -> CostGraphDef
x__ {_CostGraphDef'node :: Vector CostGraphDef'Node
_CostGraphDef'node = Vector CostGraphDef'Node
y__}))
        (Vector CostGraphDef'Node -> f (Vector CostGraphDef'Node))
-> Vector CostGraphDef'Node -> f (Vector CostGraphDef'Node)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef "cost" [CostGraphDef'AggregatedCost] where
  fieldOf :: Proxy# "cost"
-> ([CostGraphDef'AggregatedCost]
    -> f [CostGraphDef'AggregatedCost])
-> CostGraphDef
-> f CostGraphDef
fieldOf _
    = ((Vector CostGraphDef'AggregatedCost
  -> f (Vector CostGraphDef'AggregatedCost))
 -> CostGraphDef -> f CostGraphDef)
-> (([CostGraphDef'AggregatedCost]
     -> f [CostGraphDef'AggregatedCost])
    -> Vector CostGraphDef'AggregatedCost
    -> f (Vector CostGraphDef'AggregatedCost))
-> ([CostGraphDef'AggregatedCost]
    -> f [CostGraphDef'AggregatedCost])
-> CostGraphDef
-> f CostGraphDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef -> Vector CostGraphDef'AggregatedCost)
-> (CostGraphDef
    -> Vector CostGraphDef'AggregatedCost -> CostGraphDef)
-> Lens
     CostGraphDef
     CostGraphDef
     (Vector CostGraphDef'AggregatedCost)
     (Vector CostGraphDef'AggregatedCost)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef -> Vector CostGraphDef'AggregatedCost
_CostGraphDef'cost (\ x__ :: CostGraphDef
x__ y__ :: Vector CostGraphDef'AggregatedCost
y__ -> CostGraphDef
x__ {_CostGraphDef'cost :: Vector CostGraphDef'AggregatedCost
_CostGraphDef'cost = Vector CostGraphDef'AggregatedCost
y__}))
        ((Vector CostGraphDef'AggregatedCost
 -> [CostGraphDef'AggregatedCost])
-> (Vector CostGraphDef'AggregatedCost
    -> [CostGraphDef'AggregatedCost]
    -> Vector CostGraphDef'AggregatedCost)
-> Lens
     (Vector CostGraphDef'AggregatedCost)
     (Vector CostGraphDef'AggregatedCost)
     [CostGraphDef'AggregatedCost]
     [CostGraphDef'AggregatedCost]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           Vector CostGraphDef'AggregatedCost -> [CostGraphDef'AggregatedCost]
forall (v :: * -> *) a. Vector v a => v a -> [a]
Data.Vector.Generic.toList
           (\ _ y__ :: [CostGraphDef'AggregatedCost]
y__ -> [CostGraphDef'AggregatedCost] -> Vector CostGraphDef'AggregatedCost
forall (v :: * -> *) a. Vector v a => [a] -> v a
Data.Vector.Generic.fromList [CostGraphDef'AggregatedCost]
y__))
instance Data.ProtoLens.Field.HasField CostGraphDef "vec'cost" (Data.Vector.Vector CostGraphDef'AggregatedCost) where
  fieldOf :: Proxy# "vec'cost"
-> (Vector CostGraphDef'AggregatedCost
    -> f (Vector CostGraphDef'AggregatedCost))
-> CostGraphDef
-> f CostGraphDef
fieldOf _
    = ((Vector CostGraphDef'AggregatedCost
  -> f (Vector CostGraphDef'AggregatedCost))
 -> CostGraphDef -> f CostGraphDef)
-> ((Vector CostGraphDef'AggregatedCost
     -> f (Vector CostGraphDef'AggregatedCost))
    -> Vector CostGraphDef'AggregatedCost
    -> f (Vector CostGraphDef'AggregatedCost))
-> (Vector CostGraphDef'AggregatedCost
    -> f (Vector CostGraphDef'AggregatedCost))
-> CostGraphDef
-> f CostGraphDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef -> Vector CostGraphDef'AggregatedCost)
-> (CostGraphDef
    -> Vector CostGraphDef'AggregatedCost -> CostGraphDef)
-> Lens
     CostGraphDef
     CostGraphDef
     (Vector CostGraphDef'AggregatedCost)
     (Vector CostGraphDef'AggregatedCost)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef -> Vector CostGraphDef'AggregatedCost
_CostGraphDef'cost (\ x__ :: CostGraphDef
x__ y__ :: Vector CostGraphDef'AggregatedCost
y__ -> CostGraphDef
x__ {_CostGraphDef'cost :: Vector CostGraphDef'AggregatedCost
_CostGraphDef'cost = Vector CostGraphDef'AggregatedCost
y__}))
        (Vector CostGraphDef'AggregatedCost
 -> f (Vector CostGraphDef'AggregatedCost))
-> Vector CostGraphDef'AggregatedCost
-> f (Vector CostGraphDef'AggregatedCost)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Message CostGraphDef where
  messageName :: Proxy CostGraphDef -> Text
messageName _ = String -> Text
Data.Text.pack "tensorflow.CostGraphDef"
  packedMessageDescriptor :: Proxy CostGraphDef -> ByteString
packedMessageDescriptor _
    = "\n\
      \\fCostGraphDef\DC21\n\
      \\EOTnode\CAN\SOH \ETX(\v2\GS.tensorflow.CostGraphDef.NodeR\EOTnode\DC2;\n\
      \\EOTcost\CAN\STX \ETX(\v2'.tensorflow.CostGraphDef.AggregatedCostR\EOTcost\SUB\199\a\n\
      \\EOTNode\DC2\DC2\n\
      \\EOTname\CAN\SOH \SOH(\tR\EOTname\DC2\SYN\n\
      \\ACKdevice\CAN\STX \SOH(\tR\ACKdevice\DC2\SO\n\
      \\STXid\CAN\ETX \SOH(\ENQR\STXid\DC2F\n\
      \\n\
      \input_info\CAN\EOT \ETX(\v2'.tensorflow.CostGraphDef.Node.InputInfoR\tinputInfo\DC2I\n\
      \\voutput_info\CAN\ENQ \ETX(\v2(.tensorflow.CostGraphDef.Node.OutputInfoR\n\
      \outputInfo\DC22\n\
      \\NAKtemporary_memory_size\CAN\ACK \SOH(\ETXR\DC3temporaryMemorySize\DC24\n\
      \\SYNpersistent_memory_size\CAN\f \SOH(\ETXR\DC4persistentMemorySize\DC25\n\
      \\NAKhost_temp_memory_size\CAN\n\
      \ \SOH(\ETXR\DC2hostTempMemorySizeB\STX\CAN\SOH\DC29\n\
      \\ETBdevice_temp_memory_size\CAN\v \SOH(\ETXR\DC4deviceTempMemorySizeB\STX\CAN\SOH\DC2E\n\
      \\GSdevice_persistent_memory_size\CAN\DLE \SOH(\ETXR\SUBdevicePersistentMemorySizeB\STX\CAN\SOH\DC2!\n\
      \\fcompute_cost\CAN\t \SOH(\ETXR\vcomputeCost\DC2!\n\
      \\fcompute_time\CAN\SO \SOH(\ETXR\vcomputeTime\DC2\US\n\
      \\vmemory_time\CAN\SI \SOH(\ETXR\n\
      \memoryTime\DC2\EM\n\
      \\bis_final\CAN\a \SOH(\bR\aisFinal\DC2#\n\
      \\rcontrol_input\CAN\b \ETX(\ENQR\fcontrolInput\DC2\RS\n\
      \\n\
      \inaccurate\CAN\DC1 \SOH(\bR\n\
      \inaccurate\SUBY\n\
      \\tInputInfo\DC2%\n\
      \\SOpreceding_node\CAN\SOH \SOH(\ENQR\rprecedingNode\DC2%\n\
      \\SOpreceding_port\CAN\STX \SOH(\ENQR\rprecedingPort\SUB\170\SOH\n\
      \\n\
      \OutputInfo\DC2\DC2\n\
      \\EOTsize\CAN\SOH \SOH(\ETXR\EOTsize\DC2(\n\
      \\DLEalias_input_port\CAN\STX \SOH(\ETXR\SOaliasInputPort\DC22\n\
      \\ENQshape\CAN\ETX \SOH(\v2\FS.tensorflow.TensorShapeProtoR\ENQshape\DC2*\n\
      \\ENQdtype\CAN\EOT \SOH(\SO2\DC4.tensorflow.DataTypeR\ENQdtype\SUBB\n\
      \\SOAggregatedCost\DC2\DC2\n\
      \\EOTcost\CAN\SOH \SOH(\STXR\EOTcost\DC2\FS\n\
      \\tdimension\CAN\STX \SOH(\tR\tdimension"
  packedFileDescriptor :: Proxy CostGraphDef -> ByteString
packedFileDescriptor _ = ByteString
packedFileDescriptor
  fieldsByTag :: Map Tag (FieldDescriptor CostGraphDef)
fieldsByTag
    = let
        node__field_descriptor :: FieldDescriptor CostGraphDef
node__field_descriptor
          = String
-> FieldTypeDescriptor CostGraphDef'Node
-> FieldAccessor CostGraphDef CostGraphDef'Node
-> FieldDescriptor CostGraphDef
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "node"
              (MessageOrGroup -> FieldTypeDescriptor CostGraphDef'Node
forall value.
Message value =>
MessageOrGroup -> FieldTypeDescriptor value
Data.ProtoLens.MessageField MessageOrGroup
Data.ProtoLens.MessageType ::
                 Data.ProtoLens.FieldTypeDescriptor CostGraphDef'Node)
              (Packing
-> Lens' CostGraphDef [CostGraphDef'Node]
-> FieldAccessor CostGraphDef CostGraphDef'Node
forall msg value.
Packing -> Lens' msg [value] -> FieldAccessor msg value
Data.ProtoLens.RepeatedField
                 Packing
Data.ProtoLens.Unpacked (forall s a (f :: * -> *).
(HasField s "node" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"node")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef
        cost__field_descriptor :: FieldDescriptor CostGraphDef
cost__field_descriptor
          = String
-> FieldTypeDescriptor CostGraphDef'AggregatedCost
-> FieldAccessor CostGraphDef CostGraphDef'AggregatedCost
-> FieldDescriptor CostGraphDef
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "cost"
              (MessageOrGroup -> FieldTypeDescriptor CostGraphDef'AggregatedCost
forall value.
Message value =>
MessageOrGroup -> FieldTypeDescriptor value
Data.ProtoLens.MessageField MessageOrGroup
Data.ProtoLens.MessageType ::
                 Data.ProtoLens.FieldTypeDescriptor CostGraphDef'AggregatedCost)
              (Packing
-> Lens' CostGraphDef [CostGraphDef'AggregatedCost]
-> FieldAccessor CostGraphDef CostGraphDef'AggregatedCost
forall msg value.
Packing -> Lens' msg [value] -> FieldAccessor msg value
Data.ProtoLens.RepeatedField
                 Packing
Data.ProtoLens.Unpacked (forall s a (f :: * -> *).
(HasField s "cost" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"cost")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef
      in
        [(Tag, FieldDescriptor CostGraphDef)]
-> Map Tag (FieldDescriptor CostGraphDef)
forall k a. Ord k => [(k, a)] -> Map k a
Data.Map.fromList
          [(Int -> Tag
Data.ProtoLens.Tag 1, FieldDescriptor CostGraphDef
node__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 2, FieldDescriptor CostGraphDef
cost__field_descriptor)]
  unknownFields :: LensLike' f CostGraphDef FieldSet
unknownFields
    = (CostGraphDef -> FieldSet)
-> (CostGraphDef -> FieldSet -> CostGraphDef)
-> Lens' CostGraphDef FieldSet
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
        CostGraphDef -> FieldSet
_CostGraphDef'_unknownFields
        (\ x__ :: CostGraphDef
x__ y__ :: FieldSet
y__ -> CostGraphDef
x__ {_CostGraphDef'_unknownFields :: FieldSet
_CostGraphDef'_unknownFields = FieldSet
y__})
  defMessage :: CostGraphDef
defMessage
    = $WCostGraphDef'_constructor :: Vector CostGraphDef'Node
-> Vector CostGraphDef'AggregatedCost -> FieldSet -> CostGraphDef
CostGraphDef'_constructor
        {_CostGraphDef'node :: Vector CostGraphDef'Node
_CostGraphDef'node = Vector CostGraphDef'Node
forall (v :: * -> *) a. Vector v a => v a
Data.Vector.Generic.empty,
         _CostGraphDef'cost :: Vector CostGraphDef'AggregatedCost
_CostGraphDef'cost = Vector CostGraphDef'AggregatedCost
forall (v :: * -> *) a. Vector v a => v a
Data.Vector.Generic.empty,
         _CostGraphDef'_unknownFields :: FieldSet
_CostGraphDef'_unknownFields = []}
  parseMessage :: Parser CostGraphDef
parseMessage
    = let
        loop ::
          CostGraphDef
          -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld CostGraphDef'AggregatedCost
             -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld CostGraphDef'Node
                -> Data.ProtoLens.Encoding.Bytes.Parser CostGraphDef
        loop :: CostGraphDef
-> Growing Vector RealWorld CostGraphDef'AggregatedCost
-> Growing Vector RealWorld CostGraphDef'Node
-> Parser CostGraphDef
loop x :: CostGraphDef
x mutable'cost :: Growing Vector RealWorld CostGraphDef'AggregatedCost
mutable'cost mutable'node :: Growing Vector RealWorld CostGraphDef'Node
mutable'node
          = do Bool
end <- Parser Bool
Data.ProtoLens.Encoding.Bytes.atEnd
               if Bool
end then
                   do Vector CostGraphDef'AggregatedCost
frozen'cost <- IO (Vector CostGraphDef'AggregatedCost)
-> Parser (Vector CostGraphDef'AggregatedCost)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                       (Growing Vector (PrimState IO) CostGraphDef'AggregatedCost
-> IO (Vector CostGraphDef'AggregatedCost)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
Growing v (PrimState m) a -> m (v a)
Data.ProtoLens.Encoding.Growing.unsafeFreeze Growing Vector RealWorld CostGraphDef'AggregatedCost
Growing Vector (PrimState IO) CostGraphDef'AggregatedCost
mutable'cost)
                      Vector CostGraphDef'Node
frozen'node <- IO (Vector CostGraphDef'Node) -> Parser (Vector CostGraphDef'Node)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                       (Growing Vector (PrimState IO) CostGraphDef'Node
-> IO (Vector CostGraphDef'Node)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
Growing v (PrimState m) a -> m (v a)
Data.ProtoLens.Encoding.Growing.unsafeFreeze Growing Vector RealWorld CostGraphDef'Node
Growing Vector (PrimState IO) CostGraphDef'Node
mutable'node)
                      (let missing :: [a]
missing = []
                       in
                         if [Any] -> Bool
forall (t :: * -> *) a. Foldable t => t a -> Bool
Prelude.null [Any]
forall a. [a]
missing then
                             () -> Parser ()
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return ()
                         else
                             String -> Parser ()
forall (m :: * -> *) a. MonadFail m => String -> m a
Prelude.fail
                               (String -> ShowS
forall a. [a] -> [a] -> [a]
(Prelude.++)
                                  "Missing required fields: "
                                  ([String] -> String
forall a. Show a => a -> String
Prelude.show ([String]
forall a. [a]
missing :: [Prelude.String]))))
                      CostGraphDef -> Parser CostGraphDef
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return
                        (Setter CostGraphDef CostGraphDef FieldSet FieldSet
-> (FieldSet -> FieldSet) -> CostGraphDef -> CostGraphDef
forall s t a b. Setter s t a b -> (a -> b) -> s -> t
Lens.Family2.over
                           forall msg. Message msg => Lens' msg FieldSet
Setter CostGraphDef CostGraphDef FieldSet FieldSet
Data.ProtoLens.unknownFields
                           (\ !FieldSet
t -> FieldSet -> FieldSet
forall a. [a] -> [a]
Prelude.reverse FieldSet
t)
                           (Setter
  CostGraphDef
  CostGraphDef
  (Vector CostGraphDef'AggregatedCost)
  (Vector CostGraphDef'AggregatedCost)
-> Vector CostGraphDef'AggregatedCost
-> CostGraphDef
-> CostGraphDef
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
                              (forall s a (f :: * -> *).
(HasField s "vec'cost" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"vec'cost")
                              Vector CostGraphDef'AggregatedCost
frozen'cost
                              (Setter
  CostGraphDef
  CostGraphDef
  (Vector CostGraphDef'Node)
  (Vector CostGraphDef'Node)
-> Vector CostGraphDef'Node -> CostGraphDef -> CostGraphDef
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
                                 (forall s a (f :: * -> *).
(HasField s "vec'node" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"vec'node") Vector CostGraphDef'Node
frozen'node CostGraphDef
x)))
               else
                   do Word64
tag <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                      case Word64
tag of
                        10
                          -> do !CostGraphDef'Node
y <- Parser CostGraphDef'Node -> String -> Parser CostGraphDef'Node
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                        (do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                                            Int -> Parser CostGraphDef'Node -> Parser CostGraphDef'Node
forall a. Int -> Parser a -> Parser a
Data.ProtoLens.Encoding.Bytes.isolate
                                              (Word64 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Word64
len)
                                              Parser CostGraphDef'Node
forall msg. Message msg => Parser msg
Data.ProtoLens.parseMessage)
                                        "node"
                                Growing Vector RealWorld CostGraphDef'Node
v <- IO (Growing Vector RealWorld CostGraphDef'Node)
-> Parser (Growing Vector RealWorld CostGraphDef'Node)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                       (Growing Vector (PrimState IO) CostGraphDef'Node
-> CostGraphDef'Node
-> IO (Growing Vector (PrimState IO) CostGraphDef'Node)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
Growing v (PrimState m) a -> a -> m (Growing v (PrimState m) a)
Data.ProtoLens.Encoding.Growing.append Growing Vector RealWorld CostGraphDef'Node
Growing Vector (PrimState IO) CostGraphDef'Node
mutable'node CostGraphDef'Node
y)
                                CostGraphDef
-> Growing Vector RealWorld CostGraphDef'AggregatedCost
-> Growing Vector RealWorld CostGraphDef'Node
-> Parser CostGraphDef
loop CostGraphDef
x Growing Vector RealWorld CostGraphDef'AggregatedCost
mutable'cost Growing Vector RealWorld CostGraphDef'Node
v
                        18
                          -> do !CostGraphDef'AggregatedCost
y <- Parser CostGraphDef'AggregatedCost
-> String -> Parser CostGraphDef'AggregatedCost
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                        (do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                                            Int
-> Parser CostGraphDef'AggregatedCost
-> Parser CostGraphDef'AggregatedCost
forall a. Int -> Parser a -> Parser a
Data.ProtoLens.Encoding.Bytes.isolate
                                              (Word64 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Word64
len)
                                              Parser CostGraphDef'AggregatedCost
forall msg. Message msg => Parser msg
Data.ProtoLens.parseMessage)
                                        "cost"
                                Growing Vector RealWorld CostGraphDef'AggregatedCost
v <- IO (Growing Vector RealWorld CostGraphDef'AggregatedCost)
-> Parser (Growing Vector RealWorld CostGraphDef'AggregatedCost)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                       (Growing Vector (PrimState IO) CostGraphDef'AggregatedCost
-> CostGraphDef'AggregatedCost
-> IO (Growing Vector (PrimState IO) CostGraphDef'AggregatedCost)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
Growing v (PrimState m) a -> a -> m (Growing v (PrimState m) a)
Data.ProtoLens.Encoding.Growing.append Growing Vector RealWorld CostGraphDef'AggregatedCost
Growing Vector (PrimState IO) CostGraphDef'AggregatedCost
mutable'cost CostGraphDef'AggregatedCost
y)
                                CostGraphDef
-> Growing Vector RealWorld CostGraphDef'AggregatedCost
-> Growing Vector RealWorld CostGraphDef'Node
-> Parser CostGraphDef
loop CostGraphDef
x Growing Vector RealWorld CostGraphDef'AggregatedCost
v Growing Vector RealWorld CostGraphDef'Node
mutable'node
                        wire :: Word64
wire
                          -> do !TaggedValue
y <- Word64 -> Parser TaggedValue
Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire
                                        Word64
wire
                                CostGraphDef
-> Growing Vector RealWorld CostGraphDef'AggregatedCost
-> Growing Vector RealWorld CostGraphDef'Node
-> Parser CostGraphDef
loop
                                  (Setter CostGraphDef CostGraphDef FieldSet FieldSet
-> (FieldSet -> FieldSet) -> CostGraphDef -> CostGraphDef
forall s t a b. Setter s t a b -> (a -> b) -> s -> t
Lens.Family2.over
                                     forall msg. Message msg => Lens' msg FieldSet
Setter CostGraphDef CostGraphDef FieldSet FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> (:) TaggedValue
y FieldSet
t) CostGraphDef
x)
                                  Growing Vector RealWorld CostGraphDef'AggregatedCost
mutable'cost
                                  Growing Vector RealWorld CostGraphDef'Node
mutable'node
      in
        Parser CostGraphDef -> String -> Parser CostGraphDef
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
          (do Growing Vector RealWorld CostGraphDef'AggregatedCost
mutable'cost <- IO (Growing Vector RealWorld CostGraphDef'AggregatedCost)
-> Parser (Growing Vector RealWorld CostGraphDef'AggregatedCost)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                IO (Growing Vector RealWorld CostGraphDef'AggregatedCost)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
m (Growing v (PrimState m) a)
Data.ProtoLens.Encoding.Growing.new
              Growing Vector RealWorld CostGraphDef'Node
mutable'node <- IO (Growing Vector RealWorld CostGraphDef'Node)
-> Parser (Growing Vector RealWorld CostGraphDef'Node)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                IO (Growing Vector RealWorld CostGraphDef'Node)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
m (Growing v (PrimState m) a)
Data.ProtoLens.Encoding.Growing.new
              CostGraphDef
-> Growing Vector RealWorld CostGraphDef'AggregatedCost
-> Growing Vector RealWorld CostGraphDef'Node
-> Parser CostGraphDef
loop CostGraphDef
forall msg. Message msg => msg
Data.ProtoLens.defMessage Growing Vector RealWorld CostGraphDef'AggregatedCost
mutable'cost Growing Vector RealWorld CostGraphDef'Node
mutable'node)
          "CostGraphDef"
  buildMessage :: CostGraphDef -> Builder
buildMessage
    = \ _x :: CostGraphDef
_x
        -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
             ((CostGraphDef'Node -> Builder)
-> Vector CostGraphDef'Node -> Builder
forall (v :: * -> *) a.
Vector v a =>
(a -> Builder) -> v a -> Builder
Data.ProtoLens.Encoding.Bytes.foldMapBuilder
                (\ _v :: CostGraphDef'Node
_v
                   -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                        (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 10)
                        ((ByteString -> Builder)
-> (CostGraphDef'Node -> ByteString)
-> CostGraphDef'Node
-> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                           (\ bs :: ByteString
bs
                              -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                   (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                      (Int -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral (ByteString -> Int
Data.ByteString.length ByteString
bs)))
                                   (ByteString -> Builder
Data.ProtoLens.Encoding.Bytes.putBytes ByteString
bs))
                           CostGraphDef'Node -> ByteString
forall msg. Message msg => msg -> ByteString
Data.ProtoLens.encodeMessage
                           CostGraphDef'Node
_v))
                (FoldLike
  (Vector CostGraphDef'Node)
  CostGraphDef
  CostGraphDef
  (Vector CostGraphDef'Node)
  (Vector CostGraphDef'Node)
-> CostGraphDef -> Vector CostGraphDef'Node
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "vec'node" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"vec'node") CostGraphDef
_x))
             (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                ((CostGraphDef'AggregatedCost -> Builder)
-> Vector CostGraphDef'AggregatedCost -> Builder
forall (v :: * -> *) a.
Vector v a =>
(a -> Builder) -> v a -> Builder
Data.ProtoLens.Encoding.Bytes.foldMapBuilder
                   (\ _v :: CostGraphDef'AggregatedCost
_v
                      -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                           (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 18)
                           ((ByteString -> Builder)
-> (CostGraphDef'AggregatedCost -> ByteString)
-> CostGraphDef'AggregatedCost
-> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                              (\ bs :: ByteString
bs
                                 -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                      (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                         (Int -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral (ByteString -> Int
Data.ByteString.length ByteString
bs)))
                                      (ByteString -> Builder
Data.ProtoLens.Encoding.Bytes.putBytes ByteString
bs))
                              CostGraphDef'AggregatedCost -> ByteString
forall msg. Message msg => msg -> ByteString
Data.ProtoLens.encodeMessage
                              CostGraphDef'AggregatedCost
_v))
                   (FoldLike
  (Vector CostGraphDef'AggregatedCost)
  CostGraphDef
  CostGraphDef
  (Vector CostGraphDef'AggregatedCost)
  (Vector CostGraphDef'AggregatedCost)
-> CostGraphDef -> Vector CostGraphDef'AggregatedCost
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "vec'cost" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"vec'cost") CostGraphDef
_x))
                (FieldSet -> Builder
Data.ProtoLens.Encoding.Wire.buildFieldSet
                   (FoldLike FieldSet CostGraphDef CostGraphDef FieldSet FieldSet
-> CostGraphDef -> FieldSet
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view FoldLike FieldSet CostGraphDef CostGraphDef FieldSet FieldSet
forall msg. Message msg => Lens' msg FieldSet
Data.ProtoLens.unknownFields CostGraphDef
_x)))
instance Control.DeepSeq.NFData CostGraphDef where
  rnf :: CostGraphDef -> ()
rnf
    = \ x__ :: CostGraphDef
x__
        -> FieldSet -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
             (CostGraphDef -> FieldSet
_CostGraphDef'_unknownFields CostGraphDef
x__)
             (Vector CostGraphDef'Node -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                (CostGraphDef -> Vector CostGraphDef'Node
_CostGraphDef'node CostGraphDef
x__)
                (Vector CostGraphDef'AggregatedCost -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq (CostGraphDef -> Vector CostGraphDef'AggregatedCost
_CostGraphDef'cost CostGraphDef
x__) ()))
{- | Fields :
     
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.cost' @:: Lens' CostGraphDef'AggregatedCost Prelude.Float@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.dimension' @:: Lens' CostGraphDef'AggregatedCost Data.Text.Text@ -}
data CostGraphDef'AggregatedCost
  = CostGraphDef'AggregatedCost'_constructor {CostGraphDef'AggregatedCost -> Float
_CostGraphDef'AggregatedCost'cost :: !Prelude.Float,
                                              CostGraphDef'AggregatedCost -> Text
_CostGraphDef'AggregatedCost'dimension :: !Data.Text.Text,
                                              CostGraphDef'AggregatedCost -> FieldSet
_CostGraphDef'AggregatedCost'_unknownFields :: !Data.ProtoLens.FieldSet}
  deriving stock (CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost -> Bool
(CostGraphDef'AggregatedCost
 -> CostGraphDef'AggregatedCost -> Bool)
-> (CostGraphDef'AggregatedCost
    -> CostGraphDef'AggregatedCost -> Bool)
-> Eq CostGraphDef'AggregatedCost
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost -> Bool
$c/= :: CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost -> Bool
== :: CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost -> Bool
$c== :: CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost -> Bool
Prelude.Eq, Eq CostGraphDef'AggregatedCost
Eq CostGraphDef'AggregatedCost =>
(CostGraphDef'AggregatedCost
 -> CostGraphDef'AggregatedCost -> Ordering)
-> (CostGraphDef'AggregatedCost
    -> CostGraphDef'AggregatedCost -> Bool)
-> (CostGraphDef'AggregatedCost
    -> CostGraphDef'AggregatedCost -> Bool)
-> (CostGraphDef'AggregatedCost
    -> CostGraphDef'AggregatedCost -> Bool)
-> (CostGraphDef'AggregatedCost
    -> CostGraphDef'AggregatedCost -> Bool)
-> (CostGraphDef'AggregatedCost
    -> CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost)
-> (CostGraphDef'AggregatedCost
    -> CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost)
-> Ord CostGraphDef'AggregatedCost
CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost -> Bool
CostGraphDef'AggregatedCost
-> CostGraphDef'AggregatedCost -> Ordering
CostGraphDef'AggregatedCost
-> CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost
forall a.
Eq a =>
(a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: CostGraphDef'AggregatedCost
-> CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost
$cmin :: CostGraphDef'AggregatedCost
-> CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost
max :: CostGraphDef'AggregatedCost
-> CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost
$cmax :: CostGraphDef'AggregatedCost
-> CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost
>= :: CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost -> Bool
$c>= :: CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost -> Bool
> :: CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost -> Bool
$c> :: CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost -> Bool
<= :: CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost -> Bool
$c<= :: CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost -> Bool
< :: CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost -> Bool
$c< :: CostGraphDef'AggregatedCost -> CostGraphDef'AggregatedCost -> Bool
compare :: CostGraphDef'AggregatedCost
-> CostGraphDef'AggregatedCost -> Ordering
$ccompare :: CostGraphDef'AggregatedCost
-> CostGraphDef'AggregatedCost -> Ordering
$cp1Ord :: Eq CostGraphDef'AggregatedCost
Prelude.Ord)
instance Prelude.Show CostGraphDef'AggregatedCost where
  showsPrec :: Int -> CostGraphDef'AggregatedCost -> ShowS
showsPrec _ __x :: CostGraphDef'AggregatedCost
__x __s :: String
__s
    = Char -> ShowS
Prelude.showChar
        '{'
        (String -> ShowS
Prelude.showString
           (CostGraphDef'AggregatedCost -> String
forall msg. Message msg => msg -> String
Data.ProtoLens.showMessageShort CostGraphDef'AggregatedCost
__x) (Char -> ShowS
Prelude.showChar '}' String
__s))
instance Data.ProtoLens.Field.HasField CostGraphDef'AggregatedCost "cost" Prelude.Float where
  fieldOf :: Proxy# "cost"
-> (Float -> f Float)
-> CostGraphDef'AggregatedCost
-> f CostGraphDef'AggregatedCost
fieldOf _
    = ((Float -> f Float)
 -> CostGraphDef'AggregatedCost -> f CostGraphDef'AggregatedCost)
-> ((Float -> f Float) -> Float -> f Float)
-> (Float -> f Float)
-> CostGraphDef'AggregatedCost
-> f CostGraphDef'AggregatedCost
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'AggregatedCost -> Float)
-> (CostGraphDef'AggregatedCost
    -> Float -> CostGraphDef'AggregatedCost)
-> Lens
     CostGraphDef'AggregatedCost CostGraphDef'AggregatedCost Float Float
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'AggregatedCost -> Float
_CostGraphDef'AggregatedCost'cost
           (\ x__ :: CostGraphDef'AggregatedCost
x__ y__ :: Float
y__ -> CostGraphDef'AggregatedCost
x__ {_CostGraphDef'AggregatedCost'cost :: Float
_CostGraphDef'AggregatedCost'cost = Float
y__}))
        (Float -> f Float) -> Float -> f Float
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'AggregatedCost "dimension" Data.Text.Text where
  fieldOf :: Proxy# "dimension"
-> (Text -> f Text)
-> CostGraphDef'AggregatedCost
-> f CostGraphDef'AggregatedCost
fieldOf _
    = ((Text -> f Text)
 -> CostGraphDef'AggregatedCost -> f CostGraphDef'AggregatedCost)
-> ((Text -> f Text) -> Text -> f Text)
-> (Text -> f Text)
-> CostGraphDef'AggregatedCost
-> f CostGraphDef'AggregatedCost
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'AggregatedCost -> Text)
-> (CostGraphDef'AggregatedCost
    -> Text -> CostGraphDef'AggregatedCost)
-> Lens
     CostGraphDef'AggregatedCost CostGraphDef'AggregatedCost Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'AggregatedCost -> Text
_CostGraphDef'AggregatedCost'dimension
           (\ x__ :: CostGraphDef'AggregatedCost
x__ y__ :: Text
y__ -> CostGraphDef'AggregatedCost
x__ {_CostGraphDef'AggregatedCost'dimension :: Text
_CostGraphDef'AggregatedCost'dimension = Text
y__}))
        (Text -> f Text) -> Text -> f Text
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Message CostGraphDef'AggregatedCost where
  messageName :: Proxy CostGraphDef'AggregatedCost -> Text
messageName _
    = String -> Text
Data.Text.pack "tensorflow.CostGraphDef.AggregatedCost"
  packedMessageDescriptor :: Proxy CostGraphDef'AggregatedCost -> ByteString
packedMessageDescriptor _
    = "\n\
      \\SOAggregatedCost\DC2\DC2\n\
      \\EOTcost\CAN\SOH \SOH(\STXR\EOTcost\DC2\FS\n\
      \\tdimension\CAN\STX \SOH(\tR\tdimension"
  packedFileDescriptor :: Proxy CostGraphDef'AggregatedCost -> ByteString
packedFileDescriptor _ = ByteString
packedFileDescriptor
  fieldsByTag :: Map Tag (FieldDescriptor CostGraphDef'AggregatedCost)
fieldsByTag
    = let
        cost__field_descriptor :: FieldDescriptor CostGraphDef'AggregatedCost
cost__field_descriptor
          = String
-> FieldTypeDescriptor Float
-> FieldAccessor CostGraphDef'AggregatedCost Float
-> FieldDescriptor CostGraphDef'AggregatedCost
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "cost"
              (ScalarField Float -> FieldTypeDescriptor Float
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Float
Data.ProtoLens.FloatField ::
                 Data.ProtoLens.FieldTypeDescriptor Prelude.Float)
              (WireDefault Float
-> Lens
     CostGraphDef'AggregatedCost CostGraphDef'AggregatedCost Float Float
-> FieldAccessor CostGraphDef'AggregatedCost Float
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Float
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional (forall s a (f :: * -> *).
(HasField s "cost" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"cost")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'AggregatedCost
        dimension__field_descriptor :: FieldDescriptor CostGraphDef'AggregatedCost
dimension__field_descriptor
          = String
-> FieldTypeDescriptor Text
-> FieldAccessor CostGraphDef'AggregatedCost Text
-> FieldDescriptor CostGraphDef'AggregatedCost
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "dimension"
              (ScalarField Text -> FieldTypeDescriptor Text
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Text
Data.ProtoLens.StringField ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
              (WireDefault Text
-> Lens
     CostGraphDef'AggregatedCost CostGraphDef'AggregatedCost Text Text
-> FieldAccessor CostGraphDef'AggregatedCost Text
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Text
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
                 (forall s a (f :: * -> *).
(HasField s "dimension" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"dimension")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'AggregatedCost
      in
        [(Tag, FieldDescriptor CostGraphDef'AggregatedCost)]
-> Map Tag (FieldDescriptor CostGraphDef'AggregatedCost)
forall k a. Ord k => [(k, a)] -> Map k a
Data.Map.fromList
          [(Int -> Tag
Data.ProtoLens.Tag 1, FieldDescriptor CostGraphDef'AggregatedCost
cost__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 2, FieldDescriptor CostGraphDef'AggregatedCost
dimension__field_descriptor)]
  unknownFields :: LensLike' f CostGraphDef'AggregatedCost FieldSet
unknownFields
    = (CostGraphDef'AggregatedCost -> FieldSet)
-> (CostGraphDef'AggregatedCost
    -> FieldSet -> CostGraphDef'AggregatedCost)
-> Lens' CostGraphDef'AggregatedCost FieldSet
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
        CostGraphDef'AggregatedCost -> FieldSet
_CostGraphDef'AggregatedCost'_unknownFields
        (\ x__ :: CostGraphDef'AggregatedCost
x__ y__ :: FieldSet
y__
           -> CostGraphDef'AggregatedCost
x__ {_CostGraphDef'AggregatedCost'_unknownFields :: FieldSet
_CostGraphDef'AggregatedCost'_unknownFields = FieldSet
y__})
  defMessage :: CostGraphDef'AggregatedCost
defMessage
    = $WCostGraphDef'AggregatedCost'_constructor :: Float -> Text -> FieldSet -> CostGraphDef'AggregatedCost
CostGraphDef'AggregatedCost'_constructor
        {_CostGraphDef'AggregatedCost'cost :: Float
_CostGraphDef'AggregatedCost'cost = Float
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'AggregatedCost'dimension :: Text
_CostGraphDef'AggregatedCost'dimension = Text
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'AggregatedCost'_unknownFields :: FieldSet
_CostGraphDef'AggregatedCost'_unknownFields = []}
  parseMessage :: Parser CostGraphDef'AggregatedCost
parseMessage
    = let
        loop ::
          CostGraphDef'AggregatedCost
          -> Data.ProtoLens.Encoding.Bytes.Parser CostGraphDef'AggregatedCost
        loop :: CostGraphDef'AggregatedCost -> Parser CostGraphDef'AggregatedCost
loop x :: CostGraphDef'AggregatedCost
x
          = do Bool
end <- Parser Bool
Data.ProtoLens.Encoding.Bytes.atEnd
               if Bool
end then
                   do (let missing :: [a]
missing = []
                       in
                         if [Any] -> Bool
forall (t :: * -> *) a. Foldable t => t a -> Bool
Prelude.null [Any]
forall a. [a]
missing then
                             () -> Parser ()
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return ()
                         else
                             String -> Parser ()
forall (m :: * -> *) a. MonadFail m => String -> m a
Prelude.fail
                               (String -> ShowS
forall a. [a] -> [a] -> [a]
(Prelude.++)
                                  "Missing required fields: "
                                  ([String] -> String
forall a. Show a => a -> String
Prelude.show ([String]
forall a. [a]
missing :: [Prelude.String]))))
                      CostGraphDef'AggregatedCost -> Parser CostGraphDef'AggregatedCost
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return
                        (Setter
  CostGraphDef'AggregatedCost
  CostGraphDef'AggregatedCost
  FieldSet
  FieldSet
-> (FieldSet -> FieldSet)
-> CostGraphDef'AggregatedCost
-> CostGraphDef'AggregatedCost
forall s t a b. Setter s t a b -> (a -> b) -> s -> t
Lens.Family2.over
                           forall msg. Message msg => Lens' msg FieldSet
Setter
  CostGraphDef'AggregatedCost
  CostGraphDef'AggregatedCost
  FieldSet
  FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> FieldSet -> FieldSet
forall a. [a] -> [a]
Prelude.reverse FieldSet
t) CostGraphDef'AggregatedCost
x)
               else
                   do Word64
tag <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                      case Word64
tag of
                        13
                          -> do Float
y <- Parser Float -> String -> Parser Float
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Word32 -> Float) -> Parser Word32 -> Parser Float
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          Word32 -> Float
Data.ProtoLens.Encoding.Bytes.wordToFloat
                                          Parser Word32
Data.ProtoLens.Encoding.Bytes.getFixed32)
                                       "cost"
                                CostGraphDef'AggregatedCost -> Parser CostGraphDef'AggregatedCost
loop (Setter
  CostGraphDef'AggregatedCost CostGraphDef'AggregatedCost Float Float
-> Float
-> CostGraphDef'AggregatedCost
-> CostGraphDef'AggregatedCost
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "cost" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"cost") Float
y CostGraphDef'AggregatedCost
x)
                        18
                          -> do Text
y <- Parser Text -> String -> Parser Text
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       (do ByteString
value <- do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                                                       Int -> Parser ByteString
Data.ProtoLens.Encoding.Bytes.getBytes
                                                         (Word64 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Word64
len)
                                           Either String Text -> Parser Text
forall a. Either String a -> Parser a
Data.ProtoLens.Encoding.Bytes.runEither
                                             (case ByteString -> Either UnicodeException Text
Data.Text.Encoding.decodeUtf8' ByteString
value of
                                                (Prelude.Left err :: UnicodeException
err)
                                                  -> String -> Either String Text
forall a b. a -> Either a b
Prelude.Left (UnicodeException -> String
forall a. Show a => a -> String
Prelude.show UnicodeException
err)
                                                (Prelude.Right r :: Text
r) -> Text -> Either String Text
forall a b. b -> Either a b
Prelude.Right Text
r))
                                       "dimension"
                                CostGraphDef'AggregatedCost -> Parser CostGraphDef'AggregatedCost
loop
                                  (Setter
  CostGraphDef'AggregatedCost CostGraphDef'AggregatedCost Text Text
-> Text
-> CostGraphDef'AggregatedCost
-> CostGraphDef'AggregatedCost
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "dimension" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"dimension") Text
y CostGraphDef'AggregatedCost
x)
                        wire :: Word64
wire
                          -> do !TaggedValue
y <- Word64 -> Parser TaggedValue
Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire
                                        Word64
wire
                                CostGraphDef'AggregatedCost -> Parser CostGraphDef'AggregatedCost
loop
                                  (Setter
  CostGraphDef'AggregatedCost
  CostGraphDef'AggregatedCost
  FieldSet
  FieldSet
-> (FieldSet -> FieldSet)
-> CostGraphDef'AggregatedCost
-> CostGraphDef'AggregatedCost
forall s t a b. Setter s t a b -> (a -> b) -> s -> t
Lens.Family2.over
                                     forall msg. Message msg => Lens' msg FieldSet
Setter
  CostGraphDef'AggregatedCost
  CostGraphDef'AggregatedCost
  FieldSet
  FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> (:) TaggedValue
y FieldSet
t) CostGraphDef'AggregatedCost
x)
      in
        Parser CostGraphDef'AggregatedCost
-> String -> Parser CostGraphDef'AggregatedCost
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
          (do CostGraphDef'AggregatedCost -> Parser CostGraphDef'AggregatedCost
loop CostGraphDef'AggregatedCost
forall msg. Message msg => msg
Data.ProtoLens.defMessage) "AggregatedCost"
  buildMessage :: CostGraphDef'AggregatedCost -> Builder
buildMessage
    = \ _x :: CostGraphDef'AggregatedCost
_x
        -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
             (let _v :: Float
_v = FoldLike
  Float
  CostGraphDef'AggregatedCost
  CostGraphDef'AggregatedCost
  Float
  Float
-> CostGraphDef'AggregatedCost -> Float
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "cost" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"cost") CostGraphDef'AggregatedCost
_x
              in
                if Float -> Float -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Float
_v Float
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                    Builder
forall a. Monoid a => a
Data.Monoid.mempty
                else
                    Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                      (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 13)
                      ((Word32 -> Builder) -> (Float -> Word32) -> Float -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                         Word32 -> Builder
Data.ProtoLens.Encoding.Bytes.putFixed32
                         Float -> Word32
Data.ProtoLens.Encoding.Bytes.floatToWord
                         Float
_v))
             (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                (let
                   _v :: Text
_v = FoldLike
  Text
  CostGraphDef'AggregatedCost
  CostGraphDef'AggregatedCost
  Text
  Text
-> CostGraphDef'AggregatedCost -> Text
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "dimension" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"dimension") CostGraphDef'AggregatedCost
_x
                 in
                   if Text -> Text -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Text
_v Text
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                       Builder
forall a. Monoid a => a
Data.Monoid.mempty
                   else
                       Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                         (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 18)
                         ((ByteString -> Builder) -> (Text -> ByteString) -> Text -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                            (\ bs :: ByteString
bs
                               -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                    (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                       (Int -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral (ByteString -> Int
Data.ByteString.length ByteString
bs)))
                                    (ByteString -> Builder
Data.ProtoLens.Encoding.Bytes.putBytes ByteString
bs))
                            Text -> ByteString
Data.Text.Encoding.encodeUtf8
                            Text
_v))
                (FieldSet -> Builder
Data.ProtoLens.Encoding.Wire.buildFieldSet
                   (FoldLike
  FieldSet
  CostGraphDef'AggregatedCost
  CostGraphDef'AggregatedCost
  FieldSet
  FieldSet
-> CostGraphDef'AggregatedCost -> FieldSet
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view FoldLike
  FieldSet
  CostGraphDef'AggregatedCost
  CostGraphDef'AggregatedCost
  FieldSet
  FieldSet
forall msg. Message msg => Lens' msg FieldSet
Data.ProtoLens.unknownFields CostGraphDef'AggregatedCost
_x)))
instance Control.DeepSeq.NFData CostGraphDef'AggregatedCost where
  rnf :: CostGraphDef'AggregatedCost -> ()
rnf
    = \ x__ :: CostGraphDef'AggregatedCost
x__
        -> FieldSet -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
             (CostGraphDef'AggregatedCost -> FieldSet
_CostGraphDef'AggregatedCost'_unknownFields CostGraphDef'AggregatedCost
x__)
             (Float -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                (CostGraphDef'AggregatedCost -> Float
_CostGraphDef'AggregatedCost'cost CostGraphDef'AggregatedCost
x__)
                (Text -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                   (CostGraphDef'AggregatedCost -> Text
_CostGraphDef'AggregatedCost'dimension CostGraphDef'AggregatedCost
x__) ()))
{- | Fields :
     
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.name' @:: Lens' CostGraphDef'Node Data.Text.Text@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.device' @:: Lens' CostGraphDef'Node Data.Text.Text@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.id' @:: Lens' CostGraphDef'Node Data.Int.Int32@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.inputInfo' @:: Lens' CostGraphDef'Node [CostGraphDef'Node'InputInfo]@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.vec'inputInfo' @:: Lens' CostGraphDef'Node (Data.Vector.Vector CostGraphDef'Node'InputInfo)@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.outputInfo' @:: Lens' CostGraphDef'Node [CostGraphDef'Node'OutputInfo]@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.vec'outputInfo' @:: Lens' CostGraphDef'Node (Data.Vector.Vector CostGraphDef'Node'OutputInfo)@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.temporaryMemorySize' @:: Lens' CostGraphDef'Node Data.Int.Int64@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.persistentMemorySize' @:: Lens' CostGraphDef'Node Data.Int.Int64@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.hostTempMemorySize' @:: Lens' CostGraphDef'Node Data.Int.Int64@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.deviceTempMemorySize' @:: Lens' CostGraphDef'Node Data.Int.Int64@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.devicePersistentMemorySize' @:: Lens' CostGraphDef'Node Data.Int.Int64@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.computeCost' @:: Lens' CostGraphDef'Node Data.Int.Int64@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.computeTime' @:: Lens' CostGraphDef'Node Data.Int.Int64@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.memoryTime' @:: Lens' CostGraphDef'Node Data.Int.Int64@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.isFinal' @:: Lens' CostGraphDef'Node Prelude.Bool@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.controlInput' @:: Lens' CostGraphDef'Node [Data.Int.Int32]@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.vec'controlInput' @:: Lens' CostGraphDef'Node (Data.Vector.Unboxed.Vector Data.Int.Int32)@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.inaccurate' @:: Lens' CostGraphDef'Node Prelude.Bool@ -}
data CostGraphDef'Node
  = CostGraphDef'Node'_constructor {CostGraphDef'Node -> Text
_CostGraphDef'Node'name :: !Data.Text.Text,
                                    CostGraphDef'Node -> Text
_CostGraphDef'Node'device :: !Data.Text.Text,
                                    CostGraphDef'Node -> Int32
_CostGraphDef'Node'id :: !Data.Int.Int32,
                                    CostGraphDef'Node -> Vector CostGraphDef'Node'InputInfo
_CostGraphDef'Node'inputInfo :: !(Data.Vector.Vector CostGraphDef'Node'InputInfo),
                                    CostGraphDef'Node -> Vector CostGraphDef'Node'OutputInfo
_CostGraphDef'Node'outputInfo :: !(Data.Vector.Vector CostGraphDef'Node'OutputInfo),
                                    CostGraphDef'Node -> Int64
_CostGraphDef'Node'temporaryMemorySize :: !Data.Int.Int64,
                                    CostGraphDef'Node -> Int64
_CostGraphDef'Node'persistentMemorySize :: !Data.Int.Int64,
                                    CostGraphDef'Node -> Int64
_CostGraphDef'Node'hostTempMemorySize :: !Data.Int.Int64,
                                    CostGraphDef'Node -> Int64
_CostGraphDef'Node'deviceTempMemorySize :: !Data.Int.Int64,
                                    CostGraphDef'Node -> Int64
_CostGraphDef'Node'devicePersistentMemorySize :: !Data.Int.Int64,
                                    CostGraphDef'Node -> Int64
_CostGraphDef'Node'computeCost :: !Data.Int.Int64,
                                    CostGraphDef'Node -> Int64
_CostGraphDef'Node'computeTime :: !Data.Int.Int64,
                                    CostGraphDef'Node -> Int64
_CostGraphDef'Node'memoryTime :: !Data.Int.Int64,
                                    CostGraphDef'Node -> Bool
_CostGraphDef'Node'isFinal :: !Prelude.Bool,
                                    CostGraphDef'Node -> Vector Int32
_CostGraphDef'Node'controlInput :: !(Data.Vector.Unboxed.Vector Data.Int.Int32),
                                    CostGraphDef'Node -> Bool
_CostGraphDef'Node'inaccurate :: !Prelude.Bool,
                                    CostGraphDef'Node -> FieldSet
_CostGraphDef'Node'_unknownFields :: !Data.ProtoLens.FieldSet}
  deriving stock (CostGraphDef'Node -> CostGraphDef'Node -> Bool
(CostGraphDef'Node -> CostGraphDef'Node -> Bool)
-> (CostGraphDef'Node -> CostGraphDef'Node -> Bool)
-> Eq CostGraphDef'Node
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CostGraphDef'Node -> CostGraphDef'Node -> Bool
$c/= :: CostGraphDef'Node -> CostGraphDef'Node -> Bool
== :: CostGraphDef'Node -> CostGraphDef'Node -> Bool
$c== :: CostGraphDef'Node -> CostGraphDef'Node -> Bool
Prelude.Eq, Eq CostGraphDef'Node
Eq CostGraphDef'Node =>
(CostGraphDef'Node -> CostGraphDef'Node -> Ordering)
-> (CostGraphDef'Node -> CostGraphDef'Node -> Bool)
-> (CostGraphDef'Node -> CostGraphDef'Node -> Bool)
-> (CostGraphDef'Node -> CostGraphDef'Node -> Bool)
-> (CostGraphDef'Node -> CostGraphDef'Node -> Bool)
-> (CostGraphDef'Node -> CostGraphDef'Node -> CostGraphDef'Node)
-> (CostGraphDef'Node -> CostGraphDef'Node -> CostGraphDef'Node)
-> Ord CostGraphDef'Node
CostGraphDef'Node -> CostGraphDef'Node -> Bool
CostGraphDef'Node -> CostGraphDef'Node -> Ordering
CostGraphDef'Node -> CostGraphDef'Node -> CostGraphDef'Node
forall a.
Eq a =>
(a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: CostGraphDef'Node -> CostGraphDef'Node -> CostGraphDef'Node
$cmin :: CostGraphDef'Node -> CostGraphDef'Node -> CostGraphDef'Node
max :: CostGraphDef'Node -> CostGraphDef'Node -> CostGraphDef'Node
$cmax :: CostGraphDef'Node -> CostGraphDef'Node -> CostGraphDef'Node
>= :: CostGraphDef'Node -> CostGraphDef'Node -> Bool
$c>= :: CostGraphDef'Node -> CostGraphDef'Node -> Bool
> :: CostGraphDef'Node -> CostGraphDef'Node -> Bool
$c> :: CostGraphDef'Node -> CostGraphDef'Node -> Bool
<= :: CostGraphDef'Node -> CostGraphDef'Node -> Bool
$c<= :: CostGraphDef'Node -> CostGraphDef'Node -> Bool
< :: CostGraphDef'Node -> CostGraphDef'Node -> Bool
$c< :: CostGraphDef'Node -> CostGraphDef'Node -> Bool
compare :: CostGraphDef'Node -> CostGraphDef'Node -> Ordering
$ccompare :: CostGraphDef'Node -> CostGraphDef'Node -> Ordering
$cp1Ord :: Eq CostGraphDef'Node
Prelude.Ord)
instance Prelude.Show CostGraphDef'Node where
  showsPrec :: Int -> CostGraphDef'Node -> ShowS
showsPrec _ __x :: CostGraphDef'Node
__x __s :: String
__s
    = Char -> ShowS
Prelude.showChar
        '{'
        (String -> ShowS
Prelude.showString
           (CostGraphDef'Node -> String
forall msg. Message msg => msg -> String
Data.ProtoLens.showMessageShort CostGraphDef'Node
__x) (Char -> ShowS
Prelude.showChar '}' String
__s))
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "name" Data.Text.Text where
  fieldOf :: Proxy# "name"
-> (Text -> f Text) -> CostGraphDef'Node -> f CostGraphDef'Node
fieldOf _
    = ((Text -> f Text) -> CostGraphDef'Node -> f CostGraphDef'Node)
-> ((Text -> f Text) -> Text -> f Text)
-> (Text -> f Text)
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Text)
-> (CostGraphDef'Node -> Text -> CostGraphDef'Node)
-> Lens CostGraphDef'Node CostGraphDef'Node Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Text
_CostGraphDef'Node'name
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Text
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'name :: Text
_CostGraphDef'Node'name = Text
y__}))
        (Text -> f Text) -> Text -> f Text
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "device" Data.Text.Text where
  fieldOf :: Proxy# "device"
-> (Text -> f Text) -> CostGraphDef'Node -> f CostGraphDef'Node
fieldOf _
    = ((Text -> f Text) -> CostGraphDef'Node -> f CostGraphDef'Node)
-> ((Text -> f Text) -> Text -> f Text)
-> (Text -> f Text)
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Text)
-> (CostGraphDef'Node -> Text -> CostGraphDef'Node)
-> Lens CostGraphDef'Node CostGraphDef'Node Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Text
_CostGraphDef'Node'device
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Text
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'device :: Text
_CostGraphDef'Node'device = Text
y__}))
        (Text -> f Text) -> Text -> f Text
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "id" Data.Int.Int32 where
  fieldOf :: Proxy# "id"
-> (Int32 -> f Int32) -> CostGraphDef'Node -> f CostGraphDef'Node
fieldOf _
    = ((Int32 -> f Int32) -> CostGraphDef'Node -> f CostGraphDef'Node)
-> ((Int32 -> f Int32) -> Int32 -> f Int32)
-> (Int32 -> f Int32)
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Int32)
-> (CostGraphDef'Node -> Int32 -> CostGraphDef'Node)
-> Lens CostGraphDef'Node CostGraphDef'Node Int32 Int32
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Int32
_CostGraphDef'Node'id
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Int32
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'id :: Int32
_CostGraphDef'Node'id = Int32
y__}))
        (Int32 -> f Int32) -> Int32 -> f Int32
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "inputInfo" [CostGraphDef'Node'InputInfo] where
  fieldOf :: Proxy# "inputInfo"
-> ([CostGraphDef'Node'InputInfo]
    -> f [CostGraphDef'Node'InputInfo])
-> CostGraphDef'Node
-> f CostGraphDef'Node
fieldOf _
    = ((Vector CostGraphDef'Node'InputInfo
  -> f (Vector CostGraphDef'Node'InputInfo))
 -> CostGraphDef'Node -> f CostGraphDef'Node)
-> (([CostGraphDef'Node'InputInfo]
     -> f [CostGraphDef'Node'InputInfo])
    -> Vector CostGraphDef'Node'InputInfo
    -> f (Vector CostGraphDef'Node'InputInfo))
-> ([CostGraphDef'Node'InputInfo]
    -> f [CostGraphDef'Node'InputInfo])
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Vector CostGraphDef'Node'InputInfo)
-> (CostGraphDef'Node
    -> Vector CostGraphDef'Node'InputInfo -> CostGraphDef'Node)
-> Lens
     CostGraphDef'Node
     CostGraphDef'Node
     (Vector CostGraphDef'Node'InputInfo)
     (Vector CostGraphDef'Node'InputInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Vector CostGraphDef'Node'InputInfo
_CostGraphDef'Node'inputInfo
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Vector CostGraphDef'Node'InputInfo
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'inputInfo :: Vector CostGraphDef'Node'InputInfo
_CostGraphDef'Node'inputInfo = Vector CostGraphDef'Node'InputInfo
y__}))
        ((Vector CostGraphDef'Node'InputInfo
 -> [CostGraphDef'Node'InputInfo])
-> (Vector CostGraphDef'Node'InputInfo
    -> [CostGraphDef'Node'InputInfo]
    -> Vector CostGraphDef'Node'InputInfo)
-> Lens
     (Vector CostGraphDef'Node'InputInfo)
     (Vector CostGraphDef'Node'InputInfo)
     [CostGraphDef'Node'InputInfo]
     [CostGraphDef'Node'InputInfo]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           Vector CostGraphDef'Node'InputInfo -> [CostGraphDef'Node'InputInfo]
forall (v :: * -> *) a. Vector v a => v a -> [a]
Data.Vector.Generic.toList
           (\ _ y__ :: [CostGraphDef'Node'InputInfo]
y__ -> [CostGraphDef'Node'InputInfo] -> Vector CostGraphDef'Node'InputInfo
forall (v :: * -> *) a. Vector v a => [a] -> v a
Data.Vector.Generic.fromList [CostGraphDef'Node'InputInfo]
y__))
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "vec'inputInfo" (Data.Vector.Vector CostGraphDef'Node'InputInfo) where
  fieldOf :: Proxy# "vec'inputInfo"
-> (Vector CostGraphDef'Node'InputInfo
    -> f (Vector CostGraphDef'Node'InputInfo))
-> CostGraphDef'Node
-> f CostGraphDef'Node
fieldOf _
    = ((Vector CostGraphDef'Node'InputInfo
  -> f (Vector CostGraphDef'Node'InputInfo))
 -> CostGraphDef'Node -> f CostGraphDef'Node)
-> ((Vector CostGraphDef'Node'InputInfo
     -> f (Vector CostGraphDef'Node'InputInfo))
    -> Vector CostGraphDef'Node'InputInfo
    -> f (Vector CostGraphDef'Node'InputInfo))
-> (Vector CostGraphDef'Node'InputInfo
    -> f (Vector CostGraphDef'Node'InputInfo))
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Vector CostGraphDef'Node'InputInfo)
-> (CostGraphDef'Node
    -> Vector CostGraphDef'Node'InputInfo -> CostGraphDef'Node)
-> Lens
     CostGraphDef'Node
     CostGraphDef'Node
     (Vector CostGraphDef'Node'InputInfo)
     (Vector CostGraphDef'Node'InputInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Vector CostGraphDef'Node'InputInfo
_CostGraphDef'Node'inputInfo
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Vector CostGraphDef'Node'InputInfo
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'inputInfo :: Vector CostGraphDef'Node'InputInfo
_CostGraphDef'Node'inputInfo = Vector CostGraphDef'Node'InputInfo
y__}))
        (Vector CostGraphDef'Node'InputInfo
 -> f (Vector CostGraphDef'Node'InputInfo))
-> Vector CostGraphDef'Node'InputInfo
-> f (Vector CostGraphDef'Node'InputInfo)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "outputInfo" [CostGraphDef'Node'OutputInfo] where
  fieldOf :: Proxy# "outputInfo"
-> ([CostGraphDef'Node'OutputInfo]
    -> f [CostGraphDef'Node'OutputInfo])
-> CostGraphDef'Node
-> f CostGraphDef'Node
fieldOf _
    = ((Vector CostGraphDef'Node'OutputInfo
  -> f (Vector CostGraphDef'Node'OutputInfo))
 -> CostGraphDef'Node -> f CostGraphDef'Node)
-> (([CostGraphDef'Node'OutputInfo]
     -> f [CostGraphDef'Node'OutputInfo])
    -> Vector CostGraphDef'Node'OutputInfo
    -> f (Vector CostGraphDef'Node'OutputInfo))
-> ([CostGraphDef'Node'OutputInfo]
    -> f [CostGraphDef'Node'OutputInfo])
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Vector CostGraphDef'Node'OutputInfo)
-> (CostGraphDef'Node
    -> Vector CostGraphDef'Node'OutputInfo -> CostGraphDef'Node)
-> Lens
     CostGraphDef'Node
     CostGraphDef'Node
     (Vector CostGraphDef'Node'OutputInfo)
     (Vector CostGraphDef'Node'OutputInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Vector CostGraphDef'Node'OutputInfo
_CostGraphDef'Node'outputInfo
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Vector CostGraphDef'Node'OutputInfo
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'outputInfo :: Vector CostGraphDef'Node'OutputInfo
_CostGraphDef'Node'outputInfo = Vector CostGraphDef'Node'OutputInfo
y__}))
        ((Vector CostGraphDef'Node'OutputInfo
 -> [CostGraphDef'Node'OutputInfo])
-> (Vector CostGraphDef'Node'OutputInfo
    -> [CostGraphDef'Node'OutputInfo]
    -> Vector CostGraphDef'Node'OutputInfo)
-> Lens
     (Vector CostGraphDef'Node'OutputInfo)
     (Vector CostGraphDef'Node'OutputInfo)
     [CostGraphDef'Node'OutputInfo]
     [CostGraphDef'Node'OutputInfo]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           Vector CostGraphDef'Node'OutputInfo
-> [CostGraphDef'Node'OutputInfo]
forall (v :: * -> *) a. Vector v a => v a -> [a]
Data.Vector.Generic.toList
           (\ _ y__ :: [CostGraphDef'Node'OutputInfo]
y__ -> [CostGraphDef'Node'OutputInfo]
-> Vector CostGraphDef'Node'OutputInfo
forall (v :: * -> *) a. Vector v a => [a] -> v a
Data.Vector.Generic.fromList [CostGraphDef'Node'OutputInfo]
y__))
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "vec'outputInfo" (Data.Vector.Vector CostGraphDef'Node'OutputInfo) where
  fieldOf :: Proxy# "vec'outputInfo"
-> (Vector CostGraphDef'Node'OutputInfo
    -> f (Vector CostGraphDef'Node'OutputInfo))
-> CostGraphDef'Node
-> f CostGraphDef'Node
fieldOf _
    = ((Vector CostGraphDef'Node'OutputInfo
  -> f (Vector CostGraphDef'Node'OutputInfo))
 -> CostGraphDef'Node -> f CostGraphDef'Node)
-> ((Vector CostGraphDef'Node'OutputInfo
     -> f (Vector CostGraphDef'Node'OutputInfo))
    -> Vector CostGraphDef'Node'OutputInfo
    -> f (Vector CostGraphDef'Node'OutputInfo))
-> (Vector CostGraphDef'Node'OutputInfo
    -> f (Vector CostGraphDef'Node'OutputInfo))
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Vector CostGraphDef'Node'OutputInfo)
-> (CostGraphDef'Node
    -> Vector CostGraphDef'Node'OutputInfo -> CostGraphDef'Node)
-> Lens
     CostGraphDef'Node
     CostGraphDef'Node
     (Vector CostGraphDef'Node'OutputInfo)
     (Vector CostGraphDef'Node'OutputInfo)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Vector CostGraphDef'Node'OutputInfo
_CostGraphDef'Node'outputInfo
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Vector CostGraphDef'Node'OutputInfo
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'outputInfo :: Vector CostGraphDef'Node'OutputInfo
_CostGraphDef'Node'outputInfo = Vector CostGraphDef'Node'OutputInfo
y__}))
        (Vector CostGraphDef'Node'OutputInfo
 -> f (Vector CostGraphDef'Node'OutputInfo))
-> Vector CostGraphDef'Node'OutputInfo
-> f (Vector CostGraphDef'Node'OutputInfo)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "temporaryMemorySize" Data.Int.Int64 where
  fieldOf :: Proxy# "temporaryMemorySize"
-> (Int64 -> f Int64) -> CostGraphDef'Node -> f CostGraphDef'Node
fieldOf _
    = ((Int64 -> f Int64) -> CostGraphDef'Node -> f CostGraphDef'Node)
-> ((Int64 -> f Int64) -> Int64 -> f Int64)
-> (Int64 -> f Int64)
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Int64)
-> (CostGraphDef'Node -> Int64 -> CostGraphDef'Node)
-> Lens CostGraphDef'Node CostGraphDef'Node Int64 Int64
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Int64
_CostGraphDef'Node'temporaryMemorySize
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Int64
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'temporaryMemorySize :: Int64
_CostGraphDef'Node'temporaryMemorySize = Int64
y__}))
        (Int64 -> f Int64) -> Int64 -> f Int64
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "persistentMemorySize" Data.Int.Int64 where
  fieldOf :: Proxy# "persistentMemorySize"
-> (Int64 -> f Int64) -> CostGraphDef'Node -> f CostGraphDef'Node
fieldOf _
    = ((Int64 -> f Int64) -> CostGraphDef'Node -> f CostGraphDef'Node)
-> ((Int64 -> f Int64) -> Int64 -> f Int64)
-> (Int64 -> f Int64)
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Int64)
-> (CostGraphDef'Node -> Int64 -> CostGraphDef'Node)
-> Lens CostGraphDef'Node CostGraphDef'Node Int64 Int64
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Int64
_CostGraphDef'Node'persistentMemorySize
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Int64
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'persistentMemorySize :: Int64
_CostGraphDef'Node'persistentMemorySize = Int64
y__}))
        (Int64 -> f Int64) -> Int64 -> f Int64
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "hostTempMemorySize" Data.Int.Int64 where
  fieldOf :: Proxy# "hostTempMemorySize"
-> (Int64 -> f Int64) -> CostGraphDef'Node -> f CostGraphDef'Node
fieldOf _
    = ((Int64 -> f Int64) -> CostGraphDef'Node -> f CostGraphDef'Node)
-> ((Int64 -> f Int64) -> Int64 -> f Int64)
-> (Int64 -> f Int64)
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Int64)
-> (CostGraphDef'Node -> Int64 -> CostGraphDef'Node)
-> Lens CostGraphDef'Node CostGraphDef'Node Int64 Int64
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Int64
_CostGraphDef'Node'hostTempMemorySize
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Int64
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'hostTempMemorySize :: Int64
_CostGraphDef'Node'hostTempMemorySize = Int64
y__}))
        (Int64 -> f Int64) -> Int64 -> f Int64
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "deviceTempMemorySize" Data.Int.Int64 where
  fieldOf :: Proxy# "deviceTempMemorySize"
-> (Int64 -> f Int64) -> CostGraphDef'Node -> f CostGraphDef'Node
fieldOf _
    = ((Int64 -> f Int64) -> CostGraphDef'Node -> f CostGraphDef'Node)
-> ((Int64 -> f Int64) -> Int64 -> f Int64)
-> (Int64 -> f Int64)
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Int64)
-> (CostGraphDef'Node -> Int64 -> CostGraphDef'Node)
-> Lens CostGraphDef'Node CostGraphDef'Node Int64 Int64
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Int64
_CostGraphDef'Node'deviceTempMemorySize
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Int64
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'deviceTempMemorySize :: Int64
_CostGraphDef'Node'deviceTempMemorySize = Int64
y__}))
        (Int64 -> f Int64) -> Int64 -> f Int64
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "devicePersistentMemorySize" Data.Int.Int64 where
  fieldOf :: Proxy# "devicePersistentMemorySize"
-> (Int64 -> f Int64) -> CostGraphDef'Node -> f CostGraphDef'Node
fieldOf _
    = ((Int64 -> f Int64) -> CostGraphDef'Node -> f CostGraphDef'Node)
-> ((Int64 -> f Int64) -> Int64 -> f Int64)
-> (Int64 -> f Int64)
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Int64)
-> (CostGraphDef'Node -> Int64 -> CostGraphDef'Node)
-> Lens CostGraphDef'Node CostGraphDef'Node Int64 Int64
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Int64
_CostGraphDef'Node'devicePersistentMemorySize
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Int64
y__
              -> CostGraphDef'Node
x__ {_CostGraphDef'Node'devicePersistentMemorySize :: Int64
_CostGraphDef'Node'devicePersistentMemorySize = Int64
y__}))
        (Int64 -> f Int64) -> Int64 -> f Int64
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "computeCost" Data.Int.Int64 where
  fieldOf :: Proxy# "computeCost"
-> (Int64 -> f Int64) -> CostGraphDef'Node -> f CostGraphDef'Node
fieldOf _
    = ((Int64 -> f Int64) -> CostGraphDef'Node -> f CostGraphDef'Node)
-> ((Int64 -> f Int64) -> Int64 -> f Int64)
-> (Int64 -> f Int64)
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Int64)
-> (CostGraphDef'Node -> Int64 -> CostGraphDef'Node)
-> Lens CostGraphDef'Node CostGraphDef'Node Int64 Int64
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Int64
_CostGraphDef'Node'computeCost
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Int64
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'computeCost :: Int64
_CostGraphDef'Node'computeCost = Int64
y__}))
        (Int64 -> f Int64) -> Int64 -> f Int64
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "computeTime" Data.Int.Int64 where
  fieldOf :: Proxy# "computeTime"
-> (Int64 -> f Int64) -> CostGraphDef'Node -> f CostGraphDef'Node
fieldOf _
    = ((Int64 -> f Int64) -> CostGraphDef'Node -> f CostGraphDef'Node)
-> ((Int64 -> f Int64) -> Int64 -> f Int64)
-> (Int64 -> f Int64)
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Int64)
-> (CostGraphDef'Node -> Int64 -> CostGraphDef'Node)
-> Lens CostGraphDef'Node CostGraphDef'Node Int64 Int64
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Int64
_CostGraphDef'Node'computeTime
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Int64
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'computeTime :: Int64
_CostGraphDef'Node'computeTime = Int64
y__}))
        (Int64 -> f Int64) -> Int64 -> f Int64
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "memoryTime" Data.Int.Int64 where
  fieldOf :: Proxy# "memoryTime"
-> (Int64 -> f Int64) -> CostGraphDef'Node -> f CostGraphDef'Node
fieldOf _
    = ((Int64 -> f Int64) -> CostGraphDef'Node -> f CostGraphDef'Node)
-> ((Int64 -> f Int64) -> Int64 -> f Int64)
-> (Int64 -> f Int64)
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Int64)
-> (CostGraphDef'Node -> Int64 -> CostGraphDef'Node)
-> Lens CostGraphDef'Node CostGraphDef'Node Int64 Int64
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Int64
_CostGraphDef'Node'memoryTime
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Int64
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'memoryTime :: Int64
_CostGraphDef'Node'memoryTime = Int64
y__}))
        (Int64 -> f Int64) -> Int64 -> f Int64
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "isFinal" Prelude.Bool where
  fieldOf :: Proxy# "isFinal"
-> (Bool -> f Bool) -> CostGraphDef'Node -> f CostGraphDef'Node
fieldOf _
    = ((Bool -> f Bool) -> CostGraphDef'Node -> f CostGraphDef'Node)
-> ((Bool -> f Bool) -> Bool -> f Bool)
-> (Bool -> f Bool)
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Bool)
-> (CostGraphDef'Node -> Bool -> CostGraphDef'Node)
-> Lens CostGraphDef'Node CostGraphDef'Node Bool Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Bool
_CostGraphDef'Node'isFinal
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Bool
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'isFinal :: Bool
_CostGraphDef'Node'isFinal = Bool
y__}))
        (Bool -> f Bool) -> Bool -> f Bool
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "controlInput" [Data.Int.Int32] where
  fieldOf :: Proxy# "controlInput"
-> ([Int32] -> f [Int32])
-> CostGraphDef'Node
-> f CostGraphDef'Node
fieldOf _
    = ((Vector Int32 -> f (Vector Int32))
 -> CostGraphDef'Node -> f CostGraphDef'Node)
-> (([Int32] -> f [Int32]) -> Vector Int32 -> f (Vector Int32))
-> ([Int32] -> f [Int32])
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Vector Int32)
-> (CostGraphDef'Node -> Vector Int32 -> CostGraphDef'Node)
-> Lens
     CostGraphDef'Node CostGraphDef'Node (Vector Int32) (Vector Int32)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Vector Int32
_CostGraphDef'Node'controlInput
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Vector Int32
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'controlInput :: Vector Int32
_CostGraphDef'Node'controlInput = Vector Int32
y__}))
        ((Vector Int32 -> [Int32])
-> (Vector Int32 -> [Int32] -> Vector Int32)
-> Lens (Vector Int32) (Vector Int32) [Int32] [Int32]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           Vector Int32 -> [Int32]
forall (v :: * -> *) a. Vector v a => v a -> [a]
Data.Vector.Generic.toList
           (\ _ y__ :: [Int32]
y__ -> [Int32] -> Vector Int32
forall (v :: * -> *) a. Vector v a => [a] -> v a
Data.Vector.Generic.fromList [Int32]
y__))
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "vec'controlInput" (Data.Vector.Unboxed.Vector Data.Int.Int32) where
  fieldOf :: Proxy# "vec'controlInput"
-> (Vector Int32 -> f (Vector Int32))
-> CostGraphDef'Node
-> f CostGraphDef'Node
fieldOf _
    = ((Vector Int32 -> f (Vector Int32))
 -> CostGraphDef'Node -> f CostGraphDef'Node)
-> ((Vector Int32 -> f (Vector Int32))
    -> Vector Int32 -> f (Vector Int32))
-> (Vector Int32 -> f (Vector Int32))
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Vector Int32)
-> (CostGraphDef'Node -> Vector Int32 -> CostGraphDef'Node)
-> Lens
     CostGraphDef'Node CostGraphDef'Node (Vector Int32) (Vector Int32)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Vector Int32
_CostGraphDef'Node'controlInput
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Vector Int32
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'controlInput :: Vector Int32
_CostGraphDef'Node'controlInput = Vector Int32
y__}))
        (Vector Int32 -> f (Vector Int32))
-> Vector Int32 -> f (Vector Int32)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node "inaccurate" Prelude.Bool where
  fieldOf :: Proxy# "inaccurate"
-> (Bool -> f Bool) -> CostGraphDef'Node -> f CostGraphDef'Node
fieldOf _
    = ((Bool -> f Bool) -> CostGraphDef'Node -> f CostGraphDef'Node)
-> ((Bool -> f Bool) -> Bool -> f Bool)
-> (Bool -> f Bool)
-> CostGraphDef'Node
-> f CostGraphDef'Node
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node -> Bool)
-> (CostGraphDef'Node -> Bool -> CostGraphDef'Node)
-> Lens CostGraphDef'Node CostGraphDef'Node Bool Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node -> Bool
_CostGraphDef'Node'inaccurate
           (\ x__ :: CostGraphDef'Node
x__ y__ :: Bool
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'inaccurate :: Bool
_CostGraphDef'Node'inaccurate = Bool
y__}))
        (Bool -> f Bool) -> Bool -> f Bool
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Message CostGraphDef'Node where
  messageName :: Proxy CostGraphDef'Node -> Text
messageName _ = String -> Text
Data.Text.pack "tensorflow.CostGraphDef.Node"
  packedMessageDescriptor :: Proxy CostGraphDef'Node -> ByteString
packedMessageDescriptor _
    = "\n\
      \\EOTNode\DC2\DC2\n\
      \\EOTname\CAN\SOH \SOH(\tR\EOTname\DC2\SYN\n\
      \\ACKdevice\CAN\STX \SOH(\tR\ACKdevice\DC2\SO\n\
      \\STXid\CAN\ETX \SOH(\ENQR\STXid\DC2F\n\
      \\n\
      \input_info\CAN\EOT \ETX(\v2'.tensorflow.CostGraphDef.Node.InputInfoR\tinputInfo\DC2I\n\
      \\voutput_info\CAN\ENQ \ETX(\v2(.tensorflow.CostGraphDef.Node.OutputInfoR\n\
      \outputInfo\DC22\n\
      \\NAKtemporary_memory_size\CAN\ACK \SOH(\ETXR\DC3temporaryMemorySize\DC24\n\
      \\SYNpersistent_memory_size\CAN\f \SOH(\ETXR\DC4persistentMemorySize\DC25\n\
      \\NAKhost_temp_memory_size\CAN\n\
      \ \SOH(\ETXR\DC2hostTempMemorySizeB\STX\CAN\SOH\DC29\n\
      \\ETBdevice_temp_memory_size\CAN\v \SOH(\ETXR\DC4deviceTempMemorySizeB\STX\CAN\SOH\DC2E\n\
      \\GSdevice_persistent_memory_size\CAN\DLE \SOH(\ETXR\SUBdevicePersistentMemorySizeB\STX\CAN\SOH\DC2!\n\
      \\fcompute_cost\CAN\t \SOH(\ETXR\vcomputeCost\DC2!\n\
      \\fcompute_time\CAN\SO \SOH(\ETXR\vcomputeTime\DC2\US\n\
      \\vmemory_time\CAN\SI \SOH(\ETXR\n\
      \memoryTime\DC2\EM\n\
      \\bis_final\CAN\a \SOH(\bR\aisFinal\DC2#\n\
      \\rcontrol_input\CAN\b \ETX(\ENQR\fcontrolInput\DC2\RS\n\
      \\n\
      \inaccurate\CAN\DC1 \SOH(\bR\n\
      \inaccurate\SUBY\n\
      \\tInputInfo\DC2%\n\
      \\SOpreceding_node\CAN\SOH \SOH(\ENQR\rprecedingNode\DC2%\n\
      \\SOpreceding_port\CAN\STX \SOH(\ENQR\rprecedingPort\SUB\170\SOH\n\
      \\n\
      \OutputInfo\DC2\DC2\n\
      \\EOTsize\CAN\SOH \SOH(\ETXR\EOTsize\DC2(\n\
      \\DLEalias_input_port\CAN\STX \SOH(\ETXR\SOaliasInputPort\DC22\n\
      \\ENQshape\CAN\ETX \SOH(\v2\FS.tensorflow.TensorShapeProtoR\ENQshape\DC2*\n\
      \\ENQdtype\CAN\EOT \SOH(\SO2\DC4.tensorflow.DataTypeR\ENQdtype"
  packedFileDescriptor :: Proxy CostGraphDef'Node -> ByteString
packedFileDescriptor _ = ByteString
packedFileDescriptor
  fieldsByTag :: Map Tag (FieldDescriptor CostGraphDef'Node)
fieldsByTag
    = let
        name__field_descriptor :: FieldDescriptor CostGraphDef'Node
name__field_descriptor
          = String
-> FieldTypeDescriptor Text
-> FieldAccessor CostGraphDef'Node Text
-> FieldDescriptor CostGraphDef'Node
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "name"
              (ScalarField Text -> FieldTypeDescriptor Text
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Text
Data.ProtoLens.StringField ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
              (WireDefault Text
-> Lens CostGraphDef'Node CostGraphDef'Node Text Text
-> FieldAccessor CostGraphDef'Node Text
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Text
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional (forall s a (f :: * -> *).
(HasField s "name" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"name")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node
        device__field_descriptor :: FieldDescriptor CostGraphDef'Node
device__field_descriptor
          = String
-> FieldTypeDescriptor Text
-> FieldAccessor CostGraphDef'Node Text
-> FieldDescriptor CostGraphDef'Node
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "device"
              (ScalarField Text -> FieldTypeDescriptor Text
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Text
Data.ProtoLens.StringField ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
              (WireDefault Text
-> Lens CostGraphDef'Node CostGraphDef'Node Text Text
-> FieldAccessor CostGraphDef'Node Text
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Text
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional (forall s a (f :: * -> *).
(HasField s "device" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"device")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node
        id__field_descriptor :: FieldDescriptor CostGraphDef'Node
id__field_descriptor
          = String
-> FieldTypeDescriptor Int32
-> FieldAccessor CostGraphDef'Node Int32
-> FieldDescriptor CostGraphDef'Node
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "id"
              (ScalarField Int32 -> FieldTypeDescriptor Int32
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Int32
Data.ProtoLens.Int32Field ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)
              (WireDefault Int32
-> Lens CostGraphDef'Node CostGraphDef'Node Int32 Int32
-> FieldAccessor CostGraphDef'Node Int32
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Int32
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional (forall s a (f :: * -> *).
(HasField s "id" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"id")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node
        inputInfo__field_descriptor :: FieldDescriptor CostGraphDef'Node
inputInfo__field_descriptor
          = String
-> FieldTypeDescriptor CostGraphDef'Node'InputInfo
-> FieldAccessor CostGraphDef'Node CostGraphDef'Node'InputInfo
-> FieldDescriptor CostGraphDef'Node
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "input_info"
              (MessageOrGroup -> FieldTypeDescriptor CostGraphDef'Node'InputInfo
forall value.
Message value =>
MessageOrGroup -> FieldTypeDescriptor value
Data.ProtoLens.MessageField MessageOrGroup
Data.ProtoLens.MessageType ::
                 Data.ProtoLens.FieldTypeDescriptor CostGraphDef'Node'InputInfo)
              (Packing
-> Lens' CostGraphDef'Node [CostGraphDef'Node'InputInfo]
-> FieldAccessor CostGraphDef'Node CostGraphDef'Node'InputInfo
forall msg value.
Packing -> Lens' msg [value] -> FieldAccessor msg value
Data.ProtoLens.RepeatedField
                 Packing
Data.ProtoLens.Unpacked
                 (forall s a (f :: * -> *).
(HasField s "inputInfo" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"inputInfo")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node
        outputInfo__field_descriptor :: FieldDescriptor CostGraphDef'Node
outputInfo__field_descriptor
          = String
-> FieldTypeDescriptor CostGraphDef'Node'OutputInfo
-> FieldAccessor CostGraphDef'Node CostGraphDef'Node'OutputInfo
-> FieldDescriptor CostGraphDef'Node
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "output_info"
              (MessageOrGroup -> FieldTypeDescriptor CostGraphDef'Node'OutputInfo
forall value.
Message value =>
MessageOrGroup -> FieldTypeDescriptor value
Data.ProtoLens.MessageField MessageOrGroup
Data.ProtoLens.MessageType ::
                 Data.ProtoLens.FieldTypeDescriptor CostGraphDef'Node'OutputInfo)
              (Packing
-> Lens' CostGraphDef'Node [CostGraphDef'Node'OutputInfo]
-> FieldAccessor CostGraphDef'Node CostGraphDef'Node'OutputInfo
forall msg value.
Packing -> Lens' msg [value] -> FieldAccessor msg value
Data.ProtoLens.RepeatedField
                 Packing
Data.ProtoLens.Unpacked
                 (forall s a (f :: * -> *).
(HasField s "outputInfo" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"outputInfo")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node
        temporaryMemorySize__field_descriptor :: FieldDescriptor CostGraphDef'Node
temporaryMemorySize__field_descriptor
          = String
-> FieldTypeDescriptor Int64
-> FieldAccessor CostGraphDef'Node Int64
-> FieldDescriptor CostGraphDef'Node
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "temporary_memory_size"
              (ScalarField Int64 -> FieldTypeDescriptor Int64
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Int64
Data.ProtoLens.Int64Field ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)
              (WireDefault Int64
-> Lens CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> FieldAccessor CostGraphDef'Node Int64
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Int64
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
                 (forall s a (f :: * -> *).
(HasField s "temporaryMemorySize" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"temporaryMemorySize")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node
        persistentMemorySize__field_descriptor :: FieldDescriptor CostGraphDef'Node
persistentMemorySize__field_descriptor
          = String
-> FieldTypeDescriptor Int64
-> FieldAccessor CostGraphDef'Node Int64
-> FieldDescriptor CostGraphDef'Node
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "persistent_memory_size"
              (ScalarField Int64 -> FieldTypeDescriptor Int64
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Int64
Data.ProtoLens.Int64Field ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)
              (WireDefault Int64
-> Lens CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> FieldAccessor CostGraphDef'Node Int64
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Int64
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
                 (forall s a (f :: * -> *).
(HasField s "persistentMemorySize" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"persistentMemorySize")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node
        hostTempMemorySize__field_descriptor :: FieldDescriptor CostGraphDef'Node
hostTempMemorySize__field_descriptor
          = String
-> FieldTypeDescriptor Int64
-> FieldAccessor CostGraphDef'Node Int64
-> FieldDescriptor CostGraphDef'Node
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "host_temp_memory_size"
              (ScalarField Int64 -> FieldTypeDescriptor Int64
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Int64
Data.ProtoLens.Int64Field ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)
              (WireDefault Int64
-> Lens CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> FieldAccessor CostGraphDef'Node Int64
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Int64
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
                 (forall s a (f :: * -> *).
(HasField s "hostTempMemorySize" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"hostTempMemorySize")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node
        deviceTempMemorySize__field_descriptor :: FieldDescriptor CostGraphDef'Node
deviceTempMemorySize__field_descriptor
          = String
-> FieldTypeDescriptor Int64
-> FieldAccessor CostGraphDef'Node Int64
-> FieldDescriptor CostGraphDef'Node
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "device_temp_memory_size"
              (ScalarField Int64 -> FieldTypeDescriptor Int64
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Int64
Data.ProtoLens.Int64Field ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)
              (WireDefault Int64
-> Lens CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> FieldAccessor CostGraphDef'Node Int64
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Int64
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
                 (forall s a (f :: * -> *).
(HasField s "deviceTempMemorySize" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"deviceTempMemorySize")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node
        devicePersistentMemorySize__field_descriptor :: FieldDescriptor CostGraphDef'Node
devicePersistentMemorySize__field_descriptor
          = String
-> FieldTypeDescriptor Int64
-> FieldAccessor CostGraphDef'Node Int64
-> FieldDescriptor CostGraphDef'Node
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "device_persistent_memory_size"
              (ScalarField Int64 -> FieldTypeDescriptor Int64
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Int64
Data.ProtoLens.Int64Field ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)
              (WireDefault Int64
-> Lens CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> FieldAccessor CostGraphDef'Node Int64
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Int64
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
                 (forall s a (f :: * -> *).
(HasField s "devicePersistentMemorySize" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"devicePersistentMemorySize")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node
        computeCost__field_descriptor :: FieldDescriptor CostGraphDef'Node
computeCost__field_descriptor
          = String
-> FieldTypeDescriptor Int64
-> FieldAccessor CostGraphDef'Node Int64
-> FieldDescriptor CostGraphDef'Node
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "compute_cost"
              (ScalarField Int64 -> FieldTypeDescriptor Int64
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Int64
Data.ProtoLens.Int64Field ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)
              (WireDefault Int64
-> Lens CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> FieldAccessor CostGraphDef'Node Int64
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Int64
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
                 (forall s a (f :: * -> *).
(HasField s "computeCost" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"computeCost")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node
        computeTime__field_descriptor :: FieldDescriptor CostGraphDef'Node
computeTime__field_descriptor
          = String
-> FieldTypeDescriptor Int64
-> FieldAccessor CostGraphDef'Node Int64
-> FieldDescriptor CostGraphDef'Node
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "compute_time"
              (ScalarField Int64 -> FieldTypeDescriptor Int64
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Int64
Data.ProtoLens.Int64Field ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)
              (WireDefault Int64
-> Lens CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> FieldAccessor CostGraphDef'Node Int64
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Int64
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
                 (forall s a (f :: * -> *).
(HasField s "computeTime" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"computeTime")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node
        memoryTime__field_descriptor :: FieldDescriptor CostGraphDef'Node
memoryTime__field_descriptor
          = String
-> FieldTypeDescriptor Int64
-> FieldAccessor CostGraphDef'Node Int64
-> FieldDescriptor CostGraphDef'Node
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "memory_time"
              (ScalarField Int64 -> FieldTypeDescriptor Int64
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Int64
Data.ProtoLens.Int64Field ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)
              (WireDefault Int64
-> Lens CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> FieldAccessor CostGraphDef'Node Int64
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Int64
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
                 (forall s a (f :: * -> *).
(HasField s "memoryTime" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"memoryTime")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node
        isFinal__field_descriptor :: FieldDescriptor CostGraphDef'Node
isFinal__field_descriptor
          = String
-> FieldTypeDescriptor Bool
-> FieldAccessor CostGraphDef'Node Bool
-> FieldDescriptor CostGraphDef'Node
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "is_final"
              (ScalarField Bool -> FieldTypeDescriptor Bool
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Bool
Data.ProtoLens.BoolField ::
                 Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)
              (WireDefault Bool
-> Lens CostGraphDef'Node CostGraphDef'Node Bool Bool
-> FieldAccessor CostGraphDef'Node Bool
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Bool
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional (forall s a (f :: * -> *).
(HasField s "isFinal" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"isFinal")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node
        controlInput__field_descriptor :: FieldDescriptor CostGraphDef'Node
controlInput__field_descriptor
          = String
-> FieldTypeDescriptor Int32
-> FieldAccessor CostGraphDef'Node Int32
-> FieldDescriptor CostGraphDef'Node
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "control_input"
              (ScalarField Int32 -> FieldTypeDescriptor Int32
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Int32
Data.ProtoLens.Int32Field ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)
              (Packing
-> Lens' CostGraphDef'Node [Int32]
-> FieldAccessor CostGraphDef'Node Int32
forall msg value.
Packing -> Lens' msg [value] -> FieldAccessor msg value
Data.ProtoLens.RepeatedField
                 Packing
Data.ProtoLens.Packed
                 (forall s a (f :: * -> *).
(HasField s "controlInput" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"controlInput")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node
        inaccurate__field_descriptor :: FieldDescriptor CostGraphDef'Node
inaccurate__field_descriptor
          = String
-> FieldTypeDescriptor Bool
-> FieldAccessor CostGraphDef'Node Bool
-> FieldDescriptor CostGraphDef'Node
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "inaccurate"
              (ScalarField Bool -> FieldTypeDescriptor Bool
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Bool
Data.ProtoLens.BoolField ::
                 Data.ProtoLens.FieldTypeDescriptor Prelude.Bool)
              (WireDefault Bool
-> Lens CostGraphDef'Node CostGraphDef'Node Bool Bool
-> FieldAccessor CostGraphDef'Node Bool
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Bool
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
                 (forall s a (f :: * -> *).
(HasField s "inaccurate" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"inaccurate")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node
      in
        [(Tag, FieldDescriptor CostGraphDef'Node)]
-> Map Tag (FieldDescriptor CostGraphDef'Node)
forall k a. Ord k => [(k, a)] -> Map k a
Data.Map.fromList
          [(Int -> Tag
Data.ProtoLens.Tag 1, FieldDescriptor CostGraphDef'Node
name__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 2, FieldDescriptor CostGraphDef'Node
device__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 3, FieldDescriptor CostGraphDef'Node
id__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 4, FieldDescriptor CostGraphDef'Node
inputInfo__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 5, FieldDescriptor CostGraphDef'Node
outputInfo__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 6, FieldDescriptor CostGraphDef'Node
temporaryMemorySize__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 12, FieldDescriptor CostGraphDef'Node
persistentMemorySize__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 10, FieldDescriptor CostGraphDef'Node
hostTempMemorySize__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 11, FieldDescriptor CostGraphDef'Node
deviceTempMemorySize__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 16, 
            FieldDescriptor CostGraphDef'Node
devicePersistentMemorySize__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 9, FieldDescriptor CostGraphDef'Node
computeCost__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 14, FieldDescriptor CostGraphDef'Node
computeTime__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 15, FieldDescriptor CostGraphDef'Node
memoryTime__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 7, FieldDescriptor CostGraphDef'Node
isFinal__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 8, FieldDescriptor CostGraphDef'Node
controlInput__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 17, FieldDescriptor CostGraphDef'Node
inaccurate__field_descriptor)]
  unknownFields :: LensLike' f CostGraphDef'Node FieldSet
unknownFields
    = (CostGraphDef'Node -> FieldSet)
-> (CostGraphDef'Node -> FieldSet -> CostGraphDef'Node)
-> Lens' CostGraphDef'Node FieldSet
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
        CostGraphDef'Node -> FieldSet
_CostGraphDef'Node'_unknownFields
        (\ x__ :: CostGraphDef'Node
x__ y__ :: FieldSet
y__ -> CostGraphDef'Node
x__ {_CostGraphDef'Node'_unknownFields :: FieldSet
_CostGraphDef'Node'_unknownFields = FieldSet
y__})
  defMessage :: CostGraphDef'Node
defMessage
    = $WCostGraphDef'Node'_constructor :: Text
-> Text
-> Int32
-> Vector CostGraphDef'Node'InputInfo
-> Vector CostGraphDef'Node'OutputInfo
-> Int64
-> Int64
-> Int64
-> Int64
-> Int64
-> Int64
-> Int64
-> Int64
-> Bool
-> Vector Int32
-> Bool
-> FieldSet
-> CostGraphDef'Node
CostGraphDef'Node'_constructor
        {_CostGraphDef'Node'name :: Text
_CostGraphDef'Node'name = Text
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'Node'device :: Text
_CostGraphDef'Node'device = Text
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'Node'id :: Int32
_CostGraphDef'Node'id = Int32
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'Node'inputInfo :: Vector CostGraphDef'Node'InputInfo
_CostGraphDef'Node'inputInfo = Vector CostGraphDef'Node'InputInfo
forall (v :: * -> *) a. Vector v a => v a
Data.Vector.Generic.empty,
         _CostGraphDef'Node'outputInfo :: Vector CostGraphDef'Node'OutputInfo
_CostGraphDef'Node'outputInfo = Vector CostGraphDef'Node'OutputInfo
forall (v :: * -> *) a. Vector v a => v a
Data.Vector.Generic.empty,
         _CostGraphDef'Node'temporaryMemorySize :: Int64
_CostGraphDef'Node'temporaryMemorySize = Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'Node'persistentMemorySize :: Int64
_CostGraphDef'Node'persistentMemorySize = Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'Node'hostTempMemorySize :: Int64
_CostGraphDef'Node'hostTempMemorySize = Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'Node'deviceTempMemorySize :: Int64
_CostGraphDef'Node'deviceTempMemorySize = Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'Node'devicePersistentMemorySize :: Int64
_CostGraphDef'Node'devicePersistentMemorySize = Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'Node'computeCost :: Int64
_CostGraphDef'Node'computeCost = Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'Node'computeTime :: Int64
_CostGraphDef'Node'computeTime = Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'Node'memoryTime :: Int64
_CostGraphDef'Node'memoryTime = Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'Node'isFinal :: Bool
_CostGraphDef'Node'isFinal = Bool
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'Node'controlInput :: Vector Int32
_CostGraphDef'Node'controlInput = Vector Int32
forall (v :: * -> *) a. Vector v a => v a
Data.Vector.Generic.empty,
         _CostGraphDef'Node'inaccurate :: Bool
_CostGraphDef'Node'inaccurate = Bool
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'Node'_unknownFields :: FieldSet
_CostGraphDef'Node'_unknownFields = []}
  parseMessage :: Parser CostGraphDef'Node
parseMessage
    = let
        loop ::
          CostGraphDef'Node
          -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Unboxed.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Int.Int32
             -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld CostGraphDef'Node'InputInfo
                -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld CostGraphDef'Node'OutputInfo
                   -> Data.ProtoLens.Encoding.Bytes.Parser CostGraphDef'Node
        loop :: CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop x :: CostGraphDef'Node
x mutable'controlInput :: Growing Vector RealWorld Int32
mutable'controlInput mutable'inputInfo :: Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo mutable'outputInfo :: Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo
          = do Bool
end <- Parser Bool
Data.ProtoLens.Encoding.Bytes.atEnd
               if Bool
end then
                   do Vector Int32
frozen'controlInput <- IO (Vector Int32) -> Parser (Vector Int32)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                               (Growing Vector (PrimState IO) Int32 -> IO (Vector Int32)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
Growing v (PrimState m) a -> m (v a)
Data.ProtoLens.Encoding.Growing.unsafeFreeze
                                                  Growing Vector RealWorld Int32
Growing Vector (PrimState IO) Int32
mutable'controlInput)
                      Vector CostGraphDef'Node'InputInfo
frozen'inputInfo <- IO (Vector CostGraphDef'Node'InputInfo)
-> Parser (Vector CostGraphDef'Node'InputInfo)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                            (Growing Vector (PrimState IO) CostGraphDef'Node'InputInfo
-> IO (Vector CostGraphDef'Node'InputInfo)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
Growing v (PrimState m) a -> m (v a)
Data.ProtoLens.Encoding.Growing.unsafeFreeze
                                               Growing Vector RealWorld CostGraphDef'Node'InputInfo
Growing Vector (PrimState IO) CostGraphDef'Node'InputInfo
mutable'inputInfo)
                      Vector CostGraphDef'Node'OutputInfo
frozen'outputInfo <- IO (Vector CostGraphDef'Node'OutputInfo)
-> Parser (Vector CostGraphDef'Node'OutputInfo)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                             (Growing Vector (PrimState IO) CostGraphDef'Node'OutputInfo
-> IO (Vector CostGraphDef'Node'OutputInfo)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
Growing v (PrimState m) a -> m (v a)
Data.ProtoLens.Encoding.Growing.unsafeFreeze
                                                Growing Vector RealWorld CostGraphDef'Node'OutputInfo
Growing Vector (PrimState IO) CostGraphDef'Node'OutputInfo
mutable'outputInfo)
                      (let missing :: [a]
missing = []
                       in
                         if [Any] -> Bool
forall (t :: * -> *) a. Foldable t => t a -> Bool
Prelude.null [Any]
forall a. [a]
missing then
                             () -> Parser ()
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return ()
                         else
                             String -> Parser ()
forall (m :: * -> *) a. MonadFail m => String -> m a
Prelude.fail
                               (String -> ShowS
forall a. [a] -> [a] -> [a]
(Prelude.++)
                                  "Missing required fields: "
                                  ([String] -> String
forall a. Show a => a -> String
Prelude.show ([String]
forall a. [a]
missing :: [Prelude.String]))))
                      CostGraphDef'Node -> Parser CostGraphDef'Node
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return
                        (Setter CostGraphDef'Node CostGraphDef'Node FieldSet FieldSet
-> (FieldSet -> FieldSet) -> CostGraphDef'Node -> CostGraphDef'Node
forall s t a b. Setter s t a b -> (a -> b) -> s -> t
Lens.Family2.over
                           forall msg. Message msg => Lens' msg FieldSet
Setter CostGraphDef'Node CostGraphDef'Node FieldSet FieldSet
Data.ProtoLens.unknownFields
                           (\ !FieldSet
t -> FieldSet -> FieldSet
forall a. [a] -> [a]
Prelude.reverse FieldSet
t)
                           (Setter
  CostGraphDef'Node CostGraphDef'Node (Vector Int32) (Vector Int32)
-> Vector Int32 -> CostGraphDef'Node -> CostGraphDef'Node
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
                              (forall s a (f :: * -> *).
(HasField s "vec'controlInput" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"vec'controlInput")
                              Vector Int32
frozen'controlInput
                              (Setter
  CostGraphDef'Node
  CostGraphDef'Node
  (Vector CostGraphDef'Node'InputInfo)
  (Vector CostGraphDef'Node'InputInfo)
-> Vector CostGraphDef'Node'InputInfo
-> CostGraphDef'Node
-> CostGraphDef'Node
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
                                 (forall s a (f :: * -> *).
(HasField s "vec'inputInfo" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"vec'inputInfo")
                                 Vector CostGraphDef'Node'InputInfo
frozen'inputInfo
                                 (Setter
  CostGraphDef'Node
  CostGraphDef'Node
  (Vector CostGraphDef'Node'OutputInfo)
  (Vector CostGraphDef'Node'OutputInfo)
-> Vector CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node
-> CostGraphDef'Node
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
                                    (forall s a (f :: * -> *).
(HasField s "vec'outputInfo" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"vec'outputInfo")
                                    Vector CostGraphDef'Node'OutputInfo
frozen'outputInfo
                                    CostGraphDef'Node
x))))
               else
                   do Word64
tag <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                      case Word64
tag of
                        10
                          -> do Text
y <- Parser Text -> String -> Parser Text
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       (do ByteString
value <- do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                                                       Int -> Parser ByteString
Data.ProtoLens.Encoding.Bytes.getBytes
                                                         (Word64 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Word64
len)
                                           Either String Text -> Parser Text
forall a. Either String a -> Parser a
Data.ProtoLens.Encoding.Bytes.runEither
                                             (case ByteString -> Either UnicodeException Text
Data.Text.Encoding.decodeUtf8' ByteString
value of
                                                (Prelude.Left err :: UnicodeException
err)
                                                  -> String -> Either String Text
forall a b. a -> Either a b
Prelude.Left (UnicodeException -> String
forall a. Show a => a -> String
Prelude.show UnicodeException
err)
                                                (Prelude.Right r :: Text
r) -> Text -> Either String Text
forall a b. b -> Either a b
Prelude.Right Text
r))
                                       "name"
                                CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop
                                  (Setter CostGraphDef'Node CostGraphDef'Node Text Text
-> Text -> CostGraphDef'Node -> CostGraphDef'Node
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "name" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"name") Text
y CostGraphDef'Node
x)
                                  Growing Vector RealWorld Int32
mutable'controlInput
                                  Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo
                                  Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo
                        18
                          -> do Text
y <- Parser Text -> String -> Parser Text
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       (do ByteString
value <- do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                                                       Int -> Parser ByteString
Data.ProtoLens.Encoding.Bytes.getBytes
                                                         (Word64 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Word64
len)
                                           Either String Text -> Parser Text
forall a. Either String a -> Parser a
Data.ProtoLens.Encoding.Bytes.runEither
                                             (case ByteString -> Either UnicodeException Text
Data.Text.Encoding.decodeUtf8' ByteString
value of
                                                (Prelude.Left err :: UnicodeException
err)
                                                  -> String -> Either String Text
forall a b. a -> Either a b
Prelude.Left (UnicodeException -> String
forall a. Show a => a -> String
Prelude.show UnicodeException
err)
                                                (Prelude.Right r :: Text
r) -> Text -> Either String Text
forall a b. b -> Either a b
Prelude.Right Text
r))
                                       "device"
                                CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop
                                  (Setter CostGraphDef'Node CostGraphDef'Node Text Text
-> Text -> CostGraphDef'Node -> CostGraphDef'Node
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "device" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"device") Text
y CostGraphDef'Node
x)
                                  Growing Vector RealWorld Int32
mutable'controlInput
                                  Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo
                                  Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo
                        24
                          -> do Int32
y <- Parser Int32 -> String -> Parser Int32
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Word64 -> Int32) -> Parser Word64 -> Parser Int32
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          Word64 -> Int32
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                          Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                       "id"
                                CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop
                                  (Setter CostGraphDef'Node CostGraphDef'Node Int32 Int32
-> Int32 -> CostGraphDef'Node -> CostGraphDef'Node
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "id" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"id") Int32
y CostGraphDef'Node
x)
                                  Growing Vector RealWorld Int32
mutable'controlInput
                                  Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo
                                  Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo
                        34
                          -> do !CostGraphDef'Node'InputInfo
y <- Parser CostGraphDef'Node'InputInfo
-> String -> Parser CostGraphDef'Node'InputInfo
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                        (do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                                            Int
-> Parser CostGraphDef'Node'InputInfo
-> Parser CostGraphDef'Node'InputInfo
forall a. Int -> Parser a -> Parser a
Data.ProtoLens.Encoding.Bytes.isolate
                                              (Word64 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Word64
len)
                                              Parser CostGraphDef'Node'InputInfo
forall msg. Message msg => Parser msg
Data.ProtoLens.parseMessage)
                                        "input_info"
                                Growing Vector RealWorld CostGraphDef'Node'InputInfo
v <- IO (Growing Vector RealWorld CostGraphDef'Node'InputInfo)
-> Parser (Growing Vector RealWorld CostGraphDef'Node'InputInfo)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                       (Growing Vector (PrimState IO) CostGraphDef'Node'InputInfo
-> CostGraphDef'Node'InputInfo
-> IO (Growing Vector (PrimState IO) CostGraphDef'Node'InputInfo)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
Growing v (PrimState m) a -> a -> m (Growing v (PrimState m) a)
Data.ProtoLens.Encoding.Growing.append Growing Vector RealWorld CostGraphDef'Node'InputInfo
Growing Vector (PrimState IO) CostGraphDef'Node'InputInfo
mutable'inputInfo CostGraphDef'Node'InputInfo
y)
                                CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop CostGraphDef'Node
x Growing Vector RealWorld Int32
mutable'controlInput Growing Vector RealWorld CostGraphDef'Node'InputInfo
v Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo
                        42
                          -> do !CostGraphDef'Node'OutputInfo
y <- Parser CostGraphDef'Node'OutputInfo
-> String -> Parser CostGraphDef'Node'OutputInfo
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                        (do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                                            Int
-> Parser CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node'OutputInfo
forall a. Int -> Parser a -> Parser a
Data.ProtoLens.Encoding.Bytes.isolate
                                              (Word64 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Word64
len)
                                              Parser CostGraphDef'Node'OutputInfo
forall msg. Message msg => Parser msg
Data.ProtoLens.parseMessage)
                                        "output_info"
                                Growing Vector RealWorld CostGraphDef'Node'OutputInfo
v <- IO (Growing Vector RealWorld CostGraphDef'Node'OutputInfo)
-> Parser (Growing Vector RealWorld CostGraphDef'Node'OutputInfo)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                       (Growing Vector (PrimState IO) CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo
-> IO (Growing Vector (PrimState IO) CostGraphDef'Node'OutputInfo)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
Growing v (PrimState m) a -> a -> m (Growing v (PrimState m) a)
Data.ProtoLens.Encoding.Growing.append Growing Vector RealWorld CostGraphDef'Node'OutputInfo
Growing Vector (PrimState IO) CostGraphDef'Node'OutputInfo
mutable'outputInfo CostGraphDef'Node'OutputInfo
y)
                                CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop CostGraphDef'Node
x Growing Vector RealWorld Int32
mutable'controlInput Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo Growing Vector RealWorld CostGraphDef'Node'OutputInfo
v
                        48
                          -> do Int64
y <- Parser Int64 -> String -> Parser Int64
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Word64 -> Int64) -> Parser Word64 -> Parser Int64
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          Word64 -> Int64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                          Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                       "temporary_memory_size"
                                CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop
                                  (Setter CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> Int64 -> CostGraphDef'Node -> CostGraphDef'Node
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
                                     (forall s a (f :: * -> *).
(HasField s "temporaryMemorySize" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"temporaryMemorySize") Int64
y CostGraphDef'Node
x)
                                  Growing Vector RealWorld Int32
mutable'controlInput
                                  Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo
                                  Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo
                        96
                          -> do Int64
y <- Parser Int64 -> String -> Parser Int64
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Word64 -> Int64) -> Parser Word64 -> Parser Int64
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          Word64 -> Int64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                          Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                       "persistent_memory_size"
                                CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop
                                  (Setter CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> Int64 -> CostGraphDef'Node -> CostGraphDef'Node
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
                                     (forall s a (f :: * -> *).
(HasField s "persistentMemorySize" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"persistentMemorySize") Int64
y CostGraphDef'Node
x)
                                  Growing Vector RealWorld Int32
mutable'controlInput
                                  Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo
                                  Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo
                        80
                          -> do Int64
y <- Parser Int64 -> String -> Parser Int64
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Word64 -> Int64) -> Parser Word64 -> Parser Int64
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          Word64 -> Int64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                          Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                       "host_temp_memory_size"
                                CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop
                                  (Setter CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> Int64 -> CostGraphDef'Node -> CostGraphDef'Node
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
                                     (forall s a (f :: * -> *).
(HasField s "hostTempMemorySize" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"hostTempMemorySize") Int64
y CostGraphDef'Node
x)
                                  Growing Vector RealWorld Int32
mutable'controlInput
                                  Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo
                                  Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo
                        88
                          -> do Int64
y <- Parser Int64 -> String -> Parser Int64
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Word64 -> Int64) -> Parser Word64 -> Parser Int64
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          Word64 -> Int64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                          Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                       "device_temp_memory_size"
                                CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop
                                  (Setter CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> Int64 -> CostGraphDef'Node -> CostGraphDef'Node
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
                                     (forall s a (f :: * -> *).
(HasField s "deviceTempMemorySize" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"deviceTempMemorySize") Int64
y CostGraphDef'Node
x)
                                  Growing Vector RealWorld Int32
mutable'controlInput
                                  Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo
                                  Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo
                        128
                          -> do Int64
y <- Parser Int64 -> String -> Parser Int64
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Word64 -> Int64) -> Parser Word64 -> Parser Int64
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          Word64 -> Int64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                          Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                       "device_persistent_memory_size"
                                CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop
                                  (Setter CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> Int64 -> CostGraphDef'Node -> CostGraphDef'Node
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
                                     (forall s a (f :: * -> *).
(HasField s "devicePersistentMemorySize" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"devicePersistentMemorySize") Int64
y CostGraphDef'Node
x)
                                  Growing Vector RealWorld Int32
mutable'controlInput
                                  Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo
                                  Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo
                        72
                          -> do Int64
y <- Parser Int64 -> String -> Parser Int64
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Word64 -> Int64) -> Parser Word64 -> Parser Int64
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          Word64 -> Int64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                          Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                       "compute_cost"
                                CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop
                                  (Setter CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> Int64 -> CostGraphDef'Node -> CostGraphDef'Node
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "computeCost" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"computeCost") Int64
y CostGraphDef'Node
x)
                                  Growing Vector RealWorld Int32
mutable'controlInput
                                  Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo
                                  Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo
                        112
                          -> do Int64
y <- Parser Int64 -> String -> Parser Int64
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Word64 -> Int64) -> Parser Word64 -> Parser Int64
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          Word64 -> Int64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                          Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                       "compute_time"
                                CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop
                                  (Setter CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> Int64 -> CostGraphDef'Node -> CostGraphDef'Node
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "computeTime" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"computeTime") Int64
y CostGraphDef'Node
x)
                                  Growing Vector RealWorld Int32
mutable'controlInput
                                  Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo
                                  Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo
                        120
                          -> do Int64
y <- Parser Int64 -> String -> Parser Int64
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Word64 -> Int64) -> Parser Word64 -> Parser Int64
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          Word64 -> Int64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                          Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                       "memory_time"
                                CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop
                                  (Setter CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> Int64 -> CostGraphDef'Node -> CostGraphDef'Node
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "memoryTime" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"memoryTime") Int64
y CostGraphDef'Node
x)
                                  Growing Vector RealWorld Int32
mutable'controlInput
                                  Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo
                                  Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo
                        56
                          -> do Bool
y <- Parser Bool -> String -> Parser Bool
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Word64 -> Bool) -> Parser Word64 -> Parser Bool
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          (Word64 -> Word64 -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude./=) 0) Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                       "is_final"
                                CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop
                                  (Setter CostGraphDef'Node CostGraphDef'Node Bool Bool
-> Bool -> CostGraphDef'Node -> CostGraphDef'Node
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "isFinal" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"isFinal") Bool
y CostGraphDef'Node
x)
                                  Growing Vector RealWorld Int32
mutable'controlInput
                                  Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo
                                  Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo
                        64
                          -> do !Int32
y <- Parser Int32 -> String -> Parser Int32
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                        ((Word64 -> Int32) -> Parser Word64 -> Parser Int32
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                           Word64 -> Int32
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                           Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                        "control_input"
                                Growing Vector RealWorld Int32
v <- IO (Growing Vector RealWorld Int32)
-> Parser (Growing Vector RealWorld Int32)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                       (Growing Vector (PrimState IO) Int32
-> Int32 -> IO (Growing Vector (PrimState IO) Int32)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
Growing v (PrimState m) a -> a -> m (Growing v (PrimState m) a)
Data.ProtoLens.Encoding.Growing.append
                                          Growing Vector RealWorld Int32
Growing Vector (PrimState IO) Int32
mutable'controlInput Int32
y)
                                CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop CostGraphDef'Node
x Growing Vector RealWorld Int32
v Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo
                        66
                          -> do Growing Vector RealWorld Int32
y <- do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                                        Int
-> Parser (Growing Vector RealWorld Int32)
-> Parser (Growing Vector RealWorld Int32)
forall a. Int -> Parser a -> Parser a
Data.ProtoLens.Encoding.Bytes.isolate
                                          (Word64 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Word64
len)
                                          ((let
                                              ploop :: Growing v RealWorld a -> Parser (Growing v RealWorld a)
ploop qs :: Growing v RealWorld a
qs
                                                = do Bool
packedEnd <- Parser Bool
Data.ProtoLens.Encoding.Bytes.atEnd
                                                     if Bool
packedEnd then
                                                         Growing v RealWorld a -> Parser (Growing v RealWorld a)
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return Growing v RealWorld a
qs
                                                     else
                                                         do !a
q <- Parser a -> String -> Parser a
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                                                    ((Word64 -> a) -> Parser Word64 -> Parser a
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                                                       Word64 -> a
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                                                       Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                                                    "control_input"
                                                            Growing v RealWorld a
qs' <- IO (Growing v RealWorld a) -> Parser (Growing v RealWorld a)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                                                     (Growing v (PrimState IO) a -> a -> IO (Growing v (PrimState IO) a)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
Growing v (PrimState m) a -> a -> m (Growing v (PrimState m) a)
Data.ProtoLens.Encoding.Growing.append
                                                                        Growing v RealWorld a
Growing v (PrimState IO) a
qs a
q)
                                                            Growing v RealWorld a -> Parser (Growing v RealWorld a)
ploop Growing v RealWorld a
qs'
                                            in forall a (v :: * -> *).
(Num a, Vector v a) =>
Growing v RealWorld a -> Parser (Growing v RealWorld a)
ploop)
                                             Growing Vector RealWorld Int32
mutable'controlInput)
                                CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop CostGraphDef'Node
x Growing Vector RealWorld Int32
y Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo
                        136
                          -> do Bool
y <- Parser Bool -> String -> Parser Bool
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Word64 -> Bool) -> Parser Word64 -> Parser Bool
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          (Word64 -> Word64 -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude./=) 0) Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                       "inaccurate"
                                CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop
                                  (Setter CostGraphDef'Node CostGraphDef'Node Bool Bool
-> Bool -> CostGraphDef'Node -> CostGraphDef'Node
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "inaccurate" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"inaccurate") Bool
y CostGraphDef'Node
x)
                                  Growing Vector RealWorld Int32
mutable'controlInput
                                  Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo
                                  Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo
                        wire :: Word64
wire
                          -> do !TaggedValue
y <- Word64 -> Parser TaggedValue
Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire
                                        Word64
wire
                                CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop
                                  (Setter CostGraphDef'Node CostGraphDef'Node FieldSet FieldSet
-> (FieldSet -> FieldSet) -> CostGraphDef'Node -> CostGraphDef'Node
forall s t a b. Setter s t a b -> (a -> b) -> s -> t
Lens.Family2.over
                                     forall msg. Message msg => Lens' msg FieldSet
Setter CostGraphDef'Node CostGraphDef'Node FieldSet FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> (:) TaggedValue
y FieldSet
t) CostGraphDef'Node
x)
                                  Growing Vector RealWorld Int32
mutable'controlInput
                                  Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo
                                  Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo
      in
        Parser CostGraphDef'Node -> String -> Parser CostGraphDef'Node
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
          (do Growing Vector RealWorld Int32
mutable'controlInput <- IO (Growing Vector RealWorld Int32)
-> Parser (Growing Vector RealWorld Int32)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                        IO (Growing Vector RealWorld Int32)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
m (Growing v (PrimState m) a)
Data.ProtoLens.Encoding.Growing.new
              Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo <- IO (Growing Vector RealWorld CostGraphDef'Node'InputInfo)
-> Parser (Growing Vector RealWorld CostGraphDef'Node'InputInfo)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                     IO (Growing Vector RealWorld CostGraphDef'Node'InputInfo)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
m (Growing v (PrimState m) a)
Data.ProtoLens.Encoding.Growing.new
              Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo <- IO (Growing Vector RealWorld CostGraphDef'Node'OutputInfo)
-> Parser (Growing Vector RealWorld CostGraphDef'Node'OutputInfo)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                      IO (Growing Vector RealWorld CostGraphDef'Node'OutputInfo)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
m (Growing v (PrimState m) a)
Data.ProtoLens.Encoding.Growing.new
              CostGraphDef'Node
-> Growing Vector RealWorld Int32
-> Growing Vector RealWorld CostGraphDef'Node'InputInfo
-> Growing Vector RealWorld CostGraphDef'Node'OutputInfo
-> Parser CostGraphDef'Node
loop
                CostGraphDef'Node
forall msg. Message msg => msg
Data.ProtoLens.defMessage
                Growing Vector RealWorld Int32
mutable'controlInput
                Growing Vector RealWorld CostGraphDef'Node'InputInfo
mutable'inputInfo
                Growing Vector RealWorld CostGraphDef'Node'OutputInfo
mutable'outputInfo)
          "Node"
  buildMessage :: CostGraphDef'Node -> Builder
buildMessage
    = \ _x :: CostGraphDef'Node
_x
        -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
             (let _v :: Text
_v = FoldLike Text CostGraphDef'Node CostGraphDef'Node Text Text
-> CostGraphDef'Node -> Text
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "name" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"name") CostGraphDef'Node
_x
              in
                if Text -> Text -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Text
_v Text
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                    Builder
forall a. Monoid a => a
Data.Monoid.mempty
                else
                    Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                      (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 10)
                      ((ByteString -> Builder) -> (Text -> ByteString) -> Text -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                         (\ bs :: ByteString
bs
                            -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                 (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                    (Int -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral (ByteString -> Int
Data.ByteString.length ByteString
bs)))
                                 (ByteString -> Builder
Data.ProtoLens.Encoding.Bytes.putBytes ByteString
bs))
                         Text -> ByteString
Data.Text.Encoding.encodeUtf8
                         Text
_v))
             (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                (let
                   _v :: Text
_v = FoldLike Text CostGraphDef'Node CostGraphDef'Node Text Text
-> CostGraphDef'Node -> Text
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "device" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"device") CostGraphDef'Node
_x
                 in
                   if Text -> Text -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Text
_v Text
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                       Builder
forall a. Monoid a => a
Data.Monoid.mempty
                   else
                       Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                         (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 18)
                         ((ByteString -> Builder) -> (Text -> ByteString) -> Text -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                            (\ bs :: ByteString
bs
                               -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                    (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                       (Int -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral (ByteString -> Int
Data.ByteString.length ByteString
bs)))
                                    (ByteString -> Builder
Data.ProtoLens.Encoding.Bytes.putBytes ByteString
bs))
                            Text -> ByteString
Data.Text.Encoding.encodeUtf8
                            Text
_v))
                (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                   (let _v :: Int32
_v = FoldLike Int32 CostGraphDef'Node CostGraphDef'Node Int32 Int32
-> CostGraphDef'Node -> Int32
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "id" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"id") CostGraphDef'Node
_x
                    in
                      if Int32 -> Int32 -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Int32
_v Int32
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                          Builder
forall a. Monoid a => a
Data.Monoid.mempty
                      else
                          Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                            (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 24)
                            ((Word64 -> Builder) -> (Int32 -> Word64) -> Int32 -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                               Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt Int32 -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int32
_v))
                   (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                      ((CostGraphDef'Node'InputInfo -> Builder)
-> Vector CostGraphDef'Node'InputInfo -> Builder
forall (v :: * -> *) a.
Vector v a =>
(a -> Builder) -> v a -> Builder
Data.ProtoLens.Encoding.Bytes.foldMapBuilder
                         (\ _v :: CostGraphDef'Node'InputInfo
_v
                            -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                 (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 34)
                                 ((ByteString -> Builder)
-> (CostGraphDef'Node'InputInfo -> ByteString)
-> CostGraphDef'Node'InputInfo
-> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                    (\ bs :: ByteString
bs
                                       -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                            (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                               (Int -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral (ByteString -> Int
Data.ByteString.length ByteString
bs)))
                                            (ByteString -> Builder
Data.ProtoLens.Encoding.Bytes.putBytes ByteString
bs))
                                    CostGraphDef'Node'InputInfo -> ByteString
forall msg. Message msg => msg -> ByteString
Data.ProtoLens.encodeMessage
                                    CostGraphDef'Node'InputInfo
_v))
                         (FoldLike
  (Vector CostGraphDef'Node'InputInfo)
  CostGraphDef'Node
  CostGraphDef'Node
  (Vector CostGraphDef'Node'InputInfo)
  (Vector CostGraphDef'Node'InputInfo)
-> CostGraphDef'Node -> Vector CostGraphDef'Node'InputInfo
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                            (forall s a (f :: * -> *).
(HasField s "vec'inputInfo" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"vec'inputInfo") CostGraphDef'Node
_x))
                      (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                         ((CostGraphDef'Node'OutputInfo -> Builder)
-> Vector CostGraphDef'Node'OutputInfo -> Builder
forall (v :: * -> *) a.
Vector v a =>
(a -> Builder) -> v a -> Builder
Data.ProtoLens.Encoding.Bytes.foldMapBuilder
                            (\ _v :: CostGraphDef'Node'OutputInfo
_v
                               -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                    (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 42)
                                    ((ByteString -> Builder)
-> (CostGraphDef'Node'OutputInfo -> ByteString)
-> CostGraphDef'Node'OutputInfo
-> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                       (\ bs :: ByteString
bs
                                          -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                               (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                                  (Int -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                                     (ByteString -> Int
Data.ByteString.length ByteString
bs)))
                                               (ByteString -> Builder
Data.ProtoLens.Encoding.Bytes.putBytes ByteString
bs))
                                       CostGraphDef'Node'OutputInfo -> ByteString
forall msg. Message msg => msg -> ByteString
Data.ProtoLens.encodeMessage
                                       CostGraphDef'Node'OutputInfo
_v))
                            (FoldLike
  (Vector CostGraphDef'Node'OutputInfo)
  CostGraphDef'Node
  CostGraphDef'Node
  (Vector CostGraphDef'Node'OutputInfo)
  (Vector CostGraphDef'Node'OutputInfo)
-> CostGraphDef'Node -> Vector CostGraphDef'Node'OutputInfo
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                               (forall s a (f :: * -> *).
(HasField s "vec'outputInfo" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"vec'outputInfo") CostGraphDef'Node
_x))
                         (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                            (let
                               _v :: Int64
_v
                                 = FoldLike Int64 CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> CostGraphDef'Node -> Int64
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                                     (forall s a (f :: * -> *).
(HasField s "temporaryMemorySize" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"temporaryMemorySize") CostGraphDef'Node
_x
                             in
                               if Int64 -> Int64 -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Int64
_v Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                                   Builder
forall a. Monoid a => a
Data.Monoid.mempty
                               else
                                   Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                     (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 48)
                                     ((Word64 -> Builder) -> (Int64 -> Word64) -> Int64 -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                        Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                        Int64 -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                        Int64
_v))
                            (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                               (let
                                  _v :: Int64
_v
                                    = FoldLike Int64 CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> CostGraphDef'Node -> Int64
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                                        (forall s a (f :: * -> *).
(HasField s "persistentMemorySize" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"persistentMemorySize") CostGraphDef'Node
_x
                                in
                                  if Int64 -> Int64 -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Int64
_v Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                                      Builder
forall a. Monoid a => a
Data.Monoid.mempty
                                  else
                                      Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                        (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 96)
                                        ((Word64 -> Builder) -> (Int64 -> Word64) -> Int64 -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                           Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                           Int64 -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                           Int64
_v))
                               (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                  (let
                                     _v :: Int64
_v
                                       = FoldLike Int64 CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> CostGraphDef'Node -> Int64
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                                           (forall s a (f :: * -> *).
(HasField s "hostTempMemorySize" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"hostTempMemorySize") CostGraphDef'Node
_x
                                   in
                                     if Int64 -> Int64 -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Int64
_v Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                                         Builder
forall a. Monoid a => a
Data.Monoid.mempty
                                     else
                                         Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                           (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 80)
                                           ((Word64 -> Builder) -> (Int64 -> Word64) -> Int64 -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                              Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                              Int64 -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                              Int64
_v))
                                  (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                     (let
                                        _v :: Int64
_v
                                          = FoldLike Int64 CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> CostGraphDef'Node -> Int64
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                                              (forall s a (f :: * -> *).
(HasField s "deviceTempMemorySize" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"deviceTempMemorySize")
                                              CostGraphDef'Node
_x
                                      in
                                        if Int64 -> Int64 -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Int64
_v Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                                            Builder
forall a. Monoid a => a
Data.Monoid.mempty
                                        else
                                            Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                              (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 88)
                                              ((Word64 -> Builder) -> (Int64 -> Word64) -> Int64 -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                                 Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                                 Int64 -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                                 Int64
_v))
                                     (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                        (let
                                           _v :: Int64
_v
                                             = FoldLike Int64 CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> CostGraphDef'Node -> Int64
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                                                 (forall s a (f :: * -> *).
(HasField s "devicePersistentMemorySize" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field
                                                    @"devicePersistentMemorySize")
                                                 CostGraphDef'Node
_x
                                         in
                                           if Int64 -> Int64 -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Int64
_v Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                                               Builder
forall a. Monoid a => a
Data.Monoid.mempty
                                           else
                                               Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                                 (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 128)
                                                 ((Word64 -> Builder) -> (Int64 -> Word64) -> Int64 -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                                    Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                                    Int64 -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                                    Int64
_v))
                                        (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                           (let
                                              _v :: Int64
_v
                                                = FoldLike Int64 CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> CostGraphDef'Node -> Int64
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                                                    (forall s a (f :: * -> *).
(HasField s "computeCost" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"computeCost") CostGraphDef'Node
_x
                                            in
                                              if Int64 -> Int64 -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Int64
_v Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                                                  Builder
forall a. Monoid a => a
Data.Monoid.mempty
                                              else
                                                  Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                                    (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 72)
                                                    ((Word64 -> Builder) -> (Int64 -> Word64) -> Int64 -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                                       Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                                       Int64 -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                                       Int64
_v))
                                           (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                              (let
                                                 _v :: Int64
_v
                                                   = FoldLike Int64 CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> CostGraphDef'Node -> Int64
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                                                       (forall s a (f :: * -> *).
(HasField s "computeTime" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"computeTime")
                                                       CostGraphDef'Node
_x
                                               in
                                                 if Int64 -> Int64 -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Int64
_v Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                                                     Builder
forall a. Monoid a => a
Data.Monoid.mempty
                                                 else
                                                     Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                                       (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 112)
                                                       ((Word64 -> Builder) -> (Int64 -> Word64) -> Int64 -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                                          Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                                          Int64 -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                                          Int64
_v))
                                              (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                                 (let
                                                    _v :: Int64
_v
                                                      = FoldLike Int64 CostGraphDef'Node CostGraphDef'Node Int64 Int64
-> CostGraphDef'Node -> Int64
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                                                          (forall s a (f :: * -> *).
(HasField s "memoryTime" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"memoryTime")
                                                          CostGraphDef'Node
_x
                                                  in
                                                    if Int64 -> Int64 -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==)
                                                         Int64
_v Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                                                        Builder
forall a. Monoid a => a
Data.Monoid.mempty
                                                    else
                                                        Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                                          (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                                             120)
                                                          ((Word64 -> Builder) -> (Int64 -> Word64) -> Int64 -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                                             Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                                             Int64 -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                                             Int64
_v))
                                                 (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                                    (let
                                                       _v :: Bool
_v
                                                         = FoldLike Bool CostGraphDef'Node CostGraphDef'Node Bool Bool
-> CostGraphDef'Node -> Bool
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                                                             (forall s a (f :: * -> *).
(HasField s "isFinal" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"isFinal")
                                                             CostGraphDef'Node
_x
                                                     in
                                                       if Bool -> Bool -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==)
                                                            Bool
_v Bool
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                                                           Builder
forall a. Monoid a => a
Data.Monoid.mempty
                                                       else
                                                           Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                                             (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                                                56)
                                                             ((Word64 -> Builder) -> (Bool -> Word64) -> Bool -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                                                Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                                                (\ b :: Bool
b -> if Bool
b then 1 else 0)
                                                                Bool
_v))
                                                    (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                                       (let
                                                          p :: Vector Int32
p = FoldLike
  (Vector Int32)
  CostGraphDef'Node
  CostGraphDef'Node
  (Vector Int32)
  (Vector Int32)
-> CostGraphDef'Node -> Vector Int32
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                                                                (forall s a (f :: * -> *).
(HasField s "vec'controlInput" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field
                                                                   @"vec'controlInput")
                                                                CostGraphDef'Node
_x
                                                        in
                                                          if Vector Int32 -> Bool
forall (v :: * -> *) a. Vector v a => v a -> Bool
Data.Vector.Generic.null Vector Int32
p then
                                                              Builder
forall a. Monoid a => a
Data.Monoid.mempty
                                                          else
                                                              Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                                                (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                                                   66)
                                                                ((\ bs :: ByteString
bs
                                                                    -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                                                         (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                                                            (Int -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                                                               (ByteString -> Int
Data.ByteString.length
                                                                                  ByteString
bs)))
                                                                         (ByteString -> Builder
Data.ProtoLens.Encoding.Bytes.putBytes
                                                                            ByteString
bs))
                                                                   (Builder -> ByteString
Data.ProtoLens.Encoding.Bytes.runBuilder
                                                                      ((Int32 -> Builder) -> Vector Int32 -> Builder
forall (v :: * -> *) a.
Vector v a =>
(a -> Builder) -> v a -> Builder
Data.ProtoLens.Encoding.Bytes.foldMapBuilder
                                                                         ((Word64 -> Builder) -> (Int32 -> Word64) -> Int32 -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                                                            Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                                                            Int32 -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral)
                                                                         Vector Int32
p))))
                                                       (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                                          (let
                                                             _v :: Bool
_v
                                                               = FoldLike Bool CostGraphDef'Node CostGraphDef'Node Bool Bool
-> CostGraphDef'Node -> Bool
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                                                                   (forall s a (f :: * -> *).
(HasField s "inaccurate" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field
                                                                      @"inaccurate")
                                                                   CostGraphDef'Node
_x
                                                           in
                                                             if Bool -> Bool -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==)
                                                                  Bool
_v
                                                                  Bool
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                                                                 Builder
forall a. Monoid a => a
Data.Monoid.mempty
                                                             else
                                                                 Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                                                   (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                                                      136)
                                                                   ((Word64 -> Builder) -> (Bool -> Word64) -> Bool -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                                                      Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                                                      (\ b :: Bool
b -> if Bool
b then 1 else 0)
                                                                      Bool
_v))
                                                          (FieldSet -> Builder
Data.ProtoLens.Encoding.Wire.buildFieldSet
                                                             (FoldLike
  FieldSet CostGraphDef'Node CostGraphDef'Node FieldSet FieldSet
-> CostGraphDef'Node -> FieldSet
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                                                                FoldLike
  FieldSet CostGraphDef'Node CostGraphDef'Node FieldSet FieldSet
forall msg. Message msg => Lens' msg FieldSet
Data.ProtoLens.unknownFields
                                                                CostGraphDef'Node
_x)))))))))))))))))
instance Control.DeepSeq.NFData CostGraphDef'Node where
  rnf :: CostGraphDef'Node -> ()
rnf
    = \ x__ :: CostGraphDef'Node
x__
        -> FieldSet -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
             (CostGraphDef'Node -> FieldSet
_CostGraphDef'Node'_unknownFields CostGraphDef'Node
x__)
             (Text -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                (CostGraphDef'Node -> Text
_CostGraphDef'Node'name CostGraphDef'Node
x__)
                (Text -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                   (CostGraphDef'Node -> Text
_CostGraphDef'Node'device CostGraphDef'Node
x__)
                   (Int32 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                      (CostGraphDef'Node -> Int32
_CostGraphDef'Node'id CostGraphDef'Node
x__)
                      (Vector CostGraphDef'Node'InputInfo -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                         (CostGraphDef'Node -> Vector CostGraphDef'Node'InputInfo
_CostGraphDef'Node'inputInfo CostGraphDef'Node
x__)
                         (Vector CostGraphDef'Node'OutputInfo -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                            (CostGraphDef'Node -> Vector CostGraphDef'Node'OutputInfo
_CostGraphDef'Node'outputInfo CostGraphDef'Node
x__)
                            (Int64 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                               (CostGraphDef'Node -> Int64
_CostGraphDef'Node'temporaryMemorySize CostGraphDef'Node
x__)
                               (Int64 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                                  (CostGraphDef'Node -> Int64
_CostGraphDef'Node'persistentMemorySize CostGraphDef'Node
x__)
                                  (Int64 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                                     (CostGraphDef'Node -> Int64
_CostGraphDef'Node'hostTempMemorySize CostGraphDef'Node
x__)
                                     (Int64 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                                        (CostGraphDef'Node -> Int64
_CostGraphDef'Node'deviceTempMemorySize CostGraphDef'Node
x__)
                                        (Int64 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                                           (CostGraphDef'Node -> Int64
_CostGraphDef'Node'devicePersistentMemorySize CostGraphDef'Node
x__)
                                           (Int64 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                                              (CostGraphDef'Node -> Int64
_CostGraphDef'Node'computeCost CostGraphDef'Node
x__)
                                              (Int64 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                                                 (CostGraphDef'Node -> Int64
_CostGraphDef'Node'computeTime CostGraphDef'Node
x__)
                                                 (Int64 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                                                    (CostGraphDef'Node -> Int64
_CostGraphDef'Node'memoryTime CostGraphDef'Node
x__)
                                                    (Bool -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                                                       (CostGraphDef'Node -> Bool
_CostGraphDef'Node'isFinal CostGraphDef'Node
x__)
                                                       (Vector Int32 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                                                          (CostGraphDef'Node -> Vector Int32
_CostGraphDef'Node'controlInput CostGraphDef'Node
x__)
                                                          (Bool -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                                                             (CostGraphDef'Node -> Bool
_CostGraphDef'Node'inaccurate CostGraphDef'Node
x__)
                                                             ()))))))))))))))))
{- | Fields :
     
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.precedingNode' @:: Lens' CostGraphDef'Node'InputInfo Data.Int.Int32@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.precedingPort' @:: Lens' CostGraphDef'Node'InputInfo Data.Int.Int32@ -}
data CostGraphDef'Node'InputInfo
  = CostGraphDef'Node'InputInfo'_constructor {CostGraphDef'Node'InputInfo -> Int32
_CostGraphDef'Node'InputInfo'precedingNode :: !Data.Int.Int32,
                                              CostGraphDef'Node'InputInfo -> Int32
_CostGraphDef'Node'InputInfo'precedingPort :: !Data.Int.Int32,
                                              CostGraphDef'Node'InputInfo -> FieldSet
_CostGraphDef'Node'InputInfo'_unknownFields :: !Data.ProtoLens.FieldSet}
  deriving stock (CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo -> Bool
(CostGraphDef'Node'InputInfo
 -> CostGraphDef'Node'InputInfo -> Bool)
-> (CostGraphDef'Node'InputInfo
    -> CostGraphDef'Node'InputInfo -> Bool)
-> Eq CostGraphDef'Node'InputInfo
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo -> Bool
$c/= :: CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo -> Bool
== :: CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo -> Bool
$c== :: CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo -> Bool
Prelude.Eq, Eq CostGraphDef'Node'InputInfo
Eq CostGraphDef'Node'InputInfo =>
(CostGraphDef'Node'InputInfo
 -> CostGraphDef'Node'InputInfo -> Ordering)
-> (CostGraphDef'Node'InputInfo
    -> CostGraphDef'Node'InputInfo -> Bool)
-> (CostGraphDef'Node'InputInfo
    -> CostGraphDef'Node'InputInfo -> Bool)
-> (CostGraphDef'Node'InputInfo
    -> CostGraphDef'Node'InputInfo -> Bool)
-> (CostGraphDef'Node'InputInfo
    -> CostGraphDef'Node'InputInfo -> Bool)
-> (CostGraphDef'Node'InputInfo
    -> CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo)
-> (CostGraphDef'Node'InputInfo
    -> CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo)
-> Ord CostGraphDef'Node'InputInfo
CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo -> Bool
CostGraphDef'Node'InputInfo
-> CostGraphDef'Node'InputInfo -> Ordering
CostGraphDef'Node'InputInfo
-> CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo
forall a.
Eq a =>
(a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: CostGraphDef'Node'InputInfo
-> CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo
$cmin :: CostGraphDef'Node'InputInfo
-> CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo
max :: CostGraphDef'Node'InputInfo
-> CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo
$cmax :: CostGraphDef'Node'InputInfo
-> CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo
>= :: CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo -> Bool
$c>= :: CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo -> Bool
> :: CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo -> Bool
$c> :: CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo -> Bool
<= :: CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo -> Bool
$c<= :: CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo -> Bool
< :: CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo -> Bool
$c< :: CostGraphDef'Node'InputInfo -> CostGraphDef'Node'InputInfo -> Bool
compare :: CostGraphDef'Node'InputInfo
-> CostGraphDef'Node'InputInfo -> Ordering
$ccompare :: CostGraphDef'Node'InputInfo
-> CostGraphDef'Node'InputInfo -> Ordering
$cp1Ord :: Eq CostGraphDef'Node'InputInfo
Prelude.Ord)
instance Prelude.Show CostGraphDef'Node'InputInfo where
  showsPrec :: Int -> CostGraphDef'Node'InputInfo -> ShowS
showsPrec _ __x :: CostGraphDef'Node'InputInfo
__x __s :: String
__s
    = Char -> ShowS
Prelude.showChar
        '{'
        (String -> ShowS
Prelude.showString
           (CostGraphDef'Node'InputInfo -> String
forall msg. Message msg => msg -> String
Data.ProtoLens.showMessageShort CostGraphDef'Node'InputInfo
__x) (Char -> ShowS
Prelude.showChar '}' String
__s))
instance Data.ProtoLens.Field.HasField CostGraphDef'Node'InputInfo "precedingNode" Data.Int.Int32 where
  fieldOf :: Proxy# "precedingNode"
-> (Int32 -> f Int32)
-> CostGraphDef'Node'InputInfo
-> f CostGraphDef'Node'InputInfo
fieldOf _
    = ((Int32 -> f Int32)
 -> CostGraphDef'Node'InputInfo -> f CostGraphDef'Node'InputInfo)
-> ((Int32 -> f Int32) -> Int32 -> f Int32)
-> (Int32 -> f Int32)
-> CostGraphDef'Node'InputInfo
-> f CostGraphDef'Node'InputInfo
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node'InputInfo -> Int32)
-> (CostGraphDef'Node'InputInfo
    -> Int32 -> CostGraphDef'Node'InputInfo)
-> Lens
     CostGraphDef'Node'InputInfo CostGraphDef'Node'InputInfo Int32 Int32
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node'InputInfo -> Int32
_CostGraphDef'Node'InputInfo'precedingNode
           (\ x__ :: CostGraphDef'Node'InputInfo
x__ y__ :: Int32
y__
              -> CostGraphDef'Node'InputInfo
x__ {_CostGraphDef'Node'InputInfo'precedingNode :: Int32
_CostGraphDef'Node'InputInfo'precedingNode = Int32
y__}))
        (Int32 -> f Int32) -> Int32 -> f Int32
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node'InputInfo "precedingPort" Data.Int.Int32 where
  fieldOf :: Proxy# "precedingPort"
-> (Int32 -> f Int32)
-> CostGraphDef'Node'InputInfo
-> f CostGraphDef'Node'InputInfo
fieldOf _
    = ((Int32 -> f Int32)
 -> CostGraphDef'Node'InputInfo -> f CostGraphDef'Node'InputInfo)
-> ((Int32 -> f Int32) -> Int32 -> f Int32)
-> (Int32 -> f Int32)
-> CostGraphDef'Node'InputInfo
-> f CostGraphDef'Node'InputInfo
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node'InputInfo -> Int32)
-> (CostGraphDef'Node'InputInfo
    -> Int32 -> CostGraphDef'Node'InputInfo)
-> Lens
     CostGraphDef'Node'InputInfo CostGraphDef'Node'InputInfo Int32 Int32
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node'InputInfo -> Int32
_CostGraphDef'Node'InputInfo'precedingPort
           (\ x__ :: CostGraphDef'Node'InputInfo
x__ y__ :: Int32
y__
              -> CostGraphDef'Node'InputInfo
x__ {_CostGraphDef'Node'InputInfo'precedingPort :: Int32
_CostGraphDef'Node'InputInfo'precedingPort = Int32
y__}))
        (Int32 -> f Int32) -> Int32 -> f Int32
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Message CostGraphDef'Node'InputInfo where
  messageName :: Proxy CostGraphDef'Node'InputInfo -> Text
messageName _
    = String -> Text
Data.Text.pack "tensorflow.CostGraphDef.Node.InputInfo"
  packedMessageDescriptor :: Proxy CostGraphDef'Node'InputInfo -> ByteString
packedMessageDescriptor _
    = "\n\
      \\tInputInfo\DC2%\n\
      \\SOpreceding_node\CAN\SOH \SOH(\ENQR\rprecedingNode\DC2%\n\
      \\SOpreceding_port\CAN\STX \SOH(\ENQR\rprecedingPort"
  packedFileDescriptor :: Proxy CostGraphDef'Node'InputInfo -> ByteString
packedFileDescriptor _ = ByteString
packedFileDescriptor
  fieldsByTag :: Map Tag (FieldDescriptor CostGraphDef'Node'InputInfo)
fieldsByTag
    = let
        precedingNode__field_descriptor :: FieldDescriptor CostGraphDef'Node'InputInfo
precedingNode__field_descriptor
          = String
-> FieldTypeDescriptor Int32
-> FieldAccessor CostGraphDef'Node'InputInfo Int32
-> FieldDescriptor CostGraphDef'Node'InputInfo
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "preceding_node"
              (ScalarField Int32 -> FieldTypeDescriptor Int32
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Int32
Data.ProtoLens.Int32Field ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)
              (WireDefault Int32
-> Lens
     CostGraphDef'Node'InputInfo CostGraphDef'Node'InputInfo Int32 Int32
-> FieldAccessor CostGraphDef'Node'InputInfo Int32
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Int32
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
                 (forall s a (f :: * -> *).
(HasField s "precedingNode" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"precedingNode")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node'InputInfo
        precedingPort__field_descriptor :: FieldDescriptor CostGraphDef'Node'InputInfo
precedingPort__field_descriptor
          = String
-> FieldTypeDescriptor Int32
-> FieldAccessor CostGraphDef'Node'InputInfo Int32
-> FieldDescriptor CostGraphDef'Node'InputInfo
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "preceding_port"
              (ScalarField Int32 -> FieldTypeDescriptor Int32
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Int32
Data.ProtoLens.Int32Field ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32)
              (WireDefault Int32
-> Lens
     CostGraphDef'Node'InputInfo CostGraphDef'Node'InputInfo Int32 Int32
-> FieldAccessor CostGraphDef'Node'InputInfo Int32
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Int32
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
                 (forall s a (f :: * -> *).
(HasField s "precedingPort" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"precedingPort")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node'InputInfo
      in
        [(Tag, FieldDescriptor CostGraphDef'Node'InputInfo)]
-> Map Tag (FieldDescriptor CostGraphDef'Node'InputInfo)
forall k a. Ord k => [(k, a)] -> Map k a
Data.Map.fromList
          [(Int -> Tag
Data.ProtoLens.Tag 1, FieldDescriptor CostGraphDef'Node'InputInfo
precedingNode__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 2, FieldDescriptor CostGraphDef'Node'InputInfo
precedingPort__field_descriptor)]
  unknownFields :: LensLike' f CostGraphDef'Node'InputInfo FieldSet
unknownFields
    = (CostGraphDef'Node'InputInfo -> FieldSet)
-> (CostGraphDef'Node'InputInfo
    -> FieldSet -> CostGraphDef'Node'InputInfo)
-> Lens' CostGraphDef'Node'InputInfo FieldSet
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
        CostGraphDef'Node'InputInfo -> FieldSet
_CostGraphDef'Node'InputInfo'_unknownFields
        (\ x__ :: CostGraphDef'Node'InputInfo
x__ y__ :: FieldSet
y__
           -> CostGraphDef'Node'InputInfo
x__ {_CostGraphDef'Node'InputInfo'_unknownFields :: FieldSet
_CostGraphDef'Node'InputInfo'_unknownFields = FieldSet
y__})
  defMessage :: CostGraphDef'Node'InputInfo
defMessage
    = $WCostGraphDef'Node'InputInfo'_constructor :: Int32 -> Int32 -> FieldSet -> CostGraphDef'Node'InputInfo
CostGraphDef'Node'InputInfo'_constructor
        {_CostGraphDef'Node'InputInfo'precedingNode :: Int32
_CostGraphDef'Node'InputInfo'precedingNode = Int32
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'Node'InputInfo'precedingPort :: Int32
_CostGraphDef'Node'InputInfo'precedingPort = Int32
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'Node'InputInfo'_unknownFields :: FieldSet
_CostGraphDef'Node'InputInfo'_unknownFields = []}
  parseMessage :: Parser CostGraphDef'Node'InputInfo
parseMessage
    = let
        loop ::
          CostGraphDef'Node'InputInfo
          -> Data.ProtoLens.Encoding.Bytes.Parser CostGraphDef'Node'InputInfo
        loop :: CostGraphDef'Node'InputInfo -> Parser CostGraphDef'Node'InputInfo
loop x :: CostGraphDef'Node'InputInfo
x
          = do Bool
end <- Parser Bool
Data.ProtoLens.Encoding.Bytes.atEnd
               if Bool
end then
                   do (let missing :: [a]
missing = []
                       in
                         if [Any] -> Bool
forall (t :: * -> *) a. Foldable t => t a -> Bool
Prelude.null [Any]
forall a. [a]
missing then
                             () -> Parser ()
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return ()
                         else
                             String -> Parser ()
forall (m :: * -> *) a. MonadFail m => String -> m a
Prelude.fail
                               (String -> ShowS
forall a. [a] -> [a] -> [a]
(Prelude.++)
                                  "Missing required fields: "
                                  ([String] -> String
forall a. Show a => a -> String
Prelude.show ([String]
forall a. [a]
missing :: [Prelude.String]))))
                      CostGraphDef'Node'InputInfo -> Parser CostGraphDef'Node'InputInfo
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return
                        (Setter
  CostGraphDef'Node'InputInfo
  CostGraphDef'Node'InputInfo
  FieldSet
  FieldSet
-> (FieldSet -> FieldSet)
-> CostGraphDef'Node'InputInfo
-> CostGraphDef'Node'InputInfo
forall s t a b. Setter s t a b -> (a -> b) -> s -> t
Lens.Family2.over
                           forall msg. Message msg => Lens' msg FieldSet
Setter
  CostGraphDef'Node'InputInfo
  CostGraphDef'Node'InputInfo
  FieldSet
  FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> FieldSet -> FieldSet
forall a. [a] -> [a]
Prelude.reverse FieldSet
t) CostGraphDef'Node'InputInfo
x)
               else
                   do Word64
tag <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                      case Word64
tag of
                        8 -> do Int32
y <- Parser Int32 -> String -> Parser Int32
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Word64 -> Int32) -> Parser Word64 -> Parser Int32
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          Word64 -> Int32
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                          Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                       "preceding_node"
                                CostGraphDef'Node'InputInfo -> Parser CostGraphDef'Node'InputInfo
loop
                                  (Setter
  CostGraphDef'Node'InputInfo CostGraphDef'Node'InputInfo Int32 Int32
-> Int32
-> CostGraphDef'Node'InputInfo
-> CostGraphDef'Node'InputInfo
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
                                     (forall s a (f :: * -> *).
(HasField s "precedingNode" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"precedingNode") Int32
y CostGraphDef'Node'InputInfo
x)
                        16
                          -> do Int32
y <- Parser Int32 -> String -> Parser Int32
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Word64 -> Int32) -> Parser Word64 -> Parser Int32
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          Word64 -> Int32
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                          Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                       "preceding_port"
                                CostGraphDef'Node'InputInfo -> Parser CostGraphDef'Node'InputInfo
loop
                                  (Setter
  CostGraphDef'Node'InputInfo CostGraphDef'Node'InputInfo Int32 Int32
-> Int32
-> CostGraphDef'Node'InputInfo
-> CostGraphDef'Node'InputInfo
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
                                     (forall s a (f :: * -> *).
(HasField s "precedingPort" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"precedingPort") Int32
y CostGraphDef'Node'InputInfo
x)
                        wire :: Word64
wire
                          -> do !TaggedValue
y <- Word64 -> Parser TaggedValue
Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire
                                        Word64
wire
                                CostGraphDef'Node'InputInfo -> Parser CostGraphDef'Node'InputInfo
loop
                                  (Setter
  CostGraphDef'Node'InputInfo
  CostGraphDef'Node'InputInfo
  FieldSet
  FieldSet
-> (FieldSet -> FieldSet)
-> CostGraphDef'Node'InputInfo
-> CostGraphDef'Node'InputInfo
forall s t a b. Setter s t a b -> (a -> b) -> s -> t
Lens.Family2.over
                                     forall msg. Message msg => Lens' msg FieldSet
Setter
  CostGraphDef'Node'InputInfo
  CostGraphDef'Node'InputInfo
  FieldSet
  FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> (:) TaggedValue
y FieldSet
t) CostGraphDef'Node'InputInfo
x)
      in
        Parser CostGraphDef'Node'InputInfo
-> String -> Parser CostGraphDef'Node'InputInfo
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
          (do CostGraphDef'Node'InputInfo -> Parser CostGraphDef'Node'InputInfo
loop CostGraphDef'Node'InputInfo
forall msg. Message msg => msg
Data.ProtoLens.defMessage) "InputInfo"
  buildMessage :: CostGraphDef'Node'InputInfo -> Builder
buildMessage
    = \ _x :: CostGraphDef'Node'InputInfo
_x
        -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
             (let
                _v :: Int32
_v
                  = FoldLike
  Int32
  CostGraphDef'Node'InputInfo
  CostGraphDef'Node'InputInfo
  Int32
  Int32
-> CostGraphDef'Node'InputInfo -> Int32
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                      (forall s a (f :: * -> *).
(HasField s "precedingNode" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"precedingNode") CostGraphDef'Node'InputInfo
_x
              in
                if Int32 -> Int32 -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Int32
_v Int32
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                    Builder
forall a. Monoid a => a
Data.Monoid.mempty
                else
                    Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                      (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 8)
                      ((Word64 -> Builder) -> (Int32 -> Word64) -> Int32 -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                         Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt Int32 -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int32
_v))
             (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                (let
                   _v :: Int32
_v
                     = FoldLike
  Int32
  CostGraphDef'Node'InputInfo
  CostGraphDef'Node'InputInfo
  Int32
  Int32
-> CostGraphDef'Node'InputInfo -> Int32
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                         (forall s a (f :: * -> *).
(HasField s "precedingPort" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"precedingPort") CostGraphDef'Node'InputInfo
_x
                 in
                   if Int32 -> Int32 -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Int32
_v Int32
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                       Builder
forall a. Monoid a => a
Data.Monoid.mempty
                   else
                       Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                         (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 16)
                         ((Word64 -> Builder) -> (Int32 -> Word64) -> Int32 -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                            Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt Int32 -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int32
_v))
                (FieldSet -> Builder
Data.ProtoLens.Encoding.Wire.buildFieldSet
                   (FoldLike
  FieldSet
  CostGraphDef'Node'InputInfo
  CostGraphDef'Node'InputInfo
  FieldSet
  FieldSet
-> CostGraphDef'Node'InputInfo -> FieldSet
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view FoldLike
  FieldSet
  CostGraphDef'Node'InputInfo
  CostGraphDef'Node'InputInfo
  FieldSet
  FieldSet
forall msg. Message msg => Lens' msg FieldSet
Data.ProtoLens.unknownFields CostGraphDef'Node'InputInfo
_x)))
instance Control.DeepSeq.NFData CostGraphDef'Node'InputInfo where
  rnf :: CostGraphDef'Node'InputInfo -> ()
rnf
    = \ x__ :: CostGraphDef'Node'InputInfo
x__
        -> FieldSet -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
             (CostGraphDef'Node'InputInfo -> FieldSet
_CostGraphDef'Node'InputInfo'_unknownFields CostGraphDef'Node'InputInfo
x__)
             (Int32 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                (CostGraphDef'Node'InputInfo -> Int32
_CostGraphDef'Node'InputInfo'precedingNode CostGraphDef'Node'InputInfo
x__)
                (Int32 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                   (CostGraphDef'Node'InputInfo -> Int32
_CostGraphDef'Node'InputInfo'precedingPort CostGraphDef'Node'InputInfo
x__) ()))
{- | Fields :
     
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.size' @:: Lens' CostGraphDef'Node'OutputInfo Data.Int.Int64@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.aliasInputPort' @:: Lens' CostGraphDef'Node'OutputInfo Data.Int.Int64@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.shape' @:: Lens' CostGraphDef'Node'OutputInfo Proto.Tensorflow.Core.Framework.TensorShape.TensorShapeProto@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.maybe'shape' @:: Lens' CostGraphDef'Node'OutputInfo (Prelude.Maybe Proto.Tensorflow.Core.Framework.TensorShape.TensorShapeProto)@
         * 'Proto.Tensorflow.Core.Framework.CostGraph_Fields.dtype' @:: Lens' CostGraphDef'Node'OutputInfo Proto.Tensorflow.Core.Framework.Types.DataType@ -}
data CostGraphDef'Node'OutputInfo
  = CostGraphDef'Node'OutputInfo'_constructor {CostGraphDef'Node'OutputInfo -> Int64
_CostGraphDef'Node'OutputInfo'size :: !Data.Int.Int64,
                                               CostGraphDef'Node'OutputInfo -> Int64
_CostGraphDef'Node'OutputInfo'aliasInputPort :: !Data.Int.Int64,
                                               CostGraphDef'Node'OutputInfo -> Maybe TensorShapeProto
_CostGraphDef'Node'OutputInfo'shape :: !(Prelude.Maybe Proto.Tensorflow.Core.Framework.TensorShape.TensorShapeProto),
                                               CostGraphDef'Node'OutputInfo -> DataType
_CostGraphDef'Node'OutputInfo'dtype :: !Proto.Tensorflow.Core.Framework.Types.DataType,
                                               CostGraphDef'Node'OutputInfo -> FieldSet
_CostGraphDef'Node'OutputInfo'_unknownFields :: !Data.ProtoLens.FieldSet}
  deriving stock (CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> Bool
(CostGraphDef'Node'OutputInfo
 -> CostGraphDef'Node'OutputInfo -> Bool)
-> (CostGraphDef'Node'OutputInfo
    -> CostGraphDef'Node'OutputInfo -> Bool)
-> Eq CostGraphDef'Node'OutputInfo
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> Bool
$c/= :: CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> Bool
== :: CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> Bool
$c== :: CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> Bool
Prelude.Eq, Eq CostGraphDef'Node'OutputInfo
Eq CostGraphDef'Node'OutputInfo =>
(CostGraphDef'Node'OutputInfo
 -> CostGraphDef'Node'OutputInfo -> Ordering)
-> (CostGraphDef'Node'OutputInfo
    -> CostGraphDef'Node'OutputInfo -> Bool)
-> (CostGraphDef'Node'OutputInfo
    -> CostGraphDef'Node'OutputInfo -> Bool)
-> (CostGraphDef'Node'OutputInfo
    -> CostGraphDef'Node'OutputInfo -> Bool)
-> (CostGraphDef'Node'OutputInfo
    -> CostGraphDef'Node'OutputInfo -> Bool)
-> (CostGraphDef'Node'OutputInfo
    -> CostGraphDef'Node'OutputInfo -> CostGraphDef'Node'OutputInfo)
-> (CostGraphDef'Node'OutputInfo
    -> CostGraphDef'Node'OutputInfo -> CostGraphDef'Node'OutputInfo)
-> Ord CostGraphDef'Node'OutputInfo
CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> Bool
CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> Ordering
CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> CostGraphDef'Node'OutputInfo
forall a.
Eq a =>
(a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> CostGraphDef'Node'OutputInfo
$cmin :: CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> CostGraphDef'Node'OutputInfo
max :: CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> CostGraphDef'Node'OutputInfo
$cmax :: CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> CostGraphDef'Node'OutputInfo
>= :: CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> Bool
$c>= :: CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> Bool
> :: CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> Bool
$c> :: CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> Bool
<= :: CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> Bool
$c<= :: CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> Bool
< :: CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> Bool
$c< :: CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> Bool
compare :: CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> Ordering
$ccompare :: CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo -> Ordering
$cp1Ord :: Eq CostGraphDef'Node'OutputInfo
Prelude.Ord)
instance Prelude.Show CostGraphDef'Node'OutputInfo where
  showsPrec :: Int -> CostGraphDef'Node'OutputInfo -> ShowS
showsPrec _ __x :: CostGraphDef'Node'OutputInfo
__x __s :: String
__s
    = Char -> ShowS
Prelude.showChar
        '{'
        (String -> ShowS
Prelude.showString
           (CostGraphDef'Node'OutputInfo -> String
forall msg. Message msg => msg -> String
Data.ProtoLens.showMessageShort CostGraphDef'Node'OutputInfo
__x) (Char -> ShowS
Prelude.showChar '}' String
__s))
instance Data.ProtoLens.Field.HasField CostGraphDef'Node'OutputInfo "size" Data.Int.Int64 where
  fieldOf :: Proxy# "size"
-> (Int64 -> f Int64)
-> CostGraphDef'Node'OutputInfo
-> f CostGraphDef'Node'OutputInfo
fieldOf _
    = ((Int64 -> f Int64)
 -> CostGraphDef'Node'OutputInfo -> f CostGraphDef'Node'OutputInfo)
-> ((Int64 -> f Int64) -> Int64 -> f Int64)
-> (Int64 -> f Int64)
-> CostGraphDef'Node'OutputInfo
-> f CostGraphDef'Node'OutputInfo
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node'OutputInfo -> Int64)
-> (CostGraphDef'Node'OutputInfo
    -> Int64 -> CostGraphDef'Node'OutputInfo)
-> Lens
     CostGraphDef'Node'OutputInfo
     CostGraphDef'Node'OutputInfo
     Int64
     Int64
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node'OutputInfo -> Int64
_CostGraphDef'Node'OutputInfo'size
           (\ x__ :: CostGraphDef'Node'OutputInfo
x__ y__ :: Int64
y__ -> CostGraphDef'Node'OutputInfo
x__ {_CostGraphDef'Node'OutputInfo'size :: Int64
_CostGraphDef'Node'OutputInfo'size = Int64
y__}))
        (Int64 -> f Int64) -> Int64 -> f Int64
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node'OutputInfo "aliasInputPort" Data.Int.Int64 where
  fieldOf :: Proxy# "aliasInputPort"
-> (Int64 -> f Int64)
-> CostGraphDef'Node'OutputInfo
-> f CostGraphDef'Node'OutputInfo
fieldOf _
    = ((Int64 -> f Int64)
 -> CostGraphDef'Node'OutputInfo -> f CostGraphDef'Node'OutputInfo)
-> ((Int64 -> f Int64) -> Int64 -> f Int64)
-> (Int64 -> f Int64)
-> CostGraphDef'Node'OutputInfo
-> f CostGraphDef'Node'OutputInfo
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node'OutputInfo -> Int64)
-> (CostGraphDef'Node'OutputInfo
    -> Int64 -> CostGraphDef'Node'OutputInfo)
-> Lens
     CostGraphDef'Node'OutputInfo
     CostGraphDef'Node'OutputInfo
     Int64
     Int64
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node'OutputInfo -> Int64
_CostGraphDef'Node'OutputInfo'aliasInputPort
           (\ x__ :: CostGraphDef'Node'OutputInfo
x__ y__ :: Int64
y__
              -> CostGraphDef'Node'OutputInfo
x__ {_CostGraphDef'Node'OutputInfo'aliasInputPort :: Int64
_CostGraphDef'Node'OutputInfo'aliasInputPort = Int64
y__}))
        (Int64 -> f Int64) -> Int64 -> f Int64
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node'OutputInfo "shape" Proto.Tensorflow.Core.Framework.TensorShape.TensorShapeProto where
  fieldOf :: Proxy# "shape"
-> (TensorShapeProto -> f TensorShapeProto)
-> CostGraphDef'Node'OutputInfo
-> f CostGraphDef'Node'OutputInfo
fieldOf _
    = ((Maybe TensorShapeProto -> f (Maybe TensorShapeProto))
 -> CostGraphDef'Node'OutputInfo -> f CostGraphDef'Node'OutputInfo)
-> ((TensorShapeProto -> f TensorShapeProto)
    -> Maybe TensorShapeProto -> f (Maybe TensorShapeProto))
-> (TensorShapeProto -> f TensorShapeProto)
-> CostGraphDef'Node'OutputInfo
-> f CostGraphDef'Node'OutputInfo
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node'OutputInfo -> Maybe TensorShapeProto)
-> (CostGraphDef'Node'OutputInfo
    -> Maybe TensorShapeProto -> CostGraphDef'Node'OutputInfo)
-> Lens
     CostGraphDef'Node'OutputInfo
     CostGraphDef'Node'OutputInfo
     (Maybe TensorShapeProto)
     (Maybe TensorShapeProto)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node'OutputInfo -> Maybe TensorShapeProto
_CostGraphDef'Node'OutputInfo'shape
           (\ x__ :: CostGraphDef'Node'OutputInfo
x__ y__ :: Maybe TensorShapeProto
y__ -> CostGraphDef'Node'OutputInfo
x__ {_CostGraphDef'Node'OutputInfo'shape :: Maybe TensorShapeProto
_CostGraphDef'Node'OutputInfo'shape = Maybe TensorShapeProto
y__}))
        (TensorShapeProto -> Lens' (Maybe TensorShapeProto) TensorShapeProto
forall b. b -> Lens' (Maybe b) b
Data.ProtoLens.maybeLens TensorShapeProto
forall msg. Message msg => msg
Data.ProtoLens.defMessage)
instance Data.ProtoLens.Field.HasField CostGraphDef'Node'OutputInfo "maybe'shape" (Prelude.Maybe Proto.Tensorflow.Core.Framework.TensorShape.TensorShapeProto) where
  fieldOf :: Proxy# "maybe'shape"
-> (Maybe TensorShapeProto -> f (Maybe TensorShapeProto))
-> CostGraphDef'Node'OutputInfo
-> f CostGraphDef'Node'OutputInfo
fieldOf _
    = ((Maybe TensorShapeProto -> f (Maybe TensorShapeProto))
 -> CostGraphDef'Node'OutputInfo -> f CostGraphDef'Node'OutputInfo)
-> ((Maybe TensorShapeProto -> f (Maybe TensorShapeProto))
    -> Maybe TensorShapeProto -> f (Maybe TensorShapeProto))
-> (Maybe TensorShapeProto -> f (Maybe TensorShapeProto))
-> CostGraphDef'Node'OutputInfo
-> f CostGraphDef'Node'OutputInfo
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node'OutputInfo -> Maybe TensorShapeProto)
-> (CostGraphDef'Node'OutputInfo
    -> Maybe TensorShapeProto -> CostGraphDef'Node'OutputInfo)
-> Lens
     CostGraphDef'Node'OutputInfo
     CostGraphDef'Node'OutputInfo
     (Maybe TensorShapeProto)
     (Maybe TensorShapeProto)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node'OutputInfo -> Maybe TensorShapeProto
_CostGraphDef'Node'OutputInfo'shape
           (\ x__ :: CostGraphDef'Node'OutputInfo
x__ y__ :: Maybe TensorShapeProto
y__ -> CostGraphDef'Node'OutputInfo
x__ {_CostGraphDef'Node'OutputInfo'shape :: Maybe TensorShapeProto
_CostGraphDef'Node'OutputInfo'shape = Maybe TensorShapeProto
y__}))
        (Maybe TensorShapeProto -> f (Maybe TensorShapeProto))
-> Maybe TensorShapeProto -> f (Maybe TensorShapeProto)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField CostGraphDef'Node'OutputInfo "dtype" Proto.Tensorflow.Core.Framework.Types.DataType where
  fieldOf :: Proxy# "dtype"
-> (DataType -> f DataType)
-> CostGraphDef'Node'OutputInfo
-> f CostGraphDef'Node'OutputInfo
fieldOf _
    = ((DataType -> f DataType)
 -> CostGraphDef'Node'OutputInfo -> f CostGraphDef'Node'OutputInfo)
-> ((DataType -> f DataType) -> DataType -> f DataType)
-> (DataType -> f DataType)
-> CostGraphDef'Node'OutputInfo
-> f CostGraphDef'Node'OutputInfo
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((CostGraphDef'Node'OutputInfo -> DataType)
-> (CostGraphDef'Node'OutputInfo
    -> DataType -> CostGraphDef'Node'OutputInfo)
-> Lens
     CostGraphDef'Node'OutputInfo
     CostGraphDef'Node'OutputInfo
     DataType
     DataType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           CostGraphDef'Node'OutputInfo -> DataType
_CostGraphDef'Node'OutputInfo'dtype
           (\ x__ :: CostGraphDef'Node'OutputInfo
x__ y__ :: DataType
y__ -> CostGraphDef'Node'OutputInfo
x__ {_CostGraphDef'Node'OutputInfo'dtype :: DataType
_CostGraphDef'Node'OutputInfo'dtype = DataType
y__}))
        (DataType -> f DataType) -> DataType -> f DataType
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Message CostGraphDef'Node'OutputInfo where
  messageName :: Proxy CostGraphDef'Node'OutputInfo -> Text
messageName _
    = String -> Text
Data.Text.pack "tensorflow.CostGraphDef.Node.OutputInfo"
  packedMessageDescriptor :: Proxy CostGraphDef'Node'OutputInfo -> ByteString
packedMessageDescriptor _
    = "\n\
      \\n\
      \OutputInfo\DC2\DC2\n\
      \\EOTsize\CAN\SOH \SOH(\ETXR\EOTsize\DC2(\n\
      \\DLEalias_input_port\CAN\STX \SOH(\ETXR\SOaliasInputPort\DC22\n\
      \\ENQshape\CAN\ETX \SOH(\v2\FS.tensorflow.TensorShapeProtoR\ENQshape\DC2*\n\
      \\ENQdtype\CAN\EOT \SOH(\SO2\DC4.tensorflow.DataTypeR\ENQdtype"
  packedFileDescriptor :: Proxy CostGraphDef'Node'OutputInfo -> ByteString
packedFileDescriptor _ = ByteString
packedFileDescriptor
  fieldsByTag :: Map Tag (FieldDescriptor CostGraphDef'Node'OutputInfo)
fieldsByTag
    = let
        size__field_descriptor :: FieldDescriptor CostGraphDef'Node'OutputInfo
size__field_descriptor
          = String
-> FieldTypeDescriptor Int64
-> FieldAccessor CostGraphDef'Node'OutputInfo Int64
-> FieldDescriptor CostGraphDef'Node'OutputInfo
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "size"
              (ScalarField Int64 -> FieldTypeDescriptor Int64
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Int64
Data.ProtoLens.Int64Field ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)
              (WireDefault Int64
-> Lens
     CostGraphDef'Node'OutputInfo
     CostGraphDef'Node'OutputInfo
     Int64
     Int64
-> FieldAccessor CostGraphDef'Node'OutputInfo Int64
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Int64
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional (forall s a (f :: * -> *).
(HasField s "size" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"size")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node'OutputInfo
        aliasInputPort__field_descriptor :: FieldDescriptor CostGraphDef'Node'OutputInfo
aliasInputPort__field_descriptor
          = String
-> FieldTypeDescriptor Int64
-> FieldAccessor CostGraphDef'Node'OutputInfo Int64
-> FieldDescriptor CostGraphDef'Node'OutputInfo
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "alias_input_port"
              (ScalarField Int64 -> FieldTypeDescriptor Int64
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Int64
Data.ProtoLens.Int64Field ::
                 Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64)
              (WireDefault Int64
-> Lens
     CostGraphDef'Node'OutputInfo
     CostGraphDef'Node'OutputInfo
     Int64
     Int64
-> FieldAccessor CostGraphDef'Node'OutputInfo Int64
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault Int64
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
                 (forall s a (f :: * -> *).
(HasField s "aliasInputPort" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"aliasInputPort")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node'OutputInfo
        shape__field_descriptor :: FieldDescriptor CostGraphDef'Node'OutputInfo
shape__field_descriptor
          = String
-> FieldTypeDescriptor TensorShapeProto
-> FieldAccessor CostGraphDef'Node'OutputInfo TensorShapeProto
-> FieldDescriptor CostGraphDef'Node'OutputInfo
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "shape"
              (MessageOrGroup -> FieldTypeDescriptor TensorShapeProto
forall value.
Message value =>
MessageOrGroup -> FieldTypeDescriptor value
Data.ProtoLens.MessageField MessageOrGroup
Data.ProtoLens.MessageType ::
                 Data.ProtoLens.FieldTypeDescriptor Proto.Tensorflow.Core.Framework.TensorShape.TensorShapeProto)
              (Lens
  CostGraphDef'Node'OutputInfo
  CostGraphDef'Node'OutputInfo
  (Maybe TensorShapeProto)
  (Maybe TensorShapeProto)
-> FieldAccessor CostGraphDef'Node'OutputInfo TensorShapeProto
forall msg value.
Lens' msg (Maybe value) -> FieldAccessor msg value
Data.ProtoLens.OptionalField
                 (forall s a (f :: * -> *).
(HasField s "maybe'shape" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"maybe'shape")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node'OutputInfo
        dtype__field_descriptor :: FieldDescriptor CostGraphDef'Node'OutputInfo
dtype__field_descriptor
          = String
-> FieldTypeDescriptor DataType
-> FieldAccessor CostGraphDef'Node'OutputInfo DataType
-> FieldDescriptor CostGraphDef'Node'OutputInfo
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "dtype"
              (ScalarField DataType -> FieldTypeDescriptor DataType
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField DataType
forall t. MessageEnum t => ScalarField t
Data.ProtoLens.EnumField ::
                 Data.ProtoLens.FieldTypeDescriptor Proto.Tensorflow.Core.Framework.Types.DataType)
              (WireDefault DataType
-> Lens
     CostGraphDef'Node'OutputInfo
     CostGraphDef'Node'OutputInfo
     DataType
     DataType
-> FieldAccessor CostGraphDef'Node'OutputInfo DataType
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
                 WireDefault DataType
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional (forall s a (f :: * -> *).
(HasField s "dtype" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"dtype")) ::
              Data.ProtoLens.FieldDescriptor CostGraphDef'Node'OutputInfo
      in
        [(Tag, FieldDescriptor CostGraphDef'Node'OutputInfo)]
-> Map Tag (FieldDescriptor CostGraphDef'Node'OutputInfo)
forall k a. Ord k => [(k, a)] -> Map k a
Data.Map.fromList
          [(Int -> Tag
Data.ProtoLens.Tag 1, FieldDescriptor CostGraphDef'Node'OutputInfo
size__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 2, FieldDescriptor CostGraphDef'Node'OutputInfo
aliasInputPort__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 3, FieldDescriptor CostGraphDef'Node'OutputInfo
shape__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 4, FieldDescriptor CostGraphDef'Node'OutputInfo
dtype__field_descriptor)]
  unknownFields :: LensLike' f CostGraphDef'Node'OutputInfo FieldSet
unknownFields
    = (CostGraphDef'Node'OutputInfo -> FieldSet)
-> (CostGraphDef'Node'OutputInfo
    -> FieldSet -> CostGraphDef'Node'OutputInfo)
-> Lens' CostGraphDef'Node'OutputInfo FieldSet
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
        CostGraphDef'Node'OutputInfo -> FieldSet
_CostGraphDef'Node'OutputInfo'_unknownFields
        (\ x__ :: CostGraphDef'Node'OutputInfo
x__ y__ :: FieldSet
y__
           -> CostGraphDef'Node'OutputInfo
x__ {_CostGraphDef'Node'OutputInfo'_unknownFields :: FieldSet
_CostGraphDef'Node'OutputInfo'_unknownFields = FieldSet
y__})
  defMessage :: CostGraphDef'Node'OutputInfo
defMessage
    = $WCostGraphDef'Node'OutputInfo'_constructor :: Int64
-> Int64
-> Maybe TensorShapeProto
-> DataType
-> FieldSet
-> CostGraphDef'Node'OutputInfo
CostGraphDef'Node'OutputInfo'_constructor
        {_CostGraphDef'Node'OutputInfo'size :: Int64
_CostGraphDef'Node'OutputInfo'size = Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'Node'OutputInfo'aliasInputPort :: Int64
_CostGraphDef'Node'OutputInfo'aliasInputPort = Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'Node'OutputInfo'shape :: Maybe TensorShapeProto
_CostGraphDef'Node'OutputInfo'shape = Maybe TensorShapeProto
forall a. Maybe a
Prelude.Nothing,
         _CostGraphDef'Node'OutputInfo'dtype :: DataType
_CostGraphDef'Node'OutputInfo'dtype = DataType
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _CostGraphDef'Node'OutputInfo'_unknownFields :: FieldSet
_CostGraphDef'Node'OutputInfo'_unknownFields = []}
  parseMessage :: Parser CostGraphDef'Node'OutputInfo
parseMessage
    = let
        loop ::
          CostGraphDef'Node'OutputInfo
          -> Data.ProtoLens.Encoding.Bytes.Parser CostGraphDef'Node'OutputInfo
        loop :: CostGraphDef'Node'OutputInfo -> Parser CostGraphDef'Node'OutputInfo
loop x :: CostGraphDef'Node'OutputInfo
x
          = do Bool
end <- Parser Bool
Data.ProtoLens.Encoding.Bytes.atEnd
               if Bool
end then
                   do (let missing :: [a]
missing = []
                       in
                         if [Any] -> Bool
forall (t :: * -> *) a. Foldable t => t a -> Bool
Prelude.null [Any]
forall a. [a]
missing then
                             () -> Parser ()
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return ()
                         else
                             String -> Parser ()
forall (m :: * -> *) a. MonadFail m => String -> m a
Prelude.fail
                               (String -> ShowS
forall a. [a] -> [a] -> [a]
(Prelude.++)
                                  "Missing required fields: "
                                  ([String] -> String
forall a. Show a => a -> String
Prelude.show ([String]
forall a. [a]
missing :: [Prelude.String]))))
                      CostGraphDef'Node'OutputInfo -> Parser CostGraphDef'Node'OutputInfo
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return
                        (Setter
  CostGraphDef'Node'OutputInfo
  CostGraphDef'Node'OutputInfo
  FieldSet
  FieldSet
-> (FieldSet -> FieldSet)
-> CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo
forall s t a b. Setter s t a b -> (a -> b) -> s -> t
Lens.Family2.over
                           forall msg. Message msg => Lens' msg FieldSet
Setter
  CostGraphDef'Node'OutputInfo
  CostGraphDef'Node'OutputInfo
  FieldSet
  FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> FieldSet -> FieldSet
forall a. [a] -> [a]
Prelude.reverse FieldSet
t) CostGraphDef'Node'OutputInfo
x)
               else
                   do Word64
tag <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                      case Word64
tag of
                        8 -> do Int64
y <- Parser Int64 -> String -> Parser Int64
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Word64 -> Int64) -> Parser Word64 -> Parser Int64
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          Word64 -> Int64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                          Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                       "size"
                                CostGraphDef'Node'OutputInfo -> Parser CostGraphDef'Node'OutputInfo
loop (Setter
  CostGraphDef'Node'OutputInfo
  CostGraphDef'Node'OutputInfo
  Int64
  Int64
-> Int64
-> CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "size" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"size") Int64
y CostGraphDef'Node'OutputInfo
x)
                        16
                          -> do Int64
y <- Parser Int64 -> String -> Parser Int64
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Word64 -> Int64) -> Parser Word64 -> Parser Int64
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          Word64 -> Int64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                          Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt)
                                       "alias_input_port"
                                CostGraphDef'Node'OutputInfo -> Parser CostGraphDef'Node'OutputInfo
loop
                                  (Setter
  CostGraphDef'Node'OutputInfo
  CostGraphDef'Node'OutputInfo
  Int64
  Int64
-> Int64
-> CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
                                     (forall s a (f :: * -> *).
(HasField s "aliasInputPort" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"aliasInputPort") Int64
y CostGraphDef'Node'OutputInfo
x)
                        26
                          -> do TensorShapeProto
y <- Parser TensorShapeProto -> String -> Parser TensorShapeProto
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       (do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                                           Int -> Parser TensorShapeProto -> Parser TensorShapeProto
forall a. Int -> Parser a -> Parser a
Data.ProtoLens.Encoding.Bytes.isolate
                                             (Word64 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Word64
len) Parser TensorShapeProto
forall msg. Message msg => Parser msg
Data.ProtoLens.parseMessage)
                                       "shape"
                                CostGraphDef'Node'OutputInfo -> Parser CostGraphDef'Node'OutputInfo
loop (Setter
  CostGraphDef'Node'OutputInfo
  CostGraphDef'Node'OutputInfo
  TensorShapeProto
  TensorShapeProto
-> TensorShapeProto
-> CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "shape" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"shape") TensorShapeProto
y CostGraphDef'Node'OutputInfo
x)
                        32
                          -> do DataType
y <- Parser DataType -> String -> Parser DataType
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       ((Int -> DataType) -> Parser Int -> Parser DataType
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                          Int -> DataType
forall a. Enum a => Int -> a
Prelude.toEnum
                                          ((Word64 -> Int) -> Parser Word64 -> Parser Int
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
                                             Word64 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral
                                             Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt))
                                       "dtype"
                                CostGraphDef'Node'OutputInfo -> Parser CostGraphDef'Node'OutputInfo
loop (Setter
  CostGraphDef'Node'OutputInfo
  CostGraphDef'Node'OutputInfo
  DataType
  DataType
-> DataType
-> CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "dtype" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"dtype") DataType
y CostGraphDef'Node'OutputInfo
x)
                        wire :: Word64
wire
                          -> do !TaggedValue
y <- Word64 -> Parser TaggedValue
Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire
                                        Word64
wire
                                CostGraphDef'Node'OutputInfo -> Parser CostGraphDef'Node'OutputInfo
loop
                                  (Setter
  CostGraphDef'Node'OutputInfo
  CostGraphDef'Node'OutputInfo
  FieldSet
  FieldSet
-> (FieldSet -> FieldSet)
-> CostGraphDef'Node'OutputInfo
-> CostGraphDef'Node'OutputInfo
forall s t a b. Setter s t a b -> (a -> b) -> s -> t
Lens.Family2.over
                                     forall msg. Message msg => Lens' msg FieldSet
Setter
  CostGraphDef'Node'OutputInfo
  CostGraphDef'Node'OutputInfo
  FieldSet
  FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> (:) TaggedValue
y FieldSet
t) CostGraphDef'Node'OutputInfo
x)
      in
        Parser CostGraphDef'Node'OutputInfo
-> String -> Parser CostGraphDef'Node'OutputInfo
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
          (do CostGraphDef'Node'OutputInfo -> Parser CostGraphDef'Node'OutputInfo
loop CostGraphDef'Node'OutputInfo
forall msg. Message msg => msg
Data.ProtoLens.defMessage) "OutputInfo"
  buildMessage :: CostGraphDef'Node'OutputInfo -> Builder
buildMessage
    = \ _x :: CostGraphDef'Node'OutputInfo
_x
        -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
             (let _v :: Int64
_v = FoldLike
  Int64
  CostGraphDef'Node'OutputInfo
  CostGraphDef'Node'OutputInfo
  Int64
  Int64
-> CostGraphDef'Node'OutputInfo -> Int64
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "size" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"size") CostGraphDef'Node'OutputInfo
_x
              in
                if Int64 -> Int64 -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Int64
_v Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                    Builder
forall a. Monoid a => a
Data.Monoid.mempty
                else
                    Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                      (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 8)
                      ((Word64 -> Builder) -> (Int64 -> Word64) -> Int64 -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                         Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt Int64 -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int64
_v))
             (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                (let
                   _v :: Int64
_v
                     = FoldLike
  Int64
  CostGraphDef'Node'OutputInfo
  CostGraphDef'Node'OutputInfo
  Int64
  Int64
-> CostGraphDef'Node'OutputInfo -> Int64
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
                         (forall s a (f :: * -> *).
(HasField s "aliasInputPort" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"aliasInputPort") CostGraphDef'Node'OutputInfo
_x
                 in
                   if Int64 -> Int64 -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) Int64
_v Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                       Builder
forall a. Monoid a => a
Data.Monoid.mempty
                   else
                       Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                         (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 16)
                         ((Word64 -> Builder) -> (Int64 -> Word64) -> Int64 -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                            Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt Int64 -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int64
_v))
                (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                   (case
                        FoldLike
  (Maybe TensorShapeProto)
  CostGraphDef'Node'OutputInfo
  CostGraphDef'Node'OutputInfo
  (Maybe TensorShapeProto)
  (Maybe TensorShapeProto)
-> CostGraphDef'Node'OutputInfo -> Maybe TensorShapeProto
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "maybe'shape" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"maybe'shape") CostGraphDef'Node'OutputInfo
_x
                    of
                      Prelude.Nothing -> Builder
forall a. Monoid a => a
Data.Monoid.mempty
                      (Prelude.Just _v :: TensorShapeProto
_v)
                        -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                             (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 26)
                             ((ByteString -> Builder)
-> (TensorShapeProto -> ByteString) -> TensorShapeProto -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                (\ bs :: ByteString
bs
                                   -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                        (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
                                           (Int -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral (ByteString -> Int
Data.ByteString.length ByteString
bs)))
                                        (ByteString -> Builder
Data.ProtoLens.Encoding.Bytes.putBytes ByteString
bs))
                                TensorShapeProto -> ByteString
forall msg. Message msg => msg -> ByteString
Data.ProtoLens.encodeMessage
                                TensorShapeProto
_v))
                   (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                      (let
                         _v :: DataType
_v = FoldLike
  DataType
  CostGraphDef'Node'OutputInfo
  CostGraphDef'Node'OutputInfo
  DataType
  DataType
-> CostGraphDef'Node'OutputInfo -> DataType
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "dtype" a, Functor f) =>
(a -> f a) -> s -> f s
forall (x :: Symbol) s a (f :: * -> *).
(HasField s x a, Functor f) =>
(a -> f a) -> s -> f s
Data.ProtoLens.Field.field @"dtype") CostGraphDef'Node'OutputInfo
_x
                       in
                         if DataType -> DataType -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) DataType
_v DataType
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault then
                             Builder
forall a. Monoid a => a
Data.Monoid.mempty
                         else
                             Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                               (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 32)
                               ((Int -> Builder) -> (DataType -> Int) -> DataType -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                  ((Word64 -> Builder) -> (Int -> Word64) -> Int -> Builder
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
                                     Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt Int -> Word64
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral)
                                  DataType -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum
                                  DataType
_v))
                      (FieldSet -> Builder
Data.ProtoLens.Encoding.Wire.buildFieldSet
                         (FoldLike
  FieldSet
  CostGraphDef'Node'OutputInfo
  CostGraphDef'Node'OutputInfo
  FieldSet
  FieldSet
-> CostGraphDef'Node'OutputInfo -> FieldSet
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view FoldLike
  FieldSet
  CostGraphDef'Node'OutputInfo
  CostGraphDef'Node'OutputInfo
  FieldSet
  FieldSet
forall msg. Message msg => Lens' msg FieldSet
Data.ProtoLens.unknownFields CostGraphDef'Node'OutputInfo
_x)))))
instance Control.DeepSeq.NFData CostGraphDef'Node'OutputInfo where
  rnf :: CostGraphDef'Node'OutputInfo -> ()
rnf
    = \ x__ :: CostGraphDef'Node'OutputInfo
x__
        -> FieldSet -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
             (CostGraphDef'Node'OutputInfo -> FieldSet
_CostGraphDef'Node'OutputInfo'_unknownFields CostGraphDef'Node'OutputInfo
x__)
             (Int64 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                (CostGraphDef'Node'OutputInfo -> Int64
_CostGraphDef'Node'OutputInfo'size CostGraphDef'Node'OutputInfo
x__)
                (Int64 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                   (CostGraphDef'Node'OutputInfo -> Int64
_CostGraphDef'Node'OutputInfo'aliasInputPort CostGraphDef'Node'OutputInfo
x__)
                   (Maybe TensorShapeProto -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                      (CostGraphDef'Node'OutputInfo -> Maybe TensorShapeProto
_CostGraphDef'Node'OutputInfo'shape CostGraphDef'Node'OutputInfo
x__)
                      (DataType -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                         (CostGraphDef'Node'OutputInfo -> DataType
_CostGraphDef'Node'OutputInfo'dtype CostGraphDef'Node'OutputInfo
x__) ()))))
packedFileDescriptor :: Data.ByteString.ByteString
packedFileDescriptor :: ByteString
packedFileDescriptor
  = "\n\
    \*tensorflow/core/framework/cost_graph.proto\DC2\n\
    \tensorflow\SUB,tensorflow/core/framework/tensor_shape.proto\SUB%tensorflow/core/framework/types.proto\"\140\t\n\
    \\fCostGraphDef\DC21\n\
    \\EOTnode\CAN\SOH \ETX(\v2\GS.tensorflow.CostGraphDef.NodeR\EOTnode\DC2;\n\
    \\EOTcost\CAN\STX \ETX(\v2'.tensorflow.CostGraphDef.AggregatedCostR\EOTcost\SUB\199\a\n\
    \\EOTNode\DC2\DC2\n\
    \\EOTname\CAN\SOH \SOH(\tR\EOTname\DC2\SYN\n\
    \\ACKdevice\CAN\STX \SOH(\tR\ACKdevice\DC2\SO\n\
    \\STXid\CAN\ETX \SOH(\ENQR\STXid\DC2F\n\
    \\n\
    \input_info\CAN\EOT \ETX(\v2'.tensorflow.CostGraphDef.Node.InputInfoR\tinputInfo\DC2I\n\
    \\voutput_info\CAN\ENQ \ETX(\v2(.tensorflow.CostGraphDef.Node.OutputInfoR\n\
    \outputInfo\DC22\n\
    \\NAKtemporary_memory_size\CAN\ACK \SOH(\ETXR\DC3temporaryMemorySize\DC24\n\
    \\SYNpersistent_memory_size\CAN\f \SOH(\ETXR\DC4persistentMemorySize\DC25\n\
    \\NAKhost_temp_memory_size\CAN\n\
    \ \SOH(\ETXR\DC2hostTempMemorySizeB\STX\CAN\SOH\DC29\n\
    \\ETBdevice_temp_memory_size\CAN\v \SOH(\ETXR\DC4deviceTempMemorySizeB\STX\CAN\SOH\DC2E\n\
    \\GSdevice_persistent_memory_size\CAN\DLE \SOH(\ETXR\SUBdevicePersistentMemorySizeB\STX\CAN\SOH\DC2!\n\
    \\fcompute_cost\CAN\t \SOH(\ETXR\vcomputeCost\DC2!\n\
    \\fcompute_time\CAN\SO \SOH(\ETXR\vcomputeTime\DC2\US\n\
    \\vmemory_time\CAN\SI \SOH(\ETXR\n\
    \memoryTime\DC2\EM\n\
    \\bis_final\CAN\a \SOH(\bR\aisFinal\DC2#\n\
    \\rcontrol_input\CAN\b \ETX(\ENQR\fcontrolInput\DC2\RS\n\
    \\n\
    \inaccurate\CAN\DC1 \SOH(\bR\n\
    \inaccurate\SUBY\n\
    \\tInputInfo\DC2%\n\
    \\SOpreceding_node\CAN\SOH \SOH(\ENQR\rprecedingNode\DC2%\n\
    \\SOpreceding_port\CAN\STX \SOH(\ENQR\rprecedingPort\SUB\170\SOH\n\
    \\n\
    \OutputInfo\DC2\DC2\n\
    \\EOTsize\CAN\SOH \SOH(\ETXR\EOTsize\DC2(\n\
    \\DLEalias_input_port\CAN\STX \SOH(\ETXR\SOaliasInputPort\DC22\n\
    \\ENQshape\CAN\ETX \SOH(\v2\FS.tensorflow.TensorShapeProtoR\ENQshape\DC2*\n\
    \\ENQdtype\CAN\EOT \SOH(\SO2\DC4.tensorflow.DataTypeR\ENQdtype\SUBB\n\
    \\SOAggregatedCost\DC2\DC2\n\
    \\EOTcost\CAN\SOH \SOH(\STXR\EOTcost\DC2\FS\n\
    \\tdimension\CAN\STX \SOH(\tR\tdimensionB\131\SOH\n\
    \\CANorg.tensorflow.frameworkB\SICostGraphProtosP\SOHZQgithub.com/tensorflow/tensorflow/tensorflow/go/core/framework/cost_graph_go_proto\248\SOH\SOHJ\247\SUB\n\
    \\ACK\DC2\EOT\NUL\NULX\SOH\n\
    \\b\n\
    \\SOH\f\DC2\ETX\NUL\NUL\DC2\n\
    \\b\n\
    \\SOH\STX\DC2\ETX\STX\NUL\DC3\n\
    \\t\n\
    \\STX\ETX\NUL\DC2\ETX\EOT\NUL6\n\
    \\t\n\
    \\STX\ETX\SOH\DC2\ETX\ENQ\NUL/\n\
    \\b\n\
    \\SOH\b\DC2\ETX\a\NUL\US\n\
    \\t\n\
    \\STX\b\US\DC2\ETX\a\NUL\US\n\
    \\b\n\
    \\SOH\b\DC2\ETX\b\NUL0\n\
    \\t\n\
    \\STX\b\b\DC2\ETX\b\NUL0\n\
    \\b\n\
    \\SOH\b\DC2\ETX\t\NUL\"\n\
    \\t\n\
    \\STX\b\n\
    \\DC2\ETX\t\NUL\"\n\
    \\b\n\
    \\SOH\b\DC2\ETX\n\
    \\NUL1\n\
    \\t\n\
    \\STX\b\SOH\DC2\ETX\n\
    \\NUL1\n\
    \\b\n\
    \\SOH\b\DC2\ETX\v\NULh\n\
    \\t\n\
    \\STX\b\v\DC2\ETX\v\NULh\n\
    \\n\
    \\n\
    \\STX\EOT\NUL\DC2\EOT\r\NULX\SOH\n\
    \\n\
    \\n\
    \\ETX\EOT\NUL\SOH\DC2\ETX\r\b\DC4\n\
    \\f\n\
    \\EOT\EOT\NUL\ETX\NUL\DC2\EOT\SO\STXL\ETX\n\
    \\f\n\
    \\ENQ\EOT\NUL\ETX\NUL\SOH\DC2\ETX\SO\n\
    \\SO\n\
    \A\n\
    \\ACK\EOT\NUL\ETX\NUL\STX\NUL\DC2\ETX\DLE\EOT\DC4\SUB2 The name of the node. Names are globally unique.\n\
    \\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\NUL\ENQ\DC2\ETX\DLE\EOT\n\
    \\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\NUL\SOH\DC2\ETX\DLE\v\SI\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\NUL\ETX\DC2\ETX\DLE\DC2\DC3\n\
    \\138\SOH\n\
    \\ACK\EOT\NUL\ETX\NUL\STX\SOH\DC2\ETX\DC4\EOT\SYN\SUB{ The device of the node. Can be empty if the node is mapped to the\n\
    \ default partition or partitioning hasn't been run yet.\n\
    \\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\SOH\ENQ\DC2\ETX\DC4\EOT\n\
    \\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\SOH\SOH\DC2\ETX\DC4\v\DC1\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\SOH\ETX\DC2\ETX\DC4\DC4\NAK\n\
    \Q\n\
    \\ACK\EOT\NUL\ETX\NUL\STX\STX\DC2\ETX\ETB\EOT\DC1\SUBB The id of the node. Node ids are only unique inside a partition.\n\
    \\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\STX\ENQ\DC2\ETX\ETB\EOT\t\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\STX\SOH\DC2\ETX\ETB\n\
    \\f\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\STX\ETX\DC2\ETX\ETB\SI\DLE\n\
    \\193\SOH\n\
    \\ACK\EOT\NUL\ETX\NUL\ETX\NUL\DC2\EOT\FS\EOT\US\ENQ\SUB\176\SOH Inputs of this node. They must be executed before this node can be\n\
    \ executed. An input is a particular output of another node, specified\n\
    \ by the node id and the output index.\n\
    \\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\ETX\NUL\SOH\DC2\ETX\FS\f\NAK\n\
    \\SI\n\
    \\b\EOT\NUL\ETX\NUL\ETX\NUL\STX\NUL\DC2\ETX\GS\ACK\US\n\
    \\DLE\n\
    \\t\EOT\NUL\ETX\NUL\ETX\NUL\STX\NUL\ENQ\DC2\ETX\GS\ACK\v\n\
    \\DLE\n\
    \\t\EOT\NUL\ETX\NUL\ETX\NUL\STX\NUL\SOH\DC2\ETX\GS\f\SUB\n\
    \\DLE\n\
    \\t\EOT\NUL\ETX\NUL\ETX\NUL\STX\NUL\ETX\DC2\ETX\GS\GS\RS\n\
    \\SI\n\
    \\b\EOT\NUL\ETX\NUL\ETX\NUL\STX\SOH\DC2\ETX\RS\ACK\US\n\
    \\DLE\n\
    \\t\EOT\NUL\ETX\NUL\ETX\NUL\STX\SOH\ENQ\DC2\ETX\RS\ACK\v\n\
    \\DLE\n\
    \\t\EOT\NUL\ETX\NUL\ETX\NUL\STX\SOH\SOH\DC2\ETX\RS\f\SUB\n\
    \\DLE\n\
    \\t\EOT\NUL\ETX\NUL\ETX\NUL\STX\SOH\ETX\DC2\ETX\RS\GS\RS\n\
    \\r\n\
    \\ACK\EOT\NUL\ETX\NUL\STX\ETX\DC2\ETX \EOT&\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\ETX\EOT\DC2\ETX \EOT\f\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\ETX\ACK\DC2\ETX \r\SYN\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\ETX\SOH\DC2\ETX \ETB!\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\ETX\ETX\DC2\ETX $%\n\
    \'\n\
    \\ACK\EOT\NUL\ETX\NUL\ETX\SOH\DC2\EOT#\EOT+\ENQ\SUB\ETB Outputs of this node.\n\
    \\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\ETX\SOH\SOH\DC2\ETX#\f\SYN\n\
    \\SI\n\
    \\b\EOT\NUL\ETX\NUL\ETX\SOH\STX\NUL\DC2\ETX$\ACK\NAK\n\
    \\DLE\n\
    \\t\EOT\NUL\ETX\NUL\ETX\SOH\STX\NUL\ENQ\DC2\ETX$\ACK\v\n\
    \\DLE\n\
    \\t\EOT\NUL\ETX\NUL\ETX\SOH\STX\NUL\SOH\DC2\ETX$\f\DLE\n\
    \\DLE\n\
    \\t\EOT\NUL\ETX\NUL\ETX\SOH\STX\NUL\ETX\DC2\ETX$\DC3\DC4\n\
    \\175\SOH\n\
    \\b\EOT\NUL\ETX\NUL\ETX\SOH\STX\SOH\DC2\ETX(\ACK!\SUB\157\SOH If >= 0, the output is an alias of an input. Note that an alias input\n\
    \ may itself be an alias. The algorithm will therefore need to follow\n\
    \ those pointers.\n\
    \\n\
    \\DLE\n\
    \\t\EOT\NUL\ETX\NUL\ETX\SOH\STX\SOH\ENQ\DC2\ETX(\ACK\v\n\
    \\DLE\n\
    \\t\EOT\NUL\ETX\NUL\ETX\SOH\STX\SOH\SOH\DC2\ETX(\f\FS\n\
    \\DLE\n\
    \\t\EOT\NUL\ETX\NUL\ETX\SOH\STX\SOH\ETX\DC2\ETX(\US \n\
    \\SI\n\
    \\b\EOT\NUL\ETX\NUL\ETX\SOH\STX\STX\DC2\ETX)\ACK!\n\
    \\DLE\n\
    \\t\EOT\NUL\ETX\NUL\ETX\SOH\STX\STX\ACK\DC2\ETX)\ACK\SYN\n\
    \\DLE\n\
    \\t\EOT\NUL\ETX\NUL\ETX\SOH\STX\STX\SOH\DC2\ETX)\ETB\FS\n\
    \\DLE\n\
    \\t\EOT\NUL\ETX\NUL\ETX\SOH\STX\STX\ETX\DC2\ETX)\US \n\
    \\SI\n\
    \\b\EOT\NUL\ETX\NUL\ETX\SOH\STX\ETX\DC2\ETX*\ACK\EM\n\
    \\DLE\n\
    \\t\EOT\NUL\ETX\NUL\ETX\SOH\STX\ETX\ACK\DC2\ETX*\ACK\SO\n\
    \\DLE\n\
    \\t\EOT\NUL\ETX\NUL\ETX\SOH\STX\ETX\SOH\DC2\ETX*\SI\DC4\n\
    \\DLE\n\
    \\t\EOT\NUL\ETX\NUL\ETX\SOH\STX\ETX\ETX\DC2\ETX*\ETB\CAN\n\
    \\r\n\
    \\ACK\EOT\NUL\ETX\NUL\STX\EOT\DC2\ETX,\EOT(\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\EOT\EOT\DC2\ETX,\EOT\f\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\EOT\ACK\DC2\ETX,\r\ETB\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\EOT\SOH\DC2\ETX,\CAN#\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\EOT\ETX\DC2\ETX,&'\n\
    \4\n\
    \\ACK\EOT\NUL\ETX\NUL\STX\ENQ\DC2\ETX/\EOT$\SUB% Temporary memory used by this node.\n\
    \\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\ENQ\ENQ\DC2\ETX/\EOT\t\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\ENQ\SOH\DC2\ETX/\n\
    \\US\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\ENQ\ETX\DC2\ETX/\"#\n\
    \5\n\
    \\ACK\EOT\NUL\ETX\NUL\STX\ACK\DC2\ETX2\EOT&\SUB& Persistent memory used by this node.\n\
    \\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\ACK\ENQ\DC2\ETX2\EOT\t\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\ACK\SOH\DC2\ETX2\n\
    \ \n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\ACK\ETX\DC2\ETX2#%\n\
    \\r\n\
    \\ACK\EOT\NUL\ETX\NUL\STX\a\DC2\ETX4\EOT9\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\a\ENQ\DC2\ETX4\EOT\t\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\a\SOH\DC2\ETX4\n\
    \\US\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\a\ETX\DC2\ETX4\"$\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\a\b\DC2\ETX4%8\n\
    \\SI\n\
    \\b\EOT\NUL\ETX\NUL\STX\a\b\ETX\DC2\ETX4&7\n\
    \\r\n\
    \\ACK\EOT\NUL\ETX\NUL\STX\b\DC2\ETX5\EOT;\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\b\ENQ\DC2\ETX5\EOT\t\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\b\SOH\DC2\ETX5\n\
    \!\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\b\ETX\DC2\ETX5$&\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\b\b\DC2\ETX5':\n\
    \\SI\n\
    \\b\EOT\NUL\ETX\NUL\STX\b\b\ETX\DC2\ETX5(9\n\
    \\r\n\
    \\ACK\EOT\NUL\ETX\NUL\STX\t\DC2\ETX6\EOTA\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\t\ENQ\DC2\ETX6\EOT\t\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\t\SOH\DC2\ETX6\n\
    \'\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\t\ETX\DC2\ETX6*,\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\t\b\DC2\ETX6-@\n\
    \\SI\n\
    \\b\EOT\NUL\ETX\NUL\STX\t\b\ETX\DC2\ETX6.?\n\
    \R\n\
    \\ACK\EOT\NUL\ETX\NUL\STX\n\
    \\DC2\ETX9\EOT\ESC\SUBC Estimate of the computational cost of this node, in microseconds.\n\
    \\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\n\
    \\ENQ\DC2\ETX9\EOT\t\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\n\
    \\SOH\DC2\ETX9\n\
    \\SYN\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\n\
    \\ETX\DC2\ETX9\EM\SUB\n\
    \^\n\
    \\ACK\EOT\NUL\ETX\NUL\STX\v\DC2\ETX=\EOT\FS\SUBO Analytical estimate of the computational cost of this node, in\n\
    \ microseconds.\n\
    \\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\v\ENQ\DC2\ETX=\EOT\t\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\v\SOH\DC2\ETX=\n\
    \\SYN\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\v\ETX\DC2\ETX=\EM\ESC\n\
    \^\n\
    \\ACK\EOT\NUL\ETX\NUL\STX\f\DC2\ETXA\EOT\ESC\SUBO Analytical estimate of the memory access cost of this node, in\n\
    \ microseconds.\n\
    \\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\f\ENQ\DC2\ETXA\EOT\t\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\f\SOH\DC2\ETXA\n\
    \\NAK\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\f\ETX\DC2\ETXA\CAN\SUB\n\
    \\157\SOH\n\
    \\ACK\EOT\NUL\ETX\NUL\STX\r\DC2\ETXE\EOT\SYN\SUB\141\SOH If true, the output is permanent: it can't be discarded, because this\n\
    \ node is part of the \"final output\". Nodes may depend on final nodes.\n\
    \\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\r\ENQ\DC2\ETXE\EOT\b\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\r\SOH\DC2\ETXE\t\DC1\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\r\ETX\DC2\ETXE\DC4\NAK\n\
    \9\n\
    \\ACK\EOT\NUL\ETX\NUL\STX\SO\DC2\ETXH\EOT%\SUB* Ids of the control inputs for this node.\n\
    \\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\SO\EOT\DC2\ETXH\EOT\f\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\SO\ENQ\DC2\ETXH\r\DC2\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\SO\SOH\DC2\ETXH\DC3 \n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\SO\ETX\DC2\ETXH#$\n\
    \*\n\
    \\ACK\EOT\NUL\ETX\NUL\STX\SI\DC2\ETXK\EOT\EM\SUB\ESC Are the costs inaccurate?\n\
    \\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\SI\ENQ\DC2\ETXK\EOT\b\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\SI\SOH\DC2\ETXK\t\DC3\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\NUL\STX\SI\ETX\DC2\ETXK\SYN\CAN\n\
    \\v\n\
    \\EOT\EOT\NUL\STX\NUL\DC2\ETXM\STX\EM\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\NUL\EOT\DC2\ETXM\STX\n\
    \\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\NUL\ACK\DC2\ETXM\v\SI\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\NUL\SOH\DC2\ETXM\DLE\DC4\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\NUL\ETX\DC2\ETXM\ETB\CAN\n\
    \Q\n\
    \\EOT\EOT\NUL\ETX\SOH\DC2\EOTP\STXV\ETX\SUBC Total cost of this graph, typically used for balancing decisions.\n\
    \\n\
    \\f\n\
    \\ENQ\EOT\NUL\ETX\SOH\SOH\DC2\ETXP\n\
    \\CAN\n\
    \'\n\
    \\ACK\EOT\NUL\ETX\SOH\STX\NUL\DC2\ETXR\EOT\DC3\SUB\CAN Aggregated cost value.\n\
    \\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\SOH\STX\NUL\ENQ\DC2\ETXR\EOT\t\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\SOH\STX\NUL\SOH\DC2\ETXR\n\
    \\SO\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\SOH\STX\NUL\ETX\DC2\ETXR\DC1\DC2\n\
    \Q\n\
    \\ACK\EOT\NUL\ETX\SOH\STX\SOH\DC2\ETXU\EOT\EM\SUBB Aggregated cost dimension (e.g. 'memory', 'compute', 'network').\n\
    \\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\SOH\STX\SOH\ENQ\DC2\ETXU\EOT\n\
    \\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\SOH\STX\SOH\SOH\DC2\ETXU\v\DC4\n\
    \\SO\n\
    \\a\EOT\NUL\ETX\SOH\STX\SOH\ETX\DC2\ETXU\ETB\CAN\n\
    \\v\n\
    \\EOT\EOT\NUL\STX\SOH\DC2\ETXW\STX#\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\SOH\EOT\DC2\ETXW\STX\n\
    \\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\SOH\ACK\DC2\ETXW\v\EM\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\SOH\SOH\DC2\ETXW\SUB\RS\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\SOH\ETX\DC2\ETXW!\"b\ACKproto3"