Safe Haskell | None |
---|---|
Language | Haskell2010 |
Wrapping of TensorFlow attributes into Haskell entities.
- data AttrDef
- data AttrCase f
- data AttrTemplate
- = AttrSingle (AttrCase Template)
- | AttrList (AttrCase [])
- | AttrTensor UnusedTensor
- data Template a
- attrDef :: OpDef'AttrDef -> AttrDef
- attrOriginal :: Lens' AttrDef OpDef'AttrDef
- attrTemplate :: Lens' AttrDef AttrTemplate
- templateDefault :: Lens' (Template a) (Maybe a)
- templateRestrictions :: Lens' (Template a) [a]
Documentation
data AttrDef
data AttrCase f
data AttrTemplate
Type-reified representation of TensorFlow AttrDef. Initially limited to just the types in Op descriptors.
AttrSingle (AttrCase Template) | |
AttrList (AttrCase []) | |
AttrTensor UnusedTensor |
data Template a
Specifies the optional default value and a set of allowed values for the given type.
attrDef :: OpDef'AttrDef -> AttrDef
attrOriginal :: Lens' AttrDef OpDef'AttrDef
attrTemplate :: Lens' AttrDef AttrTemplate
templateDefault :: Lens' (Template a) (Maybe a)
templateRestrictions :: Lens' (Template a) [a]