tensorflow-opgen-0.1.0.0: Code generation for TensorFlow operations.

Safe HaskellNone
LanguageHaskell2010

TensorFlow.OpGen.ParsedOp

Description

This module helps parse the proto OpDef into a Haskell type which is more descriptive of how the attributes and arguments will be used in the generated code.

Synopsis

Documentation

data ParsedOp Source #

Constructors

ParsedOp 

Fields

data Name Source #

Constructors

Name 

newtype HaskellName Source #

A name that's appropriate for a variable in a Haskell source file.

Constructors

HaskellName 

Fields

newtype TFName Source #

A raw name as specified in the OpDef proto.

Constructors

TFName 

Fields

Instances

data Attr a Source #

A named attribute, associated with some information about it.

Constructors

Attr 

Fields

data AttrType Source #

The type of an attribute.

Instances

data TypeParam Source #

Constructors

TypeParam 

Fields

data ParsedArg Source #

An input or output argument (Tensor) for an op.

data ParsedArgCase Source #

Constructors

SimpleArg 
ListArg 

Fields

MixedListArg

A heterogeneous list.

data ArgType Source #

The type of an argument.

Constructors

ArgTypeFixed DataType

A fixed type.

ArgTypeAttr Name

A type that depends on an attribute.

camelCase :: Text -> Text Source #