{-# 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.Protobuf.RewriterConfig (
AutoParallelOptions(), RewriterConfig(),
RewriterConfig'CustomGraphOptimizer(),
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry(),
RewriterConfig'MemOptType(..), RewriterConfig'MemOptType(),
RewriterConfig'MemOptType'UnrecognizedValue,
RewriterConfig'NumIterationsType(..),
RewriterConfig'NumIterationsType(),
RewriterConfig'NumIterationsType'UnrecognizedValue,
RewriterConfig'Toggle(..), RewriterConfig'Toggle(),
RewriterConfig'Toggle'UnrecognizedValue, ScopedAllocatorOptions()
) 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.AttrValue
import qualified Proto.Tensorflow.Core.Protobuf.VerifierConfig
data AutoParallelOptions
= AutoParallelOptions'_constructor {AutoParallelOptions -> Bool
_AutoParallelOptions'enable :: !Prelude.Bool,
AutoParallelOptions -> Int32
_AutoParallelOptions'numReplicas :: !Data.Int.Int32,
AutoParallelOptions -> FieldSet
_AutoParallelOptions'_unknownFields :: !Data.ProtoLens.FieldSet}
deriving stock (AutoParallelOptions -> AutoParallelOptions -> Bool
(AutoParallelOptions -> AutoParallelOptions -> Bool)
-> (AutoParallelOptions -> AutoParallelOptions -> Bool)
-> Eq AutoParallelOptions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: AutoParallelOptions -> AutoParallelOptions -> Bool
$c/= :: AutoParallelOptions -> AutoParallelOptions -> Bool
== :: AutoParallelOptions -> AutoParallelOptions -> Bool
$c== :: AutoParallelOptions -> AutoParallelOptions -> Bool
Prelude.Eq, Eq AutoParallelOptions
Eq AutoParallelOptions =>
(AutoParallelOptions -> AutoParallelOptions -> Ordering)
-> (AutoParallelOptions -> AutoParallelOptions -> Bool)
-> (AutoParallelOptions -> AutoParallelOptions -> Bool)
-> (AutoParallelOptions -> AutoParallelOptions -> Bool)
-> (AutoParallelOptions -> AutoParallelOptions -> Bool)
-> (AutoParallelOptions
-> AutoParallelOptions -> AutoParallelOptions)
-> (AutoParallelOptions
-> AutoParallelOptions -> AutoParallelOptions)
-> Ord AutoParallelOptions
AutoParallelOptions -> AutoParallelOptions -> Bool
AutoParallelOptions -> AutoParallelOptions -> Ordering
AutoParallelOptions -> AutoParallelOptions -> AutoParallelOptions
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 :: AutoParallelOptions -> AutoParallelOptions -> AutoParallelOptions
$cmin :: AutoParallelOptions -> AutoParallelOptions -> AutoParallelOptions
max :: AutoParallelOptions -> AutoParallelOptions -> AutoParallelOptions
$cmax :: AutoParallelOptions -> AutoParallelOptions -> AutoParallelOptions
>= :: AutoParallelOptions -> AutoParallelOptions -> Bool
$c>= :: AutoParallelOptions -> AutoParallelOptions -> Bool
> :: AutoParallelOptions -> AutoParallelOptions -> Bool
$c> :: AutoParallelOptions -> AutoParallelOptions -> Bool
<= :: AutoParallelOptions -> AutoParallelOptions -> Bool
$c<= :: AutoParallelOptions -> AutoParallelOptions -> Bool
< :: AutoParallelOptions -> AutoParallelOptions -> Bool
$c< :: AutoParallelOptions -> AutoParallelOptions -> Bool
compare :: AutoParallelOptions -> AutoParallelOptions -> Ordering
$ccompare :: AutoParallelOptions -> AutoParallelOptions -> Ordering
$cp1Ord :: Eq AutoParallelOptions
Prelude.Ord)
instance Prelude.Show AutoParallelOptions where
showsPrec :: Int -> AutoParallelOptions -> ShowS
showsPrec _ __x :: AutoParallelOptions
__x __s :: String
__s
= Char -> ShowS
Prelude.showChar
'{'
(String -> ShowS
Prelude.showString
(AutoParallelOptions -> String
forall msg. Message msg => msg -> String
Data.ProtoLens.showMessageShort AutoParallelOptions
__x) (Char -> ShowS
Prelude.showChar '}' String
__s))
instance Data.ProtoLens.Field.HasField AutoParallelOptions "enable" Prelude.Bool where
fieldOf :: Proxy# "enable"
-> (Bool -> f Bool) -> AutoParallelOptions -> f AutoParallelOptions
fieldOf _
= ((Bool -> f Bool) -> AutoParallelOptions -> f AutoParallelOptions)
-> ((Bool -> f Bool) -> Bool -> f Bool)
-> (Bool -> f Bool)
-> AutoParallelOptions
-> f AutoParallelOptions
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((AutoParallelOptions -> Bool)
-> (AutoParallelOptions -> Bool -> AutoParallelOptions)
-> Lens AutoParallelOptions AutoParallelOptions Bool Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
AutoParallelOptions -> Bool
_AutoParallelOptions'enable
(\ x__ :: AutoParallelOptions
x__ y__ :: Bool
y__ -> AutoParallelOptions
x__ {_AutoParallelOptions'enable :: Bool
_AutoParallelOptions'enable = Bool
y__}))
(Bool -> f Bool) -> Bool -> f Bool
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField AutoParallelOptions "numReplicas" Data.Int.Int32 where
fieldOf :: Proxy# "numReplicas"
-> (Int32 -> f Int32)
-> AutoParallelOptions
-> f AutoParallelOptions
fieldOf _
= ((Int32 -> f Int32)
-> AutoParallelOptions -> f AutoParallelOptions)
-> ((Int32 -> f Int32) -> Int32 -> f Int32)
-> (Int32 -> f Int32)
-> AutoParallelOptions
-> f AutoParallelOptions
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((AutoParallelOptions -> Int32)
-> (AutoParallelOptions -> Int32 -> AutoParallelOptions)
-> Lens AutoParallelOptions AutoParallelOptions Int32 Int32
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
AutoParallelOptions -> Int32
_AutoParallelOptions'numReplicas
(\ x__ :: AutoParallelOptions
x__ y__ :: Int32
y__ -> AutoParallelOptions
x__ {_AutoParallelOptions'numReplicas :: Int32
_AutoParallelOptions'numReplicas = Int32
y__}))
(Int32 -> f Int32) -> Int32 -> f Int32
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Message AutoParallelOptions where
messageName :: Proxy AutoParallelOptions -> Text
messageName _ = String -> Text
Data.Text.pack "tensorflow.AutoParallelOptions"
packedMessageDescriptor :: Proxy AutoParallelOptions -> ByteString
packedMessageDescriptor _
= "\n\
\\DC3AutoParallelOptions\DC2\SYN\n\
\\ACKenable\CAN\SOH \SOH(\bR\ACKenable\DC2!\n\
\\fnum_replicas\CAN\STX \SOH(\ENQR\vnumReplicas"
packedFileDescriptor :: Proxy AutoParallelOptions -> ByteString
packedFileDescriptor _ = ByteString
packedFileDescriptor
fieldsByTag :: Map Tag (FieldDescriptor AutoParallelOptions)
fieldsByTag
= let
enable__field_descriptor :: FieldDescriptor AutoParallelOptions
enable__field_descriptor
= String
-> FieldTypeDescriptor Bool
-> FieldAccessor AutoParallelOptions Bool
-> FieldDescriptor AutoParallelOptions
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"enable"
(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 AutoParallelOptions AutoParallelOptions Bool Bool
-> FieldAccessor AutoParallelOptions 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 "enable" 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 @"enable")) ::
Data.ProtoLens.FieldDescriptor AutoParallelOptions
numReplicas__field_descriptor :: FieldDescriptor AutoParallelOptions
numReplicas__field_descriptor
= String
-> FieldTypeDescriptor Int32
-> FieldAccessor AutoParallelOptions Int32
-> FieldDescriptor AutoParallelOptions
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"num_replicas"
(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 AutoParallelOptions AutoParallelOptions Int32 Int32
-> FieldAccessor AutoParallelOptions 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 "numReplicas" 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 @"numReplicas")) ::
Data.ProtoLens.FieldDescriptor AutoParallelOptions
in
[(Tag, FieldDescriptor AutoParallelOptions)]
-> Map Tag (FieldDescriptor AutoParallelOptions)
forall k a. Ord k => [(k, a)] -> Map k a
Data.Map.fromList
[(Int -> Tag
Data.ProtoLens.Tag 1, FieldDescriptor AutoParallelOptions
enable__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 2, FieldDescriptor AutoParallelOptions
numReplicas__field_descriptor)]
unknownFields :: LensLike' f AutoParallelOptions FieldSet
unknownFields
= (AutoParallelOptions -> FieldSet)
-> (AutoParallelOptions -> FieldSet -> AutoParallelOptions)
-> Lens' AutoParallelOptions FieldSet
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
AutoParallelOptions -> FieldSet
_AutoParallelOptions'_unknownFields
(\ x__ :: AutoParallelOptions
x__ y__ :: FieldSet
y__ -> AutoParallelOptions
x__ {_AutoParallelOptions'_unknownFields :: FieldSet
_AutoParallelOptions'_unknownFields = FieldSet
y__})
defMessage :: AutoParallelOptions
defMessage
= $WAutoParallelOptions'_constructor :: Bool -> Int32 -> FieldSet -> AutoParallelOptions
AutoParallelOptions'_constructor
{_AutoParallelOptions'enable :: Bool
_AutoParallelOptions'enable = Bool
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_AutoParallelOptions'numReplicas :: Int32
_AutoParallelOptions'numReplicas = Int32
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_AutoParallelOptions'_unknownFields :: FieldSet
_AutoParallelOptions'_unknownFields = []}
parseMessage :: Parser AutoParallelOptions
parseMessage
= let
loop ::
AutoParallelOptions
-> Data.ProtoLens.Encoding.Bytes.Parser AutoParallelOptions
loop :: AutoParallelOptions -> Parser AutoParallelOptions
loop x :: AutoParallelOptions
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]))))
AutoParallelOptions -> Parser AutoParallelOptions
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return
(Setter AutoParallelOptions AutoParallelOptions FieldSet FieldSet
-> (FieldSet -> FieldSet)
-> AutoParallelOptions
-> AutoParallelOptions
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 AutoParallelOptions AutoParallelOptions FieldSet FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> FieldSet -> FieldSet
forall a. [a] -> [a]
Prelude.reverse FieldSet
t) AutoParallelOptions
x)
else
do Word64
tag <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
case Word64
tag of
8 -> 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)
"enable"
AutoParallelOptions -> Parser AutoParallelOptions
loop (Setter AutoParallelOptions AutoParallelOptions Bool Bool
-> Bool -> AutoParallelOptions -> AutoParallelOptions
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "enable" 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 @"enable") Bool
y AutoParallelOptions
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)
"num_replicas"
AutoParallelOptions -> Parser AutoParallelOptions
loop
(Setter AutoParallelOptions AutoParallelOptions Int32 Int32
-> Int32 -> AutoParallelOptions -> AutoParallelOptions
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "numReplicas" 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 @"numReplicas") Int32
y AutoParallelOptions
x)
wire :: Word64
wire
-> do !TaggedValue
y <- Word64 -> Parser TaggedValue
Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire
Word64
wire
AutoParallelOptions -> Parser AutoParallelOptions
loop
(Setter AutoParallelOptions AutoParallelOptions FieldSet FieldSet
-> (FieldSet -> FieldSet)
-> AutoParallelOptions
-> AutoParallelOptions
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 AutoParallelOptions AutoParallelOptions FieldSet FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> (:) TaggedValue
y FieldSet
t) AutoParallelOptions
x)
in
Parser AutoParallelOptions -> String -> Parser AutoParallelOptions
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
(do AutoParallelOptions -> Parser AutoParallelOptions
loop AutoParallelOptions
forall msg. Message msg => msg
Data.ProtoLens.defMessage) "AutoParallelOptions"
buildMessage :: AutoParallelOptions -> Builder
buildMessage
= \ _x :: AutoParallelOptions
_x
-> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: Bool
_v = FoldLike Bool AutoParallelOptions AutoParallelOptions Bool Bool
-> AutoParallelOptions -> Bool
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "enable" 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 @"enable") AutoParallelOptions
_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 8)
((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
_v :: Int32
_v
= FoldLike Int32 AutoParallelOptions AutoParallelOptions Int32 Int32
-> AutoParallelOptions -> Int32
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "numReplicas" 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 @"numReplicas") AutoParallelOptions
_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 AutoParallelOptions AutoParallelOptions FieldSet FieldSet
-> AutoParallelOptions -> FieldSet
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view FoldLike
FieldSet AutoParallelOptions AutoParallelOptions FieldSet FieldSet
forall msg. Message msg => Lens' msg FieldSet
Data.ProtoLens.unknownFields AutoParallelOptions
_x)))
instance Control.DeepSeq.NFData AutoParallelOptions where
rnf :: AutoParallelOptions -> ()
rnf
= \ x__ :: AutoParallelOptions
x__
-> FieldSet -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(AutoParallelOptions -> FieldSet
_AutoParallelOptions'_unknownFields AutoParallelOptions
x__)
(Bool -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(AutoParallelOptions -> Bool
_AutoParallelOptions'enable AutoParallelOptions
x__)
(Int32 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(AutoParallelOptions -> Int32
_AutoParallelOptions'numReplicas AutoParallelOptions
x__) ()))
data RewriterConfig
= RewriterConfig'_constructor {RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'layoutOptimizer :: !RewriterConfig'Toggle,
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'constantFolding :: !RewriterConfig'Toggle,
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'shapeOptimization :: !RewriterConfig'Toggle,
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'remapping :: !RewriterConfig'Toggle,
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'commonSubgraphElimination :: !RewriterConfig'Toggle,
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'arithmeticOptimization :: !RewriterConfig'Toggle,
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'dependencyOptimization :: !RewriterConfig'Toggle,
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'loopOptimization :: !RewriterConfig'Toggle,
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'functionOptimization :: !RewriterConfig'Toggle,
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'debugStripper :: !RewriterConfig'Toggle,
RewriterConfig -> Bool
_RewriterConfig'disableModelPruning :: !Prelude.Bool,
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'scopedAllocatorOptimization :: !RewriterConfig'Toggle,
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'pinToHostOptimization :: !RewriterConfig'Toggle,
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'implementationSelector :: !RewriterConfig'Toggle,
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'autoMixedPrecision :: !RewriterConfig'Toggle,
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'autoMixedPrecisionMkl :: !RewriterConfig'Toggle,
RewriterConfig -> Bool
_RewriterConfig'disableMetaOptimizer :: !Prelude.Bool,
RewriterConfig -> RewriterConfig'NumIterationsType
_RewriterConfig'metaOptimizerIterations :: !RewriterConfig'NumIterationsType,
RewriterConfig -> Int32
_RewriterConfig'minGraphNodes :: !Data.Int.Int32,
RewriterConfig -> RewriterConfig'MemOptType
_RewriterConfig'memoryOptimization :: !RewriterConfig'MemOptType,
RewriterConfig -> Text
_RewriterConfig'memoryOptimizerTargetNodeNameScope :: !Data.Text.Text,
RewriterConfig -> Int64
_RewriterConfig'metaOptimizerTimeoutMs :: !Data.Int.Int64,
RewriterConfig -> Maybe AutoParallelOptions
_RewriterConfig'autoParallel :: !(Prelude.Maybe AutoParallelOptions),
RewriterConfig -> Bool
_RewriterConfig'failOnOptimizerErrors :: !Prelude.Bool,
RewriterConfig -> Maybe ScopedAllocatorOptions
_RewriterConfig'scopedAllocatorOpts :: !(Prelude.Maybe ScopedAllocatorOptions),
RewriterConfig -> Vector Text
_RewriterConfig'optimizers :: !(Data.Vector.Vector Data.Text.Text),
RewriterConfig -> Vector RewriterConfig'CustomGraphOptimizer
_RewriterConfig'customOptimizers :: !(Data.Vector.Vector RewriterConfig'CustomGraphOptimizer),
RewriterConfig -> Maybe VerifierConfig
_RewriterConfig'interOptimizerVerifierConfig :: !(Prelude.Maybe Proto.Tensorflow.Core.Protobuf.VerifierConfig.VerifierConfig),
RewriterConfig -> Maybe VerifierConfig
_RewriterConfig'postOptimizationVerifierConfig :: !(Prelude.Maybe Proto.Tensorflow.Core.Protobuf.VerifierConfig.VerifierConfig),
RewriterConfig -> FieldSet
_RewriterConfig'_unknownFields :: !Data.ProtoLens.FieldSet}
deriving stock (RewriterConfig -> RewriterConfig -> Bool
(RewriterConfig -> RewriterConfig -> Bool)
-> (RewriterConfig -> RewriterConfig -> Bool) -> Eq RewriterConfig
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RewriterConfig -> RewriterConfig -> Bool
$c/= :: RewriterConfig -> RewriterConfig -> Bool
== :: RewriterConfig -> RewriterConfig -> Bool
$c== :: RewriterConfig -> RewriterConfig -> Bool
Prelude.Eq, Eq RewriterConfig
Eq RewriterConfig =>
(RewriterConfig -> RewriterConfig -> Ordering)
-> (RewriterConfig -> RewriterConfig -> Bool)
-> (RewriterConfig -> RewriterConfig -> Bool)
-> (RewriterConfig -> RewriterConfig -> Bool)
-> (RewriterConfig -> RewriterConfig -> Bool)
-> (RewriterConfig -> RewriterConfig -> RewriterConfig)
-> (RewriterConfig -> RewriterConfig -> RewriterConfig)
-> Ord RewriterConfig
RewriterConfig -> RewriterConfig -> Bool
RewriterConfig -> RewriterConfig -> Ordering
RewriterConfig -> RewriterConfig -> RewriterConfig
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 :: RewriterConfig -> RewriterConfig -> RewriterConfig
$cmin :: RewriterConfig -> RewriterConfig -> RewriterConfig
max :: RewriterConfig -> RewriterConfig -> RewriterConfig
$cmax :: RewriterConfig -> RewriterConfig -> RewriterConfig
>= :: RewriterConfig -> RewriterConfig -> Bool
$c>= :: RewriterConfig -> RewriterConfig -> Bool
> :: RewriterConfig -> RewriterConfig -> Bool
$c> :: RewriterConfig -> RewriterConfig -> Bool
<= :: RewriterConfig -> RewriterConfig -> Bool
$c<= :: RewriterConfig -> RewriterConfig -> Bool
< :: RewriterConfig -> RewriterConfig -> Bool
$c< :: RewriterConfig -> RewriterConfig -> Bool
compare :: RewriterConfig -> RewriterConfig -> Ordering
$ccompare :: RewriterConfig -> RewriterConfig -> Ordering
$cp1Ord :: Eq RewriterConfig
Prelude.Ord)
instance Prelude.Show RewriterConfig where
showsPrec :: Int -> RewriterConfig -> ShowS
showsPrec _ __x :: RewriterConfig
__x __s :: String
__s
= Char -> ShowS
Prelude.showChar
'{'
(String -> ShowS
Prelude.showString
(RewriterConfig -> String
forall msg. Message msg => msg -> String
Data.ProtoLens.showMessageShort RewriterConfig
__x) (Char -> ShowS
Prelude.showChar '}' String
__s))
instance Data.ProtoLens.Field.HasField RewriterConfig "layoutOptimizer" RewriterConfig'Toggle where
fieldOf :: Proxy# "layoutOptimizer"
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig -> f RewriterConfig)
-> ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> RewriterConfig'Toggle)
-> (RewriterConfig -> RewriterConfig'Toggle -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'layoutOptimizer
(\ x__ :: RewriterConfig
x__ y__ :: RewriterConfig'Toggle
y__ -> RewriterConfig
x__ {_RewriterConfig'layoutOptimizer :: RewriterConfig'Toggle
_RewriterConfig'layoutOptimizer = RewriterConfig'Toggle
y__}))
(RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "constantFolding" RewriterConfig'Toggle where
fieldOf :: Proxy# "constantFolding"
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig -> f RewriterConfig)
-> ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> RewriterConfig'Toggle)
-> (RewriterConfig -> RewriterConfig'Toggle -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'constantFolding
(\ x__ :: RewriterConfig
x__ y__ :: RewriterConfig'Toggle
y__ -> RewriterConfig
x__ {_RewriterConfig'constantFolding :: RewriterConfig'Toggle
_RewriterConfig'constantFolding = RewriterConfig'Toggle
y__}))
(RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "shapeOptimization" RewriterConfig'Toggle where
fieldOf :: Proxy# "shapeOptimization"
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig -> f RewriterConfig)
-> ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> RewriterConfig'Toggle)
-> (RewriterConfig -> RewriterConfig'Toggle -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'shapeOptimization
(\ x__ :: RewriterConfig
x__ y__ :: RewriterConfig'Toggle
y__ -> RewriterConfig
x__ {_RewriterConfig'shapeOptimization :: RewriterConfig'Toggle
_RewriterConfig'shapeOptimization = RewriterConfig'Toggle
y__}))
(RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "remapping" RewriterConfig'Toggle where
fieldOf :: Proxy# "remapping"
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig -> f RewriterConfig)
-> ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> RewriterConfig'Toggle)
-> (RewriterConfig -> RewriterConfig'Toggle -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'remapping
(\ x__ :: RewriterConfig
x__ y__ :: RewriterConfig'Toggle
y__ -> RewriterConfig
x__ {_RewriterConfig'remapping :: RewriterConfig'Toggle
_RewriterConfig'remapping = RewriterConfig'Toggle
y__}))
(RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "commonSubgraphElimination" RewriterConfig'Toggle where
fieldOf :: Proxy# "commonSubgraphElimination"
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig -> f RewriterConfig)
-> ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> RewriterConfig'Toggle)
-> (RewriterConfig -> RewriterConfig'Toggle -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'commonSubgraphElimination
(\ x__ :: RewriterConfig
x__ y__ :: RewriterConfig'Toggle
y__
-> RewriterConfig
x__ {_RewriterConfig'commonSubgraphElimination :: RewriterConfig'Toggle
_RewriterConfig'commonSubgraphElimination = RewriterConfig'Toggle
y__}))
(RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "arithmeticOptimization" RewriterConfig'Toggle where
fieldOf :: Proxy# "arithmeticOptimization"
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig -> f RewriterConfig)
-> ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> RewriterConfig'Toggle)
-> (RewriterConfig -> RewriterConfig'Toggle -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'arithmeticOptimization
(\ x__ :: RewriterConfig
x__ y__ :: RewriterConfig'Toggle
y__ -> RewriterConfig
x__ {_RewriterConfig'arithmeticOptimization :: RewriterConfig'Toggle
_RewriterConfig'arithmeticOptimization = RewriterConfig'Toggle
y__}))
(RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "dependencyOptimization" RewriterConfig'Toggle where
fieldOf :: Proxy# "dependencyOptimization"
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig -> f RewriterConfig)
-> ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> RewriterConfig'Toggle)
-> (RewriterConfig -> RewriterConfig'Toggle -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'dependencyOptimization
(\ x__ :: RewriterConfig
x__ y__ :: RewriterConfig'Toggle
y__ -> RewriterConfig
x__ {_RewriterConfig'dependencyOptimization :: RewriterConfig'Toggle
_RewriterConfig'dependencyOptimization = RewriterConfig'Toggle
y__}))
(RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "loopOptimization" RewriterConfig'Toggle where
fieldOf :: Proxy# "loopOptimization"
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig -> f RewriterConfig)
-> ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> RewriterConfig'Toggle)
-> (RewriterConfig -> RewriterConfig'Toggle -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'loopOptimization
(\ x__ :: RewriterConfig
x__ y__ :: RewriterConfig'Toggle
y__ -> RewriterConfig
x__ {_RewriterConfig'loopOptimization :: RewriterConfig'Toggle
_RewriterConfig'loopOptimization = RewriterConfig'Toggle
y__}))
(RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "functionOptimization" RewriterConfig'Toggle where
fieldOf :: Proxy# "functionOptimization"
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig -> f RewriterConfig)
-> ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> RewriterConfig'Toggle)
-> (RewriterConfig -> RewriterConfig'Toggle -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'functionOptimization
(\ x__ :: RewriterConfig
x__ y__ :: RewriterConfig'Toggle
y__ -> RewriterConfig
x__ {_RewriterConfig'functionOptimization :: RewriterConfig'Toggle
_RewriterConfig'functionOptimization = RewriterConfig'Toggle
y__}))
(RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "debugStripper" RewriterConfig'Toggle where
fieldOf :: Proxy# "debugStripper"
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig -> f RewriterConfig)
-> ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> RewriterConfig'Toggle)
-> (RewriterConfig -> RewriterConfig'Toggle -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'debugStripper
(\ x__ :: RewriterConfig
x__ y__ :: RewriterConfig'Toggle
y__ -> RewriterConfig
x__ {_RewriterConfig'debugStripper :: RewriterConfig'Toggle
_RewriterConfig'debugStripper = RewriterConfig'Toggle
y__}))
(RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "disableModelPruning" Prelude.Bool where
fieldOf :: Proxy# "disableModelPruning"
-> (Bool -> f Bool) -> RewriterConfig -> f RewriterConfig
fieldOf _
= ((Bool -> f Bool) -> RewriterConfig -> f RewriterConfig)
-> ((Bool -> f Bool) -> Bool -> f Bool)
-> (Bool -> f Bool)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> Bool)
-> (RewriterConfig -> Bool -> RewriterConfig)
-> Lens RewriterConfig RewriterConfig Bool Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> Bool
_RewriterConfig'disableModelPruning
(\ x__ :: RewriterConfig
x__ y__ :: Bool
y__ -> RewriterConfig
x__ {_RewriterConfig'disableModelPruning :: Bool
_RewriterConfig'disableModelPruning = Bool
y__}))
(Bool -> f Bool) -> Bool -> f Bool
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "scopedAllocatorOptimization" RewriterConfig'Toggle where
fieldOf :: Proxy# "scopedAllocatorOptimization"
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig -> f RewriterConfig)
-> ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> RewriterConfig'Toggle)
-> (RewriterConfig -> RewriterConfig'Toggle -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'scopedAllocatorOptimization
(\ x__ :: RewriterConfig
x__ y__ :: RewriterConfig'Toggle
y__
-> RewriterConfig
x__ {_RewriterConfig'scopedAllocatorOptimization :: RewriterConfig'Toggle
_RewriterConfig'scopedAllocatorOptimization = RewriterConfig'Toggle
y__}))
(RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "pinToHostOptimization" RewriterConfig'Toggle where
fieldOf :: Proxy# "pinToHostOptimization"
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig -> f RewriterConfig)
-> ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> RewriterConfig'Toggle)
-> (RewriterConfig -> RewriterConfig'Toggle -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'pinToHostOptimization
(\ x__ :: RewriterConfig
x__ y__ :: RewriterConfig'Toggle
y__ -> RewriterConfig
x__ {_RewriterConfig'pinToHostOptimization :: RewriterConfig'Toggle
_RewriterConfig'pinToHostOptimization = RewriterConfig'Toggle
y__}))
(RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "implementationSelector" RewriterConfig'Toggle where
fieldOf :: Proxy# "implementationSelector"
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig -> f RewriterConfig)
-> ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> RewriterConfig'Toggle)
-> (RewriterConfig -> RewriterConfig'Toggle -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'implementationSelector
(\ x__ :: RewriterConfig
x__ y__ :: RewriterConfig'Toggle
y__ -> RewriterConfig
x__ {_RewriterConfig'implementationSelector :: RewriterConfig'Toggle
_RewriterConfig'implementationSelector = RewriterConfig'Toggle
y__}))
(RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "autoMixedPrecision" RewriterConfig'Toggle where
fieldOf :: Proxy# "autoMixedPrecision"
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig -> f RewriterConfig)
-> ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> RewriterConfig'Toggle)
-> (RewriterConfig -> RewriterConfig'Toggle -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'autoMixedPrecision
(\ x__ :: RewriterConfig
x__ y__ :: RewriterConfig'Toggle
y__ -> RewriterConfig
x__ {_RewriterConfig'autoMixedPrecision :: RewriterConfig'Toggle
_RewriterConfig'autoMixedPrecision = RewriterConfig'Toggle
y__}))
(RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "autoMixedPrecisionMkl" RewriterConfig'Toggle where
fieldOf :: Proxy# "autoMixedPrecisionMkl"
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig -> f RewriterConfig)
-> ((RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> (RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> RewriterConfig'Toggle)
-> (RewriterConfig -> RewriterConfig'Toggle -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'autoMixedPrecisionMkl
(\ x__ :: RewriterConfig
x__ y__ :: RewriterConfig'Toggle
y__ -> RewriterConfig
x__ {_RewriterConfig'autoMixedPrecisionMkl :: RewriterConfig'Toggle
_RewriterConfig'autoMixedPrecisionMkl = RewriterConfig'Toggle
y__}))
(RewriterConfig'Toggle -> f RewriterConfig'Toggle)
-> RewriterConfig'Toggle -> f RewriterConfig'Toggle
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "disableMetaOptimizer" Prelude.Bool where
fieldOf :: Proxy# "disableMetaOptimizer"
-> (Bool -> f Bool) -> RewriterConfig -> f RewriterConfig
fieldOf _
= ((Bool -> f Bool) -> RewriterConfig -> f RewriterConfig)
-> ((Bool -> f Bool) -> Bool -> f Bool)
-> (Bool -> f Bool)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> Bool)
-> (RewriterConfig -> Bool -> RewriterConfig)
-> Lens RewriterConfig RewriterConfig Bool Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> Bool
_RewriterConfig'disableMetaOptimizer
(\ x__ :: RewriterConfig
x__ y__ :: Bool
y__ -> RewriterConfig
x__ {_RewriterConfig'disableMetaOptimizer :: Bool
_RewriterConfig'disableMetaOptimizer = Bool
y__}))
(Bool -> f Bool) -> Bool -> f Bool
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "metaOptimizerIterations" RewriterConfig'NumIterationsType where
fieldOf :: Proxy# "metaOptimizerIterations"
-> (RewriterConfig'NumIterationsType
-> f RewriterConfig'NumIterationsType)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((RewriterConfig'NumIterationsType
-> f RewriterConfig'NumIterationsType)
-> RewriterConfig -> f RewriterConfig)
-> ((RewriterConfig'NumIterationsType
-> f RewriterConfig'NumIterationsType)
-> RewriterConfig'NumIterationsType
-> f RewriterConfig'NumIterationsType)
-> (RewriterConfig'NumIterationsType
-> f RewriterConfig'NumIterationsType)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> RewriterConfig'NumIterationsType)
-> (RewriterConfig
-> RewriterConfig'NumIterationsType -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'NumIterationsType
RewriterConfig'NumIterationsType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> RewriterConfig'NumIterationsType
_RewriterConfig'metaOptimizerIterations
(\ x__ :: RewriterConfig
x__ y__ :: RewriterConfig'NumIterationsType
y__ -> RewriterConfig
x__ {_RewriterConfig'metaOptimizerIterations :: RewriterConfig'NumIterationsType
_RewriterConfig'metaOptimizerIterations = RewriterConfig'NumIterationsType
y__}))
(RewriterConfig'NumIterationsType
-> f RewriterConfig'NumIterationsType)
-> RewriterConfig'NumIterationsType
-> f RewriterConfig'NumIterationsType
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "minGraphNodes" Data.Int.Int32 where
fieldOf :: Proxy# "minGraphNodes"
-> (Int32 -> f Int32) -> RewriterConfig -> f RewriterConfig
fieldOf _
= ((Int32 -> f Int32) -> RewriterConfig -> f RewriterConfig)
-> ((Int32 -> f Int32) -> Int32 -> f Int32)
-> (Int32 -> f Int32)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> Int32)
-> (RewriterConfig -> Int32 -> RewriterConfig)
-> Lens RewriterConfig RewriterConfig Int32 Int32
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> Int32
_RewriterConfig'minGraphNodes
(\ x__ :: RewriterConfig
x__ y__ :: Int32
y__ -> RewriterConfig
x__ {_RewriterConfig'minGraphNodes :: Int32
_RewriterConfig'minGraphNodes = Int32
y__}))
(Int32 -> f Int32) -> Int32 -> f Int32
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "memoryOptimization" RewriterConfig'MemOptType where
fieldOf :: Proxy# "memoryOptimization"
-> (RewriterConfig'MemOptType -> f RewriterConfig'MemOptType)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((RewriterConfig'MemOptType -> f RewriterConfig'MemOptType)
-> RewriterConfig -> f RewriterConfig)
-> ((RewriterConfig'MemOptType -> f RewriterConfig'MemOptType)
-> RewriterConfig'MemOptType -> f RewriterConfig'MemOptType)
-> (RewriterConfig'MemOptType -> f RewriterConfig'MemOptType)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> RewriterConfig'MemOptType)
-> (RewriterConfig -> RewriterConfig'MemOptType -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'MemOptType
RewriterConfig'MemOptType
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> RewriterConfig'MemOptType
_RewriterConfig'memoryOptimization
(\ x__ :: RewriterConfig
x__ y__ :: RewriterConfig'MemOptType
y__ -> RewriterConfig
x__ {_RewriterConfig'memoryOptimization :: RewriterConfig'MemOptType
_RewriterConfig'memoryOptimization = RewriterConfig'MemOptType
y__}))
(RewriterConfig'MemOptType -> f RewriterConfig'MemOptType)
-> RewriterConfig'MemOptType -> f RewriterConfig'MemOptType
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "memoryOptimizerTargetNodeNameScope" Data.Text.Text where
fieldOf :: Proxy# "memoryOptimizerTargetNodeNameScope"
-> (Text -> f Text) -> RewriterConfig -> f RewriterConfig
fieldOf _
= ((Text -> f Text) -> RewriterConfig -> f RewriterConfig)
-> ((Text -> f Text) -> Text -> f Text)
-> (Text -> f Text)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> Text)
-> (RewriterConfig -> Text -> RewriterConfig)
-> Lens RewriterConfig RewriterConfig Text Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> Text
_RewriterConfig'memoryOptimizerTargetNodeNameScope
(\ x__ :: RewriterConfig
x__ y__ :: Text
y__
-> RewriterConfig
x__ {_RewriterConfig'memoryOptimizerTargetNodeNameScope :: Text
_RewriterConfig'memoryOptimizerTargetNodeNameScope = Text
y__}))
(Text -> f Text) -> Text -> f Text
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "metaOptimizerTimeoutMs" Data.Int.Int64 where
fieldOf :: Proxy# "metaOptimizerTimeoutMs"
-> (Int64 -> f Int64) -> RewriterConfig -> f RewriterConfig
fieldOf _
= ((Int64 -> f Int64) -> RewriterConfig -> f RewriterConfig)
-> ((Int64 -> f Int64) -> Int64 -> f Int64)
-> (Int64 -> f Int64)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> Int64)
-> (RewriterConfig -> Int64 -> RewriterConfig)
-> Lens RewriterConfig RewriterConfig Int64 Int64
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> Int64
_RewriterConfig'metaOptimizerTimeoutMs
(\ x__ :: RewriterConfig
x__ y__ :: Int64
y__ -> RewriterConfig
x__ {_RewriterConfig'metaOptimizerTimeoutMs :: Int64
_RewriterConfig'metaOptimizerTimeoutMs = Int64
y__}))
(Int64 -> f Int64) -> Int64 -> f Int64
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "autoParallel" AutoParallelOptions where
fieldOf :: Proxy# "autoParallel"
-> (AutoParallelOptions -> f AutoParallelOptions)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((Maybe AutoParallelOptions -> f (Maybe AutoParallelOptions))
-> RewriterConfig -> f RewriterConfig)
-> ((AutoParallelOptions -> f AutoParallelOptions)
-> Maybe AutoParallelOptions -> f (Maybe AutoParallelOptions))
-> (AutoParallelOptions -> f AutoParallelOptions)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> Maybe AutoParallelOptions)
-> (RewriterConfig -> Maybe AutoParallelOptions -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
(Maybe AutoParallelOptions)
(Maybe AutoParallelOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> Maybe AutoParallelOptions
_RewriterConfig'autoParallel
(\ x__ :: RewriterConfig
x__ y__ :: Maybe AutoParallelOptions
y__ -> RewriterConfig
x__ {_RewriterConfig'autoParallel :: Maybe AutoParallelOptions
_RewriterConfig'autoParallel = Maybe AutoParallelOptions
y__}))
(AutoParallelOptions
-> Lens' (Maybe AutoParallelOptions) AutoParallelOptions
forall b. b -> Lens' (Maybe b) b
Data.ProtoLens.maybeLens AutoParallelOptions
forall msg. Message msg => msg
Data.ProtoLens.defMessage)
instance Data.ProtoLens.Field.HasField RewriterConfig "maybe'autoParallel" (Prelude.Maybe AutoParallelOptions) where
fieldOf :: Proxy# "maybe'autoParallel"
-> (Maybe AutoParallelOptions -> f (Maybe AutoParallelOptions))
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((Maybe AutoParallelOptions -> f (Maybe AutoParallelOptions))
-> RewriterConfig -> f RewriterConfig)
-> ((Maybe AutoParallelOptions -> f (Maybe AutoParallelOptions))
-> Maybe AutoParallelOptions -> f (Maybe AutoParallelOptions))
-> (Maybe AutoParallelOptions -> f (Maybe AutoParallelOptions))
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> Maybe AutoParallelOptions)
-> (RewriterConfig -> Maybe AutoParallelOptions -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
(Maybe AutoParallelOptions)
(Maybe AutoParallelOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> Maybe AutoParallelOptions
_RewriterConfig'autoParallel
(\ x__ :: RewriterConfig
x__ y__ :: Maybe AutoParallelOptions
y__ -> RewriterConfig
x__ {_RewriterConfig'autoParallel :: Maybe AutoParallelOptions
_RewriterConfig'autoParallel = Maybe AutoParallelOptions
y__}))
(Maybe AutoParallelOptions -> f (Maybe AutoParallelOptions))
-> Maybe AutoParallelOptions -> f (Maybe AutoParallelOptions)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "failOnOptimizerErrors" Prelude.Bool where
fieldOf :: Proxy# "failOnOptimizerErrors"
-> (Bool -> f Bool) -> RewriterConfig -> f RewriterConfig
fieldOf _
= ((Bool -> f Bool) -> RewriterConfig -> f RewriterConfig)
-> ((Bool -> f Bool) -> Bool -> f Bool)
-> (Bool -> f Bool)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> Bool)
-> (RewriterConfig -> Bool -> RewriterConfig)
-> Lens RewriterConfig RewriterConfig Bool Bool
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> Bool
_RewriterConfig'failOnOptimizerErrors
(\ x__ :: RewriterConfig
x__ y__ :: Bool
y__ -> RewriterConfig
x__ {_RewriterConfig'failOnOptimizerErrors :: Bool
_RewriterConfig'failOnOptimizerErrors = Bool
y__}))
(Bool -> f Bool) -> Bool -> f Bool
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "scopedAllocatorOpts" ScopedAllocatorOptions where
fieldOf :: Proxy# "scopedAllocatorOpts"
-> (ScopedAllocatorOptions -> f ScopedAllocatorOptions)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((Maybe ScopedAllocatorOptions -> f (Maybe ScopedAllocatorOptions))
-> RewriterConfig -> f RewriterConfig)
-> ((ScopedAllocatorOptions -> f ScopedAllocatorOptions)
-> Maybe ScopedAllocatorOptions
-> f (Maybe ScopedAllocatorOptions))
-> (ScopedAllocatorOptions -> f ScopedAllocatorOptions)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> Maybe ScopedAllocatorOptions)
-> (RewriterConfig
-> Maybe ScopedAllocatorOptions -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
(Maybe ScopedAllocatorOptions)
(Maybe ScopedAllocatorOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> Maybe ScopedAllocatorOptions
_RewriterConfig'scopedAllocatorOpts
(\ x__ :: RewriterConfig
x__ y__ :: Maybe ScopedAllocatorOptions
y__ -> RewriterConfig
x__ {_RewriterConfig'scopedAllocatorOpts :: Maybe ScopedAllocatorOptions
_RewriterConfig'scopedAllocatorOpts = Maybe ScopedAllocatorOptions
y__}))
(ScopedAllocatorOptions
-> Lens' (Maybe ScopedAllocatorOptions) ScopedAllocatorOptions
forall b. b -> Lens' (Maybe b) b
Data.ProtoLens.maybeLens ScopedAllocatorOptions
forall msg. Message msg => msg
Data.ProtoLens.defMessage)
instance Data.ProtoLens.Field.HasField RewriterConfig "maybe'scopedAllocatorOpts" (Prelude.Maybe ScopedAllocatorOptions) where
fieldOf :: Proxy# "maybe'scopedAllocatorOpts"
-> (Maybe ScopedAllocatorOptions
-> f (Maybe ScopedAllocatorOptions))
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((Maybe ScopedAllocatorOptions -> f (Maybe ScopedAllocatorOptions))
-> RewriterConfig -> f RewriterConfig)
-> ((Maybe ScopedAllocatorOptions
-> f (Maybe ScopedAllocatorOptions))
-> Maybe ScopedAllocatorOptions
-> f (Maybe ScopedAllocatorOptions))
-> (Maybe ScopedAllocatorOptions
-> f (Maybe ScopedAllocatorOptions))
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> Maybe ScopedAllocatorOptions)
-> (RewriterConfig
-> Maybe ScopedAllocatorOptions -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
(Maybe ScopedAllocatorOptions)
(Maybe ScopedAllocatorOptions)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> Maybe ScopedAllocatorOptions
_RewriterConfig'scopedAllocatorOpts
(\ x__ :: RewriterConfig
x__ y__ :: Maybe ScopedAllocatorOptions
y__ -> RewriterConfig
x__ {_RewriterConfig'scopedAllocatorOpts :: Maybe ScopedAllocatorOptions
_RewriterConfig'scopedAllocatorOpts = Maybe ScopedAllocatorOptions
y__}))
(Maybe ScopedAllocatorOptions -> f (Maybe ScopedAllocatorOptions))
-> Maybe ScopedAllocatorOptions -> f (Maybe ScopedAllocatorOptions)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "optimizers" [Data.Text.Text] where
fieldOf :: Proxy# "optimizers"
-> ([Text] -> f [Text]) -> RewriterConfig -> f RewriterConfig
fieldOf _
= ((Vector Text -> f (Vector Text))
-> RewriterConfig -> f RewriterConfig)
-> (([Text] -> f [Text]) -> Vector Text -> f (Vector Text))
-> ([Text] -> f [Text])
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> Vector Text)
-> (RewriterConfig -> Vector Text -> RewriterConfig)
-> Lens RewriterConfig RewriterConfig (Vector Text) (Vector Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> Vector Text
_RewriterConfig'optimizers
(\ x__ :: RewriterConfig
x__ y__ :: Vector Text
y__ -> RewriterConfig
x__ {_RewriterConfig'optimizers :: Vector Text
_RewriterConfig'optimizers = Vector Text
y__}))
((Vector Text -> [Text])
-> (Vector Text -> [Text] -> Vector Text)
-> Lens (Vector Text) (Vector Text) [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
Vector Text -> [Text]
forall (v :: * -> *) a. Vector v a => v a -> [a]
Data.Vector.Generic.toList
(\ _ y__ :: [Text]
y__ -> [Text] -> Vector Text
forall (v :: * -> *) a. Vector v a => [a] -> v a
Data.Vector.Generic.fromList [Text]
y__))
instance Data.ProtoLens.Field.HasField RewriterConfig "vec'optimizers" (Data.Vector.Vector Data.Text.Text) where
fieldOf :: Proxy# "vec'optimizers"
-> (Vector Text -> f (Vector Text))
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((Vector Text -> f (Vector Text))
-> RewriterConfig -> f RewriterConfig)
-> ((Vector Text -> f (Vector Text))
-> Vector Text -> f (Vector Text))
-> (Vector Text -> f (Vector Text))
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> Vector Text)
-> (RewriterConfig -> Vector Text -> RewriterConfig)
-> Lens RewriterConfig RewriterConfig (Vector Text) (Vector Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> Vector Text
_RewriterConfig'optimizers
(\ x__ :: RewriterConfig
x__ y__ :: Vector Text
y__ -> RewriterConfig
x__ {_RewriterConfig'optimizers :: Vector Text
_RewriterConfig'optimizers = Vector Text
y__}))
(Vector Text -> f (Vector Text)) -> Vector Text -> f (Vector Text)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "customOptimizers" [RewriterConfig'CustomGraphOptimizer] where
fieldOf :: Proxy# "customOptimizers"
-> ([RewriterConfig'CustomGraphOptimizer]
-> f [RewriterConfig'CustomGraphOptimizer])
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((Vector RewriterConfig'CustomGraphOptimizer
-> f (Vector RewriterConfig'CustomGraphOptimizer))
-> RewriterConfig -> f RewriterConfig)
-> (([RewriterConfig'CustomGraphOptimizer]
-> f [RewriterConfig'CustomGraphOptimizer])
-> Vector RewriterConfig'CustomGraphOptimizer
-> f (Vector RewriterConfig'CustomGraphOptimizer))
-> ([RewriterConfig'CustomGraphOptimizer]
-> f [RewriterConfig'CustomGraphOptimizer])
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> Vector RewriterConfig'CustomGraphOptimizer)
-> (RewriterConfig
-> Vector RewriterConfig'CustomGraphOptimizer -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
(Vector RewriterConfig'CustomGraphOptimizer)
(Vector RewriterConfig'CustomGraphOptimizer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> Vector RewriterConfig'CustomGraphOptimizer
_RewriterConfig'customOptimizers
(\ x__ :: RewriterConfig
x__ y__ :: Vector RewriterConfig'CustomGraphOptimizer
y__ -> RewriterConfig
x__ {_RewriterConfig'customOptimizers :: Vector RewriterConfig'CustomGraphOptimizer
_RewriterConfig'customOptimizers = Vector RewriterConfig'CustomGraphOptimizer
y__}))
((Vector RewriterConfig'CustomGraphOptimizer
-> [RewriterConfig'CustomGraphOptimizer])
-> (Vector RewriterConfig'CustomGraphOptimizer
-> [RewriterConfig'CustomGraphOptimizer]
-> Vector RewriterConfig'CustomGraphOptimizer)
-> Lens
(Vector RewriterConfig'CustomGraphOptimizer)
(Vector RewriterConfig'CustomGraphOptimizer)
[RewriterConfig'CustomGraphOptimizer]
[RewriterConfig'CustomGraphOptimizer]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
Vector RewriterConfig'CustomGraphOptimizer
-> [RewriterConfig'CustomGraphOptimizer]
forall (v :: * -> *) a. Vector v a => v a -> [a]
Data.Vector.Generic.toList
(\ _ y__ :: [RewriterConfig'CustomGraphOptimizer]
y__ -> [RewriterConfig'CustomGraphOptimizer]
-> Vector RewriterConfig'CustomGraphOptimizer
forall (v :: * -> *) a. Vector v a => [a] -> v a
Data.Vector.Generic.fromList [RewriterConfig'CustomGraphOptimizer]
y__))
instance Data.ProtoLens.Field.HasField RewriterConfig "vec'customOptimizers" (Data.Vector.Vector RewriterConfig'CustomGraphOptimizer) where
fieldOf :: Proxy# "vec'customOptimizers"
-> (Vector RewriterConfig'CustomGraphOptimizer
-> f (Vector RewriterConfig'CustomGraphOptimizer))
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((Vector RewriterConfig'CustomGraphOptimizer
-> f (Vector RewriterConfig'CustomGraphOptimizer))
-> RewriterConfig -> f RewriterConfig)
-> ((Vector RewriterConfig'CustomGraphOptimizer
-> f (Vector RewriterConfig'CustomGraphOptimizer))
-> Vector RewriterConfig'CustomGraphOptimizer
-> f (Vector RewriterConfig'CustomGraphOptimizer))
-> (Vector RewriterConfig'CustomGraphOptimizer
-> f (Vector RewriterConfig'CustomGraphOptimizer))
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> Vector RewriterConfig'CustomGraphOptimizer)
-> (RewriterConfig
-> Vector RewriterConfig'CustomGraphOptimizer -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
(Vector RewriterConfig'CustomGraphOptimizer)
(Vector RewriterConfig'CustomGraphOptimizer)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> Vector RewriterConfig'CustomGraphOptimizer
_RewriterConfig'customOptimizers
(\ x__ :: RewriterConfig
x__ y__ :: Vector RewriterConfig'CustomGraphOptimizer
y__ -> RewriterConfig
x__ {_RewriterConfig'customOptimizers :: Vector RewriterConfig'CustomGraphOptimizer
_RewriterConfig'customOptimizers = Vector RewriterConfig'CustomGraphOptimizer
y__}))
(Vector RewriterConfig'CustomGraphOptimizer
-> f (Vector RewriterConfig'CustomGraphOptimizer))
-> Vector RewriterConfig'CustomGraphOptimizer
-> f (Vector RewriterConfig'CustomGraphOptimizer)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "interOptimizerVerifierConfig" Proto.Tensorflow.Core.Protobuf.VerifierConfig.VerifierConfig where
fieldOf :: Proxy# "interOptimizerVerifierConfig"
-> (VerifierConfig -> f VerifierConfig)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((Maybe VerifierConfig -> f (Maybe VerifierConfig))
-> RewriterConfig -> f RewriterConfig)
-> ((VerifierConfig -> f VerifierConfig)
-> Maybe VerifierConfig -> f (Maybe VerifierConfig))
-> (VerifierConfig -> f VerifierConfig)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> Maybe VerifierConfig)
-> (RewriterConfig -> Maybe VerifierConfig -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
(Maybe VerifierConfig)
(Maybe VerifierConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> Maybe VerifierConfig
_RewriterConfig'interOptimizerVerifierConfig
(\ x__ :: RewriterConfig
x__ y__ :: Maybe VerifierConfig
y__
-> RewriterConfig
x__ {_RewriterConfig'interOptimizerVerifierConfig :: Maybe VerifierConfig
_RewriterConfig'interOptimizerVerifierConfig = Maybe VerifierConfig
y__}))
(VerifierConfig -> Lens' (Maybe VerifierConfig) VerifierConfig
forall b. b -> Lens' (Maybe b) b
Data.ProtoLens.maybeLens VerifierConfig
forall msg. Message msg => msg
Data.ProtoLens.defMessage)
instance Data.ProtoLens.Field.HasField RewriterConfig "maybe'interOptimizerVerifierConfig" (Prelude.Maybe Proto.Tensorflow.Core.Protobuf.VerifierConfig.VerifierConfig) where
fieldOf :: Proxy# "maybe'interOptimizerVerifierConfig"
-> (Maybe VerifierConfig -> f (Maybe VerifierConfig))
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((Maybe VerifierConfig -> f (Maybe VerifierConfig))
-> RewriterConfig -> f RewriterConfig)
-> ((Maybe VerifierConfig -> f (Maybe VerifierConfig))
-> Maybe VerifierConfig -> f (Maybe VerifierConfig))
-> (Maybe VerifierConfig -> f (Maybe VerifierConfig))
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> Maybe VerifierConfig)
-> (RewriterConfig -> Maybe VerifierConfig -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
(Maybe VerifierConfig)
(Maybe VerifierConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> Maybe VerifierConfig
_RewriterConfig'interOptimizerVerifierConfig
(\ x__ :: RewriterConfig
x__ y__ :: Maybe VerifierConfig
y__
-> RewriterConfig
x__ {_RewriterConfig'interOptimizerVerifierConfig :: Maybe VerifierConfig
_RewriterConfig'interOptimizerVerifierConfig = Maybe VerifierConfig
y__}))
(Maybe VerifierConfig -> f (Maybe VerifierConfig))
-> Maybe VerifierConfig -> f (Maybe VerifierConfig)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig "postOptimizationVerifierConfig" Proto.Tensorflow.Core.Protobuf.VerifierConfig.VerifierConfig where
fieldOf :: Proxy# "postOptimizationVerifierConfig"
-> (VerifierConfig -> f VerifierConfig)
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((Maybe VerifierConfig -> f (Maybe VerifierConfig))
-> RewriterConfig -> f RewriterConfig)
-> ((VerifierConfig -> f VerifierConfig)
-> Maybe VerifierConfig -> f (Maybe VerifierConfig))
-> (VerifierConfig -> f VerifierConfig)
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> Maybe VerifierConfig)
-> (RewriterConfig -> Maybe VerifierConfig -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
(Maybe VerifierConfig)
(Maybe VerifierConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> Maybe VerifierConfig
_RewriterConfig'postOptimizationVerifierConfig
(\ x__ :: RewriterConfig
x__ y__ :: Maybe VerifierConfig
y__
-> RewriterConfig
x__ {_RewriterConfig'postOptimizationVerifierConfig :: Maybe VerifierConfig
_RewriterConfig'postOptimizationVerifierConfig = Maybe VerifierConfig
y__}))
(VerifierConfig -> Lens' (Maybe VerifierConfig) VerifierConfig
forall b. b -> Lens' (Maybe b) b
Data.ProtoLens.maybeLens VerifierConfig
forall msg. Message msg => msg
Data.ProtoLens.defMessage)
instance Data.ProtoLens.Field.HasField RewriterConfig "maybe'postOptimizationVerifierConfig" (Prelude.Maybe Proto.Tensorflow.Core.Protobuf.VerifierConfig.VerifierConfig) where
fieldOf :: Proxy# "maybe'postOptimizationVerifierConfig"
-> (Maybe VerifierConfig -> f (Maybe VerifierConfig))
-> RewriterConfig
-> f RewriterConfig
fieldOf _
= ((Maybe VerifierConfig -> f (Maybe VerifierConfig))
-> RewriterConfig -> f RewriterConfig)
-> ((Maybe VerifierConfig -> f (Maybe VerifierConfig))
-> Maybe VerifierConfig -> f (Maybe VerifierConfig))
-> (Maybe VerifierConfig -> f (Maybe VerifierConfig))
-> RewriterConfig
-> f RewriterConfig
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig -> Maybe VerifierConfig)
-> (RewriterConfig -> Maybe VerifierConfig -> RewriterConfig)
-> Lens
RewriterConfig
RewriterConfig
(Maybe VerifierConfig)
(Maybe VerifierConfig)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> Maybe VerifierConfig
_RewriterConfig'postOptimizationVerifierConfig
(\ x__ :: RewriterConfig
x__ y__ :: Maybe VerifierConfig
y__
-> RewriterConfig
x__ {_RewriterConfig'postOptimizationVerifierConfig :: Maybe VerifierConfig
_RewriterConfig'postOptimizationVerifierConfig = Maybe VerifierConfig
y__}))
(Maybe VerifierConfig -> f (Maybe VerifierConfig))
-> Maybe VerifierConfig -> f (Maybe VerifierConfig)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Message RewriterConfig where
messageName :: Proxy RewriterConfig -> Text
messageName _ = String -> Text
Data.Text.pack "tensorflow.RewriterConfig"
packedMessageDescriptor :: Proxy RewriterConfig -> ByteString
packedMessageDescriptor _
= "\n\
\\SORewriterConfig\DC2L\n\
\\DLElayout_optimizer\CAN\SOH \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\SIlayoutOptimizer\DC2L\n\
\\DLEconstant_folding\CAN\ETX \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\SIconstantFolding\DC2P\n\
\\DC2shape_optimization\CAN\r \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\DC1shapeOptimization\DC2?\n\
\\tremapping\CAN\SO \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\tremapping\DC2a\n\
\\ESCcommon_subgraph_elimination\CAN\CAN \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\EMcommonSubgraphElimination\DC2Z\n\
\\ETBarithmetic_optimization\CAN\a \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\SYNarithmeticOptimization\DC2Z\n\
\\ETBdependency_optimization\CAN\b \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\SYNdependencyOptimization\DC2N\n\
\\DC1loop_optimization\CAN\t \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\DLEloopOptimization\DC2V\n\
\\NAKfunction_optimization\CAN\n\
\ \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\DC4functionOptimization\DC2H\n\
\\SOdebug_stripper\CAN\v \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\rdebugStripper\DC22\n\
\\NAKdisable_model_pruning\CAN\STX \SOH(\bR\DC3disableModelPruning\DC2e\n\
\\GSscoped_allocator_optimization\CAN\SI \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\ESCscopedAllocatorOptimization\DC2Z\n\
\\CANpin_to_host_optimization\CAN\DC2 \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\NAKpinToHostOptimization\DC2Z\n\
\\ETBimplementation_selector\CAN\SYN \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\SYNimplementationSelector\DC2S\n\
\\DC4auto_mixed_precision\CAN\ETB \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\DC2autoMixedPrecision\DC2Z\n\
\\CANauto_mixed_precision_mkl\CAN\EM \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\NAKautoMixedPrecisionMkl\DC24\n\
\\SYNdisable_meta_optimizer\CAN\DC3 \SOH(\bR\DC4disableMetaOptimizer\DC2h\n\
\\EMmeta_optimizer_iterations\CAN\f \SOH(\SO2,.tensorflow.RewriterConfig.NumIterationsTypeR\ETBmetaOptimizerIterations\DC2&\n\
\\SImin_graph_nodes\CAN\DC1 \SOH(\ENQR\rminGraphNodes\DC2V\n\
\\DC3memory_optimization\CAN\EOT \SOH(\SO2%.tensorflow.RewriterConfig.MemOptTypeR\DC2memoryOptimization\DC2S\n\
\'memory_optimizer_target_node_name_scope\CAN\ACK \SOH(\tR\"memoryOptimizerTargetNodeNameScope\DC29\n\
\\EMmeta_optimizer_timeout_ms\CAN\DC4 \SOH(\ETXR\SYNmetaOptimizerTimeoutMs\DC2D\n\
\\rauto_parallel\CAN\ENQ \SOH(\v2\US.tensorflow.AutoParallelOptionsR\fautoParallel\DC27\n\
\\CANfail_on_optimizer_errors\CAN\NAK \SOH(\bR\NAKfailOnOptimizerErrors\DC2V\n\
\\NAKscoped_allocator_opts\CAN\DLE \SOH(\v2\".tensorflow.ScopedAllocatorOptionsR\DC3scopedAllocatorOpts\DC2\RS\n\
\\n\
\optimizers\CANd \ETX(\tR\n\
\optimizers\DC2]\n\
\\DC1custom_optimizers\CAN\200\SOH \ETX(\v2/.tensorflow.RewriterConfig.CustomGraphOptimizerR\DLEcustomOptimizers\DC2b\n\
\\USinter_optimizer_verifier_config\CAN\172\STX \SOH(\v2\SUB.tensorflow.VerifierConfigR\FSinterOptimizerVerifierConfig\DC2f\n\
\!post_optimization_verifier_config\CAN\173\STX \SOH(\v2\SUB.tensorflow.VerifierConfigR\RSpostOptimizationVerifierConfig\SUB\234\SOH\n\
\\DC4CustomGraphOptimizer\DC2\DC2\n\
\\EOTname\CAN\SOH \SOH(\tR\EOTname\DC2f\n\
\\rparameter_map\CAN\STX \ETX(\v2A.tensorflow.RewriterConfig.CustomGraphOptimizer.ParameterMapEntryR\fparameterMap\SUBV\n\
\\DC1ParameterMapEntry\DC2\DLE\n\
\\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2+\n\
\\ENQvalue\CAN\STX \SOH(\v2\NAK.tensorflow.AttrValueR\ENQvalue:\STX8\SOH\"6\n\
\\ACKToggle\DC2\v\n\
\\aDEFAULT\DLE\NUL\DC2\ACK\n\
\\STXON\DLE\SOH\DC2\a\n\
\\ETXOFF\DLE\STX\DC2\SO\n\
\\n\
\AGGRESSIVE\DLE\ETX\"<\n\
\\DC1NumIterationsType\DC2\NAK\n\
\\DC1DEFAULT_NUM_ITERS\DLE\NUL\DC2\a\n\
\\ETXONE\DLE\SOH\DC2\a\n\
\\ETXTWO\DLE\STX\"\159\SOH\n\
\\n\
\MemOptType\DC2\DC3\n\
\\SIDEFAULT_MEM_OPT\DLE\NUL\DC2\SO\n\
\\n\
\NO_MEM_OPT\DLE\SOH\DC2\n\
\\n\
\\ACKMANUAL\DLE\STX\DC2\ETB\n\
\\DC3SWAPPING_HEURISTICS\DLE\EOT\DC2\FS\n\
\\CANRECOMPUTATION_HEURISTICS\DLE\ENQ\DC2\EM\n\
\\NAKSCHEDULING_HEURISTICS\DLE\ACK\DC2\SO\n\
\\n\
\HEURISTICS\DLE\ETX"
packedFileDescriptor :: Proxy RewriterConfig -> ByteString
packedFileDescriptor _ = ByteString
packedFileDescriptor
fieldsByTag :: Map Tag (FieldDescriptor RewriterConfig)
fieldsByTag
= let
layoutOptimizer__field_descriptor :: FieldDescriptor RewriterConfig
layoutOptimizer__field_descriptor
= String
-> FieldTypeDescriptor RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"layout_optimizer"
(ScalarField RewriterConfig'Toggle
-> FieldTypeDescriptor RewriterConfig'Toggle
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField RewriterConfig'Toggle
forall t. MessageEnum t => ScalarField t
Data.ProtoLens.EnumField ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'Toggle)
(WireDefault RewriterConfig'Toggle
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
WireDefault RewriterConfig'Toggle
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
(forall s a (f :: * -> *).
(HasField s "layoutOptimizer" 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 @"layoutOptimizer")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
constantFolding__field_descriptor :: FieldDescriptor RewriterConfig
constantFolding__field_descriptor
= String
-> FieldTypeDescriptor RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"constant_folding"
(ScalarField RewriterConfig'Toggle
-> FieldTypeDescriptor RewriterConfig'Toggle
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField RewriterConfig'Toggle
forall t. MessageEnum t => ScalarField t
Data.ProtoLens.EnumField ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'Toggle)
(WireDefault RewriterConfig'Toggle
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
WireDefault RewriterConfig'Toggle
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
(forall s a (f :: * -> *).
(HasField s "constantFolding" 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 @"constantFolding")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
shapeOptimization__field_descriptor :: FieldDescriptor RewriterConfig
shapeOptimization__field_descriptor
= String
-> FieldTypeDescriptor RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"shape_optimization"
(ScalarField RewriterConfig'Toggle
-> FieldTypeDescriptor RewriterConfig'Toggle
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField RewriterConfig'Toggle
forall t. MessageEnum t => ScalarField t
Data.ProtoLens.EnumField ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'Toggle)
(WireDefault RewriterConfig'Toggle
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
WireDefault RewriterConfig'Toggle
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
(forall s a (f :: * -> *).
(HasField s "shapeOptimization" 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 @"shapeOptimization")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
remapping__field_descriptor :: FieldDescriptor RewriterConfig
remapping__field_descriptor
= String
-> FieldTypeDescriptor RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"remapping"
(ScalarField RewriterConfig'Toggle
-> FieldTypeDescriptor RewriterConfig'Toggle
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField RewriterConfig'Toggle
forall t. MessageEnum t => ScalarField t
Data.ProtoLens.EnumField ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'Toggle)
(WireDefault RewriterConfig'Toggle
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
WireDefault RewriterConfig'Toggle
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
(forall s a (f :: * -> *).
(HasField s "remapping" 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 @"remapping")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
commonSubgraphElimination__field_descriptor :: FieldDescriptor RewriterConfig
commonSubgraphElimination__field_descriptor
= String
-> FieldTypeDescriptor RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"common_subgraph_elimination"
(ScalarField RewriterConfig'Toggle
-> FieldTypeDescriptor RewriterConfig'Toggle
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField RewriterConfig'Toggle
forall t. MessageEnum t => ScalarField t
Data.ProtoLens.EnumField ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'Toggle)
(WireDefault RewriterConfig'Toggle
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
WireDefault RewriterConfig'Toggle
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
(forall s a (f :: * -> *).
(HasField s "commonSubgraphElimination" 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 @"commonSubgraphElimination")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
arithmeticOptimization__field_descriptor :: FieldDescriptor RewriterConfig
arithmeticOptimization__field_descriptor
= String
-> FieldTypeDescriptor RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"arithmetic_optimization"
(ScalarField RewriterConfig'Toggle
-> FieldTypeDescriptor RewriterConfig'Toggle
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField RewriterConfig'Toggle
forall t. MessageEnum t => ScalarField t
Data.ProtoLens.EnumField ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'Toggle)
(WireDefault RewriterConfig'Toggle
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
WireDefault RewriterConfig'Toggle
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
(forall s a (f :: * -> *).
(HasField s "arithmeticOptimization" 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 @"arithmeticOptimization")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
dependencyOptimization__field_descriptor :: FieldDescriptor RewriterConfig
dependencyOptimization__field_descriptor
= String
-> FieldTypeDescriptor RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"dependency_optimization"
(ScalarField RewriterConfig'Toggle
-> FieldTypeDescriptor RewriterConfig'Toggle
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField RewriterConfig'Toggle
forall t. MessageEnum t => ScalarField t
Data.ProtoLens.EnumField ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'Toggle)
(WireDefault RewriterConfig'Toggle
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
WireDefault RewriterConfig'Toggle
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
(forall s a (f :: * -> *).
(HasField s "dependencyOptimization" 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 @"dependencyOptimization")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
loopOptimization__field_descriptor :: FieldDescriptor RewriterConfig
loopOptimization__field_descriptor
= String
-> FieldTypeDescriptor RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"loop_optimization"
(ScalarField RewriterConfig'Toggle
-> FieldTypeDescriptor RewriterConfig'Toggle
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField RewriterConfig'Toggle
forall t. MessageEnum t => ScalarField t
Data.ProtoLens.EnumField ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'Toggle)
(WireDefault RewriterConfig'Toggle
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
WireDefault RewriterConfig'Toggle
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
(forall s a (f :: * -> *).
(HasField s "loopOptimization" 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 @"loopOptimization")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
functionOptimization__field_descriptor :: FieldDescriptor RewriterConfig
functionOptimization__field_descriptor
= String
-> FieldTypeDescriptor RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"function_optimization"
(ScalarField RewriterConfig'Toggle
-> FieldTypeDescriptor RewriterConfig'Toggle
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField RewriterConfig'Toggle
forall t. MessageEnum t => ScalarField t
Data.ProtoLens.EnumField ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'Toggle)
(WireDefault RewriterConfig'Toggle
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
WireDefault RewriterConfig'Toggle
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
(forall s a (f :: * -> *).
(HasField s "functionOptimization" 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 @"functionOptimization")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
debugStripper__field_descriptor :: FieldDescriptor RewriterConfig
debugStripper__field_descriptor
= String
-> FieldTypeDescriptor RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"debug_stripper"
(ScalarField RewriterConfig'Toggle
-> FieldTypeDescriptor RewriterConfig'Toggle
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField RewriterConfig'Toggle
forall t. MessageEnum t => ScalarField t
Data.ProtoLens.EnumField ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'Toggle)
(WireDefault RewriterConfig'Toggle
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
WireDefault RewriterConfig'Toggle
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
(forall s a (f :: * -> *).
(HasField s "debugStripper" 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 @"debugStripper")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
disableModelPruning__field_descriptor :: FieldDescriptor RewriterConfig
disableModelPruning__field_descriptor
= String
-> FieldTypeDescriptor Bool
-> FieldAccessor RewriterConfig Bool
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"disable_model_pruning"
(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 RewriterConfig RewriterConfig Bool Bool
-> FieldAccessor RewriterConfig 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 "disableModelPruning" 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 @"disableModelPruning")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
scopedAllocatorOptimization__field_descriptor :: FieldDescriptor RewriterConfig
scopedAllocatorOptimization__field_descriptor
= String
-> FieldTypeDescriptor RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"scoped_allocator_optimization"
(ScalarField RewriterConfig'Toggle
-> FieldTypeDescriptor RewriterConfig'Toggle
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField RewriterConfig'Toggle
forall t. MessageEnum t => ScalarField t
Data.ProtoLens.EnumField ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'Toggle)
(WireDefault RewriterConfig'Toggle
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
WireDefault RewriterConfig'Toggle
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
(forall s a (f :: * -> *).
(HasField s "scopedAllocatorOptimization" 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 @"scopedAllocatorOptimization")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
pinToHostOptimization__field_descriptor :: FieldDescriptor RewriterConfig
pinToHostOptimization__field_descriptor
= String
-> FieldTypeDescriptor RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"pin_to_host_optimization"
(ScalarField RewriterConfig'Toggle
-> FieldTypeDescriptor RewriterConfig'Toggle
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField RewriterConfig'Toggle
forall t. MessageEnum t => ScalarField t
Data.ProtoLens.EnumField ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'Toggle)
(WireDefault RewriterConfig'Toggle
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
WireDefault RewriterConfig'Toggle
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
(forall s a (f :: * -> *).
(HasField s "pinToHostOptimization" 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 @"pinToHostOptimization")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
implementationSelector__field_descriptor :: FieldDescriptor RewriterConfig
implementationSelector__field_descriptor
= String
-> FieldTypeDescriptor RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"implementation_selector"
(ScalarField RewriterConfig'Toggle
-> FieldTypeDescriptor RewriterConfig'Toggle
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField RewriterConfig'Toggle
forall t. MessageEnum t => ScalarField t
Data.ProtoLens.EnumField ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'Toggle)
(WireDefault RewriterConfig'Toggle
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
WireDefault RewriterConfig'Toggle
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
(forall s a (f :: * -> *).
(HasField s "implementationSelector" 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 @"implementationSelector")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
autoMixedPrecision__field_descriptor :: FieldDescriptor RewriterConfig
autoMixedPrecision__field_descriptor
= String
-> FieldTypeDescriptor RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"auto_mixed_precision"
(ScalarField RewriterConfig'Toggle
-> FieldTypeDescriptor RewriterConfig'Toggle
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField RewriterConfig'Toggle
forall t. MessageEnum t => ScalarField t
Data.ProtoLens.EnumField ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'Toggle)
(WireDefault RewriterConfig'Toggle
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
WireDefault RewriterConfig'Toggle
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
(forall s a (f :: * -> *).
(HasField s "autoMixedPrecision" 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 @"autoMixedPrecision")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
autoMixedPrecisionMkl__field_descriptor :: FieldDescriptor RewriterConfig
autoMixedPrecisionMkl__field_descriptor
= String
-> FieldTypeDescriptor RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"auto_mixed_precision_mkl"
(ScalarField RewriterConfig'Toggle
-> FieldTypeDescriptor RewriterConfig'Toggle
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField RewriterConfig'Toggle
forall t. MessageEnum t => ScalarField t
Data.ProtoLens.EnumField ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'Toggle)
(WireDefault RewriterConfig'Toggle
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> FieldAccessor RewriterConfig RewriterConfig'Toggle
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
WireDefault RewriterConfig'Toggle
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
(forall s a (f :: * -> *).
(HasField s "autoMixedPrecisionMkl" 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 @"autoMixedPrecisionMkl")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
disableMetaOptimizer__field_descriptor :: FieldDescriptor RewriterConfig
disableMetaOptimizer__field_descriptor
= String
-> FieldTypeDescriptor Bool
-> FieldAccessor RewriterConfig Bool
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"disable_meta_optimizer"
(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 RewriterConfig RewriterConfig Bool Bool
-> FieldAccessor RewriterConfig 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 "disableMetaOptimizer" 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 @"disableMetaOptimizer")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
metaOptimizerIterations__field_descriptor :: FieldDescriptor RewriterConfig
metaOptimizerIterations__field_descriptor
= String
-> FieldTypeDescriptor RewriterConfig'NumIterationsType
-> FieldAccessor RewriterConfig RewriterConfig'NumIterationsType
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"meta_optimizer_iterations"
(ScalarField RewriterConfig'NumIterationsType
-> FieldTypeDescriptor RewriterConfig'NumIterationsType
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField RewriterConfig'NumIterationsType
forall t. MessageEnum t => ScalarField t
Data.ProtoLens.EnumField ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'NumIterationsType)
(WireDefault RewriterConfig'NumIterationsType
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'NumIterationsType
RewriterConfig'NumIterationsType
-> FieldAccessor RewriterConfig RewriterConfig'NumIterationsType
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
WireDefault RewriterConfig'NumIterationsType
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
(forall s a (f :: * -> *).
(HasField s "metaOptimizerIterations" 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 @"metaOptimizerIterations")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
minGraphNodes__field_descriptor :: FieldDescriptor RewriterConfig
minGraphNodes__field_descriptor
= String
-> FieldTypeDescriptor Int32
-> FieldAccessor RewriterConfig Int32
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"min_graph_nodes"
(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 RewriterConfig RewriterConfig Int32 Int32
-> FieldAccessor RewriterConfig 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 "minGraphNodes" 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 @"minGraphNodes")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
memoryOptimization__field_descriptor :: FieldDescriptor RewriterConfig
memoryOptimization__field_descriptor
= String
-> FieldTypeDescriptor RewriterConfig'MemOptType
-> FieldAccessor RewriterConfig RewriterConfig'MemOptType
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"memory_optimization"
(ScalarField RewriterConfig'MemOptType
-> FieldTypeDescriptor RewriterConfig'MemOptType
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField RewriterConfig'MemOptType
forall t. MessageEnum t => ScalarField t
Data.ProtoLens.EnumField ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'MemOptType)
(WireDefault RewriterConfig'MemOptType
-> Lens
RewriterConfig
RewriterConfig
RewriterConfig'MemOptType
RewriterConfig'MemOptType
-> FieldAccessor RewriterConfig RewriterConfig'MemOptType
forall value msg.
WireDefault value -> Lens' msg value -> FieldAccessor msg value
Data.ProtoLens.PlainField
WireDefault RewriterConfig'MemOptType
forall value. (FieldDefault value, Eq value) => WireDefault value
Data.ProtoLens.Optional
(forall s a (f :: * -> *).
(HasField s "memoryOptimization" 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 @"memoryOptimization")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
memoryOptimizerTargetNodeNameScope__field_descriptor :: FieldDescriptor RewriterConfig
memoryOptimizerTargetNodeNameScope__field_descriptor
= String
-> FieldTypeDescriptor Text
-> FieldAccessor RewriterConfig Text
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"memory_optimizer_target_node_name_scope"
(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 RewriterConfig RewriterConfig Text Text
-> FieldAccessor RewriterConfig 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 "memoryOptimizerTargetNodeNameScope" 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
@"memoryOptimizerTargetNodeNameScope")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
metaOptimizerTimeoutMs__field_descriptor :: FieldDescriptor RewriterConfig
metaOptimizerTimeoutMs__field_descriptor
= String
-> FieldTypeDescriptor Int64
-> FieldAccessor RewriterConfig Int64
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"meta_optimizer_timeout_ms"
(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 RewriterConfig RewriterConfig Int64 Int64
-> FieldAccessor RewriterConfig 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 "metaOptimizerTimeoutMs" 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 @"metaOptimizerTimeoutMs")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
autoParallel__field_descriptor :: FieldDescriptor RewriterConfig
autoParallel__field_descriptor
= String
-> FieldTypeDescriptor AutoParallelOptions
-> FieldAccessor RewriterConfig AutoParallelOptions
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"auto_parallel"
(MessageOrGroup -> FieldTypeDescriptor AutoParallelOptions
forall value.
Message value =>
MessageOrGroup -> FieldTypeDescriptor value
Data.ProtoLens.MessageField MessageOrGroup
Data.ProtoLens.MessageType ::
Data.ProtoLens.FieldTypeDescriptor AutoParallelOptions)
(Lens
RewriterConfig
RewriterConfig
(Maybe AutoParallelOptions)
(Maybe AutoParallelOptions)
-> FieldAccessor RewriterConfig AutoParallelOptions
forall msg value.
Lens' msg (Maybe value) -> FieldAccessor msg value
Data.ProtoLens.OptionalField
(forall s a (f :: * -> *).
(HasField s "maybe'autoParallel" 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'autoParallel")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
failOnOptimizerErrors__field_descriptor :: FieldDescriptor RewriterConfig
failOnOptimizerErrors__field_descriptor
= String
-> FieldTypeDescriptor Bool
-> FieldAccessor RewriterConfig Bool
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"fail_on_optimizer_errors"
(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 RewriterConfig RewriterConfig Bool Bool
-> FieldAccessor RewriterConfig 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 "failOnOptimizerErrors" 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 @"failOnOptimizerErrors")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
scopedAllocatorOpts__field_descriptor :: FieldDescriptor RewriterConfig
scopedAllocatorOpts__field_descriptor
= String
-> FieldTypeDescriptor ScopedAllocatorOptions
-> FieldAccessor RewriterConfig ScopedAllocatorOptions
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"scoped_allocator_opts"
(MessageOrGroup -> FieldTypeDescriptor ScopedAllocatorOptions
forall value.
Message value =>
MessageOrGroup -> FieldTypeDescriptor value
Data.ProtoLens.MessageField MessageOrGroup
Data.ProtoLens.MessageType ::
Data.ProtoLens.FieldTypeDescriptor ScopedAllocatorOptions)
(Lens
RewriterConfig
RewriterConfig
(Maybe ScopedAllocatorOptions)
(Maybe ScopedAllocatorOptions)
-> FieldAccessor RewriterConfig ScopedAllocatorOptions
forall msg value.
Lens' msg (Maybe value) -> FieldAccessor msg value
Data.ProtoLens.OptionalField
(forall s a (f :: * -> *).
(HasField s "maybe'scopedAllocatorOpts" 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'scopedAllocatorOpts")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
optimizers__field_descriptor :: FieldDescriptor RewriterConfig
optimizers__field_descriptor
= String
-> FieldTypeDescriptor Text
-> FieldAccessor RewriterConfig Text
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"optimizers"
(ScalarField Text -> FieldTypeDescriptor Text
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Text
Data.ProtoLens.StringField ::
Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
(Packing
-> Lens' RewriterConfig [Text] -> FieldAccessor RewriterConfig Text
forall msg value.
Packing -> Lens' msg [value] -> FieldAccessor msg value
Data.ProtoLens.RepeatedField
Packing
Data.ProtoLens.Unpacked
(forall s a (f :: * -> *).
(HasField s "optimizers" 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 @"optimizers")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
customOptimizers__field_descriptor :: FieldDescriptor RewriterConfig
customOptimizers__field_descriptor
= String
-> FieldTypeDescriptor RewriterConfig'CustomGraphOptimizer
-> FieldAccessor RewriterConfig RewriterConfig'CustomGraphOptimizer
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"custom_optimizers"
(MessageOrGroup
-> FieldTypeDescriptor RewriterConfig'CustomGraphOptimizer
forall value.
Message value =>
MessageOrGroup -> FieldTypeDescriptor value
Data.ProtoLens.MessageField MessageOrGroup
Data.ProtoLens.MessageType ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'CustomGraphOptimizer)
(Packing
-> Lens' RewriterConfig [RewriterConfig'CustomGraphOptimizer]
-> FieldAccessor RewriterConfig RewriterConfig'CustomGraphOptimizer
forall msg value.
Packing -> Lens' msg [value] -> FieldAccessor msg value
Data.ProtoLens.RepeatedField
Packing
Data.ProtoLens.Unpacked
(forall s a (f :: * -> *).
(HasField s "customOptimizers" 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 @"customOptimizers")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
interOptimizerVerifierConfig__field_descriptor :: FieldDescriptor RewriterConfig
interOptimizerVerifierConfig__field_descriptor
= String
-> FieldTypeDescriptor VerifierConfig
-> FieldAccessor RewriterConfig VerifierConfig
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"inter_optimizer_verifier_config"
(MessageOrGroup -> FieldTypeDescriptor VerifierConfig
forall value.
Message value =>
MessageOrGroup -> FieldTypeDescriptor value
Data.ProtoLens.MessageField MessageOrGroup
Data.ProtoLens.MessageType ::
Data.ProtoLens.FieldTypeDescriptor Proto.Tensorflow.Core.Protobuf.VerifierConfig.VerifierConfig)
(Lens
RewriterConfig
RewriterConfig
(Maybe VerifierConfig)
(Maybe VerifierConfig)
-> FieldAccessor RewriterConfig VerifierConfig
forall msg value.
Lens' msg (Maybe value) -> FieldAccessor msg value
Data.ProtoLens.OptionalField
(forall s a (f :: * -> *).
(HasField s "maybe'interOptimizerVerifierConfig" 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'interOptimizerVerifierConfig")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
postOptimizationVerifierConfig__field_descriptor :: FieldDescriptor RewriterConfig
postOptimizationVerifierConfig__field_descriptor
= String
-> FieldTypeDescriptor VerifierConfig
-> FieldAccessor RewriterConfig VerifierConfig
-> FieldDescriptor RewriterConfig
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"post_optimization_verifier_config"
(MessageOrGroup -> FieldTypeDescriptor VerifierConfig
forall value.
Message value =>
MessageOrGroup -> FieldTypeDescriptor value
Data.ProtoLens.MessageField MessageOrGroup
Data.ProtoLens.MessageType ::
Data.ProtoLens.FieldTypeDescriptor Proto.Tensorflow.Core.Protobuf.VerifierConfig.VerifierConfig)
(Lens
RewriterConfig
RewriterConfig
(Maybe VerifierConfig)
(Maybe VerifierConfig)
-> FieldAccessor RewriterConfig VerifierConfig
forall msg value.
Lens' msg (Maybe value) -> FieldAccessor msg value
Data.ProtoLens.OptionalField
(forall s a (f :: * -> *).
(HasField s "maybe'postOptimizationVerifierConfig" 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'postOptimizationVerifierConfig")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig
in
[(Tag, FieldDescriptor RewriterConfig)]
-> Map Tag (FieldDescriptor RewriterConfig)
forall k a. Ord k => [(k, a)] -> Map k a
Data.Map.fromList
[(Int -> Tag
Data.ProtoLens.Tag 1, FieldDescriptor RewriterConfig
layoutOptimizer__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 3, FieldDescriptor RewriterConfig
constantFolding__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 13, FieldDescriptor RewriterConfig
shapeOptimization__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 14, FieldDescriptor RewriterConfig
remapping__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 24,
FieldDescriptor RewriterConfig
commonSubgraphElimination__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 7, FieldDescriptor RewriterConfig
arithmeticOptimization__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 8, FieldDescriptor RewriterConfig
dependencyOptimization__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 9, FieldDescriptor RewriterConfig
loopOptimization__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 10, FieldDescriptor RewriterConfig
functionOptimization__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 11, FieldDescriptor RewriterConfig
debugStripper__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 2, FieldDescriptor RewriterConfig
disableModelPruning__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 15,
FieldDescriptor RewriterConfig
scopedAllocatorOptimization__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 18, FieldDescriptor RewriterConfig
pinToHostOptimization__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 22, FieldDescriptor RewriterConfig
implementationSelector__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 23, FieldDescriptor RewriterConfig
autoMixedPrecision__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 25, FieldDescriptor RewriterConfig
autoMixedPrecisionMkl__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 19, FieldDescriptor RewriterConfig
disableMetaOptimizer__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 12, FieldDescriptor RewriterConfig
metaOptimizerIterations__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 17, FieldDescriptor RewriterConfig
minGraphNodes__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 4, FieldDescriptor RewriterConfig
memoryOptimization__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 6,
FieldDescriptor RewriterConfig
memoryOptimizerTargetNodeNameScope__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 20, FieldDescriptor RewriterConfig
metaOptimizerTimeoutMs__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 5, FieldDescriptor RewriterConfig
autoParallel__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 21, FieldDescriptor RewriterConfig
failOnOptimizerErrors__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 16, FieldDescriptor RewriterConfig
scopedAllocatorOpts__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 100, FieldDescriptor RewriterConfig
optimizers__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 200, FieldDescriptor RewriterConfig
customOptimizers__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 300,
FieldDescriptor RewriterConfig
interOptimizerVerifierConfig__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 301,
FieldDescriptor RewriterConfig
postOptimizationVerifierConfig__field_descriptor)]
unknownFields :: LensLike' f RewriterConfig FieldSet
unknownFields
= (RewriterConfig -> FieldSet)
-> (RewriterConfig -> FieldSet -> RewriterConfig)
-> Lens' RewriterConfig FieldSet
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig -> FieldSet
_RewriterConfig'_unknownFields
(\ x__ :: RewriterConfig
x__ y__ :: FieldSet
y__ -> RewriterConfig
x__ {_RewriterConfig'_unknownFields :: FieldSet
_RewriterConfig'_unknownFields = FieldSet
y__})
defMessage :: RewriterConfig
defMessage
= $WRewriterConfig'_constructor :: RewriterConfig'Toggle
-> RewriterConfig'Toggle
-> RewriterConfig'Toggle
-> RewriterConfig'Toggle
-> RewriterConfig'Toggle
-> RewriterConfig'Toggle
-> RewriterConfig'Toggle
-> RewriterConfig'Toggle
-> RewriterConfig'Toggle
-> RewriterConfig'Toggle
-> Bool
-> RewriterConfig'Toggle
-> RewriterConfig'Toggle
-> RewriterConfig'Toggle
-> RewriterConfig'Toggle
-> RewriterConfig'Toggle
-> Bool
-> RewriterConfig'NumIterationsType
-> Int32
-> RewriterConfig'MemOptType
-> Text
-> Int64
-> Maybe AutoParallelOptions
-> Bool
-> Maybe ScopedAllocatorOptions
-> Vector Text
-> Vector RewriterConfig'CustomGraphOptimizer
-> Maybe VerifierConfig
-> Maybe VerifierConfig
-> FieldSet
-> RewriterConfig
RewriterConfig'_constructor
{_RewriterConfig'layoutOptimizer :: RewriterConfig'Toggle
_RewriterConfig'layoutOptimizer = RewriterConfig'Toggle
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'constantFolding :: RewriterConfig'Toggle
_RewriterConfig'constantFolding = RewriterConfig'Toggle
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'shapeOptimization :: RewriterConfig'Toggle
_RewriterConfig'shapeOptimization = RewriterConfig'Toggle
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'remapping :: RewriterConfig'Toggle
_RewriterConfig'remapping = RewriterConfig'Toggle
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'commonSubgraphElimination :: RewriterConfig'Toggle
_RewriterConfig'commonSubgraphElimination = RewriterConfig'Toggle
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'arithmeticOptimization :: RewriterConfig'Toggle
_RewriterConfig'arithmeticOptimization = RewriterConfig'Toggle
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'dependencyOptimization :: RewriterConfig'Toggle
_RewriterConfig'dependencyOptimization = RewriterConfig'Toggle
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'loopOptimization :: RewriterConfig'Toggle
_RewriterConfig'loopOptimization = RewriterConfig'Toggle
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'functionOptimization :: RewriterConfig'Toggle
_RewriterConfig'functionOptimization = RewriterConfig'Toggle
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'debugStripper :: RewriterConfig'Toggle
_RewriterConfig'debugStripper = RewriterConfig'Toggle
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'disableModelPruning :: Bool
_RewriterConfig'disableModelPruning = Bool
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'scopedAllocatorOptimization :: RewriterConfig'Toggle
_RewriterConfig'scopedAllocatorOptimization = RewriterConfig'Toggle
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'pinToHostOptimization :: RewriterConfig'Toggle
_RewriterConfig'pinToHostOptimization = RewriterConfig'Toggle
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'implementationSelector :: RewriterConfig'Toggle
_RewriterConfig'implementationSelector = RewriterConfig'Toggle
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'autoMixedPrecision :: RewriterConfig'Toggle
_RewriterConfig'autoMixedPrecision = RewriterConfig'Toggle
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'autoMixedPrecisionMkl :: RewriterConfig'Toggle
_RewriterConfig'autoMixedPrecisionMkl = RewriterConfig'Toggle
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'disableMetaOptimizer :: Bool
_RewriterConfig'disableMetaOptimizer = Bool
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'metaOptimizerIterations :: RewriterConfig'NumIterationsType
_RewriterConfig'metaOptimizerIterations = RewriterConfig'NumIterationsType
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'minGraphNodes :: Int32
_RewriterConfig'minGraphNodes = Int32
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'memoryOptimization :: RewriterConfig'MemOptType
_RewriterConfig'memoryOptimization = RewriterConfig'MemOptType
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'memoryOptimizerTargetNodeNameScope :: Text
_RewriterConfig'memoryOptimizerTargetNodeNameScope = Text
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'metaOptimizerTimeoutMs :: Int64
_RewriterConfig'metaOptimizerTimeoutMs = Int64
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'autoParallel :: Maybe AutoParallelOptions
_RewriterConfig'autoParallel = Maybe AutoParallelOptions
forall a. Maybe a
Prelude.Nothing,
_RewriterConfig'failOnOptimizerErrors :: Bool
_RewriterConfig'failOnOptimizerErrors = Bool
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'scopedAllocatorOpts :: Maybe ScopedAllocatorOptions
_RewriterConfig'scopedAllocatorOpts = Maybe ScopedAllocatorOptions
forall a. Maybe a
Prelude.Nothing,
_RewriterConfig'optimizers :: Vector Text
_RewriterConfig'optimizers = Vector Text
forall (v :: * -> *) a. Vector v a => v a
Data.Vector.Generic.empty,
_RewriterConfig'customOptimizers :: Vector RewriterConfig'CustomGraphOptimizer
_RewriterConfig'customOptimizers = Vector RewriterConfig'CustomGraphOptimizer
forall (v :: * -> *) a. Vector v a => v a
Data.Vector.Generic.empty,
_RewriterConfig'interOptimizerVerifierConfig :: Maybe VerifierConfig
_RewriterConfig'interOptimizerVerifierConfig = Maybe VerifierConfig
forall a. Maybe a
Prelude.Nothing,
_RewriterConfig'postOptimizationVerifierConfig :: Maybe VerifierConfig
_RewriterConfig'postOptimizationVerifierConfig = Maybe VerifierConfig
forall a. Maybe a
Prelude.Nothing,
_RewriterConfig'_unknownFields :: FieldSet
_RewriterConfig'_unknownFields = []}
parseMessage :: Parser RewriterConfig
parseMessage
= let
loop ::
RewriterConfig
-> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld RewriterConfig'CustomGraphOptimizer
-> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text
-> Data.ProtoLens.Encoding.Bytes.Parser RewriterConfig
loop :: RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop x :: RewriterConfig
x mutable'customOptimizers :: Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers mutable'optimizers :: Growing Vector RealWorld Text
mutable'optimizers
= do Bool
end <- Parser Bool
Data.ProtoLens.Encoding.Bytes.atEnd
if Bool
end then
do Vector RewriterConfig'CustomGraphOptimizer
frozen'customOptimizers <- IO (Vector RewriterConfig'CustomGraphOptimizer)
-> Parser (Vector RewriterConfig'CustomGraphOptimizer)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
(Growing Vector (PrimState IO) RewriterConfig'CustomGraphOptimizer
-> IO (Vector RewriterConfig'CustomGraphOptimizer)
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 RewriterConfig'CustomGraphOptimizer
Growing Vector (PrimState IO) RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers)
Vector Text
frozen'optimizers <- IO (Vector Text) -> Parser (Vector Text)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
(Growing Vector (PrimState IO) Text -> IO (Vector Text)
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 Text
Growing Vector (PrimState IO) Text
mutable'optimizers)
(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]))))
RewriterConfig -> Parser RewriterConfig
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return
(Setter RewriterConfig RewriterConfig FieldSet FieldSet
-> (FieldSet -> FieldSet) -> RewriterConfig -> RewriterConfig
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 RewriterConfig RewriterConfig FieldSet FieldSet
Data.ProtoLens.unknownFields
(\ !FieldSet
t -> FieldSet -> FieldSet
forall a. [a] -> [a]
Prelude.reverse FieldSet
t)
(Setter
RewriterConfig
RewriterConfig
(Vector RewriterConfig'CustomGraphOptimizer)
(Vector RewriterConfig'CustomGraphOptimizer)
-> Vector RewriterConfig'CustomGraphOptimizer
-> RewriterConfig
-> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "vec'customOptimizers" 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'customOptimizers")
Vector RewriterConfig'CustomGraphOptimizer
frozen'customOptimizers
(Setter RewriterConfig RewriterConfig (Vector Text) (Vector Text)
-> Vector Text -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "vec'optimizers" 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'optimizers")
Vector Text
frozen'optimizers
RewriterConfig
x)))
else
do Word64
tag <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
case Word64
tag of
8 -> do RewriterConfig'Toggle
y <- Parser RewriterConfig'Toggle
-> String -> Parser RewriterConfig'Toggle
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
((Int -> RewriterConfig'Toggle)
-> Parser Int -> Parser RewriterConfig'Toggle
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
Int -> RewriterConfig'Toggle
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))
"layout_optimizer"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "layoutOptimizer" 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 @"layoutOptimizer") RewriterConfig'Toggle
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
24
-> do RewriterConfig'Toggle
y <- Parser RewriterConfig'Toggle
-> String -> Parser RewriterConfig'Toggle
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
((Int -> RewriterConfig'Toggle)
-> Parser Int -> Parser RewriterConfig'Toggle
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
Int -> RewriterConfig'Toggle
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))
"constant_folding"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "constantFolding" 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 @"constantFolding") RewriterConfig'Toggle
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
104
-> do RewriterConfig'Toggle
y <- Parser RewriterConfig'Toggle
-> String -> Parser RewriterConfig'Toggle
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
((Int -> RewriterConfig'Toggle)
-> Parser Int -> Parser RewriterConfig'Toggle
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
Int -> RewriterConfig'Toggle
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))
"shape_optimization"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "shapeOptimization" 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 @"shapeOptimization") RewriterConfig'Toggle
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
112
-> do RewriterConfig'Toggle
y <- Parser RewriterConfig'Toggle
-> String -> Parser RewriterConfig'Toggle
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
((Int -> RewriterConfig'Toggle)
-> Parser Int -> Parser RewriterConfig'Toggle
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
Int -> RewriterConfig'Toggle
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))
"remapping"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "remapping" 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 @"remapping") RewriterConfig'Toggle
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
192
-> do RewriterConfig'Toggle
y <- Parser RewriterConfig'Toggle
-> String -> Parser RewriterConfig'Toggle
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
((Int -> RewriterConfig'Toggle)
-> Parser Int -> Parser RewriterConfig'Toggle
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
Int -> RewriterConfig'Toggle
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))
"common_subgraph_elimination"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "commonSubgraphElimination" 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 @"commonSubgraphElimination") RewriterConfig'Toggle
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
56
-> do RewriterConfig'Toggle
y <- Parser RewriterConfig'Toggle
-> String -> Parser RewriterConfig'Toggle
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
((Int -> RewriterConfig'Toggle)
-> Parser Int -> Parser RewriterConfig'Toggle
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
Int -> RewriterConfig'Toggle
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))
"arithmetic_optimization"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "arithmeticOptimization" 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 @"arithmeticOptimization") RewriterConfig'Toggle
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
64
-> do RewriterConfig'Toggle
y <- Parser RewriterConfig'Toggle
-> String -> Parser RewriterConfig'Toggle
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
((Int -> RewriterConfig'Toggle)
-> Parser Int -> Parser RewriterConfig'Toggle
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
Int -> RewriterConfig'Toggle
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))
"dependency_optimization"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "dependencyOptimization" 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 @"dependencyOptimization") RewriterConfig'Toggle
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
72
-> do RewriterConfig'Toggle
y <- Parser RewriterConfig'Toggle
-> String -> Parser RewriterConfig'Toggle
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
((Int -> RewriterConfig'Toggle)
-> Parser Int -> Parser RewriterConfig'Toggle
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
Int -> RewriterConfig'Toggle
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))
"loop_optimization"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "loopOptimization" 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 @"loopOptimization") RewriterConfig'Toggle
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
80
-> do RewriterConfig'Toggle
y <- Parser RewriterConfig'Toggle
-> String -> Parser RewriterConfig'Toggle
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
((Int -> RewriterConfig'Toggle)
-> Parser Int -> Parser RewriterConfig'Toggle
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
Int -> RewriterConfig'Toggle
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))
"function_optimization"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "functionOptimization" 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 @"functionOptimization") RewriterConfig'Toggle
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
88
-> do RewriterConfig'Toggle
y <- Parser RewriterConfig'Toggle
-> String -> Parser RewriterConfig'Toggle
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
((Int -> RewriterConfig'Toggle)
-> Parser Int -> Parser RewriterConfig'Toggle
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
Int -> RewriterConfig'Toggle
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))
"debug_stripper"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "debugStripper" 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 @"debugStripper") RewriterConfig'Toggle
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
16
-> 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)
"disable_model_pruning"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter RewriterConfig RewriterConfig Bool Bool
-> Bool -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "disableModelPruning" 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 @"disableModelPruning") Bool
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
120
-> do RewriterConfig'Toggle
y <- Parser RewriterConfig'Toggle
-> String -> Parser RewriterConfig'Toggle
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
((Int -> RewriterConfig'Toggle)
-> Parser Int -> Parser RewriterConfig'Toggle
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
Int -> RewriterConfig'Toggle
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))
"scoped_allocator_optimization"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "scopedAllocatorOptimization" 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 @"scopedAllocatorOptimization")
RewriterConfig'Toggle
y
RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
144
-> do RewriterConfig'Toggle
y <- Parser RewriterConfig'Toggle
-> String -> Parser RewriterConfig'Toggle
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
((Int -> RewriterConfig'Toggle)
-> Parser Int -> Parser RewriterConfig'Toggle
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
Int -> RewriterConfig'Toggle
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))
"pin_to_host_optimization"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "pinToHostOptimization" 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 @"pinToHostOptimization") RewriterConfig'Toggle
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
176
-> do RewriterConfig'Toggle
y <- Parser RewriterConfig'Toggle
-> String -> Parser RewriterConfig'Toggle
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
((Int -> RewriterConfig'Toggle)
-> Parser Int -> Parser RewriterConfig'Toggle
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
Int -> RewriterConfig'Toggle
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))
"implementation_selector"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "implementationSelector" 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 @"implementationSelector") RewriterConfig'Toggle
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
184
-> do RewriterConfig'Toggle
y <- Parser RewriterConfig'Toggle
-> String -> Parser RewriterConfig'Toggle
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
((Int -> RewriterConfig'Toggle)
-> Parser Int -> Parser RewriterConfig'Toggle
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
Int -> RewriterConfig'Toggle
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))
"auto_mixed_precision"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "autoMixedPrecision" 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 @"autoMixedPrecision") RewriterConfig'Toggle
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
200
-> do RewriterConfig'Toggle
y <- Parser RewriterConfig'Toggle
-> String -> Parser RewriterConfig'Toggle
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
((Int -> RewriterConfig'Toggle)
-> Parser Int -> Parser RewriterConfig'Toggle
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
Int -> RewriterConfig'Toggle
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))
"auto_mixed_precision_mkl"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "autoMixedPrecisionMkl" 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 @"autoMixedPrecisionMkl") RewriterConfig'Toggle
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
152
-> 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)
"disable_meta_optimizer"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter RewriterConfig RewriterConfig Bool Bool
-> Bool -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "disableMetaOptimizer" 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 @"disableMetaOptimizer") Bool
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
96
-> do RewriterConfig'NumIterationsType
y <- Parser RewriterConfig'NumIterationsType
-> String -> Parser RewriterConfig'NumIterationsType
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
((Int -> RewriterConfig'NumIterationsType)
-> Parser Int -> Parser RewriterConfig'NumIterationsType
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
Int -> RewriterConfig'NumIterationsType
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))
"meta_optimizer_iterations"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
RewriterConfig'NumIterationsType
RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
-> RewriterConfig
-> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "metaOptimizerIterations" 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 @"metaOptimizerIterations") RewriterConfig'NumIterationsType
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
136
-> 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)
"min_graph_nodes"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter RewriterConfig RewriterConfig Int32 Int32
-> Int32 -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "minGraphNodes" 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 @"minGraphNodes") Int32
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
32
-> do RewriterConfig'MemOptType
y <- Parser RewriterConfig'MemOptType
-> String -> Parser RewriterConfig'MemOptType
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
((Int -> RewriterConfig'MemOptType)
-> Parser Int -> Parser RewriterConfig'MemOptType
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.fmap
Int -> RewriterConfig'MemOptType
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))
"memory_optimization"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
RewriterConfig'MemOptType
RewriterConfig'MemOptType
-> RewriterConfig'MemOptType -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "memoryOptimization" 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 @"memoryOptimization") RewriterConfig'MemOptType
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
50
-> 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))
"memory_optimizer_target_node_name_scope"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter RewriterConfig RewriterConfig Text Text
-> Text -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "memoryOptimizerTargetNodeNameScope" 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
@"memoryOptimizerTargetNodeNameScope")
Text
y
RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
160
-> 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)
"meta_optimizer_timeout_ms"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter RewriterConfig RewriterConfig Int64 Int64
-> Int64 -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "metaOptimizerTimeoutMs" 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 @"metaOptimizerTimeoutMs") Int64
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
42
-> do AutoParallelOptions
y <- Parser AutoParallelOptions -> String -> Parser AutoParallelOptions
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
(do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
Int -> Parser AutoParallelOptions -> Parser AutoParallelOptions
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 AutoParallelOptions
forall msg. Message msg => Parser msg
Data.ProtoLens.parseMessage)
"auto_parallel"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
AutoParallelOptions
AutoParallelOptions
-> AutoParallelOptions -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "autoParallel" 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 @"autoParallel") AutoParallelOptions
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
168
-> 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)
"fail_on_optimizer_errors"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter RewriterConfig RewriterConfig Bool Bool
-> Bool -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "failOnOptimizerErrors" 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 @"failOnOptimizerErrors") Bool
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
130
-> do ScopedAllocatorOptions
y <- Parser ScopedAllocatorOptions
-> String -> Parser ScopedAllocatorOptions
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
(do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
Int
-> Parser ScopedAllocatorOptions -> Parser ScopedAllocatorOptions
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 ScopedAllocatorOptions
forall msg. Message msg => Parser msg
Data.ProtoLens.parseMessage)
"scoped_allocator_opts"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter
RewriterConfig
RewriterConfig
ScopedAllocatorOptions
ScopedAllocatorOptions
-> ScopedAllocatorOptions -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "scopedAllocatorOpts" 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 @"scopedAllocatorOpts") ScopedAllocatorOptions
y RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
802
-> 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))
"optimizers"
Growing Vector RealWorld Text
v <- IO (Growing Vector RealWorld Text)
-> Parser (Growing Vector RealWorld Text)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
(Growing Vector (PrimState IO) Text
-> Text -> IO (Growing Vector (PrimState IO) Text)
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 Text
Growing Vector (PrimState IO) Text
mutable'optimizers Text
y)
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop RewriterConfig
x Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers Growing Vector RealWorld Text
v
1602
-> do !RewriterConfig'CustomGraphOptimizer
y <- Parser RewriterConfig'CustomGraphOptimizer
-> String -> Parser RewriterConfig'CustomGraphOptimizer
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
(do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
Int
-> Parser RewriterConfig'CustomGraphOptimizer
-> Parser RewriterConfig'CustomGraphOptimizer
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 RewriterConfig'CustomGraphOptimizer
forall msg. Message msg => Parser msg
Data.ProtoLens.parseMessage)
"custom_optimizers"
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
v <- IO (Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer)
-> Parser
(Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
(Growing Vector (PrimState IO) RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer
-> IO
(Growing Vector (PrimState IO) RewriterConfig'CustomGraphOptimizer)
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 RewriterConfig'CustomGraphOptimizer
Growing Vector (PrimState IO) RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers RewriterConfig'CustomGraphOptimizer
y)
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop RewriterConfig
x Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
v Growing Vector RealWorld Text
mutable'optimizers
2402
-> do VerifierConfig
y <- Parser VerifierConfig -> String -> Parser VerifierConfig
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
(do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
Int -> Parser VerifierConfig -> Parser VerifierConfig
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 VerifierConfig
forall msg. Message msg => Parser msg
Data.ProtoLens.parseMessage)
"inter_optimizer_verifier_config"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter RewriterConfig RewriterConfig VerifierConfig VerifierConfig
-> VerifierConfig -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "interOptimizerVerifierConfig" 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 @"interOptimizerVerifierConfig")
VerifierConfig
y
RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
2410
-> do VerifierConfig
y <- Parser VerifierConfig -> String -> Parser VerifierConfig
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
(do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
Int -> Parser VerifierConfig -> Parser VerifierConfig
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 VerifierConfig
forall msg. Message msg => Parser msg
Data.ProtoLens.parseMessage)
"post_optimization_verifier_config"
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter RewriterConfig RewriterConfig VerifierConfig VerifierConfig
-> VerifierConfig -> RewriterConfig -> RewriterConfig
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "postOptimizationVerifierConfig" 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 @"postOptimizationVerifierConfig")
VerifierConfig
y
RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
wire :: Word64
wire
-> do !TaggedValue
y <- Word64 -> Parser TaggedValue
Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire
Word64
wire
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
(Setter RewriterConfig RewriterConfig FieldSet FieldSet
-> (FieldSet -> FieldSet) -> RewriterConfig -> RewriterConfig
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 RewriterConfig RewriterConfig FieldSet FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> (:) TaggedValue
y FieldSet
t) RewriterConfig
x)
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers
in
Parser RewriterConfig -> String -> Parser RewriterConfig
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
(do Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers <- IO (Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer)
-> Parser
(Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
IO (Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
m (Growing v (PrimState m) a)
Data.ProtoLens.Encoding.Growing.new
Growing Vector RealWorld Text
mutable'optimizers <- IO (Growing Vector RealWorld Text)
-> Parser (Growing Vector RealWorld Text)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
IO (Growing Vector RealWorld Text)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
m (Growing v (PrimState m) a)
Data.ProtoLens.Encoding.Growing.new
RewriterConfig
-> Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
-> Growing Vector RealWorld Text
-> Parser RewriterConfig
loop
RewriterConfig
forall msg. Message msg => msg
Data.ProtoLens.defMessage
Growing Vector RealWorld RewriterConfig'CustomGraphOptimizer
mutable'customOptimizers
Growing Vector RealWorld Text
mutable'optimizers)
"RewriterConfig"
buildMessage :: RewriterConfig -> Builder
buildMessage
= \ _x :: RewriterConfig
_x
-> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: RewriterConfig'Toggle
_v
= FoldLike
RewriterConfig'Toggle
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig -> RewriterConfig'Toggle
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "layoutOptimizer" 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 @"layoutOptimizer") RewriterConfig
_x
in
if RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) RewriterConfig'Toggle
_v RewriterConfig'Toggle
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)
((Int -> Builder)
-> (RewriterConfig'Toggle -> Int)
-> RewriterConfig'Toggle
-> 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)
RewriterConfig'Toggle -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum
RewriterConfig'Toggle
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: RewriterConfig'Toggle
_v
= FoldLike
RewriterConfig'Toggle
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig -> RewriterConfig'Toggle
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "constantFolding" 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 @"constantFolding") RewriterConfig
_x
in
if RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) RewriterConfig'Toggle
_v RewriterConfig'Toggle
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)
((Int -> Builder)
-> (RewriterConfig'Toggle -> Int)
-> RewriterConfig'Toggle
-> 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)
RewriterConfig'Toggle -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum
RewriterConfig'Toggle
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: RewriterConfig'Toggle
_v
= FoldLike
RewriterConfig'Toggle
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig -> RewriterConfig'Toggle
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "shapeOptimization" 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 @"shapeOptimization") RewriterConfig
_x
in
if RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) RewriterConfig'Toggle
_v RewriterConfig'Toggle
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 104)
((Int -> Builder)
-> (RewriterConfig'Toggle -> Int)
-> RewriterConfig'Toggle
-> 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)
RewriterConfig'Toggle -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum
RewriterConfig'Toggle
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: RewriterConfig'Toggle
_v = FoldLike
RewriterConfig'Toggle
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig -> RewriterConfig'Toggle
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "remapping" 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 @"remapping") RewriterConfig
_x
in
if RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) RewriterConfig'Toggle
_v RewriterConfig'Toggle
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)
((Int -> Builder)
-> (RewriterConfig'Toggle -> Int)
-> RewriterConfig'Toggle
-> 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)
RewriterConfig'Toggle -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum
RewriterConfig'Toggle
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: RewriterConfig'Toggle
_v
= FoldLike
RewriterConfig'Toggle
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig -> RewriterConfig'Toggle
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "commonSubgraphElimination" 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 @"commonSubgraphElimination") RewriterConfig
_x
in
if RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) RewriterConfig'Toggle
_v RewriterConfig'Toggle
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 192)
((Int -> Builder)
-> (RewriterConfig'Toggle -> Int)
-> RewriterConfig'Toggle
-> 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)
RewriterConfig'Toggle -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum
RewriterConfig'Toggle
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: RewriterConfig'Toggle
_v
= FoldLike
RewriterConfig'Toggle
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig -> RewriterConfig'Toggle
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "arithmeticOptimization" 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 @"arithmeticOptimization") RewriterConfig
_x
in
if RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) RewriterConfig'Toggle
_v RewriterConfig'Toggle
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)
((Int -> Builder)
-> (RewriterConfig'Toggle -> Int)
-> RewriterConfig'Toggle
-> 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)
RewriterConfig'Toggle -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum
RewriterConfig'Toggle
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: RewriterConfig'Toggle
_v
= FoldLike
RewriterConfig'Toggle
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig -> RewriterConfig'Toggle
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "dependencyOptimization" 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 @"dependencyOptimization") RewriterConfig
_x
in
if RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) RewriterConfig'Toggle
_v RewriterConfig'Toggle
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 64)
((Int -> Builder)
-> (RewriterConfig'Toggle -> Int)
-> RewriterConfig'Toggle
-> 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)
RewriterConfig'Toggle -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum
RewriterConfig'Toggle
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: RewriterConfig'Toggle
_v
= FoldLike
RewriterConfig'Toggle
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig -> RewriterConfig'Toggle
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "loopOptimization" 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 @"loopOptimization") RewriterConfig
_x
in
if RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) RewriterConfig'Toggle
_v RewriterConfig'Toggle
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)
((Int -> Builder)
-> (RewriterConfig'Toggle -> Int)
-> RewriterConfig'Toggle
-> 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)
RewriterConfig'Toggle -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum
RewriterConfig'Toggle
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: RewriterConfig'Toggle
_v
= FoldLike
RewriterConfig'Toggle
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig -> RewriterConfig'Toggle
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "functionOptimization" 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 @"functionOptimization")
RewriterConfig
_x
in
if RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) RewriterConfig'Toggle
_v RewriterConfig'Toggle
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)
((Int -> Builder)
-> (RewriterConfig'Toggle -> Int)
-> RewriterConfig'Toggle
-> 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)
RewriterConfig'Toggle -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum
RewriterConfig'Toggle
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: RewriterConfig'Toggle
_v
= FoldLike
RewriterConfig'Toggle
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig -> RewriterConfig'Toggle
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "debugStripper" 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 @"debugStripper") RewriterConfig
_x
in
if RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) RewriterConfig'Toggle
_v RewriterConfig'Toggle
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)
((Int -> Builder)
-> (RewriterConfig'Toggle -> Int)
-> RewriterConfig'Toggle
-> 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)
RewriterConfig'Toggle -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum
RewriterConfig'Toggle
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: Bool
_v
= FoldLike Bool RewriterConfig RewriterConfig Bool Bool
-> RewriterConfig -> Bool
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "disableModelPruning" 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
@"disableModelPruning")
RewriterConfig
_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 16)
((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
_v :: RewriterConfig'Toggle
_v
= FoldLike
RewriterConfig'Toggle
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig -> RewriterConfig'Toggle
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "scopedAllocatorOptimization" 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
@"scopedAllocatorOptimization")
RewriterConfig
_x
in
if RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) RewriterConfig'Toggle
_v RewriterConfig'Toggle
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)
((Int -> Builder)
-> (RewriterConfig'Toggle -> Int)
-> RewriterConfig'Toggle
-> 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)
RewriterConfig'Toggle -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum
RewriterConfig'Toggle
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: RewriterConfig'Toggle
_v
= FoldLike
RewriterConfig'Toggle
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig -> RewriterConfig'Toggle
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "pinToHostOptimization" 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
@"pinToHostOptimization")
RewriterConfig
_x
in
if RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==)
RewriterConfig'Toggle
_v RewriterConfig'Toggle
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
144)
((Int -> Builder)
-> (RewriterConfig'Toggle -> Int)
-> RewriterConfig'Toggle
-> 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)
RewriterConfig'Toggle -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum
RewriterConfig'Toggle
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: RewriterConfig'Toggle
_v
= FoldLike
RewriterConfig'Toggle
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig -> RewriterConfig'Toggle
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "implementationSelector" 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
@"implementationSelector")
RewriterConfig
_x
in
if RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==)
RewriterConfig'Toggle
_v RewriterConfig'Toggle
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
176)
((Int -> Builder)
-> (RewriterConfig'Toggle -> Int)
-> RewriterConfig'Toggle
-> 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)
RewriterConfig'Toggle -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum
RewriterConfig'Toggle
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: RewriterConfig'Toggle
_v
= FoldLike
RewriterConfig'Toggle
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig -> RewriterConfig'Toggle
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "autoMixedPrecision" 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
@"autoMixedPrecision")
RewriterConfig
_x
in
if RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==)
RewriterConfig'Toggle
_v RewriterConfig'Toggle
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
184)
((Int -> Builder)
-> (RewriterConfig'Toggle -> Int)
-> RewriterConfig'Toggle
-> 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)
RewriterConfig'Toggle -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum
RewriterConfig'Toggle
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: RewriterConfig'Toggle
_v
= FoldLike
RewriterConfig'Toggle
RewriterConfig
RewriterConfig
RewriterConfig'Toggle
RewriterConfig'Toggle
-> RewriterConfig -> RewriterConfig'Toggle
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "autoMixedPrecisionMkl" 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
@"autoMixedPrecisionMkl")
RewriterConfig
_x
in
if RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==)
RewriterConfig'Toggle
_v
RewriterConfig'Toggle
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
200)
((Int -> Builder)
-> (RewriterConfig'Toggle -> Int)
-> RewriterConfig'Toggle
-> 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)
RewriterConfig'Toggle -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum
RewriterConfig'Toggle
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: Bool
_v
= FoldLike Bool RewriterConfig RewriterConfig Bool Bool
-> RewriterConfig -> Bool
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "disableMetaOptimizer" 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
@"disableMetaOptimizer")
RewriterConfig
_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
152)
((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
_v :: RewriterConfig'NumIterationsType
_v
= FoldLike
RewriterConfig'NumIterationsType
RewriterConfig
RewriterConfig
RewriterConfig'NumIterationsType
RewriterConfig'NumIterationsType
-> RewriterConfig -> RewriterConfig'NumIterationsType
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "metaOptimizerIterations" 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
@"metaOptimizerIterations")
RewriterConfig
_x
in
if RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==)
RewriterConfig'NumIterationsType
_v
RewriterConfig'NumIterationsType
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)
((Int -> Builder)
-> (RewriterConfig'NumIterationsType -> Int)
-> RewriterConfig'NumIterationsType
-> 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)
RewriterConfig'NumIterationsType -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum
RewriterConfig'NumIterationsType
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: Int32
_v
= FoldLike Int32 RewriterConfig RewriterConfig Int32 Int32
-> RewriterConfig -> Int32
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "minGraphNodes" 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
@"minGraphNodes")
RewriterConfig
_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
136)
((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 :: RewriterConfig'MemOptType
_v
= FoldLike
RewriterConfig'MemOptType
RewriterConfig
RewriterConfig
RewriterConfig'MemOptType
RewriterConfig'MemOptType
-> RewriterConfig -> RewriterConfig'MemOptType
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "memoryOptimization" 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
@"memoryOptimization")
RewriterConfig
_x
in
if RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==)
RewriterConfig'MemOptType
_v
RewriterConfig'MemOptType
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)
-> (RewriterConfig'MemOptType -> Int)
-> RewriterConfig'MemOptType
-> 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)
RewriterConfig'MemOptType -> Int
forall a. Enum a => a -> Int
Prelude.fromEnum
RewriterConfig'MemOptType
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: Text
_v
= FoldLike Text RewriterConfig RewriterConfig Text Text
-> RewriterConfig -> Text
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "memoryOptimizerTargetNodeNameScope" 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
@"memoryOptimizerTargetNodeNameScope")
RewriterConfig
_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
50)
((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 :: Int64
_v
= FoldLike Int64 RewriterConfig RewriterConfig Int64 Int64
-> RewriterConfig -> Int64
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "metaOptimizerTimeoutMs" 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
@"metaOptimizerTimeoutMs")
RewriterConfig
_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
160)
((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 AutoParallelOptions)
RewriterConfig
RewriterConfig
(Maybe AutoParallelOptions)
(Maybe AutoParallelOptions)
-> RewriterConfig -> Maybe AutoParallelOptions
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "maybe'autoParallel" 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'autoParallel")
RewriterConfig
_x
of
Prelude.Nothing
-> Builder
forall a. Monoid a => a
Data.Monoid.mempty
(Prelude.Just _v :: AutoParallelOptions
_v)
-> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
42)
((ByteString -> Builder)
-> (AutoParallelOptions -> ByteString)
-> AutoParallelOptions
-> 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))
AutoParallelOptions -> ByteString
forall msg. Message msg => msg -> ByteString
Data.ProtoLens.encodeMessage
AutoParallelOptions
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let
_v :: Bool
_v
= FoldLike Bool RewriterConfig RewriterConfig Bool Bool
-> RewriterConfig -> Bool
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "failOnOptimizerErrors" 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
@"failOnOptimizerErrors")
RewriterConfig
_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
168)
((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.<>)
(case
FoldLike
(Maybe ScopedAllocatorOptions)
RewriterConfig
RewriterConfig
(Maybe ScopedAllocatorOptions)
(Maybe ScopedAllocatorOptions)
-> RewriterConfig -> Maybe ScopedAllocatorOptions
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "maybe'scopedAllocatorOpts" 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'scopedAllocatorOpts")
RewriterConfig
_x
of
Prelude.Nothing
-> Builder
forall a. Monoid a => a
Data.Monoid.mempty
(Prelude.Just _v :: ScopedAllocatorOptions
_v)
-> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
130)
((ByteString -> Builder)
-> (ScopedAllocatorOptions -> ByteString)
-> ScopedAllocatorOptions
-> 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))
ScopedAllocatorOptions -> ByteString
forall msg. Message msg => msg -> ByteString
Data.ProtoLens.encodeMessage
ScopedAllocatorOptions
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
((Text -> Builder) -> Vector Text -> Builder
forall (v :: * -> *) a.
Vector v a =>
(a -> Builder) -> v a -> Builder
Data.ProtoLens.Encoding.Bytes.foldMapBuilder
(\ _v :: Text
_v
-> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
802)
((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))
(FoldLike
(Vector Text)
RewriterConfig
RewriterConfig
(Vector Text)
(Vector Text)
-> RewriterConfig -> Vector Text
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "vec'optimizers" 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'optimizers")
RewriterConfig
_x))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
((RewriterConfig'CustomGraphOptimizer -> Builder)
-> Vector RewriterConfig'CustomGraphOptimizer -> Builder
forall (v :: * -> *) a.
Vector v a =>
(a -> Builder) -> v a -> Builder
Data.ProtoLens.Encoding.Bytes.foldMapBuilder
(\ _v :: RewriterConfig'CustomGraphOptimizer
_v
-> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
1602)
((ByteString -> Builder)
-> (RewriterConfig'CustomGraphOptimizer -> ByteString)
-> RewriterConfig'CustomGraphOptimizer
-> 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))
RewriterConfig'CustomGraphOptimizer -> ByteString
forall msg. Message msg => msg -> ByteString
Data.ProtoLens.encodeMessage
RewriterConfig'CustomGraphOptimizer
_v))
(FoldLike
(Vector RewriterConfig'CustomGraphOptimizer)
RewriterConfig
RewriterConfig
(Vector RewriterConfig'CustomGraphOptimizer)
(Vector RewriterConfig'CustomGraphOptimizer)
-> RewriterConfig -> Vector RewriterConfig'CustomGraphOptimizer
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "vec'customOptimizers" 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'customOptimizers")
RewriterConfig
_x))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(case
FoldLike
(Maybe VerifierConfig)
RewriterConfig
RewriterConfig
(Maybe VerifierConfig)
(Maybe VerifierConfig)
-> RewriterConfig -> Maybe VerifierConfig
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "maybe'interOptimizerVerifierConfig" 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'interOptimizerVerifierConfig")
RewriterConfig
_x
of
Prelude.Nothing
-> Builder
forall a. Monoid a => a
Data.Monoid.mempty
(Prelude.Just _v :: VerifierConfig
_v)
-> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
2402)
((ByteString -> Builder)
-> (VerifierConfig -> ByteString) -> VerifierConfig -> 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))
VerifierConfig -> ByteString
forall msg. Message msg => msg -> ByteString
Data.ProtoLens.encodeMessage
VerifierConfig
_v))
(Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(case
FoldLike
(Maybe VerifierConfig)
RewriterConfig
RewriterConfig
(Maybe VerifierConfig)
(Maybe VerifierConfig)
-> RewriterConfig -> Maybe VerifierConfig
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "maybe'postOptimizationVerifierConfig" 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'postOptimizationVerifierConfig")
RewriterConfig
_x
of
Prelude.Nothing
-> Builder
forall a. Monoid a => a
Data.Monoid.mempty
(Prelude.Just _v :: VerifierConfig
_v)
-> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt
2410)
((ByteString -> Builder)
-> (VerifierConfig -> ByteString) -> VerifierConfig -> 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))
VerifierConfig -> ByteString
forall msg. Message msg => msg -> ByteString
Data.ProtoLens.encodeMessage
VerifierConfig
_v))
(FieldSet -> Builder
Data.ProtoLens.Encoding.Wire.buildFieldSet
(FoldLike FieldSet RewriterConfig RewriterConfig FieldSet FieldSet
-> RewriterConfig -> FieldSet
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
FoldLike FieldSet RewriterConfig RewriterConfig FieldSet FieldSet
forall msg. Message msg => Lens' msg FieldSet
Data.ProtoLens.unknownFields
RewriterConfig
_x))))))))))))))))))))))))))))))
instance Control.DeepSeq.NFData RewriterConfig where
rnf :: RewriterConfig -> ()
rnf
= \ x__ :: RewriterConfig
x__
-> FieldSet -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> FieldSet
_RewriterConfig'_unknownFields RewriterConfig
x__)
(RewriterConfig'Toggle -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'layoutOptimizer RewriterConfig
x__)
(RewriterConfig'Toggle -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'constantFolding RewriterConfig
x__)
(RewriterConfig'Toggle -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'shapeOptimization RewriterConfig
x__)
(RewriterConfig'Toggle -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'remapping RewriterConfig
x__)
(RewriterConfig'Toggle -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'commonSubgraphElimination RewriterConfig
x__)
(RewriterConfig'Toggle -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'arithmeticOptimization RewriterConfig
x__)
(RewriterConfig'Toggle -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'dependencyOptimization RewriterConfig
x__)
(RewriterConfig'Toggle -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'loopOptimization RewriterConfig
x__)
(RewriterConfig'Toggle -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'functionOptimization RewriterConfig
x__)
(RewriterConfig'Toggle -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'debugStripper RewriterConfig
x__)
(Bool -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> Bool
_RewriterConfig'disableModelPruning RewriterConfig
x__)
(RewriterConfig'Toggle -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'scopedAllocatorOptimization RewriterConfig
x__)
(RewriterConfig'Toggle -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'pinToHostOptimization RewriterConfig
x__)
(RewriterConfig'Toggle -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'implementationSelector RewriterConfig
x__)
(RewriterConfig'Toggle -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'autoMixedPrecision RewriterConfig
x__)
(RewriterConfig'Toggle -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> RewriterConfig'Toggle
_RewriterConfig'autoMixedPrecisionMkl
RewriterConfig
x__)
(Bool -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> Bool
_RewriterConfig'disableMetaOptimizer
RewriterConfig
x__)
(RewriterConfig'NumIterationsType -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> RewriterConfig'NumIterationsType
_RewriterConfig'metaOptimizerIterations
RewriterConfig
x__)
(Int32 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> Int32
_RewriterConfig'minGraphNodes
RewriterConfig
x__)
(RewriterConfig'MemOptType -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> RewriterConfig'MemOptType
_RewriterConfig'memoryOptimization
RewriterConfig
x__)
(Text -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> Text
_RewriterConfig'memoryOptimizerTargetNodeNameScope
RewriterConfig
x__)
(Int64 -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> Int64
_RewriterConfig'metaOptimizerTimeoutMs
RewriterConfig
x__)
(Maybe AutoParallelOptions -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> Maybe AutoParallelOptions
_RewriterConfig'autoParallel
RewriterConfig
x__)
(Bool -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> Bool
_RewriterConfig'failOnOptimizerErrors
RewriterConfig
x__)
(Maybe ScopedAllocatorOptions -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> Maybe ScopedAllocatorOptions
_RewriterConfig'scopedAllocatorOpts
RewriterConfig
x__)
(Vector Text -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> Vector Text
_RewriterConfig'optimizers
RewriterConfig
x__)
(Vector RewriterConfig'CustomGraphOptimizer -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> Vector RewriterConfig'CustomGraphOptimizer
_RewriterConfig'customOptimizers
RewriterConfig
x__)
(Maybe VerifierConfig -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> Maybe VerifierConfig
_RewriterConfig'interOptimizerVerifierConfig
RewriterConfig
x__)
(Maybe VerifierConfig -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig -> Maybe VerifierConfig
_RewriterConfig'postOptimizationVerifierConfig
RewriterConfig
x__)
())))))))))))))))))))))))))))))
data RewriterConfig'CustomGraphOptimizer
= RewriterConfig'CustomGraphOptimizer'_constructor {RewriterConfig'CustomGraphOptimizer -> Text
_RewriterConfig'CustomGraphOptimizer'name :: !Data.Text.Text,
RewriterConfig'CustomGraphOptimizer -> Map Text AttrValue
_RewriterConfig'CustomGraphOptimizer'parameterMap :: !(Data.Map.Map Data.Text.Text Proto.Tensorflow.Core.Framework.AttrValue.AttrValue),
RewriterConfig'CustomGraphOptimizer -> FieldSet
_RewriterConfig'CustomGraphOptimizer'_unknownFields :: !Data.ProtoLens.FieldSet}
deriving stock (RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool
(RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool)
-> (RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool)
-> Eq RewriterConfig'CustomGraphOptimizer
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool
$c/= :: RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool
== :: RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool
$c== :: RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool
Prelude.Eq, Eq RewriterConfig'CustomGraphOptimizer
Eq RewriterConfig'CustomGraphOptimizer =>
(RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Ordering)
-> (RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool)
-> (RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool)
-> (RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool)
-> (RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool)
-> (RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer)
-> (RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer)
-> Ord RewriterConfig'CustomGraphOptimizer
RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool
RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Ordering
RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer
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 :: RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer
$cmin :: RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer
max :: RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer
$cmax :: RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer
>= :: RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool
$c>= :: RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool
> :: RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool
$c> :: RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool
<= :: RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool
$c<= :: RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool
< :: RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool
$c< :: RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Bool
compare :: RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Ordering
$ccompare :: RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer -> Ordering
$cp1Ord :: Eq RewriterConfig'CustomGraphOptimizer
Prelude.Ord)
instance Prelude.Show RewriterConfig'CustomGraphOptimizer where
showsPrec :: Int -> RewriterConfig'CustomGraphOptimizer -> ShowS
showsPrec _ __x :: RewriterConfig'CustomGraphOptimizer
__x __s :: String
__s
= Char -> ShowS
Prelude.showChar
'{'
(String -> ShowS
Prelude.showString
(RewriterConfig'CustomGraphOptimizer -> String
forall msg. Message msg => msg -> String
Data.ProtoLens.showMessageShort RewriterConfig'CustomGraphOptimizer
__x) (Char -> ShowS
Prelude.showChar '}' String
__s))
instance Data.ProtoLens.Field.HasField RewriterConfig'CustomGraphOptimizer "name" Data.Text.Text where
fieldOf :: Proxy# "name"
-> (Text -> f Text)
-> RewriterConfig'CustomGraphOptimizer
-> f RewriterConfig'CustomGraphOptimizer
fieldOf _
= ((Text -> f Text)
-> RewriterConfig'CustomGraphOptimizer
-> f RewriterConfig'CustomGraphOptimizer)
-> ((Text -> f Text) -> Text -> f Text)
-> (Text -> f Text)
-> RewriterConfig'CustomGraphOptimizer
-> f RewriterConfig'CustomGraphOptimizer
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig'CustomGraphOptimizer -> Text)
-> (RewriterConfig'CustomGraphOptimizer
-> Text -> RewriterConfig'CustomGraphOptimizer)
-> Lens
RewriterConfig'CustomGraphOptimizer
RewriterConfig'CustomGraphOptimizer
Text
Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig'CustomGraphOptimizer -> Text
_RewriterConfig'CustomGraphOptimizer'name
(\ x__ :: RewriterConfig'CustomGraphOptimizer
x__ y__ :: Text
y__
-> RewriterConfig'CustomGraphOptimizer
x__ {_RewriterConfig'CustomGraphOptimizer'name :: Text
_RewriterConfig'CustomGraphOptimizer'name = Text
y__}))
(Text -> f Text) -> Text -> f Text
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig'CustomGraphOptimizer "parameterMap" (Data.Map.Map Data.Text.Text Proto.Tensorflow.Core.Framework.AttrValue.AttrValue) where
fieldOf :: Proxy# "parameterMap"
-> (Map Text AttrValue -> f (Map Text AttrValue))
-> RewriterConfig'CustomGraphOptimizer
-> f RewriterConfig'CustomGraphOptimizer
fieldOf _
= ((Map Text AttrValue -> f (Map Text AttrValue))
-> RewriterConfig'CustomGraphOptimizer
-> f RewriterConfig'CustomGraphOptimizer)
-> ((Map Text AttrValue -> f (Map Text AttrValue))
-> Map Text AttrValue -> f (Map Text AttrValue))
-> (Map Text AttrValue -> f (Map Text AttrValue))
-> RewriterConfig'CustomGraphOptimizer
-> f RewriterConfig'CustomGraphOptimizer
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig'CustomGraphOptimizer -> Map Text AttrValue)
-> (RewriterConfig'CustomGraphOptimizer
-> Map Text AttrValue -> RewriterConfig'CustomGraphOptimizer)
-> Lens
RewriterConfig'CustomGraphOptimizer
RewriterConfig'CustomGraphOptimizer
(Map Text AttrValue)
(Map Text AttrValue)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig'CustomGraphOptimizer -> Map Text AttrValue
_RewriterConfig'CustomGraphOptimizer'parameterMap
(\ x__ :: RewriterConfig'CustomGraphOptimizer
x__ y__ :: Map Text AttrValue
y__
-> RewriterConfig'CustomGraphOptimizer
x__ {_RewriterConfig'CustomGraphOptimizer'parameterMap :: Map Text AttrValue
_RewriterConfig'CustomGraphOptimizer'parameterMap = Map Text AttrValue
y__}))
(Map Text AttrValue -> f (Map Text AttrValue))
-> Map Text AttrValue -> f (Map Text AttrValue)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Message RewriterConfig'CustomGraphOptimizer where
messageName :: Proxy RewriterConfig'CustomGraphOptimizer -> Text
messageName _
= String -> Text
Data.Text.pack "tensorflow.RewriterConfig.CustomGraphOptimizer"
packedMessageDescriptor :: Proxy RewriterConfig'CustomGraphOptimizer -> ByteString
packedMessageDescriptor _
= "\n\
\\DC4CustomGraphOptimizer\DC2\DC2\n\
\\EOTname\CAN\SOH \SOH(\tR\EOTname\DC2f\n\
\\rparameter_map\CAN\STX \ETX(\v2A.tensorflow.RewriterConfig.CustomGraphOptimizer.ParameterMapEntryR\fparameterMap\SUBV\n\
\\DC1ParameterMapEntry\DC2\DLE\n\
\\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2+\n\
\\ENQvalue\CAN\STX \SOH(\v2\NAK.tensorflow.AttrValueR\ENQvalue:\STX8\SOH"
packedFileDescriptor :: Proxy RewriterConfig'CustomGraphOptimizer -> ByteString
packedFileDescriptor _ = ByteString
packedFileDescriptor
fieldsByTag :: Map Tag (FieldDescriptor RewriterConfig'CustomGraphOptimizer)
fieldsByTag
= let
name__field_descriptor :: FieldDescriptor RewriterConfig'CustomGraphOptimizer
name__field_descriptor
= String
-> FieldTypeDescriptor Text
-> FieldAccessor RewriterConfig'CustomGraphOptimizer Text
-> FieldDescriptor RewriterConfig'CustomGraphOptimizer
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
RewriterConfig'CustomGraphOptimizer
RewriterConfig'CustomGraphOptimizer
Text
Text
-> FieldAccessor RewriterConfig'CustomGraphOptimizer 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 RewriterConfig'CustomGraphOptimizer
parameterMap__field_descriptor :: FieldDescriptor RewriterConfig'CustomGraphOptimizer
parameterMap__field_descriptor
= String
-> FieldTypeDescriptor
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> FieldAccessor
RewriterConfig'CustomGraphOptimizer
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> FieldDescriptor RewriterConfig'CustomGraphOptimizer
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"parameter_map"
(MessageOrGroup
-> FieldTypeDescriptor
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
forall value.
Message value =>
MessageOrGroup -> FieldTypeDescriptor value
Data.ProtoLens.MessageField MessageOrGroup
Data.ProtoLens.MessageType ::
Data.ProtoLens.FieldTypeDescriptor RewriterConfig'CustomGraphOptimizer'ParameterMapEntry)
(Lens' RewriterConfig'CustomGraphOptimizer'ParameterMapEntry Text
-> Lens'
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry AttrValue
-> Lens
RewriterConfig'CustomGraphOptimizer
RewriterConfig'CustomGraphOptimizer
(Map Text AttrValue)
(Map Text AttrValue)
-> FieldAccessor
RewriterConfig'CustomGraphOptimizer
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
forall key value value1 msg.
(Ord key, Message value) =>
Lens' value key
-> Lens' value value1
-> Lens' msg (Map key value1)
-> FieldAccessor msg value
Data.ProtoLens.MapField
(forall s a (f :: * -> *).
(HasField s "key" 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 @"key")
(forall s a (f :: * -> *).
(HasField s "value" 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 @"value")
(forall s a (f :: * -> *).
(HasField s "parameterMap" 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 @"parameterMap")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig'CustomGraphOptimizer
in
[(Tag, FieldDescriptor RewriterConfig'CustomGraphOptimizer)]
-> Map Tag (FieldDescriptor RewriterConfig'CustomGraphOptimizer)
forall k a. Ord k => [(k, a)] -> Map k a
Data.Map.fromList
[(Int -> Tag
Data.ProtoLens.Tag 1, FieldDescriptor RewriterConfig'CustomGraphOptimizer
name__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 2, FieldDescriptor RewriterConfig'CustomGraphOptimizer
parameterMap__field_descriptor)]
unknownFields :: LensLike' f RewriterConfig'CustomGraphOptimizer FieldSet
unknownFields
= (RewriterConfig'CustomGraphOptimizer -> FieldSet)
-> (RewriterConfig'CustomGraphOptimizer
-> FieldSet -> RewriterConfig'CustomGraphOptimizer)
-> Lens' RewriterConfig'CustomGraphOptimizer FieldSet
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig'CustomGraphOptimizer -> FieldSet
_RewriterConfig'CustomGraphOptimizer'_unknownFields
(\ x__ :: RewriterConfig'CustomGraphOptimizer
x__ y__ :: FieldSet
y__
-> RewriterConfig'CustomGraphOptimizer
x__ {_RewriterConfig'CustomGraphOptimizer'_unknownFields :: FieldSet
_RewriterConfig'CustomGraphOptimizer'_unknownFields = FieldSet
y__})
defMessage :: RewriterConfig'CustomGraphOptimizer
defMessage
= $WRewriterConfig'CustomGraphOptimizer'_constructor :: Text
-> Map Text AttrValue
-> FieldSet
-> RewriterConfig'CustomGraphOptimizer
RewriterConfig'CustomGraphOptimizer'_constructor
{_RewriterConfig'CustomGraphOptimizer'name :: Text
_RewriterConfig'CustomGraphOptimizer'name = Text
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'CustomGraphOptimizer'parameterMap :: Map Text AttrValue
_RewriterConfig'CustomGraphOptimizer'parameterMap = Map Text AttrValue
forall k a. Map k a
Data.Map.empty,
_RewriterConfig'CustomGraphOptimizer'_unknownFields :: FieldSet
_RewriterConfig'CustomGraphOptimizer'_unknownFields = []}
parseMessage :: Parser RewriterConfig'CustomGraphOptimizer
parseMessage
= let
loop ::
RewriterConfig'CustomGraphOptimizer
-> Data.ProtoLens.Encoding.Bytes.Parser RewriterConfig'CustomGraphOptimizer
loop :: RewriterConfig'CustomGraphOptimizer
-> Parser RewriterConfig'CustomGraphOptimizer
loop x :: RewriterConfig'CustomGraphOptimizer
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]))))
RewriterConfig'CustomGraphOptimizer
-> Parser RewriterConfig'CustomGraphOptimizer
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return
(Setter
RewriterConfig'CustomGraphOptimizer
RewriterConfig'CustomGraphOptimizer
FieldSet
FieldSet
-> (FieldSet -> FieldSet)
-> RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer
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
RewriterConfig'CustomGraphOptimizer
RewriterConfig'CustomGraphOptimizer
FieldSet
FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> FieldSet -> FieldSet
forall a. [a] -> [a]
Prelude.reverse FieldSet
t) RewriterConfig'CustomGraphOptimizer
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"
RewriterConfig'CustomGraphOptimizer
-> Parser RewriterConfig'CustomGraphOptimizer
loop (Setter
RewriterConfig'CustomGraphOptimizer
RewriterConfig'CustomGraphOptimizer
Text
Text
-> Text
-> RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer
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 RewriterConfig'CustomGraphOptimizer
x)
18
-> do !(RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
entry :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry) <- Parser RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> String
-> Parser RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
(do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
Int
-> Parser RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Parser RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
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 RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
forall msg. Message msg => Parser msg
Data.ProtoLens.parseMessage)
"parameter_map"
(let
key :: Text
key = FoldLike
Text
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
Text
Text
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Text
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "key" 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 @"key") RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
entry
value :: AttrValue
value
= FoldLike
AttrValue
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
AttrValue
AttrValue
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> AttrValue
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "value" 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 @"value") RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
entry
in
RewriterConfig'CustomGraphOptimizer
-> Parser RewriterConfig'CustomGraphOptimizer
loop
(Setter
RewriterConfig'CustomGraphOptimizer
RewriterConfig'CustomGraphOptimizer
(Map Text AttrValue)
(Map Text AttrValue)
-> (Map Text AttrValue -> Map Text AttrValue)
-> RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer
forall s t a b. Setter s t a b -> (a -> b) -> s -> t
Lens.Family2.over
(forall s a (f :: * -> *).
(HasField s "parameterMap" 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 @"parameterMap")
(\ !Map Text AttrValue
t -> Text -> AttrValue -> Map Text AttrValue -> Map Text AttrValue
forall k a. Ord k => k -> a -> Map k a -> Map k a
Data.Map.insert Text
key AttrValue
value Map Text AttrValue
t)
RewriterConfig'CustomGraphOptimizer
x))
wire :: Word64
wire
-> do !TaggedValue
y <- Word64 -> Parser TaggedValue
Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire
Word64
wire
RewriterConfig'CustomGraphOptimizer
-> Parser RewriterConfig'CustomGraphOptimizer
loop
(Setter
RewriterConfig'CustomGraphOptimizer
RewriterConfig'CustomGraphOptimizer
FieldSet
FieldSet
-> (FieldSet -> FieldSet)
-> RewriterConfig'CustomGraphOptimizer
-> RewriterConfig'CustomGraphOptimizer
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
RewriterConfig'CustomGraphOptimizer
RewriterConfig'CustomGraphOptimizer
FieldSet
FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> (:) TaggedValue
y FieldSet
t) RewriterConfig'CustomGraphOptimizer
x)
in
Parser RewriterConfig'CustomGraphOptimizer
-> String -> Parser RewriterConfig'CustomGraphOptimizer
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
(do RewriterConfig'CustomGraphOptimizer
-> Parser RewriterConfig'CustomGraphOptimizer
loop RewriterConfig'CustomGraphOptimizer
forall msg. Message msg => msg
Data.ProtoLens.defMessage) "CustomGraphOptimizer"
buildMessage :: RewriterConfig'CustomGraphOptimizer -> Builder
buildMessage
= \ _x :: RewriterConfig'CustomGraphOptimizer
_x
-> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let _v :: Text
_v = FoldLike
Text
RewriterConfig'CustomGraphOptimizer
RewriterConfig'CustomGraphOptimizer
Text
Text
-> RewriterConfig'CustomGraphOptimizer -> 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") RewriterConfig'CustomGraphOptimizer
_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.<>)
([Builder] -> Builder
forall a. Monoid a => [a] -> a
Data.Monoid.mconcat
(((Text, AttrValue) -> Builder) -> [(Text, AttrValue)] -> [Builder]
forall a b. (a -> b) -> [a] -> [b]
Prelude.map
(\ _v :: (Text, AttrValue)
_v
-> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 18)
((ByteString -> Builder)
-> (RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> ByteString)
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> 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))
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> ByteString
forall msg. Message msg => msg -> ByteString
Data.ProtoLens.encodeMessage
(Setter
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
Text
Text
-> Text
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "key" 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 @"key")
((Text, AttrValue) -> Text
forall a b. (a, b) -> a
Prelude.fst (Text, AttrValue)
_v)
(Setter
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
AttrValue
AttrValue
-> AttrValue
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "value" 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 @"value")
((Text, AttrValue) -> AttrValue
forall a b. (a, b) -> b
Prelude.snd (Text, AttrValue)
_v)
(RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
forall msg. Message msg => msg
Data.ProtoLens.defMessage ::
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry)))))
(Map Text AttrValue -> [(Text, AttrValue)]
forall k a. Map k a -> [(k, a)]
Data.Map.toList
(FoldLike
(Map Text AttrValue)
RewriterConfig'CustomGraphOptimizer
RewriterConfig'CustomGraphOptimizer
(Map Text AttrValue)
(Map Text AttrValue)
-> RewriterConfig'CustomGraphOptimizer -> Map Text AttrValue
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "parameterMap" 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 @"parameterMap") RewriterConfig'CustomGraphOptimizer
_x))))
(FieldSet -> Builder
Data.ProtoLens.Encoding.Wire.buildFieldSet
(FoldLike
FieldSet
RewriterConfig'CustomGraphOptimizer
RewriterConfig'CustomGraphOptimizer
FieldSet
FieldSet
-> RewriterConfig'CustomGraphOptimizer -> FieldSet
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view FoldLike
FieldSet
RewriterConfig'CustomGraphOptimizer
RewriterConfig'CustomGraphOptimizer
FieldSet
FieldSet
forall msg. Message msg => Lens' msg FieldSet
Data.ProtoLens.unknownFields RewriterConfig'CustomGraphOptimizer
_x)))
instance Control.DeepSeq.NFData RewriterConfig'CustomGraphOptimizer where
rnf :: RewriterConfig'CustomGraphOptimizer -> ()
rnf
= \ x__ :: RewriterConfig'CustomGraphOptimizer
x__
-> FieldSet -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig'CustomGraphOptimizer -> FieldSet
_RewriterConfig'CustomGraphOptimizer'_unknownFields RewriterConfig'CustomGraphOptimizer
x__)
(Text -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig'CustomGraphOptimizer -> Text
_RewriterConfig'CustomGraphOptimizer'name RewriterConfig'CustomGraphOptimizer
x__)
(Map Text AttrValue -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig'CustomGraphOptimizer -> Map Text AttrValue
_RewriterConfig'CustomGraphOptimizer'parameterMap RewriterConfig'CustomGraphOptimizer
x__) ()))
data RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
= RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'_constructor {RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Text
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'key :: !Data.Text.Text,
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Maybe AttrValue
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'value :: !(Prelude.Maybe Proto.Tensorflow.Core.Framework.AttrValue.AttrValue),
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> FieldSet
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'_unknownFields :: !Data.ProtoLens.FieldSet}
deriving stock (RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool
(RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool)
-> (RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool)
-> Eq RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool
$c/= :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool
== :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool
$c== :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool
Prelude.Eq, Eq RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
Eq RewriterConfig'CustomGraphOptimizer'ParameterMapEntry =>
(RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Ordering)
-> (RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool)
-> (RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool)
-> (RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool)
-> (RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool)
-> (RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry)
-> (RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry)
-> Ord RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Ordering
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
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 :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
$cmin :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
max :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
$cmax :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
>= :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool
$c>= :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool
> :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool
$c> :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool
<= :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool
$c<= :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool
< :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool
$c< :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Bool
compare :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Ordering
$ccompare :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Ordering
$cp1Ord :: Eq RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
Prelude.Ord)
instance Prelude.Show RewriterConfig'CustomGraphOptimizer'ParameterMapEntry where
showsPrec :: Int
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> ShowS
showsPrec _ __x :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
__x __s :: String
__s
= Char -> ShowS
Prelude.showChar
'{'
(String -> ShowS
Prelude.showString
(RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> String
forall msg. Message msg => msg -> String
Data.ProtoLens.showMessageShort RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
__x) (Char -> ShowS
Prelude.showChar '}' String
__s))
instance Data.ProtoLens.Field.HasField RewriterConfig'CustomGraphOptimizer'ParameterMapEntry "key" Data.Text.Text where
fieldOf :: Proxy# "key"
-> (Text -> f Text)
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> f RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
fieldOf _
= ((Text -> f Text)
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> f RewriterConfig'CustomGraphOptimizer'ParameterMapEntry)
-> ((Text -> f Text) -> Text -> f Text)
-> (Text -> f Text)
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> f RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Text)
-> (RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Text -> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry)
-> Lens' RewriterConfig'CustomGraphOptimizer'ParameterMapEntry Text
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Text
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'key
(\ x__ :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
x__ y__ :: Text
y__
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
x__
{_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'key :: Text
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'key = Text
y__}))
(Text -> f Text) -> Text -> f Text
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Field.HasField RewriterConfig'CustomGraphOptimizer'ParameterMapEntry "value" Proto.Tensorflow.Core.Framework.AttrValue.AttrValue where
fieldOf :: Proxy# "value"
-> (AttrValue -> f AttrValue)
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> f RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
fieldOf _
= ((Maybe AttrValue -> f (Maybe AttrValue))
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> f RewriterConfig'CustomGraphOptimizer'ParameterMapEntry)
-> ((AttrValue -> f AttrValue)
-> Maybe AttrValue -> f (Maybe AttrValue))
-> (AttrValue -> f AttrValue)
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> f RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Maybe AttrValue)
-> (RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Maybe AttrValue
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry)
-> Lens
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
(Maybe AttrValue)
(Maybe AttrValue)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Maybe AttrValue
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'value
(\ x__ :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
x__ y__ :: Maybe AttrValue
y__
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
x__
{_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'value :: Maybe AttrValue
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'value = Maybe AttrValue
y__}))
(AttrValue -> Lens' (Maybe AttrValue) AttrValue
forall b. b -> Lens' (Maybe b) b
Data.ProtoLens.maybeLens AttrValue
forall msg. Message msg => msg
Data.ProtoLens.defMessage)
instance Data.ProtoLens.Field.HasField RewriterConfig'CustomGraphOptimizer'ParameterMapEntry "maybe'value" (Prelude.Maybe Proto.Tensorflow.Core.Framework.AttrValue.AttrValue) where
fieldOf :: Proxy# "maybe'value"
-> (Maybe AttrValue -> f (Maybe AttrValue))
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> f RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
fieldOf _
= ((Maybe AttrValue -> f (Maybe AttrValue))
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> f RewriterConfig'CustomGraphOptimizer'ParameterMapEntry)
-> ((Maybe AttrValue -> f (Maybe AttrValue))
-> Maybe AttrValue -> f (Maybe AttrValue))
-> (Maybe AttrValue -> f (Maybe AttrValue))
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> f RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Maybe AttrValue)
-> (RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Maybe AttrValue
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry)
-> Lens
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
(Maybe AttrValue)
(Maybe AttrValue)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Maybe AttrValue
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'value
(\ x__ :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
x__ y__ :: Maybe AttrValue
y__
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
x__
{_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'value :: Maybe AttrValue
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'value = Maybe AttrValue
y__}))
(Maybe AttrValue -> f (Maybe AttrValue))
-> Maybe AttrValue -> f (Maybe AttrValue)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Message RewriterConfig'CustomGraphOptimizer'ParameterMapEntry where
messageName :: Proxy RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Text
messageName _
= String -> Text
Data.Text.pack
"tensorflow.RewriterConfig.CustomGraphOptimizer.ParameterMapEntry"
packedMessageDescriptor :: Proxy RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> ByteString
packedMessageDescriptor _
= "\n\
\\DC1ParameterMapEntry\DC2\DLE\n\
\\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2+\n\
\\ENQvalue\CAN\STX \SOH(\v2\NAK.tensorflow.AttrValueR\ENQvalue:\STX8\SOH"
packedFileDescriptor :: Proxy RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> ByteString
packedFileDescriptor _ = ByteString
packedFileDescriptor
fieldsByTag :: Map
Tag
(FieldDescriptor
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry)
fieldsByTag
= let
key__field_descriptor :: FieldDescriptor
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
key__field_descriptor
= String
-> FieldTypeDescriptor Text
-> FieldAccessor
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry Text
-> FieldDescriptor
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"key"
(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' RewriterConfig'CustomGraphOptimizer'ParameterMapEntry Text
-> FieldAccessor
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry 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 "key" 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 @"key")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
value__field_descriptor :: FieldDescriptor
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
value__field_descriptor
= String
-> FieldTypeDescriptor AttrValue
-> FieldAccessor
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry AttrValue
-> FieldDescriptor
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"value"
(MessageOrGroup -> FieldTypeDescriptor AttrValue
forall value.
Message value =>
MessageOrGroup -> FieldTypeDescriptor value
Data.ProtoLens.MessageField MessageOrGroup
Data.ProtoLens.MessageType ::
Data.ProtoLens.FieldTypeDescriptor Proto.Tensorflow.Core.Framework.AttrValue.AttrValue)
(Lens
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
(Maybe AttrValue)
(Maybe AttrValue)
-> FieldAccessor
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry AttrValue
forall msg value.
Lens' msg (Maybe value) -> FieldAccessor msg value
Data.ProtoLens.OptionalField
(forall s a (f :: * -> *).
(HasField s "maybe'value" 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'value")) ::
Data.ProtoLens.FieldDescriptor RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
in
[(Tag,
FieldDescriptor
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry)]
-> Map
Tag
(FieldDescriptor
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry)
forall k a. Ord k => [(k, a)] -> Map k a
Data.Map.fromList
[(Int -> Tag
Data.ProtoLens.Tag 1, FieldDescriptor
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
key__field_descriptor),
(Int -> Tag
Data.ProtoLens.Tag 2, FieldDescriptor
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
value__field_descriptor)]
unknownFields :: LensLike'
f RewriterConfig'CustomGraphOptimizer'ParameterMapEntry FieldSet
unknownFields
= (RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> FieldSet)
-> (RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> FieldSet
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry)
-> Lens'
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry FieldSet
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> FieldSet
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'_unknownFields
(\ x__ :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
x__ y__ :: FieldSet
y__
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
x__
{_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'_unknownFields :: FieldSet
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'_unknownFields = FieldSet
y__})
defMessage :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
defMessage
= $WRewriterConfig'CustomGraphOptimizer'ParameterMapEntry'_constructor :: Text
-> Maybe AttrValue
-> FieldSet
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'_constructor
{_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'key :: Text
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'key = Text
forall value. FieldDefault value => value
Data.ProtoLens.fieldDefault,
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'value :: Maybe AttrValue
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'value = Maybe AttrValue
forall a. Maybe a
Prelude.Nothing,
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'_unknownFields :: FieldSet
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'_unknownFields = []}
parseMessage :: Parser RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
parseMessage
= let
loop ::
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Data.ProtoLens.Encoding.Bytes.Parser RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
loop :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Parser RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
loop x :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
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]))))
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Parser RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return
(Setter
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
FieldSet
FieldSet
-> (FieldSet -> FieldSet)
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
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
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
FieldSet
FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> FieldSet -> FieldSet
forall a. [a] -> [a]
Prelude.reverse FieldSet
t) RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
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))
"key"
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Parser RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
loop (Setter
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
Text
Text
-> Text
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "key" 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 @"key") Text
y RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
x)
18
-> do AttrValue
y <- Parser AttrValue -> String -> Parser AttrValue
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
(do Word64
len <- Parser Word64
Data.ProtoLens.Encoding.Bytes.getVarInt
Int -> Parser AttrValue -> Parser AttrValue
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 AttrValue
forall msg. Message msg => Parser msg
Data.ProtoLens.parseMessage)
"value"
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Parser RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
loop (Setter
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
AttrValue
AttrValue
-> AttrValue
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set (forall s a (f :: * -> *).
(HasField s "value" 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 @"value") AttrValue
y RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
x)
wire :: Word64
wire
-> do !TaggedValue
y <- Word64 -> Parser TaggedValue
Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire
Word64
wire
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Parser RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
loop
(Setter
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
FieldSet
FieldSet
-> (FieldSet -> FieldSet)
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
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
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
FieldSet
FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> (:) TaggedValue
y FieldSet
t) RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
x)
in
Parser RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> String
-> Parser RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
(do RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Parser RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
loop RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
forall msg. Message msg => msg
Data.ProtoLens.defMessage) "ParameterMapEntry"
buildMessage :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Builder
buildMessage
= \ _x :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
_x
-> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(let _v :: Text
_v = FoldLike
Text
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
Text
Text
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Text
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "key" 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 @"key") RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
_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.<>)
(case
FoldLike
(Maybe AttrValue)
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
(Maybe AttrValue)
(Maybe AttrValue)
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Maybe AttrValue
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view (forall s a (f :: * -> *).
(HasField s "maybe'value" 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'value") RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
_x
of
Prelude.Nothing -> Builder
forall a. Monoid a => a
Data.Monoid.mempty
(Prelude.Just _v :: AttrValue
_v)
-> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
(Word64 -> Builder
Data.ProtoLens.Encoding.Bytes.putVarInt 18)
((ByteString -> Builder)
-> (AttrValue -> ByteString) -> AttrValue -> 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))
AttrValue -> ByteString
forall msg. Message msg => msg -> ByteString
Data.ProtoLens.encodeMessage
AttrValue
_v))
(FieldSet -> Builder
Data.ProtoLens.Encoding.Wire.buildFieldSet
(FoldLike
FieldSet
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
FieldSet
FieldSet
-> RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> FieldSet
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view FoldLike
FieldSet
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
FieldSet
FieldSet
forall msg. Message msg => Lens' msg FieldSet
Data.ProtoLens.unknownFields RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
_x)))
instance Control.DeepSeq.NFData RewriterConfig'CustomGraphOptimizer'ParameterMapEntry where
rnf :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> ()
rnf
= \ x__ :: RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
x__
-> FieldSet -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> FieldSet
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'_unknownFields
RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
x__)
(Text -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig'CustomGraphOptimizer'ParameterMapEntry -> Text
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'key RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
x__)
(Maybe AttrValue -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
-> Maybe AttrValue
_RewriterConfig'CustomGraphOptimizer'ParameterMapEntry'value RewriterConfig'CustomGraphOptimizer'ParameterMapEntry
x__)
()))
newtype RewriterConfig'MemOptType'UnrecognizedValue
= RewriterConfig'MemOptType'UnrecognizedValue Data.Int.Int32
deriving stock (RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool
(RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool)
-> (RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool)
-> Eq RewriterConfig'MemOptType'UnrecognizedValue
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool
$c/= :: RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool
== :: RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool
$c== :: RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool
Prelude.Eq, Eq RewriterConfig'MemOptType'UnrecognizedValue
Eq RewriterConfig'MemOptType'UnrecognizedValue =>
(RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Ordering)
-> (RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool)
-> (RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool)
-> (RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool)
-> (RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool)
-> (RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue)
-> (RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue)
-> Ord RewriterConfig'MemOptType'UnrecognizedValue
RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool
RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Ordering
RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue
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 :: RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue
$cmin :: RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue
max :: RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue
$cmax :: RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue
>= :: RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool
$c>= :: RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool
> :: RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool
$c> :: RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool
<= :: RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool
$c<= :: RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool
< :: RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool
$c< :: RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Bool
compare :: RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Ordering
$ccompare :: RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType'UnrecognizedValue -> Ordering
$cp1Ord :: Eq RewriterConfig'MemOptType'UnrecognizedValue
Prelude.Ord, Int -> RewriterConfig'MemOptType'UnrecognizedValue -> ShowS
[RewriterConfig'MemOptType'UnrecognizedValue] -> ShowS
RewriterConfig'MemOptType'UnrecognizedValue -> String
(Int -> RewriterConfig'MemOptType'UnrecognizedValue -> ShowS)
-> (RewriterConfig'MemOptType'UnrecognizedValue -> String)
-> ([RewriterConfig'MemOptType'UnrecognizedValue] -> ShowS)
-> Show RewriterConfig'MemOptType'UnrecognizedValue
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RewriterConfig'MemOptType'UnrecognizedValue] -> ShowS
$cshowList :: [RewriterConfig'MemOptType'UnrecognizedValue] -> ShowS
show :: RewriterConfig'MemOptType'UnrecognizedValue -> String
$cshow :: RewriterConfig'MemOptType'UnrecognizedValue -> String
showsPrec :: Int -> RewriterConfig'MemOptType'UnrecognizedValue -> ShowS
$cshowsPrec :: Int -> RewriterConfig'MemOptType'UnrecognizedValue -> ShowS
Prelude.Show)
data RewriterConfig'MemOptType
= RewriterConfig'DEFAULT_MEM_OPT |
RewriterConfig'NO_MEM_OPT |
RewriterConfig'MANUAL |
RewriterConfig'HEURISTICS |
RewriterConfig'SWAPPING_HEURISTICS |
RewriterConfig'RECOMPUTATION_HEURISTICS |
RewriterConfig'SCHEDULING_HEURISTICS |
RewriterConfig'MemOptType'Unrecognized !RewriterConfig'MemOptType'UnrecognizedValue
deriving stock (Int -> RewriterConfig'MemOptType -> ShowS
[RewriterConfig'MemOptType] -> ShowS
RewriterConfig'MemOptType -> String
(Int -> RewriterConfig'MemOptType -> ShowS)
-> (RewriterConfig'MemOptType -> String)
-> ([RewriterConfig'MemOptType] -> ShowS)
-> Show RewriterConfig'MemOptType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RewriterConfig'MemOptType] -> ShowS
$cshowList :: [RewriterConfig'MemOptType] -> ShowS
show :: RewriterConfig'MemOptType -> String
$cshow :: RewriterConfig'MemOptType -> String
showsPrec :: Int -> RewriterConfig'MemOptType -> ShowS
$cshowsPrec :: Int -> RewriterConfig'MemOptType -> ShowS
Prelude.Show, RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool
(RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool)
-> (RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool)
-> Eq RewriterConfig'MemOptType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool
$c/= :: RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool
== :: RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool
$c== :: RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool
Prelude.Eq, Eq RewriterConfig'MemOptType
Eq RewriterConfig'MemOptType =>
(RewriterConfig'MemOptType
-> RewriterConfig'MemOptType -> Ordering)
-> (RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool)
-> (RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool)
-> (RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool)
-> (RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool)
-> (RewriterConfig'MemOptType
-> RewriterConfig'MemOptType -> RewriterConfig'MemOptType)
-> (RewriterConfig'MemOptType
-> RewriterConfig'MemOptType -> RewriterConfig'MemOptType)
-> Ord RewriterConfig'MemOptType
RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool
RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Ordering
RewriterConfig'MemOptType
-> RewriterConfig'MemOptType -> RewriterConfig'MemOptType
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 :: RewriterConfig'MemOptType
-> RewriterConfig'MemOptType -> RewriterConfig'MemOptType
$cmin :: RewriterConfig'MemOptType
-> RewriterConfig'MemOptType -> RewriterConfig'MemOptType
max :: RewriterConfig'MemOptType
-> RewriterConfig'MemOptType -> RewriterConfig'MemOptType
$cmax :: RewriterConfig'MemOptType
-> RewriterConfig'MemOptType -> RewriterConfig'MemOptType
>= :: RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool
$c>= :: RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool
> :: RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool
$c> :: RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool
<= :: RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool
$c<= :: RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool
< :: RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool
$c< :: RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Bool
compare :: RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Ordering
$ccompare :: RewriterConfig'MemOptType -> RewriterConfig'MemOptType -> Ordering
$cp1Ord :: Eq RewriterConfig'MemOptType
Prelude.Ord)
instance Data.ProtoLens.MessageEnum RewriterConfig'MemOptType where
maybeToEnum :: Int -> Maybe RewriterConfig'MemOptType
maybeToEnum 0 = RewriterConfig'MemOptType -> Maybe RewriterConfig'MemOptType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'MemOptType
RewriterConfig'DEFAULT_MEM_OPT
maybeToEnum 1 = RewriterConfig'MemOptType -> Maybe RewriterConfig'MemOptType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'MemOptType
RewriterConfig'NO_MEM_OPT
maybeToEnum 2 = RewriterConfig'MemOptType -> Maybe RewriterConfig'MemOptType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'MemOptType
RewriterConfig'MANUAL
maybeToEnum 3 = RewriterConfig'MemOptType -> Maybe RewriterConfig'MemOptType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'MemOptType
RewriterConfig'HEURISTICS
maybeToEnum 4 = RewriterConfig'MemOptType -> Maybe RewriterConfig'MemOptType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'MemOptType
RewriterConfig'SWAPPING_HEURISTICS
maybeToEnum 5
= RewriterConfig'MemOptType -> Maybe RewriterConfig'MemOptType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'MemOptType
RewriterConfig'RECOMPUTATION_HEURISTICS
maybeToEnum 6 = RewriterConfig'MemOptType -> Maybe RewriterConfig'MemOptType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'MemOptType
RewriterConfig'SCHEDULING_HEURISTICS
maybeToEnum k :: Int
k
= RewriterConfig'MemOptType -> Maybe RewriterConfig'MemOptType
forall a. a -> Maybe a
Prelude.Just
(RewriterConfig'MemOptType'UnrecognizedValue
-> RewriterConfig'MemOptType
RewriterConfig'MemOptType'Unrecognized
(Int32 -> RewriterConfig'MemOptType'UnrecognizedValue
RewriterConfig'MemOptType'UnrecognizedValue
(Int -> Int32
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int
k)))
showEnum :: RewriterConfig'MemOptType -> String
showEnum RewriterConfig'DEFAULT_MEM_OPT = "DEFAULT_MEM_OPT"
showEnum RewriterConfig'NO_MEM_OPT = "NO_MEM_OPT"
showEnum RewriterConfig'MANUAL = "MANUAL"
showEnum RewriterConfig'SWAPPING_HEURISTICS = "SWAPPING_HEURISTICS"
showEnum RewriterConfig'RECOMPUTATION_HEURISTICS
= "RECOMPUTATION_HEURISTICS"
showEnum RewriterConfig'SCHEDULING_HEURISTICS
= "SCHEDULING_HEURISTICS"
showEnum RewriterConfig'HEURISTICS = "HEURISTICS"
showEnum
(RewriterConfig'MemOptType'Unrecognized (RewriterConfig'MemOptType'UnrecognizedValue k :: Int32
k))
= Int32 -> String
forall a. Show a => a -> String
Prelude.show Int32
k
readEnum :: String -> Maybe RewriterConfig'MemOptType
readEnum k :: String
k
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "DEFAULT_MEM_OPT"
= RewriterConfig'MemOptType -> Maybe RewriterConfig'MemOptType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'MemOptType
RewriterConfig'DEFAULT_MEM_OPT
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "NO_MEM_OPT"
= RewriterConfig'MemOptType -> Maybe RewriterConfig'MemOptType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'MemOptType
RewriterConfig'NO_MEM_OPT
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "MANUAL" = RewriterConfig'MemOptType -> Maybe RewriterConfig'MemOptType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'MemOptType
RewriterConfig'MANUAL
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "SWAPPING_HEURISTICS"
= RewriterConfig'MemOptType -> Maybe RewriterConfig'MemOptType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'MemOptType
RewriterConfig'SWAPPING_HEURISTICS
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "RECOMPUTATION_HEURISTICS"
= RewriterConfig'MemOptType -> Maybe RewriterConfig'MemOptType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'MemOptType
RewriterConfig'RECOMPUTATION_HEURISTICS
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "SCHEDULING_HEURISTICS"
= RewriterConfig'MemOptType -> Maybe RewriterConfig'MemOptType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'MemOptType
RewriterConfig'SCHEDULING_HEURISTICS
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "HEURISTICS"
= RewriterConfig'MemOptType -> Maybe RewriterConfig'MemOptType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'MemOptType
RewriterConfig'HEURISTICS
| Bool
Prelude.otherwise
= Maybe Int
-> (Int -> Maybe RewriterConfig'MemOptType)
-> Maybe RewriterConfig'MemOptType
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
(Prelude.>>=) (String -> Maybe Int
forall a. Read a => String -> Maybe a
Text.Read.readMaybe String
k) Int -> Maybe RewriterConfig'MemOptType
forall a. MessageEnum a => Int -> Maybe a
Data.ProtoLens.maybeToEnum
instance Prelude.Bounded RewriterConfig'MemOptType where
minBound :: RewriterConfig'MemOptType
minBound = RewriterConfig'MemOptType
RewriterConfig'DEFAULT_MEM_OPT
maxBound :: RewriterConfig'MemOptType
maxBound = RewriterConfig'MemOptType
RewriterConfig'SCHEDULING_HEURISTICS
instance Prelude.Enum RewriterConfig'MemOptType where
toEnum :: Int -> RewriterConfig'MemOptType
toEnum k__ :: Int
k__
= RewriterConfig'MemOptType
-> (RewriterConfig'MemOptType -> RewriterConfig'MemOptType)
-> Maybe RewriterConfig'MemOptType
-> RewriterConfig'MemOptType
forall b a. b -> (a -> b) -> Maybe a -> b
Prelude.maybe
(String -> RewriterConfig'MemOptType
forall a. HasCallStack => String -> a
Prelude.error
(String -> ShowS
forall a. [a] -> [a] -> [a]
(Prelude.++)
"toEnum: unknown value for enum MemOptType: " (Int -> String
forall a. Show a => a -> String
Prelude.show Int
k__)))
RewriterConfig'MemOptType -> RewriterConfig'MemOptType
forall a. a -> a
Prelude.id
(Int -> Maybe RewriterConfig'MemOptType
forall a. MessageEnum a => Int -> Maybe a
Data.ProtoLens.maybeToEnum Int
k__)
fromEnum :: RewriterConfig'MemOptType -> Int
fromEnum RewriterConfig'DEFAULT_MEM_OPT = 0
fromEnum RewriterConfig'NO_MEM_OPT = 1
fromEnum RewriterConfig'MANUAL = 2
fromEnum RewriterConfig'HEURISTICS = 3
fromEnum RewriterConfig'SWAPPING_HEURISTICS = 4
fromEnum RewriterConfig'RECOMPUTATION_HEURISTICS = 5
fromEnum RewriterConfig'SCHEDULING_HEURISTICS = 6
fromEnum
(RewriterConfig'MemOptType'Unrecognized (RewriterConfig'MemOptType'UnrecognizedValue k :: Int32
k))
= Int32 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int32
k
succ :: RewriterConfig'MemOptType -> RewriterConfig'MemOptType
succ RewriterConfig'SCHEDULING_HEURISTICS
= String -> RewriterConfig'MemOptType
forall a. HasCallStack => String -> a
Prelude.error
"RewriterConfig'MemOptType.succ: bad argument RewriterConfig'SCHEDULING_HEURISTICS. This value would be out of bounds."
succ RewriterConfig'DEFAULT_MEM_OPT = RewriterConfig'MemOptType
RewriterConfig'NO_MEM_OPT
succ RewriterConfig'NO_MEM_OPT = RewriterConfig'MemOptType
RewriterConfig'MANUAL
succ RewriterConfig'MANUAL = RewriterConfig'MemOptType
RewriterConfig'HEURISTICS
succ RewriterConfig'HEURISTICS = RewriterConfig'MemOptType
RewriterConfig'SWAPPING_HEURISTICS
succ RewriterConfig'SWAPPING_HEURISTICS
= RewriterConfig'MemOptType
RewriterConfig'RECOMPUTATION_HEURISTICS
succ RewriterConfig'RECOMPUTATION_HEURISTICS
= RewriterConfig'MemOptType
RewriterConfig'SCHEDULING_HEURISTICS
succ (RewriterConfig'MemOptType'Unrecognized _)
= String -> RewriterConfig'MemOptType
forall a. HasCallStack => String -> a
Prelude.error
"RewriterConfig'MemOptType.succ: bad argument: unrecognized value"
pred :: RewriterConfig'MemOptType -> RewriterConfig'MemOptType
pred RewriterConfig'DEFAULT_MEM_OPT
= String -> RewriterConfig'MemOptType
forall a. HasCallStack => String -> a
Prelude.error
"RewriterConfig'MemOptType.pred: bad argument RewriterConfig'DEFAULT_MEM_OPT. This value would be out of bounds."
pred RewriterConfig'NO_MEM_OPT = RewriterConfig'MemOptType
RewriterConfig'DEFAULT_MEM_OPT
pred RewriterConfig'MANUAL = RewriterConfig'MemOptType
RewriterConfig'NO_MEM_OPT
pred RewriterConfig'HEURISTICS = RewriterConfig'MemOptType
RewriterConfig'MANUAL
pred RewriterConfig'SWAPPING_HEURISTICS = RewriterConfig'MemOptType
RewriterConfig'HEURISTICS
pred RewriterConfig'RECOMPUTATION_HEURISTICS
= RewriterConfig'MemOptType
RewriterConfig'SWAPPING_HEURISTICS
pred RewriterConfig'SCHEDULING_HEURISTICS
= RewriterConfig'MemOptType
RewriterConfig'RECOMPUTATION_HEURISTICS
pred (RewriterConfig'MemOptType'Unrecognized _)
= String -> RewriterConfig'MemOptType
forall a. HasCallStack => String -> a
Prelude.error
"RewriterConfig'MemOptType.pred: bad argument: unrecognized value"
enumFrom :: RewriterConfig'MemOptType -> [RewriterConfig'MemOptType]
enumFrom = RewriterConfig'MemOptType -> [RewriterConfig'MemOptType]
forall a. (Enum a, Bounded a) => a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFrom
enumFromTo :: RewriterConfig'MemOptType
-> RewriterConfig'MemOptType -> [RewriterConfig'MemOptType]
enumFromTo = RewriterConfig'MemOptType
-> RewriterConfig'MemOptType -> [RewriterConfig'MemOptType]
forall a. Enum a => a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromTo
enumFromThen :: RewriterConfig'MemOptType
-> RewriterConfig'MemOptType -> [RewriterConfig'MemOptType]
enumFromThen = RewriterConfig'MemOptType
-> RewriterConfig'MemOptType -> [RewriterConfig'MemOptType]
forall a. (Enum a, Bounded a) => a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromThen
enumFromThenTo :: RewriterConfig'MemOptType
-> RewriterConfig'MemOptType
-> RewriterConfig'MemOptType
-> [RewriterConfig'MemOptType]
enumFromThenTo = RewriterConfig'MemOptType
-> RewriterConfig'MemOptType
-> RewriterConfig'MemOptType
-> [RewriterConfig'MemOptType]
forall a. Enum a => a -> a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromThenTo
instance Data.ProtoLens.FieldDefault RewriterConfig'MemOptType where
fieldDefault :: RewriterConfig'MemOptType
fieldDefault = RewriterConfig'MemOptType
RewriterConfig'DEFAULT_MEM_OPT
instance Control.DeepSeq.NFData RewriterConfig'MemOptType where
rnf :: RewriterConfig'MemOptType -> ()
rnf x__ :: RewriterConfig'MemOptType
x__ = RewriterConfig'MemOptType -> () -> ()
forall a b. a -> b -> b
Prelude.seq RewriterConfig'MemOptType
x__ ()
newtype RewriterConfig'NumIterationsType'UnrecognizedValue
= RewriterConfig'NumIterationsType'UnrecognizedValue Data.Int.Int32
deriving stock (RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool
(RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool)
-> (RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool)
-> Eq RewriterConfig'NumIterationsType'UnrecognizedValue
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool
$c/= :: RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool
== :: RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool
$c== :: RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool
Prelude.Eq, Eq RewriterConfig'NumIterationsType'UnrecognizedValue
Eq RewriterConfig'NumIterationsType'UnrecognizedValue =>
(RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Ordering)
-> (RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool)
-> (RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool)
-> (RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool)
-> (RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool)
-> (RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue)
-> (RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue)
-> Ord RewriterConfig'NumIterationsType'UnrecognizedValue
RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool
RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Ordering
RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue
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 :: RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue
$cmin :: RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue
max :: RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue
$cmax :: RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue
>= :: RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool
$c>= :: RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool
> :: RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool
$c> :: RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool
<= :: RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool
$c<= :: RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool
< :: RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool
$c< :: RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Bool
compare :: RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Ordering
$ccompare :: RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> Ordering
$cp1Ord :: Eq RewriterConfig'NumIterationsType'UnrecognizedValue
Prelude.Ord, Int -> RewriterConfig'NumIterationsType'UnrecognizedValue -> ShowS
[RewriterConfig'NumIterationsType'UnrecognizedValue] -> ShowS
RewriterConfig'NumIterationsType'UnrecognizedValue -> String
(Int
-> RewriterConfig'NumIterationsType'UnrecognizedValue -> ShowS)
-> (RewriterConfig'NumIterationsType'UnrecognizedValue -> String)
-> ([RewriterConfig'NumIterationsType'UnrecognizedValue] -> ShowS)
-> Show RewriterConfig'NumIterationsType'UnrecognizedValue
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RewriterConfig'NumIterationsType'UnrecognizedValue] -> ShowS
$cshowList :: [RewriterConfig'NumIterationsType'UnrecognizedValue] -> ShowS
show :: RewriterConfig'NumIterationsType'UnrecognizedValue -> String
$cshow :: RewriterConfig'NumIterationsType'UnrecognizedValue -> String
showsPrec :: Int -> RewriterConfig'NumIterationsType'UnrecognizedValue -> ShowS
$cshowsPrec :: Int -> RewriterConfig'NumIterationsType'UnrecognizedValue -> ShowS
Prelude.Show)
data RewriterConfig'NumIterationsType
= RewriterConfig'DEFAULT_NUM_ITERS |
RewriterConfig'ONE |
RewriterConfig'TWO |
RewriterConfig'NumIterationsType'Unrecognized !RewriterConfig'NumIterationsType'UnrecognizedValue
deriving stock (Int -> RewriterConfig'NumIterationsType -> ShowS
[RewriterConfig'NumIterationsType] -> ShowS
RewriterConfig'NumIterationsType -> String
(Int -> RewriterConfig'NumIterationsType -> ShowS)
-> (RewriterConfig'NumIterationsType -> String)
-> ([RewriterConfig'NumIterationsType] -> ShowS)
-> Show RewriterConfig'NumIterationsType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RewriterConfig'NumIterationsType] -> ShowS
$cshowList :: [RewriterConfig'NumIterationsType] -> ShowS
show :: RewriterConfig'NumIterationsType -> String
$cshow :: RewriterConfig'NumIterationsType -> String
showsPrec :: Int -> RewriterConfig'NumIterationsType -> ShowS
$cshowsPrec :: Int -> RewriterConfig'NumIterationsType -> ShowS
Prelude.Show, RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool
(RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool)
-> (RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool)
-> Eq RewriterConfig'NumIterationsType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool
$c/= :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool
== :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool
$c== :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool
Prelude.Eq, Eq RewriterConfig'NumIterationsType
Eq RewriterConfig'NumIterationsType =>
(RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Ordering)
-> (RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool)
-> (RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool)
-> (RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool)
-> (RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool)
-> (RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType)
-> (RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType)
-> Ord RewriterConfig'NumIterationsType
RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool
RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Ordering
RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
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 :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
$cmin :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
max :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
$cmax :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
>= :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool
$c>= :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool
> :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool
$c> :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool
<= :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool
$c<= :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool
< :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool
$c< :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Bool
compare :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Ordering
$ccompare :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType -> Ordering
$cp1Ord :: Eq RewriterConfig'NumIterationsType
Prelude.Ord)
instance Data.ProtoLens.MessageEnum RewriterConfig'NumIterationsType where
maybeToEnum :: Int -> Maybe RewriterConfig'NumIterationsType
maybeToEnum 0 = RewriterConfig'NumIterationsType
-> Maybe RewriterConfig'NumIterationsType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'NumIterationsType
RewriterConfig'DEFAULT_NUM_ITERS
maybeToEnum 1 = RewriterConfig'NumIterationsType
-> Maybe RewriterConfig'NumIterationsType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'NumIterationsType
RewriterConfig'ONE
maybeToEnum 2 = RewriterConfig'NumIterationsType
-> Maybe RewriterConfig'NumIterationsType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'NumIterationsType
RewriterConfig'TWO
maybeToEnum k :: Int
k
= RewriterConfig'NumIterationsType
-> Maybe RewriterConfig'NumIterationsType
forall a. a -> Maybe a
Prelude.Just
(RewriterConfig'NumIterationsType'UnrecognizedValue
-> RewriterConfig'NumIterationsType
RewriterConfig'NumIterationsType'Unrecognized
(Int32 -> RewriterConfig'NumIterationsType'UnrecognizedValue
RewriterConfig'NumIterationsType'UnrecognizedValue
(Int -> Int32
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int
k)))
showEnum :: RewriterConfig'NumIterationsType -> String
showEnum RewriterConfig'DEFAULT_NUM_ITERS = "DEFAULT_NUM_ITERS"
showEnum RewriterConfig'ONE = "ONE"
showEnum RewriterConfig'TWO = "TWO"
showEnum
(RewriterConfig'NumIterationsType'Unrecognized (RewriterConfig'NumIterationsType'UnrecognizedValue k :: Int32
k))
= Int32 -> String
forall a. Show a => a -> String
Prelude.show Int32
k
readEnum :: String -> Maybe RewriterConfig'NumIterationsType
readEnum k :: String
k
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "DEFAULT_NUM_ITERS"
= RewriterConfig'NumIterationsType
-> Maybe RewriterConfig'NumIterationsType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'NumIterationsType
RewriterConfig'DEFAULT_NUM_ITERS
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "ONE" = RewriterConfig'NumIterationsType
-> Maybe RewriterConfig'NumIterationsType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'NumIterationsType
RewriterConfig'ONE
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "TWO" = RewriterConfig'NumIterationsType
-> Maybe RewriterConfig'NumIterationsType
forall a. a -> Maybe a
Prelude.Just RewriterConfig'NumIterationsType
RewriterConfig'TWO
| Bool
Prelude.otherwise
= Maybe Int
-> (Int -> Maybe RewriterConfig'NumIterationsType)
-> Maybe RewriterConfig'NumIterationsType
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
(Prelude.>>=) (String -> Maybe Int
forall a. Read a => String -> Maybe a
Text.Read.readMaybe String
k) Int -> Maybe RewriterConfig'NumIterationsType
forall a. MessageEnum a => Int -> Maybe a
Data.ProtoLens.maybeToEnum
instance Prelude.Bounded RewriterConfig'NumIterationsType where
minBound :: RewriterConfig'NumIterationsType
minBound = RewriterConfig'NumIterationsType
RewriterConfig'DEFAULT_NUM_ITERS
maxBound :: RewriterConfig'NumIterationsType
maxBound = RewriterConfig'NumIterationsType
RewriterConfig'TWO
instance Prelude.Enum RewriterConfig'NumIterationsType where
toEnum :: Int -> RewriterConfig'NumIterationsType
toEnum k__ :: Int
k__
= RewriterConfig'NumIterationsType
-> (RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType)
-> Maybe RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
forall b a. b -> (a -> b) -> Maybe a -> b
Prelude.maybe
(String -> RewriterConfig'NumIterationsType
forall a. HasCallStack => String -> a
Prelude.error
(String -> ShowS
forall a. [a] -> [a] -> [a]
(Prelude.++)
"toEnum: unknown value for enum NumIterationsType: "
(Int -> String
forall a. Show a => a -> String
Prelude.show Int
k__)))
RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
forall a. a -> a
Prelude.id
(Int -> Maybe RewriterConfig'NumIterationsType
forall a. MessageEnum a => Int -> Maybe a
Data.ProtoLens.maybeToEnum Int
k__)
fromEnum :: RewriterConfig'NumIterationsType -> Int
fromEnum RewriterConfig'DEFAULT_NUM_ITERS = 0
fromEnum RewriterConfig'ONE = 1
fromEnum RewriterConfig'TWO = 2
fromEnum
(RewriterConfig'NumIterationsType'Unrecognized (RewriterConfig'NumIterationsType'UnrecognizedValue k :: Int32
k))
= Int32 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int32
k
succ :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
succ RewriterConfig'TWO
= String -> RewriterConfig'NumIterationsType
forall a. HasCallStack => String -> a
Prelude.error
"RewriterConfig'NumIterationsType.succ: bad argument RewriterConfig'TWO. This value would be out of bounds."
succ RewriterConfig'DEFAULT_NUM_ITERS = RewriterConfig'NumIterationsType
RewriterConfig'ONE
succ RewriterConfig'ONE = RewriterConfig'NumIterationsType
RewriterConfig'TWO
succ (RewriterConfig'NumIterationsType'Unrecognized _)
= String -> RewriterConfig'NumIterationsType
forall a. HasCallStack => String -> a
Prelude.error
"RewriterConfig'NumIterationsType.succ: bad argument: unrecognized value"
pred :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
pred RewriterConfig'DEFAULT_NUM_ITERS
= String -> RewriterConfig'NumIterationsType
forall a. HasCallStack => String -> a
Prelude.error
"RewriterConfig'NumIterationsType.pred: bad argument RewriterConfig'DEFAULT_NUM_ITERS. This value would be out of bounds."
pred RewriterConfig'ONE = RewriterConfig'NumIterationsType
RewriterConfig'DEFAULT_NUM_ITERS
pred RewriterConfig'TWO = RewriterConfig'NumIterationsType
RewriterConfig'ONE
pred (RewriterConfig'NumIterationsType'Unrecognized _)
= String -> RewriterConfig'NumIterationsType
forall a. HasCallStack => String -> a
Prelude.error
"RewriterConfig'NumIterationsType.pred: bad argument: unrecognized value"
enumFrom :: RewriterConfig'NumIterationsType
-> [RewriterConfig'NumIterationsType]
enumFrom = RewriterConfig'NumIterationsType
-> [RewriterConfig'NumIterationsType]
forall a. (Enum a, Bounded a) => a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFrom
enumFromTo :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
-> [RewriterConfig'NumIterationsType]
enumFromTo = RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
-> [RewriterConfig'NumIterationsType]
forall a. Enum a => a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromTo
enumFromThen :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
-> [RewriterConfig'NumIterationsType]
enumFromThen = RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
-> [RewriterConfig'NumIterationsType]
forall a. (Enum a, Bounded a) => a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromThen
enumFromThenTo :: RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
-> [RewriterConfig'NumIterationsType]
enumFromThenTo = RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
-> RewriterConfig'NumIterationsType
-> [RewriterConfig'NumIterationsType]
forall a. Enum a => a -> a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromThenTo
instance Data.ProtoLens.FieldDefault RewriterConfig'NumIterationsType where
fieldDefault :: RewriterConfig'NumIterationsType
fieldDefault = RewriterConfig'NumIterationsType
RewriterConfig'DEFAULT_NUM_ITERS
instance Control.DeepSeq.NFData RewriterConfig'NumIterationsType where
rnf :: RewriterConfig'NumIterationsType -> ()
rnf x__ :: RewriterConfig'NumIterationsType
x__ = RewriterConfig'NumIterationsType -> () -> ()
forall a b. a -> b -> b
Prelude.seq RewriterConfig'NumIterationsType
x__ ()
newtype RewriterConfig'Toggle'UnrecognizedValue
= RewriterConfig'Toggle'UnrecognizedValue Data.Int.Int32
deriving stock (RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool
(RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool)
-> (RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool)
-> Eq RewriterConfig'Toggle'UnrecognizedValue
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool
$c/= :: RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool
== :: RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool
$c== :: RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool
Prelude.Eq, Eq RewriterConfig'Toggle'UnrecognizedValue
Eq RewriterConfig'Toggle'UnrecognizedValue =>
(RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Ordering)
-> (RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool)
-> (RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool)
-> (RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool)
-> (RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool)
-> (RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue)
-> (RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue)
-> Ord RewriterConfig'Toggle'UnrecognizedValue
RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool
RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Ordering
RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue
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 :: RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue
$cmin :: RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue
max :: RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue
$cmax :: RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue
>= :: RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool
$c>= :: RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool
> :: RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool
$c> :: RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool
<= :: RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool
$c<= :: RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool
< :: RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool
$c< :: RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Bool
compare :: RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Ordering
$ccompare :: RewriterConfig'Toggle'UnrecognizedValue
-> RewriterConfig'Toggle'UnrecognizedValue -> Ordering
$cp1Ord :: Eq RewriterConfig'Toggle'UnrecognizedValue
Prelude.Ord, Int -> RewriterConfig'Toggle'UnrecognizedValue -> ShowS
[RewriterConfig'Toggle'UnrecognizedValue] -> ShowS
RewriterConfig'Toggle'UnrecognizedValue -> String
(Int -> RewriterConfig'Toggle'UnrecognizedValue -> ShowS)
-> (RewriterConfig'Toggle'UnrecognizedValue -> String)
-> ([RewriterConfig'Toggle'UnrecognizedValue] -> ShowS)
-> Show RewriterConfig'Toggle'UnrecognizedValue
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RewriterConfig'Toggle'UnrecognizedValue] -> ShowS
$cshowList :: [RewriterConfig'Toggle'UnrecognizedValue] -> ShowS
show :: RewriterConfig'Toggle'UnrecognizedValue -> String
$cshow :: RewriterConfig'Toggle'UnrecognizedValue -> String
showsPrec :: Int -> RewriterConfig'Toggle'UnrecognizedValue -> ShowS
$cshowsPrec :: Int -> RewriterConfig'Toggle'UnrecognizedValue -> ShowS
Prelude.Show)
data RewriterConfig'Toggle
= RewriterConfig'DEFAULT |
RewriterConfig'ON |
RewriterConfig'OFF |
RewriterConfig'AGGRESSIVE |
RewriterConfig'Toggle'Unrecognized !RewriterConfig'Toggle'UnrecognizedValue
deriving stock (Int -> RewriterConfig'Toggle -> ShowS
[RewriterConfig'Toggle] -> ShowS
RewriterConfig'Toggle -> String
(Int -> RewriterConfig'Toggle -> ShowS)
-> (RewriterConfig'Toggle -> String)
-> ([RewriterConfig'Toggle] -> ShowS)
-> Show RewriterConfig'Toggle
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RewriterConfig'Toggle] -> ShowS
$cshowList :: [RewriterConfig'Toggle] -> ShowS
show :: RewriterConfig'Toggle -> String
$cshow :: RewriterConfig'Toggle -> String
showsPrec :: Int -> RewriterConfig'Toggle -> ShowS
$cshowsPrec :: Int -> RewriterConfig'Toggle -> ShowS
Prelude.Show, RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
(RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool)
-> (RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool)
-> Eq RewriterConfig'Toggle
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
$c/= :: RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
== :: RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
$c== :: RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
Prelude.Eq, Eq RewriterConfig'Toggle
Eq RewriterConfig'Toggle =>
(RewriterConfig'Toggle -> RewriterConfig'Toggle -> Ordering)
-> (RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool)
-> (RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool)
-> (RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool)
-> (RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool)
-> (RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig'Toggle)
-> (RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig'Toggle)
-> Ord RewriterConfig'Toggle
RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
RewriterConfig'Toggle -> RewriterConfig'Toggle -> Ordering
RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig'Toggle
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 :: RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig'Toggle
$cmin :: RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig'Toggle
max :: RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig'Toggle
$cmax :: RewriterConfig'Toggle
-> RewriterConfig'Toggle -> RewriterConfig'Toggle
>= :: RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
$c>= :: RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
> :: RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
$c> :: RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
<= :: RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
$c<= :: RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
< :: RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
$c< :: RewriterConfig'Toggle -> RewriterConfig'Toggle -> Bool
compare :: RewriterConfig'Toggle -> RewriterConfig'Toggle -> Ordering
$ccompare :: RewriterConfig'Toggle -> RewriterConfig'Toggle -> Ordering
$cp1Ord :: Eq RewriterConfig'Toggle
Prelude.Ord)
instance Data.ProtoLens.MessageEnum RewriterConfig'Toggle where
maybeToEnum :: Int -> Maybe RewriterConfig'Toggle
maybeToEnum 0 = RewriterConfig'Toggle -> Maybe RewriterConfig'Toggle
forall a. a -> Maybe a
Prelude.Just RewriterConfig'Toggle
RewriterConfig'DEFAULT
maybeToEnum 1 = RewriterConfig'Toggle -> Maybe RewriterConfig'Toggle
forall a. a -> Maybe a
Prelude.Just RewriterConfig'Toggle
RewriterConfig'ON
maybeToEnum 2 = RewriterConfig'Toggle -> Maybe RewriterConfig'Toggle
forall a. a -> Maybe a
Prelude.Just RewriterConfig'Toggle
RewriterConfig'OFF
maybeToEnum 3 = RewriterConfig'Toggle -> Maybe RewriterConfig'Toggle
forall a. a -> Maybe a
Prelude.Just RewriterConfig'Toggle
RewriterConfig'AGGRESSIVE
maybeToEnum k :: Int
k
= RewriterConfig'Toggle -> Maybe RewriterConfig'Toggle
forall a. a -> Maybe a
Prelude.Just
(RewriterConfig'Toggle'UnrecognizedValue -> RewriterConfig'Toggle
RewriterConfig'Toggle'Unrecognized
(Int32 -> RewriterConfig'Toggle'UnrecognizedValue
RewriterConfig'Toggle'UnrecognizedValue (Int -> Int32
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int
k)))
showEnum :: RewriterConfig'Toggle -> String
showEnum RewriterConfig'DEFAULT = "DEFAULT"
showEnum RewriterConfig'ON = "ON"
showEnum RewriterConfig'OFF = "OFF"
showEnum RewriterConfig'AGGRESSIVE = "AGGRESSIVE"
showEnum
(RewriterConfig'Toggle'Unrecognized (RewriterConfig'Toggle'UnrecognizedValue k :: Int32
k))
= Int32 -> String
forall a. Show a => a -> String
Prelude.show Int32
k
readEnum :: String -> Maybe RewriterConfig'Toggle
readEnum k :: String
k
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "DEFAULT" = RewriterConfig'Toggle -> Maybe RewriterConfig'Toggle
forall a. a -> Maybe a
Prelude.Just RewriterConfig'Toggle
RewriterConfig'DEFAULT
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "ON" = RewriterConfig'Toggle -> Maybe RewriterConfig'Toggle
forall a. a -> Maybe a
Prelude.Just RewriterConfig'Toggle
RewriterConfig'ON
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "OFF" = RewriterConfig'Toggle -> Maybe RewriterConfig'Toggle
forall a. a -> Maybe a
Prelude.Just RewriterConfig'Toggle
RewriterConfig'OFF
| String -> String -> Bool
forall a. Eq a => a -> a -> Bool
(Prelude.==) String
k "AGGRESSIVE"
= RewriterConfig'Toggle -> Maybe RewriterConfig'Toggle
forall a. a -> Maybe a
Prelude.Just RewriterConfig'Toggle
RewriterConfig'AGGRESSIVE
| Bool
Prelude.otherwise
= Maybe Int
-> (Int -> Maybe RewriterConfig'Toggle)
-> Maybe RewriterConfig'Toggle
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
(Prelude.>>=) (String -> Maybe Int
forall a. Read a => String -> Maybe a
Text.Read.readMaybe String
k) Int -> Maybe RewriterConfig'Toggle
forall a. MessageEnum a => Int -> Maybe a
Data.ProtoLens.maybeToEnum
instance Prelude.Bounded RewriterConfig'Toggle where
minBound :: RewriterConfig'Toggle
minBound = RewriterConfig'Toggle
RewriterConfig'DEFAULT
maxBound :: RewriterConfig'Toggle
maxBound = RewriterConfig'Toggle
RewriterConfig'AGGRESSIVE
instance Prelude.Enum RewriterConfig'Toggle where
toEnum :: Int -> RewriterConfig'Toggle
toEnum k__ :: Int
k__
= RewriterConfig'Toggle
-> (RewriterConfig'Toggle -> RewriterConfig'Toggle)
-> Maybe RewriterConfig'Toggle
-> RewriterConfig'Toggle
forall b a. b -> (a -> b) -> Maybe a -> b
Prelude.maybe
(String -> RewriterConfig'Toggle
forall a. HasCallStack => String -> a
Prelude.error
(String -> ShowS
forall a. [a] -> [a] -> [a]
(Prelude.++)
"toEnum: unknown value for enum Toggle: " (Int -> String
forall a. Show a => a -> String
Prelude.show Int
k__)))
RewriterConfig'Toggle -> RewriterConfig'Toggle
forall a. a -> a
Prelude.id
(Int -> Maybe RewriterConfig'Toggle
forall a. MessageEnum a => Int -> Maybe a
Data.ProtoLens.maybeToEnum Int
k__)
fromEnum :: RewriterConfig'Toggle -> Int
fromEnum RewriterConfig'DEFAULT = 0
fromEnum RewriterConfig'ON = 1
fromEnum RewriterConfig'OFF = 2
fromEnum RewriterConfig'AGGRESSIVE = 3
fromEnum
(RewriterConfig'Toggle'Unrecognized (RewriterConfig'Toggle'UnrecognizedValue k :: Int32
k))
= Int32 -> Int
forall a b. (Integral a, Num b) => a -> b
Prelude.fromIntegral Int32
k
succ :: RewriterConfig'Toggle -> RewriterConfig'Toggle
succ RewriterConfig'AGGRESSIVE
= String -> RewriterConfig'Toggle
forall a. HasCallStack => String -> a
Prelude.error
"RewriterConfig'Toggle.succ: bad argument RewriterConfig'AGGRESSIVE. This value would be out of bounds."
succ RewriterConfig'DEFAULT = RewriterConfig'Toggle
RewriterConfig'ON
succ RewriterConfig'ON = RewriterConfig'Toggle
RewriterConfig'OFF
succ RewriterConfig'OFF = RewriterConfig'Toggle
RewriterConfig'AGGRESSIVE
succ (RewriterConfig'Toggle'Unrecognized _)
= String -> RewriterConfig'Toggle
forall a. HasCallStack => String -> a
Prelude.error
"RewriterConfig'Toggle.succ: bad argument: unrecognized value"
pred :: RewriterConfig'Toggle -> RewriterConfig'Toggle
pred RewriterConfig'DEFAULT
= String -> RewriterConfig'Toggle
forall a. HasCallStack => String -> a
Prelude.error
"RewriterConfig'Toggle.pred: bad argument RewriterConfig'DEFAULT. This value would be out of bounds."
pred RewriterConfig'ON = RewriterConfig'Toggle
RewriterConfig'DEFAULT
pred RewriterConfig'OFF = RewriterConfig'Toggle
RewriterConfig'ON
pred RewriterConfig'AGGRESSIVE = RewriterConfig'Toggle
RewriterConfig'OFF
pred (RewriterConfig'Toggle'Unrecognized _)
= String -> RewriterConfig'Toggle
forall a. HasCallStack => String -> a
Prelude.error
"RewriterConfig'Toggle.pred: bad argument: unrecognized value"
enumFrom :: RewriterConfig'Toggle -> [RewriterConfig'Toggle]
enumFrom = RewriterConfig'Toggle -> [RewriterConfig'Toggle]
forall a. (Enum a, Bounded a) => a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFrom
enumFromTo :: RewriterConfig'Toggle
-> RewriterConfig'Toggle -> [RewriterConfig'Toggle]
enumFromTo = RewriterConfig'Toggle
-> RewriterConfig'Toggle -> [RewriterConfig'Toggle]
forall a. Enum a => a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromTo
enumFromThen :: RewriterConfig'Toggle
-> RewriterConfig'Toggle -> [RewriterConfig'Toggle]
enumFromThen = RewriterConfig'Toggle
-> RewriterConfig'Toggle -> [RewriterConfig'Toggle]
forall a. (Enum a, Bounded a) => a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromThen
enumFromThenTo :: RewriterConfig'Toggle
-> RewriterConfig'Toggle
-> RewriterConfig'Toggle
-> [RewriterConfig'Toggle]
enumFromThenTo = RewriterConfig'Toggle
-> RewriterConfig'Toggle
-> RewriterConfig'Toggle
-> [RewriterConfig'Toggle]
forall a. Enum a => a -> a -> a -> [a]
Data.ProtoLens.Message.Enum.messageEnumFromThenTo
instance Data.ProtoLens.FieldDefault RewriterConfig'Toggle where
fieldDefault :: RewriterConfig'Toggle
fieldDefault = RewriterConfig'Toggle
RewriterConfig'DEFAULT
instance Control.DeepSeq.NFData RewriterConfig'Toggle where
rnf :: RewriterConfig'Toggle -> ()
rnf x__ :: RewriterConfig'Toggle
x__ = RewriterConfig'Toggle -> () -> ()
forall a b. a -> b -> b
Prelude.seq RewriterConfig'Toggle
x__ ()
data ScopedAllocatorOptions
= ScopedAllocatorOptions'_constructor {ScopedAllocatorOptions -> Vector Text
_ScopedAllocatorOptions'enableOp :: !(Data.Vector.Vector Data.Text.Text),
ScopedAllocatorOptions -> FieldSet
_ScopedAllocatorOptions'_unknownFields :: !Data.ProtoLens.FieldSet}
deriving stock (ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool
(ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool)
-> (ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool)
-> Eq ScopedAllocatorOptions
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool
$c/= :: ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool
== :: ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool
$c== :: ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool
Prelude.Eq, Eq ScopedAllocatorOptions
Eq ScopedAllocatorOptions =>
(ScopedAllocatorOptions -> ScopedAllocatorOptions -> Ordering)
-> (ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool)
-> (ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool)
-> (ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool)
-> (ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool)
-> (ScopedAllocatorOptions
-> ScopedAllocatorOptions -> ScopedAllocatorOptions)
-> (ScopedAllocatorOptions
-> ScopedAllocatorOptions -> ScopedAllocatorOptions)
-> Ord ScopedAllocatorOptions
ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool
ScopedAllocatorOptions -> ScopedAllocatorOptions -> Ordering
ScopedAllocatorOptions
-> ScopedAllocatorOptions -> ScopedAllocatorOptions
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 :: ScopedAllocatorOptions
-> ScopedAllocatorOptions -> ScopedAllocatorOptions
$cmin :: ScopedAllocatorOptions
-> ScopedAllocatorOptions -> ScopedAllocatorOptions
max :: ScopedAllocatorOptions
-> ScopedAllocatorOptions -> ScopedAllocatorOptions
$cmax :: ScopedAllocatorOptions
-> ScopedAllocatorOptions -> ScopedAllocatorOptions
>= :: ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool
$c>= :: ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool
> :: ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool
$c> :: ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool
<= :: ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool
$c<= :: ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool
< :: ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool
$c< :: ScopedAllocatorOptions -> ScopedAllocatorOptions -> Bool
compare :: ScopedAllocatorOptions -> ScopedAllocatorOptions -> Ordering
$ccompare :: ScopedAllocatorOptions -> ScopedAllocatorOptions -> Ordering
$cp1Ord :: Eq ScopedAllocatorOptions
Prelude.Ord)
instance Prelude.Show ScopedAllocatorOptions where
showsPrec :: Int -> ScopedAllocatorOptions -> ShowS
showsPrec _ __x :: ScopedAllocatorOptions
__x __s :: String
__s
= Char -> ShowS
Prelude.showChar
'{'
(String -> ShowS
Prelude.showString
(ScopedAllocatorOptions -> String
forall msg. Message msg => msg -> String
Data.ProtoLens.showMessageShort ScopedAllocatorOptions
__x) (Char -> ShowS
Prelude.showChar '}' String
__s))
instance Data.ProtoLens.Field.HasField ScopedAllocatorOptions "enableOp" [Data.Text.Text] where
fieldOf :: Proxy# "enableOp"
-> ([Text] -> f [Text])
-> ScopedAllocatorOptions
-> f ScopedAllocatorOptions
fieldOf _
= ((Vector Text -> f (Vector Text))
-> ScopedAllocatorOptions -> f ScopedAllocatorOptions)
-> (([Text] -> f [Text]) -> Vector Text -> f (Vector Text))
-> ([Text] -> f [Text])
-> ScopedAllocatorOptions
-> f ScopedAllocatorOptions
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((ScopedAllocatorOptions -> Vector Text)
-> (ScopedAllocatorOptions
-> Vector Text -> ScopedAllocatorOptions)
-> Lens
ScopedAllocatorOptions
ScopedAllocatorOptions
(Vector Text)
(Vector Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
ScopedAllocatorOptions -> Vector Text
_ScopedAllocatorOptions'enableOp
(\ x__ :: ScopedAllocatorOptions
x__ y__ :: Vector Text
y__ -> ScopedAllocatorOptions
x__ {_ScopedAllocatorOptions'enableOp :: Vector Text
_ScopedAllocatorOptions'enableOp = Vector Text
y__}))
((Vector Text -> [Text])
-> (Vector Text -> [Text] -> Vector Text)
-> Lens (Vector Text) (Vector Text) [Text] [Text]
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
Vector Text -> [Text]
forall (v :: * -> *) a. Vector v a => v a -> [a]
Data.Vector.Generic.toList
(\ _ y__ :: [Text]
y__ -> [Text] -> Vector Text
forall (v :: * -> *) a. Vector v a => [a] -> v a
Data.Vector.Generic.fromList [Text]
y__))
instance Data.ProtoLens.Field.HasField ScopedAllocatorOptions "vec'enableOp" (Data.Vector.Vector Data.Text.Text) where
fieldOf :: Proxy# "vec'enableOp"
-> (Vector Text -> f (Vector Text))
-> ScopedAllocatorOptions
-> f ScopedAllocatorOptions
fieldOf _
= ((Vector Text -> f (Vector Text))
-> ScopedAllocatorOptions -> f ScopedAllocatorOptions)
-> ((Vector Text -> f (Vector Text))
-> Vector Text -> f (Vector Text))
-> (Vector Text -> f (Vector Text))
-> ScopedAllocatorOptions
-> f ScopedAllocatorOptions
forall b c a. (b -> c) -> (a -> b) -> a -> c
(Prelude..)
((ScopedAllocatorOptions -> Vector Text)
-> (ScopedAllocatorOptions
-> Vector Text -> ScopedAllocatorOptions)
-> Lens
ScopedAllocatorOptions
ScopedAllocatorOptions
(Vector Text)
(Vector Text)
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
ScopedAllocatorOptions -> Vector Text
_ScopedAllocatorOptions'enableOp
(\ x__ :: ScopedAllocatorOptions
x__ y__ :: Vector Text
y__ -> ScopedAllocatorOptions
x__ {_ScopedAllocatorOptions'enableOp :: Vector Text
_ScopedAllocatorOptions'enableOp = Vector Text
y__}))
(Vector Text -> f (Vector Text)) -> Vector Text -> f (Vector Text)
forall a. a -> a
Prelude.id
instance Data.ProtoLens.Message ScopedAllocatorOptions where
messageName :: Proxy ScopedAllocatorOptions -> Text
messageName _ = String -> Text
Data.Text.pack "tensorflow.ScopedAllocatorOptions"
packedMessageDescriptor :: Proxy ScopedAllocatorOptions -> ByteString
packedMessageDescriptor _
= "\n\
\\SYNScopedAllocatorOptions\DC2\ESC\n\
\\tenable_op\CAN\SOH \ETX(\tR\benableOp"
packedFileDescriptor :: Proxy ScopedAllocatorOptions -> ByteString
packedFileDescriptor _ = ByteString
packedFileDescriptor
fieldsByTag :: Map Tag (FieldDescriptor ScopedAllocatorOptions)
fieldsByTag
= let
enableOp__field_descriptor :: FieldDescriptor ScopedAllocatorOptions
enableOp__field_descriptor
= String
-> FieldTypeDescriptor Text
-> FieldAccessor ScopedAllocatorOptions Text
-> FieldDescriptor ScopedAllocatorOptions
forall value msg.
String
-> FieldTypeDescriptor value
-> FieldAccessor msg value
-> FieldDescriptor msg
Data.ProtoLens.FieldDescriptor
"enable_op"
(ScalarField Text -> FieldTypeDescriptor Text
forall value. ScalarField value -> FieldTypeDescriptor value
Data.ProtoLens.ScalarField ScalarField Text
Data.ProtoLens.StringField ::
Data.ProtoLens.FieldTypeDescriptor Data.Text.Text)
(Packing
-> Lens' ScopedAllocatorOptions [Text]
-> FieldAccessor ScopedAllocatorOptions Text
forall msg value.
Packing -> Lens' msg [value] -> FieldAccessor msg value
Data.ProtoLens.RepeatedField
Packing
Data.ProtoLens.Unpacked
(forall s a (f :: * -> *).
(HasField s "enableOp" 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 @"enableOp")) ::
Data.ProtoLens.FieldDescriptor ScopedAllocatorOptions
in
[(Tag, FieldDescriptor ScopedAllocatorOptions)]
-> Map Tag (FieldDescriptor ScopedAllocatorOptions)
forall k a. Ord k => [(k, a)] -> Map k a
Data.Map.fromList
[(Int -> Tag
Data.ProtoLens.Tag 1, FieldDescriptor ScopedAllocatorOptions
enableOp__field_descriptor)]
unknownFields :: LensLike' f ScopedAllocatorOptions FieldSet
unknownFields
= (ScopedAllocatorOptions -> FieldSet)
-> (ScopedAllocatorOptions -> FieldSet -> ScopedAllocatorOptions)
-> Lens' ScopedAllocatorOptions FieldSet
forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.Family2.Unchecked.lens
ScopedAllocatorOptions -> FieldSet
_ScopedAllocatorOptions'_unknownFields
(\ x__ :: ScopedAllocatorOptions
x__ y__ :: FieldSet
y__ -> ScopedAllocatorOptions
x__ {_ScopedAllocatorOptions'_unknownFields :: FieldSet
_ScopedAllocatorOptions'_unknownFields = FieldSet
y__})
defMessage :: ScopedAllocatorOptions
defMessage
= $WScopedAllocatorOptions'_constructor :: Vector Text -> FieldSet -> ScopedAllocatorOptions
ScopedAllocatorOptions'_constructor
{_ScopedAllocatorOptions'enableOp :: Vector Text
_ScopedAllocatorOptions'enableOp = Vector Text
forall (v :: * -> *) a. Vector v a => v a
Data.Vector.Generic.empty,
_ScopedAllocatorOptions'_unknownFields :: FieldSet
_ScopedAllocatorOptions'_unknownFields = []}
parseMessage :: Parser ScopedAllocatorOptions
parseMessage
= let
loop ::
ScopedAllocatorOptions
-> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld Data.Text.Text
-> Data.ProtoLens.Encoding.Bytes.Parser ScopedAllocatorOptions
loop :: ScopedAllocatorOptions
-> Growing Vector RealWorld Text -> Parser ScopedAllocatorOptions
loop x :: ScopedAllocatorOptions
x mutable'enableOp :: Growing Vector RealWorld Text
mutable'enableOp
= do Bool
end <- Parser Bool
Data.ProtoLens.Encoding.Bytes.atEnd
if Bool
end then
do Vector Text
frozen'enableOp <- IO (Vector Text) -> Parser (Vector Text)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
(Growing Vector (PrimState IO) Text -> IO (Vector Text)
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 Text
Growing Vector (PrimState IO) Text
mutable'enableOp)
(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]))))
ScopedAllocatorOptions -> Parser ScopedAllocatorOptions
forall (m :: * -> *) a. Monad m => a -> m a
Prelude.return
(Setter
ScopedAllocatorOptions ScopedAllocatorOptions FieldSet FieldSet
-> (FieldSet -> FieldSet)
-> ScopedAllocatorOptions
-> ScopedAllocatorOptions
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
ScopedAllocatorOptions ScopedAllocatorOptions FieldSet FieldSet
Data.ProtoLens.unknownFields
(\ !FieldSet
t -> FieldSet -> FieldSet
forall a. [a] -> [a]
Prelude.reverse FieldSet
t)
(Setter
ScopedAllocatorOptions
ScopedAllocatorOptions
(Vector Text)
(Vector Text)
-> Vector Text -> ScopedAllocatorOptions -> ScopedAllocatorOptions
forall s t a b. Setter s t a b -> b -> s -> t
Lens.Family2.set
(forall s a (f :: * -> *).
(HasField s "vec'enableOp" 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'enableOp") Vector Text
frozen'enableOp ScopedAllocatorOptions
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))
"enable_op"
Growing Vector RealWorld Text
v <- IO (Growing Vector RealWorld Text)
-> Parser (Growing Vector RealWorld Text)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
(Growing Vector (PrimState IO) Text
-> Text -> IO (Growing Vector (PrimState IO) Text)
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 Text
Growing Vector (PrimState IO) Text
mutable'enableOp Text
y)
ScopedAllocatorOptions
-> Growing Vector RealWorld Text -> Parser ScopedAllocatorOptions
loop ScopedAllocatorOptions
x Growing Vector RealWorld Text
v
wire :: Word64
wire
-> do !TaggedValue
y <- Word64 -> Parser TaggedValue
Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire
Word64
wire
ScopedAllocatorOptions
-> Growing Vector RealWorld Text -> Parser ScopedAllocatorOptions
loop
(Setter
ScopedAllocatorOptions ScopedAllocatorOptions FieldSet FieldSet
-> (FieldSet -> FieldSet)
-> ScopedAllocatorOptions
-> ScopedAllocatorOptions
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
ScopedAllocatorOptions ScopedAllocatorOptions FieldSet FieldSet
Data.ProtoLens.unknownFields (\ !FieldSet
t -> (:) TaggedValue
y FieldSet
t) ScopedAllocatorOptions
x)
Growing Vector RealWorld Text
mutable'enableOp
in
Parser ScopedAllocatorOptions
-> String -> Parser ScopedAllocatorOptions
forall a. Parser a -> String -> Parser a
(Data.ProtoLens.Encoding.Bytes.<?>)
(do Growing Vector RealWorld Text
mutable'enableOp <- IO (Growing Vector RealWorld Text)
-> Parser (Growing Vector RealWorld Text)
forall a. IO a -> Parser a
Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO
IO (Growing Vector RealWorld Text)
forall (m :: * -> *) (v :: * -> *) a.
(PrimMonad m, Vector v a) =>
m (Growing v (PrimState m) a)
Data.ProtoLens.Encoding.Growing.new
ScopedAllocatorOptions
-> Growing Vector RealWorld Text -> Parser ScopedAllocatorOptions
loop ScopedAllocatorOptions
forall msg. Message msg => msg
Data.ProtoLens.defMessage Growing Vector RealWorld Text
mutable'enableOp)
"ScopedAllocatorOptions"
buildMessage :: ScopedAllocatorOptions -> Builder
buildMessage
= \ _x :: ScopedAllocatorOptions
_x
-> Builder -> Builder -> Builder
forall a. Semigroup a => a -> a -> a
(Data.Monoid.<>)
((Text -> Builder) -> Vector Text -> Builder
forall (v :: * -> *) a.
Vector v a =>
(a -> Builder) -> v a -> Builder
Data.ProtoLens.Encoding.Bytes.foldMapBuilder
(\ _v :: Text
_v
-> 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))
(FoldLike
(Vector Text)
ScopedAllocatorOptions
ScopedAllocatorOptions
(Vector Text)
(Vector Text)
-> ScopedAllocatorOptions -> Vector Text
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view
(forall s a (f :: * -> *).
(HasField s "vec'enableOp" 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'enableOp") ScopedAllocatorOptions
_x))
(FieldSet -> Builder
Data.ProtoLens.Encoding.Wire.buildFieldSet
(FoldLike
FieldSet
ScopedAllocatorOptions
ScopedAllocatorOptions
FieldSet
FieldSet
-> ScopedAllocatorOptions -> FieldSet
forall a s t b. FoldLike a s t a b -> s -> a
Lens.Family2.view FoldLike
FieldSet
ScopedAllocatorOptions
ScopedAllocatorOptions
FieldSet
FieldSet
forall msg. Message msg => Lens' msg FieldSet
Data.ProtoLens.unknownFields ScopedAllocatorOptions
_x))
instance Control.DeepSeq.NFData ScopedAllocatorOptions where
rnf :: ScopedAllocatorOptions -> ()
rnf
= \ x__ :: ScopedAllocatorOptions
x__
-> FieldSet -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq
(ScopedAllocatorOptions -> FieldSet
_ScopedAllocatorOptions'_unknownFields ScopedAllocatorOptions
x__)
(Vector Text -> () -> ()
forall a b. NFData a => a -> b -> b
Control.DeepSeq.deepseq (ScopedAllocatorOptions -> Vector Text
_ScopedAllocatorOptions'enableOp ScopedAllocatorOptions
x__) ())
packedFileDescriptor :: Data.ByteString.ByteString
packedFileDescriptor :: ByteString
packedFileDescriptor
= "\n\
\.tensorflow/core/protobuf/rewriter_config.proto\DC2\n\
\tensorflow\SUB*tensorflow/core/framework/attr_value.proto\SUB.tensorflow/core/protobuf/verifier_config.proto\"P\n\
\\DC3AutoParallelOptions\DC2\SYN\n\
\\ACKenable\CAN\SOH \SOH(\bR\ACKenable\DC2!\n\
\\fnum_replicas\CAN\STX \SOH(\ENQR\vnumReplicas\"5\n\
\\SYNScopedAllocatorOptions\DC2\ESC\n\
\\tenable_op\CAN\SOH \ETX(\tR\benableOp\"\167\SYN\n\
\\SORewriterConfig\DC2L\n\
\\DLElayout_optimizer\CAN\SOH \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\SIlayoutOptimizer\DC2L\n\
\\DLEconstant_folding\CAN\ETX \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\SIconstantFolding\DC2P\n\
\\DC2shape_optimization\CAN\r \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\DC1shapeOptimization\DC2?\n\
\\tremapping\CAN\SO \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\tremapping\DC2a\n\
\\ESCcommon_subgraph_elimination\CAN\CAN \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\EMcommonSubgraphElimination\DC2Z\n\
\\ETBarithmetic_optimization\CAN\a \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\SYNarithmeticOptimization\DC2Z\n\
\\ETBdependency_optimization\CAN\b \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\SYNdependencyOptimization\DC2N\n\
\\DC1loop_optimization\CAN\t \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\DLEloopOptimization\DC2V\n\
\\NAKfunction_optimization\CAN\n\
\ \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\DC4functionOptimization\DC2H\n\
\\SOdebug_stripper\CAN\v \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\rdebugStripper\DC22\n\
\\NAKdisable_model_pruning\CAN\STX \SOH(\bR\DC3disableModelPruning\DC2e\n\
\\GSscoped_allocator_optimization\CAN\SI \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\ESCscopedAllocatorOptimization\DC2Z\n\
\\CANpin_to_host_optimization\CAN\DC2 \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\NAKpinToHostOptimization\DC2Z\n\
\\ETBimplementation_selector\CAN\SYN \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\SYNimplementationSelector\DC2S\n\
\\DC4auto_mixed_precision\CAN\ETB \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\DC2autoMixedPrecision\DC2Z\n\
\\CANauto_mixed_precision_mkl\CAN\EM \SOH(\SO2!.tensorflow.RewriterConfig.ToggleR\NAKautoMixedPrecisionMkl\DC24\n\
\\SYNdisable_meta_optimizer\CAN\DC3 \SOH(\bR\DC4disableMetaOptimizer\DC2h\n\
\\EMmeta_optimizer_iterations\CAN\f \SOH(\SO2,.tensorflow.RewriterConfig.NumIterationsTypeR\ETBmetaOptimizerIterations\DC2&\n\
\\SImin_graph_nodes\CAN\DC1 \SOH(\ENQR\rminGraphNodes\DC2V\n\
\\DC3memory_optimization\CAN\EOT \SOH(\SO2%.tensorflow.RewriterConfig.MemOptTypeR\DC2memoryOptimization\DC2S\n\
\'memory_optimizer_target_node_name_scope\CAN\ACK \SOH(\tR\"memoryOptimizerTargetNodeNameScope\DC29\n\
\\EMmeta_optimizer_timeout_ms\CAN\DC4 \SOH(\ETXR\SYNmetaOptimizerTimeoutMs\DC2D\n\
\\rauto_parallel\CAN\ENQ \SOH(\v2\US.tensorflow.AutoParallelOptionsR\fautoParallel\DC27\n\
\\CANfail_on_optimizer_errors\CAN\NAK \SOH(\bR\NAKfailOnOptimizerErrors\DC2V\n\
\\NAKscoped_allocator_opts\CAN\DLE \SOH(\v2\".tensorflow.ScopedAllocatorOptionsR\DC3scopedAllocatorOpts\DC2\RS\n\
\\n\
\optimizers\CANd \ETX(\tR\n\
\optimizers\DC2]\n\
\\DC1custom_optimizers\CAN\200\SOH \ETX(\v2/.tensorflow.RewriterConfig.CustomGraphOptimizerR\DLEcustomOptimizers\DC2b\n\
\\USinter_optimizer_verifier_config\CAN\172\STX \SOH(\v2\SUB.tensorflow.VerifierConfigR\FSinterOptimizerVerifierConfig\DC2f\n\
\!post_optimization_verifier_config\CAN\173\STX \SOH(\v2\SUB.tensorflow.VerifierConfigR\RSpostOptimizationVerifierConfig\SUB\234\SOH\n\
\\DC4CustomGraphOptimizer\DC2\DC2\n\
\\EOTname\CAN\SOH \SOH(\tR\EOTname\DC2f\n\
\\rparameter_map\CAN\STX \ETX(\v2A.tensorflow.RewriterConfig.CustomGraphOptimizer.ParameterMapEntryR\fparameterMap\SUBV\n\
\\DC1ParameterMapEntry\DC2\DLE\n\
\\ETXkey\CAN\SOH \SOH(\tR\ETXkey\DC2+\n\
\\ENQvalue\CAN\STX \SOH(\v2\NAK.tensorflow.AttrValueR\ENQvalue:\STX8\SOH\"6\n\
\\ACKToggle\DC2\v\n\
\\aDEFAULT\DLE\NUL\DC2\ACK\n\
\\STXON\DLE\SOH\DC2\a\n\
\\ETXOFF\DLE\STX\DC2\SO\n\
\\n\
\AGGRESSIVE\DLE\ETX\"<\n\
\\DC1NumIterationsType\DC2\NAK\n\
\\DC1DEFAULT_NUM_ITERS\DLE\NUL\DC2\a\n\
\\ETXONE\DLE\SOH\DC2\a\n\
\\ETXTWO\DLE\STX\"\159\SOH\n\
\\n\
\MemOptType\DC2\DC3\n\
\\SIDEFAULT_MEM_OPT\DLE\NUL\DC2\SO\n\
\\n\
\NO_MEM_OPT\DLE\SOH\DC2\n\
\\n\
\\ACKMANUAL\DLE\STX\DC2\ETB\n\
\\DC3SWAPPING_HEURISTICS\DLE\EOT\DC2\FS\n\
\\CANRECOMPUTATION_HEURISTICS\DLE\ENQ\DC2\EM\n\
\\NAKSCHEDULING_HEURISTICS\DLE\ACK\DC2\SO\n\
\\n\
\HEURISTICS\DLE\ETXB\DEL\n\
\\CANorg.tensorflow.frameworkB\DC4RewriterConfigProtosP\SOHZHgithub.com/tensorflow/tensorflow/tensorflow/go/core/core_protos_go_proto\248\SOH\SOHJ\180C\n\
\\a\DC2\ENQ\NUL\NUL\192\SOH\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\NUL4\n\
\\t\n\
\\STX\ETX\SOH\DC2\ETX\ENQ\NUL8\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\NUL5\n\
\\t\n\
\\STX\b\b\DC2\ETX\b\NUL5\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\NUL_\n\
\\t\n\
\\STX\b\v\DC2\ETX\v\NUL_\n\
\\n\
\\n\
\\STX\EOT\NUL\DC2\EOT\r\NUL\DLE\SOH\n\
\\n\
\\n\
\\ETX\EOT\NUL\SOH\DC2\ETX\r\b\ESC\n\
\\v\n\
\\EOT\EOT\NUL\STX\NUL\DC2\ETX\SO\STX\DC2\n\
\\f\n\
\\ENQ\EOT\NUL\STX\NUL\ENQ\DC2\ETX\SO\STX\ACK\n\
\\f\n\
\\ENQ\EOT\NUL\STX\NUL\SOH\DC2\ETX\SO\a\r\n\
\\f\n\
\\ENQ\EOT\NUL\STX\NUL\ETX\DC2\ETX\SO\DLE\DC1\n\
\\v\n\
\\EOT\EOT\NUL\STX\SOH\DC2\ETX\SI\STX\EM\n\
\\f\n\
\\ENQ\EOT\NUL\STX\SOH\ENQ\DC2\ETX\SI\STX\a\n\
\\f\n\
\\ENQ\EOT\NUL\STX\SOH\SOH\DC2\ETX\SI\b\DC4\n\
\\f\n\
\\ENQ\EOT\NUL\STX\SOH\ETX\DC2\ETX\SI\ETB\CAN\n\
\\n\
\\n\
\\STX\EOT\SOH\DC2\EOT\DC2\NUL\NAK\SOH\n\
\\n\
\\n\
\\ETX\EOT\SOH\SOH\DC2\ETX\DC2\b\RS\n\
\C\n\
\\EOT\EOT\SOH\STX\NUL\DC2\ETX\DC4\STX \SUB6 If present, only perform optimization for these ops.\n\
\\n\
\\f\n\
\\ENQ\EOT\SOH\STX\NUL\EOT\DC2\ETX\DC4\STX\n\
\\n\
\\f\n\
\\ENQ\EOT\SOH\STX\NUL\ENQ\DC2\ETX\DC4\v\DC1\n\
\\f\n\
\\ENQ\EOT\SOH\STX\NUL\SOH\DC2\ETX\DC4\DC2\ESC\n\
\\f\n\
\\ENQ\EOT\SOH\STX\NUL\ETX\DC2\ETX\DC4\RS\US\n\
\s\n\
\\STX\EOT\STX\DC2\ENQ\ETB\NUL\192\SOH\SOH\"f Graph rewriting is experimental and subject to change, not covered by any\n\
\ API stability guarantees.\n\
\\n\
\\n\
\\n\
\\ETX\EOT\STX\SOH\DC2\ETX\ETB\b\SYN\n\
\\198\SOH\n\
\\EOT\EOT\STX\EOT\NUL\DC2\EOT\US\STX'\ETX2\183\SOH Configuration options for the meta-optimizer. Unless otherwise noted, these\n\
\ configuration options do not apply to explicitly triggered optimization\n\
\ passes in the optimizers field.\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\EOT\NUL\SOH\DC2\ETX\US\a\r\n\
\\r\n\
\\ACK\EOT\STX\EOT\NUL\STX\NUL\DC2\ETX \EOT\DLE\n\
\\SO\n\
\\a\EOT\STX\EOT\NUL\STX\NUL\SOH\DC2\ETX \EOT\v\n\
\\SO\n\
\\a\EOT\STX\EOT\NUL\STX\NUL\STX\DC2\ETX \SO\SI\n\
\\r\n\
\\ACK\EOT\STX\EOT\NUL\STX\SOH\DC2\ETX!\EOT\v\n\
\\SO\n\
\\a\EOT\STX\EOT\NUL\STX\SOH\SOH\DC2\ETX!\EOT\ACK\n\
\\SO\n\
\\a\EOT\STX\EOT\NUL\STX\SOH\STX\DC2\ETX!\t\n\
\\n\
\\r\n\
\\ACK\EOT\STX\EOT\NUL\STX\STX\DC2\ETX\"\EOT\f\n\
\\SO\n\
\\a\EOT\STX\EOT\NUL\STX\STX\SOH\DC2\ETX\"\EOT\a\n\
\\SO\n\
\\a\EOT\STX\EOT\NUL\STX\STX\STX\DC2\ETX\"\n\
\\v\n\
\\175\SOH\n\
\\ACK\EOT\STX\EOT\NUL\STX\ETX\DC2\ETX&\EOT\DC3\SUB\159\SOH Enable some aggressive optimizations that use assumptions that TF graphs\n\
\ may break. For example, assume the shape of a placeholder matches its\n\
\ actual feed.\n\
\\n\
\\SO\n\
\\a\EOT\STX\EOT\NUL\STX\ETX\SOH\DC2\ETX&\EOT\SO\n\
\\SO\n\
\\a\EOT\STX\EOT\NUL\STX\ETX\STX\DC2\ETX&\DC1\DC2\n\
\j\n\
\\EOT\EOT\STX\EOT\SOH\DC2\EOT+\STX/\ETX\SUB\\ Enum controlling the number of times to run optimizers. The default is to\n\
\ run them twice.\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\EOT\SOH\SOH\DC2\ETX+\a\CAN\n\
\\r\n\
\\ACK\EOT\STX\EOT\SOH\STX\NUL\DC2\ETX,\EOT\SUB\n\
\\SO\n\
\\a\EOT\STX\EOT\SOH\STX\NUL\SOH\DC2\ETX,\EOT\NAK\n\
\\SO\n\
\\a\EOT\STX\EOT\SOH\STX\NUL\STX\DC2\ETX,\CAN\EM\n\
\\r\n\
\\ACK\EOT\STX\EOT\SOH\STX\SOH\DC2\ETX-\EOT\f\n\
\\SO\n\
\\a\EOT\STX\EOT\SOH\STX\SOH\SOH\DC2\ETX-\EOT\a\n\
\\SO\n\
\\a\EOT\STX\EOT\SOH\STX\SOH\STX\DC2\ETX-\n\
\\v\n\
\\r\n\
\\ACK\EOT\STX\EOT\SOH\STX\STX\DC2\ETX.\EOT\f\n\
\\SO\n\
\\a\EOT\STX\EOT\SOH\STX\STX\SOH\DC2\ETX.\EOT\a\n\
\\SO\n\
\\a\EOT\STX\EOT\SOH\STX\STX\STX\DC2\ETX.\n\
\\v\n\
\u\n\
\\EOT\EOT\STX\STX\NUL\DC2\ETX3\STX\RS\SUBh Optimize tensor layouts (default is ON)\n\
\ e.g. This will try to use NCHW layout on GPU which is faster.\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\NUL\ACK\DC2\ETX3\STX\b\n\
\\f\n\
\\ENQ\EOT\STX\STX\NUL\SOH\DC2\ETX3\t\EM\n\
\\f\n\
\\ENQ\EOT\STX\STX\NUL\ETX\DC2\ETX3\FS\GS\n\
\\145\SOH\n\
\\EOT\EOT\STX\STX\SOH\DC2\ETX7\STX\RS\SUB\131\SOH Fold constants (default is ON)\n\
\ Statically infer the value of tensors when possible, and materialize the\n\
\ result using constants.\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\SOH\ACK\DC2\ETX7\STX\b\n\
\\f\n\
\\ENQ\EOT\STX\STX\SOH\SOH\DC2\ETX7\t\EM\n\
\\f\n\
\\ENQ\EOT\STX\STX\SOH\ETX\DC2\ETX7\FS\GS\n\
\Y\n\
\\EOT\EOT\STX\STX\STX\DC2\ETX:\STX!\SUBL Shape optimizations (default is ON)\n\
\ Simplify computations made on shapes.\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\STX\ACK\DC2\ETX:\STX\b\n\
\\f\n\
\\ENQ\EOT\STX\STX\STX\SOH\DC2\ETX:\t\ESC\n\
\\f\n\
\\ENQ\EOT\STX\STX\STX\ETX\DC2\ETX:\RS \n\
\^\n\
\\EOT\EOT\STX\STX\ETX\DC2\ETX=\STX\CAN\SUBQ Remapping (default is ON)\n\
\ Remap subgraphs onto more efficient implementations.\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\ETX\ACK\DC2\ETX=\STX\b\n\
\\f\n\
\\ENQ\EOT\STX\STX\ETX\SOH\DC2\ETX=\t\DC2\n\
\\f\n\
\\ENQ\EOT\STX\STX\ETX\ETX\DC2\ETX=\NAK\ETB\n\
\\133\SOH\n\
\\EOT\EOT\STX\STX\EOT\DC2\ETX@\STX*\SUBx Common subgraph elimination (default is ON)\n\
\ e.g. Simplify arithmetic ops; merge ops with same value (like constants).\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\EOT\ACK\DC2\ETX@\STX\b\n\
\\f\n\
\\ENQ\EOT\STX\STX\EOT\SOH\DC2\ETX@\t$\n\
\\f\n\
\\ENQ\EOT\STX\STX\EOT\ETX\DC2\ETX@')\n\
\\130\SOH\n\
\\EOT\EOT\STX\STX\ENQ\DC2\ETXC\STX%\SUBu Arithmetic optimizations (default is ON)\n\
\ e.g. Simplify arithmetic ops; merge ops with same value (like constants).\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\ENQ\ACK\DC2\ETXC\STX\b\n\
\\f\n\
\\ENQ\EOT\STX\STX\ENQ\SOH\DC2\ETXC\t \n\
\\f\n\
\\ENQ\EOT\STX\STX\ENQ\ETX\DC2\ETXC#$\n\
\\142\SOH\n\
\\EOT\EOT\STX\STX\ACK\DC2\ETXF\STX%\SUB\128\SOH Control dependency optimizations (default is ON).\n\
\ Remove redundant control dependencies, which may enable other optimization.\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\ACK\ACK\DC2\ETXF\STX\b\n\
\\f\n\
\\ENQ\EOT\STX\STX\ACK\SOH\DC2\ETXF\t \n\
\\f\n\
\\ENQ\EOT\STX\STX\ACK\ETX\DC2\ETXF#$\n\
\2\n\
\\EOT\EOT\STX\STX\a\DC2\ETXH\STX\US\SUB% Loop optimizations (default is ON).\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\a\ACK\DC2\ETXH\STX\b\n\
\\f\n\
\\ENQ\EOT\STX\STX\a\SOH\DC2\ETXH\t\SUB\n\
\\f\n\
\\ENQ\EOT\STX\STX\a\ETX\DC2\ETXH\GS\RS\n\
\6\n\
\\EOT\EOT\STX\STX\b\DC2\ETXJ\STX$\SUB) Function optimizations (default is ON).\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\b\ACK\DC2\ETXJ\STX\b\n\
\\f\n\
\\ENQ\EOT\STX\STX\b\SOH\DC2\ETXJ\t\RS\n\
\\f\n\
\\ENQ\EOT\STX\STX\b\ETX\DC2\ETXJ!#\n\
\J\n\
\\EOT\EOT\STX\STX\t\DC2\ETXL\STX\GS\SUB= Strips debug-related nodes from the graph (off by default).\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\t\ACK\DC2\ETXL\STX\b\n\
\\f\n\
\\ENQ\EOT\STX\STX\t\SOH\DC2\ETXL\t\ETB\n\
\\f\n\
\\ENQ\EOT\STX\STX\t\ETX\DC2\ETXL\SUB\FS\n\
\C\n\
\\EOT\EOT\STX\STX\n\
\\DC2\ETXN\STX!\SUB6 If true, don't remove unnecessary ops from the graph\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\n\
\\ENQ\DC2\ETXN\STX\ACK\n\
\\f\n\
\\ENQ\EOT\STX\STX\n\
\\SOH\DC2\ETXN\a\FS\n\
\\f\n\
\\ENQ\EOT\STX\STX\n\
\\ETX\DC2\ETXN\US \n\
\\136\SOH\n\
\\EOT\EOT\STX\STX\v\DC2\ETXQ\STX,\SUB{ Try to allocate some independent Op outputs contiguously in order to\n\
\ merge or eliminate downstream Ops (off by default).\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\v\ACK\DC2\ETXQ\STX\b\n\
\\f\n\
\\ENQ\EOT\STX\STX\v\SOH\DC2\ETXQ\t&\n\
\\f\n\
\\ENQ\EOT\STX\STX\v\ETX\DC2\ETXQ)+\n\
\=\n\
\\EOT\EOT\STX\STX\f\DC2\ETXS\STX'\SUB0 Force small ops onto the CPU (default is OFF).\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\f\ACK\DC2\ETXS\STX\b\n\
\\f\n\
\\ENQ\EOT\STX\STX\f\SOH\DC2\ETXS\t!\n\
\\f\n\
\\ENQ\EOT\STX\STX\f\ETX\DC2\ETXS$&\n\
\h\n\
\\EOT\EOT\STX\STX\r\DC2\ETXV\STX&\SUB[ Enable the swap of kernel implementations based on the device placement\n\
\ (default is ON).\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\r\ACK\DC2\ETXV\STX\b\n\
\\f\n\
\\ENQ\EOT\STX\STX\r\SOH\DC2\ETXV\t \n\
\\f\n\
\\ENQ\EOT\STX\STX\r\ETX\DC2\ETXV#%\n\
\\252\SOH\n\
\\EOT\EOT\STX\STX\SO\DC2\ETX[\STX#\SUB\238\SOH Optimize data types for CUDA (default is OFF).\n\
\ This will try to use float16 on GPU which is faster.\n\
\ Note that this can change the numerical stability of the graph and may\n\
\ require the use of loss scaling to maintain model convergence.\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\SO\ACK\DC2\ETX[\STX\b\n\
\\f\n\
\\ENQ\EOT\STX\STX\SO\SOH\DC2\ETX[\t\GS\n\
\\f\n\
\\ENQ\EOT\STX\STX\SO\ETX\DC2\ETX[ \"\n\
\\183\SOH\n\
\\EOT\EOT\STX\STX\SI\DC2\ETX_\STX'\SUB\169\SOH Optimize data types for MKL (default is OFF).\n\
\ This will try to use bfloat16 on CPUs, which is faster.\n\
\ Note that this can change the numerical stability of the graph.\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\SI\ACK\DC2\ETX_\STX\b\n\
\\f\n\
\\ENQ\EOT\STX\STX\SI\SOH\DC2\ETX_\t!\n\
\\f\n\
\\ENQ\EOT\STX\STX\SI\ETX\DC2\ETX_$&\n\
\B\n\
\\EOT\EOT\STX\STX\DLE\DC2\ETXa\STX#\SUB5 Disable the entire meta optimizer (off by default).\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\DLE\ENQ\DC2\ETXa\STX\ACK\n\
\\f\n\
\\ENQ\EOT\STX\STX\DLE\SOH\DC2\ETXa\a\GS\n\
\\f\n\
\\ENQ\EOT\STX\STX\DLE\ETX\DC2\ETXa \"\n\
\b\n\
\\EOT\EOT\STX\STX\DC1\DC2\ETXe\STX3\SUBU Controls how many times we run the optimizers in meta optimizer (default\n\
\ is once).\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\DC1\ACK\DC2\ETXe\STX\DC3\n\
\\f\n\
\\ENQ\EOT\STX\STX\DC1\SOH\DC2\ETXe\DC4-\n\
\\f\n\
\\ENQ\EOT\STX\STX\DC1\ETX\DC2\ETXe02\n\
\\200\SOH\n\
\\EOT\EOT\STX\STX\DC2\DC2\ETXk\STX\GS\SUB\186\SOH The minimum number of nodes in a graph to optimizer. For smaller graphs,\n\
\ optimization is skipped.\n\
\ 0 means the system picks an appropriate number.\n\
\ < 0 means do not skip optimization.\n\
\\n\
\\f\n\
\\ENQ\EOT\STX\STX\DC2\ENQ\DC2\ETXk\STX\a\n\
\\f\n\
\\ENQ\EOT\STX\STX\DC2\SOH\DC2\ETXk\b\ETB\n\
\\f\n\
\\ENQ\EOT\STX\STX\DC2\ETX\DC2\ETXk\SUB\FS\n\
\\r\n\
\\EOT\EOT\STX\EOT\STX\DC2\ENQm\STX\133\SOH\ETX\n\
\\f\n\
\\ENQ\EOT\STX\EOT\STX\SOH\DC2\ETXm\a\DC1\n\
\N\n\
\\ACK\EOT\STX\EOT\STX\STX\NUL\DC2\ETXo\EOT\CAN\SUB? The default setting (SCHEDULING and SWAPPING HEURISTICS only)\n\
\\n\
\\SO\n\
\\a\EOT\STX\EOT\STX\STX\NUL\SOH\DC2\ETXo\EOT\DC3\n\
\\SO\n\
\\a\EOT\STX\EOT\STX\STX\NUL\STX\DC2\ETXo\SYN\ETB\n\
\0\n\
\\ACK\EOT\STX\EOT\STX\STX\SOH\DC2\ETXq\EOT\DC3\SUB! Disabled in the meta-optimizer.\n\
\\n\
\\SO\n\
\\a\EOT\STX\EOT\STX\STX\SOH\SOH\DC2\ETXq\EOT\SO\n\
\\SO\n\
\\a\EOT\STX\EOT\STX\STX\SOH\STX\DC2\ETXq\DC1\DC2\n\
\7\n\
\\ACK\EOT\STX\EOT\STX\STX\STX\DC2\ETXs\EOT\SI\SUB( Driven by manual op-level annotations.\n\
\\n\
\\SO\n\
\\a\EOT\STX\EOT\STX\STX\STX\SOH\DC2\ETXs\EOT\n\
\\n\
\\SO\n\
\\a\EOT\STX\EOT\STX\STX\STX\STX\DC2\ETXs\r\SO\n\
\\250\STX\n\
\\ACK\EOT\STX\EOT\STX\STX\ETX\DC2\ETX|\EOT\FS\SUBz Swapping heuristic will move a tensor from the GPU to the CPU and move\n\
\ it back when needed to reduce peak memory usage.\n\
\2\238\SOH Driven by heuristics. The behavior of these heuristics is subject to\n\
\ change. Currently includes an experimental recomputation and swapping\n\
\ heuristics. Manual annotations are respected, but additional nodes are\n\
\ selected automatically.\n\
\\n\
\\SO\n\
\\a\EOT\STX\EOT\STX\STX\ETX\SOH\DC2\ETX|\EOT\ETB\n\
\\SO\n\
\\a\EOT\STX\EOT\STX\STX\ETX\STX\DC2\ETX|\SUB\ESC\n\
\\157\SOH\n\
\\ACK\EOT\STX\EOT\STX\STX\EOT\DC2\ETX\DEL\EOT!\SUB\141\SOH Recomputation heuristics will recompute ops (such as Relu activation)\n\
\ during backprop instead of storing them, reducing peak memory usage.\n\
\\n\
\\SO\n\
\\a\EOT\STX\EOT\STX\STX\EOT\SOH\DC2\ETX\DEL\EOT\FS\n\
\\SO\n\
\\a\EOT\STX\EOT\STX\STX\EOT\STX\DC2\ETX\DEL\US \n\
\\150\SOH\n\
\\ACK\EOT\STX\EOT\STX\STX\ENQ\DC2\EOT\130\SOH\EOT\RS\SUB\133\SOH Scheduling will split big ops such as AddN and try to enforce a schedule\n\
\ of the new computations that decreases peak memory usage.\n\
\\n\
\\SI\n\
\\a\EOT\STX\EOT\STX\STX\ENQ\SOH\DC2\EOT\130\SOH\EOT\EM\n\
\\SI\n\
\\a\EOT\STX\EOT\STX\STX\ENQ\STX\DC2\EOT\130\SOH\FS\GS\n\
\O\n\
\\ACK\EOT\STX\EOT\STX\STX\ACK\DC2\EOT\132\SOH\EOT\DC3\SUB? Use any combination of swapping and recomputation heuristics.\n\
\\n\
\\SI\n\
\\a\EOT\STX\EOT\STX\STX\ACK\SOH\DC2\EOT\132\SOH\EOT\SO\n\
\\SI\n\
\\a\EOT\STX\EOT\STX\STX\ACK\STX\DC2\EOT\132\SOH\DC1\DC2\n\
\\172\SOH\n\
\\EOT\EOT\STX\STX\DC3\DC2\EOT\137\SOH\STX%\SUB\157\SOH Configures memory optimization passes through the meta-optimizer. Has no\n\
\ effect on manually requested memory optimization passes in the optimizers\n\
\ field.\n\
\\n\
\\r\n\
\\ENQ\EOT\STX\STX\DC3\ACK\DC2\EOT\137\SOH\STX\f\n\
\\r\n\
\\ENQ\EOT\STX\STX\DC3\SOH\DC2\EOT\137\SOH\r \n\
\\r\n\
\\ENQ\EOT\STX\STX\DC3\ETX\DC2\EOT\137\SOH#$\n\
\\192\EOT\n\
\\EOT\EOT\STX\STX\DC4\DC2\EOT\146\SOH\STX5\SUB\177\EOT A node name scope for node names which are valid outputs of recomputations.\n\
\ Inputs to nodes that match this scope may be recomputed (subject either to\n\
\ manual annotation of those input nodes or to manual annotation and\n\
\ heuristics depending on memory_optimization), but the nodes themselves will\n\
\ not be recomputed. This matches any sub-scopes as well, meaning the scope\n\
\ can appear not just as a top-level scope. For example, if the value is\n\
\ \"gradients/\", the default, it will match node name \"gradients/foo\",\n\
\ \"foo/gradients/bar\", but not \"foo_gradients/\"\n\
\\n\
\\r\n\
\\ENQ\EOT\STX\STX\DC4\ENQ\DC2\EOT\146\SOH\STX\b\n\
\\r\n\
\\ENQ\EOT\STX\STX\DC4\SOH\DC2\EOT\146\SOH\t0\n\
\\r\n\
\\ENQ\EOT\STX\STX\DC4\ETX\DC2\EOT\146\SOH34\n\
\\217\SOH\n\
\\EOT\EOT\STX\STX\NAK\DC2\EOT\150\SOH\STX'\SUB\202\SOH Maximum number of milliseconds to spend optimizing a single graph before\n\
\ timing out. If equal to 0 the system picks a default (currently 5 minutes).\n\
\ If less than 0 the optimizer will never time out.\n\
\\n\
\\r\n\
\\ENQ\EOT\STX\STX\NAK\ENQ\DC2\EOT\150\SOH\STX\a\n\
\\r\n\
\\ENQ\EOT\STX\STX\NAK\SOH\DC2\EOT\150\SOH\b!\n\
\\r\n\
\\ENQ\EOT\STX\STX\NAK\ETX\DC2\EOT\150\SOH$&\n\
\\152\SOH\n\
\\EOT\EOT\STX\STX\SYN\DC2\EOT\154\SOH\STX(\SUB\137\SOH Configures AutoParallel optimization passes either through the\n\
\ meta-optimizer or when manually specified through the optimizers field.\n\
\\n\
\\r\n\
\\ENQ\EOT\STX\STX\SYN\ACK\DC2\EOT\154\SOH\STX\NAK\n\
\\r\n\
\\ENQ\EOT\STX\STX\SYN\SOH\DC2\EOT\154\SOH\SYN#\n\
\\r\n\
\\ENQ\EOT\STX\STX\SYN\ETX\DC2\EOT\154\SOH&'\n\
\\181\SOH\n\
\\EOT\EOT\STX\STX\ETB\DC2\EOT\159\SOH\STX%\SUB\166\SOH If true, any optimization pass failing will cause the MetaOptimizer to\n\
\ stop with an error. By default - or when set to false, failing passes are\n\
\ skipped silently.\n\
\\n\
\\r\n\
\\ENQ\EOT\STX\STX\ETB\ENQ\DC2\EOT\159\SOH\STX\ACK\n\
\\r\n\
\\ENQ\EOT\STX\STX\ETB\SOH\DC2\EOT\159\SOH\a\US\n\
\\r\n\
\\ENQ\EOT\STX\STX\ETB\ETX\DC2\EOT\159\SOH\"$\n\
\\f\n\
\\EOT\EOT\STX\STX\CAN\DC2\EOT\161\SOH\STX4\n\
\\r\n\
\\ENQ\EOT\STX\STX\CAN\ACK\DC2\EOT\161\SOH\STX\CAN\n\
\\r\n\
\\ENQ\EOT\STX\STX\CAN\SOH\DC2\EOT\161\SOH\EM.\n\
\\r\n\
\\ENQ\EOT\STX\STX\CAN\ETX\DC2\EOT\161\SOH13\n\
\\163\ENQ\n\
\\EOT\EOT\STX\STX\EM\DC2\EOT\175\SOH\STX#\SUB\148\ENQ If non-empty, will use this as an alternative way to specify a list of\n\
\ optimizations to turn on and the order of the optimizations (replacing the\n\
\ meta-optimizer).\n\
\\n\
\ Of the RewriterConfig options, only the AutoParallel configuration options\n\
\ (the auto_parallel field) apply to manually requested optimization passes\n\
\ (\"autoparallel\"). Memory optimization passes (\"memory\") invoked here are\n\
\ not configurable (in contrast to memory optimization passes through the\n\
\ meta-optimizer) and act only on manual op annotations.\n\
\\n\
\ Custom optimizers (see custom_optimizers) that are not part of this\n\
\ schedule will be run after - in the order that they were specified.\n\
\\n\
\\r\n\
\\ENQ\EOT\STX\STX\EM\EOT\DC2\EOT\175\SOH\STX\n\
\\n\
\\r\n\
\\ENQ\EOT\STX\STX\EM\ENQ\DC2\EOT\175\SOH\v\DC1\n\
\\r\n\
\\ENQ\EOT\STX\STX\EM\SOH\DC2\EOT\175\SOH\DC2\FS\n\
\\r\n\
\\ENQ\EOT\STX\STX\EM\ETX\DC2\EOT\175\SOH\US\"\n\
\O\n\
\\EOT\EOT\STX\ETX\NUL\DC2\ACK\178\SOH\STX\181\SOH\ETX\SUB? Message to describe custom graph optimizer and its parameters\n\
\\n\
\\r\n\
\\ENQ\EOT\STX\ETX\NUL\SOH\DC2\EOT\178\SOH\n\
\\RS\n\
\\SO\n\
\\ACK\EOT\STX\ETX\NUL\STX\NUL\DC2\EOT\179\SOH\EOT\DC4\n\
\\SI\n\
\\a\EOT\STX\ETX\NUL\STX\NUL\ENQ\DC2\EOT\179\SOH\EOT\n\
\\n\
\\SI\n\
\\a\EOT\STX\ETX\NUL\STX\NUL\SOH\DC2\EOT\179\SOH\v\SI\n\
\\SI\n\
\\a\EOT\STX\ETX\NUL\STX\NUL\ETX\DC2\EOT\179\SOH\DC2\DC3\n\
\\SO\n\
\\ACK\EOT\STX\ETX\NUL\STX\SOH\DC2\EOT\180\SOH\EOT-\n\
\\SI\n\
\\a\EOT\STX\ETX\NUL\STX\SOH\ACK\DC2\EOT\180\SOH\EOT\SUB\n\
\\SI\n\
\\a\EOT\STX\ETX\NUL\STX\SOH\SOH\DC2\EOT\180\SOH\ESC(\n\
\\SI\n\
\\a\EOT\STX\ETX\NUL\STX\SOH\ETX\DC2\EOT\180\SOH+,\n\
\7\n\
\\EOT\EOT\STX\STX\SUB\DC2\EOT\184\SOH\STX8\SUB) list of CustomGraphOptimizers to apply.\n\
\\n\
\\r\n\
\\ENQ\EOT\STX\STX\SUB\EOT\DC2\EOT\184\SOH\STX\n\
\\n\
\\r\n\
\\ENQ\EOT\STX\STX\SUB\ACK\DC2\EOT\184\SOH\v\US\n\
\\r\n\
\\ENQ\EOT\STX\STX\SUB\SOH\DC2\EOT\184\SOH 1\n\
\\r\n\
\\ENQ\EOT\STX\STX\SUB\ETX\DC2\EOT\184\SOH47\n\
\X\n\
\\EOT\EOT\STX\STX\ESC\DC2\EOT\187\SOH\STX7\SUBJ VerifierConfig specifying the verifiers to be run after every optimizer.\n\
\\n\
\\r\n\
\\ENQ\EOT\STX\STX\ESC\ACK\DC2\EOT\187\SOH\STX\DLE\n\
\\r\n\
\\ENQ\EOT\STX\STX\ESC\SOH\DC2\EOT\187\SOH\DC10\n\
\\r\n\
\\ENQ\EOT\STX\STX\ESC\ETX\DC2\EOT\187\SOH36\n\
\m\n\
\\EOT\EOT\STX\STX\FS\DC2\EOT\191\SOH\STX9\SUB_ VerifierConfig specifying the verifiers to be run at the end, after all\n\
\ optimizers have run.\n\
\\n\
\\r\n\
\\ENQ\EOT\STX\STX\FS\ACK\DC2\EOT\191\SOH\STX\DLE\n\
\\r\n\
\\ENQ\EOT\STX\STX\FS\SOH\DC2\EOT\191\SOH\DC12\n\
\\r\n\
\\ENQ\EOT\STX\STX\FS\ETX\DC2\EOT\191\SOH58b\ACKproto3"