{- This file was auto-generated from tensorflow/core/framework/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.Graph (
        GraphDef()
    ) 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.Function
import qualified Proto.Tensorflow.Core.Framework.NodeDef
import qualified Proto.Tensorflow.Core.Framework.Versions
{- | Fields :
     
         * 'Proto.Tensorflow.Core.Framework.Graph_Fields.node' @:: Lens' GraphDef [Proto.Tensorflow.Core.Framework.NodeDef.NodeDef]@
         * 'Proto.Tensorflow.Core.Framework.Graph_Fields.vec'node' @:: Lens' GraphDef (Data.Vector.Vector Proto.Tensorflow.Core.Framework.NodeDef.NodeDef)@
         * 'Proto.Tensorflow.Core.Framework.Graph_Fields.versions' @:: Lens' GraphDef Proto.Tensorflow.Core.Framework.Versions.VersionDef@
         * 'Proto.Tensorflow.Core.Framework.Graph_Fields.maybe'versions' @:: Lens' GraphDef (Prelude.Maybe Proto.Tensorflow.Core.Framework.Versions.VersionDef)@
         * 'Proto.Tensorflow.Core.Framework.Graph_Fields.version' @:: Lens' GraphDef Data.Int.Int32@
         * 'Proto.Tensorflow.Core.Framework.Graph_Fields.library' @:: Lens' GraphDef Proto.Tensorflow.Core.Framework.Function.FunctionDefLibrary@
         * 'Proto.Tensorflow.Core.Framework.Graph_Fields.maybe'library' @:: Lens' GraphDef (Prelude.Maybe Proto.Tensorflow.Core.Framework.Function.FunctionDefLibrary)@ -}
data GraphDef
  = GraphDef'_constructor {GraphDef -> Vector NodeDef
_GraphDef'node :: !(Data.Vector.Vector Proto.Tensorflow.Core.Framework.NodeDef.NodeDef),
                           GraphDef -> Maybe VersionDef
_GraphDef'versions :: !(Prelude.Maybe Proto.Tensorflow.Core.Framework.Versions.VersionDef),
                           GraphDef -> Int32
_GraphDef'version :: !Data.Int.Int32,
                           GraphDef -> Maybe FunctionDefLibrary
_GraphDef'library :: !(Prelude.Maybe Proto.Tensorflow.Core.Framework.Function.FunctionDefLibrary),
                           GraphDef -> FieldSet
_GraphDef'_unknownFields :: !Data.ProtoLens.FieldSet}
  deriving stock (GraphDef -> GraphDef -> Bool
(GraphDef -> GraphDef -> Bool)
-> (GraphDef -> GraphDef -> Bool) -> Eq GraphDef
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: GraphDef -> GraphDef -> Bool
$c/= :: GraphDef -> GraphDef -> Bool
== :: GraphDef -> GraphDef -> Bool
$c== :: GraphDef -> GraphDef -> Bool
Prelude.Eq, Eq GraphDef
Eq GraphDef =>
(GraphDef -> GraphDef -> Ordering)
-> (GraphDef -> GraphDef -> Bool)
-> (GraphDef -> GraphDef -> Bool)
-> (GraphDef -> GraphDef -> Bool)
-> (GraphDef -> GraphDef -> Bool)
-> (GraphDef -> GraphDef -> GraphDef)
-> (GraphDef -> GraphDef -> GraphDef)
-> Ord GraphDef
GraphDef -> GraphDef -> Bool
GraphDef -> GraphDef -> Ordering
GraphDef -> GraphDef -> GraphDef
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 :: GraphDef -> GraphDef -> GraphDef
$cmin :: GraphDef -> GraphDef -> GraphDef
max :: GraphDef -> GraphDef -> GraphDef
$cmax :: GraphDef -> GraphDef -> GraphDef
>= :: GraphDef -> GraphDef -> Bool
$c>= :: GraphDef -> GraphDef -> Bool
> :: GraphDef -> GraphDef -> Bool
$c> :: GraphDef -> GraphDef -> Bool
<= :: GraphDef -> GraphDef -> Bool
$c<= :: GraphDef -> GraphDef -> Bool
< :: GraphDef -> GraphDef -> Bool
$c< :: GraphDef -> GraphDef -> Bool
compare :: GraphDef -> GraphDef -> Ordering
$ccompare :: GraphDef -> GraphDef -> Ordering
$cp1Ord :: Eq GraphDef
Prelude.Ord)
instance Prelude.Show GraphDef where
  showsPrec :: Int -> GraphDef -> ShowS
showsPrec _ __x :: GraphDef
__x __s :: String
__s
    = Char -> ShowS
Prelude.showChar
        '{'
        (String -> ShowS
Prelude.showString
           (GraphDef -> String
forall msg. Message msg => msg -> String
Data.ProtoLens.showMessageShort GraphDef
__x) (Char -> ShowS
Prelude.showChar '}' String
__s))
instance Data.ProtoLens.Field.HasField GraphDef "node" [Proto.Tensorflow.Core.Framework.NodeDef.NodeDef] where
  fieldOf :: Proxy# "node"
-> ([NodeDef] -> f [NodeDef]) -> GraphDef -> f GraphDef
fieldOf _
    = ((Vector NodeDef -> f (Vector NodeDef)) -> GraphDef -> f GraphDef)
-> (([NodeDef] -> f [NodeDef])
    -> Vector NodeDef -> f (Vector NodeDef))
-> ([NodeDef] -> f [NodeDef])
-> GraphDef
-> f GraphDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((GraphDef -> Vector NodeDef)
-> (GraphDef -> Vector NodeDef -> GraphDef)
-> Lens GraphDef GraphDef (Vector NodeDef) (Vector NodeDef)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           GraphDef -> Vector NodeDef
_GraphDef'node (\ x__ :: GraphDef
x__ y__ :: Vector NodeDef
y__ -> GraphDef
x__ {_GraphDef'node :: Vector NodeDef
_GraphDef'node = Vector NodeDef
y__}))
        ((Vector NodeDef -> [NodeDef])
-> (Vector NodeDef -> [NodeDef] -> Vector NodeDef)
-> Lens (Vector NodeDef) (Vector NodeDef) [NodeDef] [NodeDef]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           Vector NodeDef -> [NodeDef]
forall (v :: * -> *) a. Vector v a => v a -> [a]
Data.Vector.Generic.toList
           (\ _ y__ :: [NodeDef]
y__ -> [NodeDef] -> Vector NodeDef
forall (v :: * -> *) a. Vector v a => [a] -> v a
Data.Vector.Generic.fromList [NodeDef]
y__))
instance Data.ProtoLens.Field.HasField GraphDef "vec'node" (Data.Vector.Vector Proto.Tensorflow.Core.Framework.NodeDef.NodeDef) where
  fieldOf :: Proxy# "vec'node"
-> (Vector NodeDef -> f (Vector NodeDef)) -> GraphDef -> f GraphDef
fieldOf _
    = ((Vector NodeDef -> f (Vector NodeDef)) -> GraphDef -> f GraphDef)
-> ((Vector NodeDef -> f (Vector NodeDef))
    -> Vector NodeDef -> f (Vector NodeDef))
-> (Vector NodeDef -> f (Vector NodeDef))
-> GraphDef
-> f GraphDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((GraphDef -> Vector NodeDef)
-> (GraphDef -> Vector NodeDef -> GraphDef)
-> Lens GraphDef GraphDef (Vector NodeDef) (Vector NodeDef)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           GraphDef -> Vector NodeDef
_GraphDef'node (\ x__ :: GraphDef
x__ y__ :: Vector NodeDef
y__ -> GraphDef
x__ {_GraphDef'node :: Vector NodeDef
_GraphDef'node = Vector NodeDef
y__}))
        (Vector NodeDef -> f (Vector NodeDef))
-> Vector NodeDef -> f (Vector NodeDef)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField GraphDef "versions" Proto.Tensorflow.Core.Framework.Versions.VersionDef where
  fieldOf :: Proxy# "versions"
-> (VersionDef -> f VersionDef) -> GraphDef -> f GraphDef
fieldOf _
    = ((Maybe VersionDef -> f (Maybe VersionDef))
 -> GraphDef -> f GraphDef)
-> ((VersionDef -> f VersionDef)
    -> Maybe VersionDef -> f (Maybe VersionDef))
-> (VersionDef -> f VersionDef)
-> GraphDef
-> f GraphDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((GraphDef -> Maybe VersionDef)
-> (GraphDef -> Maybe VersionDef -> GraphDef)
-> Lens GraphDef GraphDef (Maybe VersionDef) (Maybe VersionDef)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           GraphDef -> Maybe VersionDef
_GraphDef'versions (\ x__ :: GraphDef
x__ y__ :: Maybe VersionDef
y__ -> GraphDef
x__ {_GraphDef'versions :: Maybe VersionDef
_GraphDef'versions = Maybe VersionDef
y__}))
        (VersionDef -> Lens' (Maybe VersionDef) VersionDef
forall b. b -> Lens' (Maybe b) b
Data.ProtoLens.maybeLens VersionDef
forall msg. Message msg => msg
Data.ProtoLens.defMessage)
instance Data.ProtoLens.Field.HasField GraphDef "maybe'versions" (Prelude.Maybe Proto.Tensorflow.Core.Framework.Versions.VersionDef) where
  fieldOf :: Proxy# "maybe'versions"
-> (Maybe VersionDef -> f (Maybe VersionDef))
-> GraphDef
-> f GraphDef
fieldOf _
    = ((Maybe VersionDef -> f (Maybe VersionDef))
 -> GraphDef -> f GraphDef)
-> ((Maybe VersionDef -> f (Maybe VersionDef))
    -> Maybe VersionDef -> f (Maybe VersionDef))
-> (Maybe VersionDef -> f (Maybe VersionDef))
-> GraphDef
-> f GraphDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((GraphDef -> Maybe VersionDef)
-> (GraphDef -> Maybe VersionDef -> GraphDef)
-> Lens GraphDef GraphDef (Maybe VersionDef) (Maybe VersionDef)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           GraphDef -> Maybe VersionDef
_GraphDef'versions (\ x__ :: GraphDef
x__ y__ :: Maybe VersionDef
y__ -> GraphDef
x__ {_GraphDef'versions :: Maybe VersionDef
_GraphDef'versions = Maybe VersionDef
y__}))
        (Maybe VersionDef -> f (Maybe VersionDef))
-> Maybe VersionDef -> f (Maybe VersionDef)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField GraphDef "version" Data.Int.Int32 where
  fieldOf :: Proxy# "version" -> (Int32 -> f Int32) -> GraphDef -> f GraphDef
fieldOf _
    = ((Int32 -> f Int32) -> GraphDef -> f GraphDef)
-> ((Int32 -> f Int32) -> Int32 -> f Int32)
-> (Int32 -> f Int32)
-> GraphDef
-> f GraphDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((GraphDef -> Int32)
-> (GraphDef -> Int32 -> GraphDef)
-> Lens GraphDef GraphDef Int32 Int32
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           GraphDef -> Int32
_GraphDef'version (\ x__ :: GraphDef
x__ y__ :: Int32
y__ -> GraphDef
x__ {_GraphDef'version :: Int32
_GraphDef'version = Int32
y__}))
        (Int32 -> f Int32) -> Int32 -> f Int32
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField GraphDef "library" Proto.Tensorflow.Core.Framework.Function.FunctionDefLibrary where
  fieldOf :: Proxy# "library"
-> (FunctionDefLibrary -> f FunctionDefLibrary)
-> GraphDef
-> f GraphDef
fieldOf _
    = ((Maybe FunctionDefLibrary -> f (Maybe FunctionDefLibrary))
 -> GraphDef -> f GraphDef)
-> ((FunctionDefLibrary -> f FunctionDefLibrary)
    -> Maybe FunctionDefLibrary -> f (Maybe FunctionDefLibrary))
-> (FunctionDefLibrary -> f FunctionDefLibrary)
-> GraphDef
-> f GraphDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((GraphDef -> Maybe FunctionDefLibrary)
-> (GraphDef -> Maybe FunctionDefLibrary -> GraphDef)
-> Lens
     GraphDef
     GraphDef
     (Maybe FunctionDefLibrary)
     (Maybe FunctionDefLibrary)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           GraphDef -> Maybe FunctionDefLibrary
_GraphDef'library (\ x__ :: GraphDef
x__ y__ :: Maybe FunctionDefLibrary
y__ -> GraphDef
x__ {_GraphDef'library :: Maybe FunctionDefLibrary
_GraphDef'library = Maybe FunctionDefLibrary
y__}))
        (FunctionDefLibrary
-> Lens' (Maybe FunctionDefLibrary) FunctionDefLibrary
forall b. b -> Lens' (Maybe b) b
Data.ProtoLens.maybeLens FunctionDefLibrary
forall msg. Message msg => msg
Data.ProtoLens.defMessage)
instance Data.ProtoLens.Field.HasField GraphDef "maybe'library" (Prelude.Maybe Proto.Tensorflow.Core.Framework.Function.FunctionDefLibrary) where
  fieldOf :: Proxy# "maybe'library"
-> (Maybe FunctionDefLibrary -> f (Maybe FunctionDefLibrary))
-> GraphDef
-> f GraphDef
fieldOf _
    = ((Maybe FunctionDefLibrary -> f (Maybe FunctionDefLibrary))
 -> GraphDef -> f GraphDef)
-> ((Maybe FunctionDefLibrary -> f (Maybe FunctionDefLibrary))
    -> Maybe FunctionDefLibrary -> f (Maybe FunctionDefLibrary))
-> (Maybe FunctionDefLibrary -> f (Maybe FunctionDefLibrary))
-> GraphDef
-> f GraphDef
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
        ((GraphDef -> Maybe FunctionDefLibrary)
-> (GraphDef -> Maybe FunctionDefLibrary -> GraphDef)
-> Lens
     GraphDef
     GraphDef
     (Maybe FunctionDefLibrary)
     (Maybe FunctionDefLibrary)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
           GraphDef -> Maybe FunctionDefLibrary
_GraphDef'library (\ x__ :: GraphDef
x__ y__ :: Maybe FunctionDefLibrary
y__ -> GraphDef
x__ {_GraphDef'library :: Maybe FunctionDefLibrary
_GraphDef'library = Maybe FunctionDefLibrary
y__}))
        (Maybe FunctionDefLibrary -> f (Maybe FunctionDefLibrary))
-> Maybe FunctionDefLibrary -> f (Maybe FunctionDefLibrary)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Message GraphDef where
  messageName :: Proxy GraphDef -> Text
messageName _ = String -> Text
Data.Text.pack "tensorflow.GraphDef"
  packedMessageDescriptor :: Proxy GraphDef -> ByteString
packedMessageDescriptor _
    = "\n\
      \\bGraphDef\DC2'\n\
      \\EOTnode\CAN\SOH \ETX(\v2\DC3.tensorflow.NodeDefR\EOTnode\DC22\n\
      \\bversions\CAN\EOT \SOH(\v2\SYN.tensorflow.VersionDefR\bversions\DC2\FS\n\
      \\aversion\CAN\ETX \SOH(\ENQR\aversionB\STX\CAN\SOH\DC28\n\
      \\alibrary\CAN\STX \SOH(\v2\RS.tensorflow.FunctionDefLibraryR\alibrary"
  packedFileDescriptor :: Proxy GraphDef -> ByteString
packedFileDescriptor _ = ByteString
packedFileDescriptor
  fieldsByTag :: Map Tag (FieldDescriptor GraphDef)
fieldsByTag
    = let
        node__field_descriptor :: FieldDescriptor GraphDef
node__field_descriptor
          = String
-> FieldTypeDescriptor NodeDef
-> FieldAccessor GraphDef NodeDef
-> FieldDescriptor GraphDef
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "node"
              (MessageOrGroup -> FieldTypeDescriptor NodeDef
forall value.
Message value =>
MessageOrGroup -> FieldTypeDescriptor value
Data.ProtoLens.MessageField MessageOrGroup
Data.ProtoLens.MessageType ::
                 Data.ProtoLens.FieldTypeDescriptor Proto.Tensorflow.Core.Framework.NodeDef.NodeDef)
              (Packing
-> Lens' GraphDef [NodeDef] -> FieldAccessor GraphDef NodeDef
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 GraphDef
        versions__field_descriptor :: FieldDescriptor GraphDef
versions__field_descriptor
          = String
-> FieldTypeDescriptor VersionDef
-> FieldAccessor GraphDef VersionDef
-> FieldDescriptor GraphDef
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "versions"
              (MessageOrGroup -> FieldTypeDescriptor VersionDef
forall value.
Message value =>
MessageOrGroup -> FieldTypeDescriptor value
Data.ProtoLens.MessageField MessageOrGroup
Data.ProtoLens.MessageType ::
                 Data.ProtoLens.FieldTypeDescriptor Proto.Tensorflow.Core.Framework.Versions.VersionDef)
              (Lens GraphDef GraphDef (Maybe VersionDef) (Maybe VersionDef)
-> FieldAccessor GraphDef VersionDef
forall msg value.
Lens' msg (Maybe value) -> FieldAccessor msg value
Data.ProtoLens.OptionalField
                 (forall s a (f :: * -> *).
(HasField s "maybe'versions" 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'versions")) ::
              Data.ProtoLens.FieldDescriptor GraphDef
        version__field_descriptor :: FieldDescriptor GraphDef
version__field_descriptor
          = String
-> FieldTypeDescriptor Int32
-> FieldAccessor GraphDef Int32
-> FieldDescriptor GraphDef
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "version"
              (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 GraphDef GraphDef Int32 Int32
-> FieldAccessor GraphDef 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 "version" 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 @"version")) ::
              Data.ProtoLens.FieldDescriptor GraphDef
        library__field_descriptor :: FieldDescriptor GraphDef
library__field_descriptor
          = String
-> FieldTypeDescriptor FunctionDefLibrary
-> FieldAccessor GraphDef FunctionDefLibrary
-> FieldDescriptor GraphDef
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
              "library"
              (MessageOrGroup -> FieldTypeDescriptor FunctionDefLibrary
forall value.
Message value =>
MessageOrGroup -> FieldTypeDescriptor value
Data.ProtoLens.MessageField MessageOrGroup
Data.ProtoLens.MessageType ::
                 Data.ProtoLens.FieldTypeDescriptor Proto.Tensorflow.Core.Framework.Function.FunctionDefLibrary)
              (Lens
  GraphDef
  GraphDef
  (Maybe FunctionDefLibrary)
  (Maybe FunctionDefLibrary)
-> FieldAccessor GraphDef FunctionDefLibrary
forall msg value.
Lens' msg (Maybe value) -> FieldAccessor msg value
Data.ProtoLens.OptionalField
                 (forall s a (f :: * -> *).
(HasField s "maybe'library" 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'library")) ::
              Data.ProtoLens.FieldDescriptor GraphDef
      in
        [(Tag, FieldDescriptor GraphDef)]
-> Map Tag (FieldDescriptor GraphDef)
forall k a. Ord k => [(k, a)] -> Map k a
Data.Map.fromList
          [(Int -> Tag
Data.ProtoLens.Tag 1, FieldDescriptor GraphDef
node__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 4, FieldDescriptor GraphDef
versions__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 3, FieldDescriptor GraphDef
version__field_descriptor),
           (Int -> Tag
Data.ProtoLens.Tag 2, FieldDescriptor GraphDef
library__field_descriptor)]
  unknownFields :: LensLike' f GraphDef FieldSet
unknownFields
    = (GraphDef -> FieldSet)
-> (GraphDef -> FieldSet -> GraphDef) -> Lens' GraphDef FieldSet
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
        GraphDef -> FieldSet
_GraphDef'_unknownFields
        (\ x__ :: GraphDef
x__ y__ :: FieldSet
y__ -> GraphDef
x__ {_GraphDef'_unknownFields :: FieldSet
_GraphDef'_unknownFields = FieldSet
y__})
  defMessage :: GraphDef
defMessage
    = $WGraphDef'_constructor :: Vector NodeDef
-> Maybe VersionDef
-> Int32
-> Maybe FunctionDefLibrary
-> FieldSet
-> GraphDef
GraphDef'_constructor
        {_GraphDef'node :: Vector NodeDef
_GraphDef'node = Vector NodeDef
forall (v :: * -> *) a. Vector v a => v a
Data.Vector.Generic.empty,
         _GraphDef'versions :: Maybe VersionDef
_GraphDef'versions = Maybe VersionDef
forall a. Maybe a
Prelude.Nothing,
         _GraphDef'version :: Int32
_GraphDef'version = Int32
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
         _GraphDef'library :: Maybe FunctionDefLibrary
_GraphDef'library = Maybe FunctionDefLibrary
forall a. Maybe a
Prelude.Nothing, _GraphDef'_unknownFields :: FieldSet
_GraphDef'_unknownFields = []}
  parseMessage :: Parser GraphDef
parseMessage
    = let
        loop ::
          GraphDef
          -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Proto.Tensorflow.Core.Framework.NodeDef.NodeDef
             -> Data.ProtoLens.Encoding.Bytes.Parser GraphDef
        loop :: GraphDef -> Growing Vector RealWorld NodeDef -> Parser GraphDef
loop x :: GraphDef
x mutable'node :: Growing Vector RealWorld NodeDef
mutable'node
          = do Bool
end <- Parser Bool
Data.ProtoLens.Encoding.Bytes.atEnd
               if Bool
end then
                   do Vector NodeDef
frozen'node <- IO (Vector NodeDef) -> Parser (Vector NodeDef)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                       (Growing Vector (PrimState IO) NodeDef -> IO (Vector NodeDef)
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 NodeDef
Growing Vector (PrimState IO) NodeDef
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]))))
                      GraphDef -> Parser GraphDef
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return
                        (Setter GraphDef GraphDef FieldSet FieldSet
-> (FieldSet -> FieldSet) -> GraphDef -> GraphDef
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 GraphDef GraphDef FieldSet FieldSet
Data.ProtoLens.unknownFields
                           (\ !FieldSet
t -> FieldSet -> FieldSet
forall a. [a] -> [a]
Prelude.reverse FieldSet
t)
                           (Setter GraphDef GraphDef (Vector NodeDef) (Vector NodeDef)
-> Vector NodeDef -> GraphDef -> GraphDef
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 NodeDef
frozen'node GraphDef
x))
               else
                   do Word64
tag <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                      case Word64
tag of
                        10
                          -> do !NodeDef
y <- Parser NodeDef -> String -> Parser NodeDef
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                        (do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                                            Int -> Parser NodeDef -> Parser NodeDef
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 NodeDef
forall msg. Message msg => Parser msg
Data.ProtoLens.parseMessage)
                                        "node"
                                Growing Vector RealWorld NodeDef
v <- IO (Growing Vector RealWorld NodeDef)
-> Parser (Growing Vector RealWorld NodeDef)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                       (Growing Vector (PrimState IO) NodeDef
-> NodeDef -> IO (Growing Vector (PrimState IO) NodeDef)
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 NodeDef
Growing Vector (PrimState IO) NodeDef
mutable'node NodeDef
y)
                                GraphDef -> Growing Vector RealWorld NodeDef -> Parser GraphDef
loop GraphDef
x Growing Vector RealWorld NodeDef
v
                        34
                          -> do VersionDef
y <- Parser VersionDef -> String -> Parser VersionDef
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       (do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                                           Int -> Parser VersionDef -> Parser VersionDef
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 VersionDef
forall msg. Message msg => Parser msg
Data.ProtoLens.parseMessage)
                                       "versions"
                                GraphDef -> Growing Vector RealWorld NodeDef -> Parser GraphDef
loop
                                  (Setter GraphDef GraphDef VersionDef VersionDef
-> VersionDef -> GraphDef -> GraphDef
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "versions" 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 @"versions") VersionDef
y GraphDef
x)
                                  Growing Vector RealWorld NodeDef
mutable'node
                        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)
                                       "version"
                                GraphDef -> Growing Vector RealWorld NodeDef -> Parser GraphDef
loop
                                  (Setter GraphDef GraphDef Int32 Int32
-> Int32 -> GraphDef -> GraphDef
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "version" 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 @"version") Int32
y GraphDef
x)
                                  Growing Vector RealWorld NodeDef
mutable'node
                        18
                          -> do FunctionDefLibrary
y <- Parser FunctionDefLibrary -> String -> Parser FunctionDefLibrary
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
                                       (do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
                                           Int -> Parser FunctionDefLibrary -> Parser FunctionDefLibrary
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 FunctionDefLibrary
forall msg. Message msg => Parser msg
Data.ProtoLens.parseMessage)
                                       "library"
                                GraphDef -> Growing Vector RealWorld NodeDef -> Parser GraphDef
loop
                                  (Setter GraphDef GraphDef FunctionDefLibrary FunctionDefLibrary
-> FunctionDefLibrary -> GraphDef -> GraphDef
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "library" 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 @"library") FunctionDefLibrary
y GraphDef
x)
                                  Growing Vector RealWorld NodeDef
mutable'node
                        wire :: Word64
wire
                          -> do !TaggedValue
y <- Word64 -> Parser TaggedValue
Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire
                                        Word64
wire
                                GraphDef -> Growing Vector RealWorld NodeDef -> Parser GraphDef
loop
                                  (Setter GraphDef GraphDef FieldSet FieldSet
-> (FieldSet -> FieldSet) -> GraphDef -> GraphDef
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 GraphDef GraphDef FieldSet FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> (:) TaggedValue
y FieldSet
t) GraphDef
x)
                                  Growing Vector RealWorld NodeDef
mutable'node
      in
        Parser GraphDef -> String -> Parser GraphDef
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
          (do Growing Vector RealWorld NodeDef
mutable'node <- IO (Growing Vector RealWorld NodeDef)
-> Parser (Growing Vector RealWorld NodeDef)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
                                IO (Growing Vector RealWorld NodeDef)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
m (Growing v (PrimState m) a)
Data.ProtoLens.Encoding.Growing.new
              GraphDef -> Growing Vector RealWorld NodeDef -> Parser GraphDef
loop GraphDef
forall msg. Message msg => msg
Data.ProtoLens.defMessage Growing Vector RealWorld NodeDef
mutable'node)
          "GraphDef"
  buildMessage :: GraphDef -> Builder
buildMessage
    = \ _x :: GraphDef
_x
        -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
             ((NodeDef -> Builder) -> Vector NodeDef -> Builder
forall (v :: * -> *) a.
Vector v a =>
(a -> Builder) -> v a -> Builder
Data.ProtoLens.Encoding.Bytes.foldMapBuilder
                (\ _v :: NodeDef
_v
                   -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                        (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 10)
                        ((ByteString -> Builder)
-> (NodeDef -> ByteString) -> NodeDef -> 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))
                           NodeDef -> ByteString
forall msg. Message msg => msg -> ByteString
Data.ProtoLens.encodeMessage
                           NodeDef
_v))
                (FoldLike
  (Vector NodeDef)
  GraphDef
  GraphDef
  (Vector NodeDef)
  (Vector NodeDef)
-> GraphDef -> Vector NodeDef
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") GraphDef
_x))
             (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                (case
                     FoldLike
  (Maybe VersionDef)
  GraphDef
  GraphDef
  (Maybe VersionDef)
  (Maybe VersionDef)
-> GraphDef -> Maybe VersionDef
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "maybe'versions" 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'versions") GraphDef
_x
                 of
                   Prelude.Nothing -> Builder
forall a. Monoid a => a
Data.Monoid.mempty
                   (Prelude.Just _v :: VersionDef
_v)
                     -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                          (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 34)
                          ((ByteString -> Builder)
-> (VersionDef -> ByteString) -> VersionDef -> 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))
                             VersionDef -> ByteString
forall msg. Message msg => msg -> ByteString
Data.ProtoLens.encodeMessage
                             VersionDef
_v))
                (Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                   (let
                      _v :: Int32
_v = FoldLike Int32 GraphDef GraphDef Int32 Int32 -> GraphDef -> Int32
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "version" 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 @"version") GraphDef
_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.<>)
                      (case
                           FoldLike
  (Maybe FunctionDefLibrary)
  GraphDef
  GraphDef
  (Maybe FunctionDefLibrary)
  (Maybe FunctionDefLibrary)
-> GraphDef -> Maybe FunctionDefLibrary
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "maybe'library" 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'library") GraphDef
_x
                       of
                         Prelude.Nothing -> Builder
forall a. Monoid a => a
Data.Monoid.mempty
                         (Prelude.Just _v :: FunctionDefLibrary
_v)
                           -> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
                                (Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 18)
                                ((ByteString -> Builder)
-> (FunctionDefLibrary -> ByteString)
-> FunctionDefLibrary
-> 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))
                                   FunctionDefLibrary -> ByteString
forall msg. Message msg => msg -> ByteString
Data.ProtoLens.encodeMessage
                                   FunctionDefLibrary
_v))
                      (FieldSet -> Builder
Data.ProtoLens.Encoding.Wire.buildFieldSet
                         (FoldLike FieldSet GraphDef GraphDef FieldSet FieldSet
-> GraphDef -> FieldSet
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view FoldLike FieldSet GraphDef GraphDef FieldSet FieldSet
forall msg. Message msg => Lens' msg FieldSet
Data.ProtoLens.unknownFields GraphDef
_x)))))
instance Control.DeepSeq.NFData GraphDef where
  rnf :: GraphDef -> ()
rnf
    = \ x__ :: GraphDef
x__
        -> FieldSet -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
             (GraphDef -> FieldSet
_GraphDef'_unknownFields GraphDef
x__)
             (Vector NodeDef -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                (GraphDef -> Vector NodeDef
_GraphDef'node GraphDef
x__)
                (Maybe VersionDef -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                   (GraphDef -> Maybe VersionDef
_GraphDef'versions GraphDef
x__)
                   (Int32 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
                      (GraphDef -> Int32
_GraphDef'version GraphDef
x__)
                      (Maybe FunctionDefLibrary -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq (GraphDef -> Maybe FunctionDefLibrary
_GraphDef'library GraphDef
x__) ()))))
packedFileDescriptor :: Data.ByteString.ByteString
packedFileDescriptor :: ByteString
packedFileDescriptor
  = "\n\
    \%tensorflow/core/framework/graph.proto\DC2\n\
    \tensorflow\SUB(tensorflow/core/framework/function.proto\SUB(tensorflow/core/framework/node_def.proto\SUB(tensorflow/core/framework/versions.proto\"\191\SOH\n\
    \\bGraphDef\DC2'\n\
    \\EOTnode\CAN\SOH \ETX(\v2\DC3.tensorflow.NodeDefR\EOTnode\DC22\n\
    \\bversions\CAN\EOT \SOH(\v2\SYN.tensorflow.VersionDefR\bversions\DC2\FS\n\
    \\aversion\CAN\ETX \SOH(\ENQR\aversionB\STX\CAN\SOH\DC28\n\
    \\alibrary\CAN\STX \SOH(\v2\RS.tensorflow.FunctionDefLibraryR\alibraryBz\n\
    \\CANorg.tensorflow.frameworkB\vGraphProtosP\SOHZLgithub.com/tensorflow/tensorflow/tensorflow/go/core/framework/graph_go_proto\248\SOH\SOHJ\196\SI\n\
    \\ACK\DC2\EOT\NUL\NUL9\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\NUL2\n\
    \\t\n\
    \\STX\ETX\SOH\DC2\ETX\ENQ\NUL2\n\
    \\t\n\
    \\STX\ETX\STX\DC2\ETX\ACK\NUL2\n\
    \\b\n\
    \\SOH\b\DC2\ETX\b\NUL\US\n\
    \\t\n\
    \\STX\b\US\DC2\ETX\b\NUL\US\n\
    \\b\n\
    \\SOH\b\DC2\ETX\t\NUL,\n\
    \\t\n\
    \\STX\b\b\DC2\ETX\t\NUL,\n\
    \\b\n\
    \\SOH\b\DC2\ETX\n\
    \\NUL\"\n\
    \\t\n\
    \\STX\b\n\
    \\DC2\ETX\n\
    \\NUL\"\n\
    \\b\n\
    \\SOH\b\DC2\ETX\v\NUL1\n\
    \\t\n\
    \\STX\b\SOH\DC2\ETX\v\NUL1\n\
    \\b\n\
    \\SOH\b\DC2\ETX\f\NULc\n\
    \\t\n\
    \\STX\b\v\DC2\ETX\f\NULc\n\
    \0\n\
    \\STX\EOT\NUL\DC2\EOT\SI\NUL9\SOH\SUB$ Represents the graph of operations\n\
    \\n\
    \\n\
    \\n\
    \\ETX\EOT\NUL\SOH\DC2\ETX\SI\b\DLE\n\
    \\v\n\
    \\EOT\EOT\NUL\STX\NUL\DC2\ETX\DLE\STX\FS\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\NUL\EOT\DC2\ETX\DLE\STX\n\
    \\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\NUL\ACK\DC2\ETX\DLE\v\DC2\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\NUL\SOH\DC2\ETX\DLE\DC3\ETB\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\NUL\ETX\DC2\ETX\DLE\SUB\ESC\n\
    \\239\SOH\n\
    \\EOT\EOT\NUL\STX\SOH\DC2\ETX\NAK\STX\SUB\SUB\225\SOH Compatibility versions of the graph.  See core/public/version.h for version\n\
    \ history.  The GraphDef version is distinct from the TensorFlow version, and\n\
    \ each release of TensorFlow will support a range of GraphDef versions.\n\
    \\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\SOH\ACK\DC2\ETX\NAK\STX\f\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\SOH\SOH\DC2\ETX\NAK\r\NAK\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\SOH\ETX\DC2\ETX\NAK\CAN\EM\n\
    \\196\SOH\n\
    \\EOT\EOT\NUL\STX\STX\DC2\ETX\SUB\STX(\SUB\182\SOH Deprecated single version field; use versions above instead.  Since all\n\
    \ GraphDef changes before \"versions\" was introduced were forward\n\
    \ compatible, this field is entirely ignored.\n\
    \\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\STX\ENQ\DC2\ETX\SUB\STX\a\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\STX\SOH\DC2\ETX\SUB\b\SI\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\STX\ETX\DC2\ETX\SUB\DC2\DC3\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\STX\b\DC2\ETX\SUB\DC4'\n\
    \\r\n\
    \\ACK\EOT\NUL\STX\STX\b\ETX\DC2\ETX\SUB\NAK&\n\
    \\196\b\n\
    \\EOT\EOT\NUL\STX\ETX\DC2\ETX8\STX!\SUB\182\b EXPERIMENTAL. DO NOT USE OR DEPEND ON THIS YET.\n\
    \\n\
    \ \"library\" provides user-defined functions.\n\
    \\n\
    \ Naming:\n\
    \   * library.function.name are in a flat namespace.\n\
    \     NOTE: We may need to change it to be hierarchical to support\n\
    \     different orgs. E.g.,\n\
    \     { \"/google/nn\", { ... }},\n\
    \     { \"/google/vision\", { ... }}\n\
    \     { \"/org_foo/module_bar\", { ... }}\n\
    \     map<string, FunctionDefLib> named_lib;\n\
    \   * If node[i].op is the name of one function in \"library\",\n\
    \     node[i] is deemed as a function call. Otherwise, node[i].op\n\
    \     must be a primitive operation supported by the runtime.\n\
    \\n\
    \\n\
    \ Function call semantics:\n\
    \\n\
    \   * The callee may start execution as soon as some of its inputs\n\
    \     are ready. The caller may want to use Tuple() mechanism to\n\
    \     ensure all inputs are ready in the same time.\n\
    \\n\
    \   * The consumer of return values may start executing as soon as\n\
    \     the return values the consumer depends on are ready.  The\n\
    \     consumer may want to use Tuple() mechanism to ensure the\n\
    \     consumer does not start until all return values of the callee\n\
    \     function are ready.\n\
    \\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\ETX\ACK\DC2\ETX8\STX\DC4\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\ETX\SOH\DC2\ETX8\NAK\FS\n\
    \\f\n\
    \\ENQ\EOT\NUL\STX\ETX\ETX\DC2\ETX8\US b\ACKproto3"