mirror of
https://github.com/HuwCampbell/grenade.git
synced 2024-11-22 06:55:13 +03:00
Remove phase. It's not needed
This commit is contained in:
parent
109d5be3ca
commit
ae4de42556
@ -38,7 +38,6 @@ library
|
||||
Grenade.Core.Vector
|
||||
Grenade.Core.Runner
|
||||
Grenade.Core.Shape
|
||||
Grenade.Core.Phase
|
||||
Grenade.Layers.Crop
|
||||
Grenade.Layers.Convolution
|
||||
Grenade.Layers.Dropout
|
||||
|
@ -6,7 +6,6 @@ import Grenade.Core.Vector as X
|
||||
import Grenade.Core.Network as X
|
||||
import Grenade.Core.Runner as X
|
||||
import Grenade.Core.Shape as X
|
||||
import Grenade.Core.Phase as X
|
||||
import Grenade.Layers.Crop as X
|
||||
import Grenade.Layers.Dropout as X
|
||||
import Grenade.Layers.Pad as X
|
||||
|
@ -1,14 +0,0 @@
|
||||
{-# LANGUAGE FlexibleContexts #-}
|
||||
module Grenade.Core.Phase (
|
||||
Phase (..)
|
||||
, isTrainingPhase
|
||||
) where
|
||||
|
||||
import Control.Monad.State
|
||||
|
||||
data Phase = TrainingPhase
|
||||
| TestingPhase
|
||||
deriving (Eq, Ord, Show)
|
||||
|
||||
isTrainingPhase :: MonadState Phase m => m Bool
|
||||
isTrainingPhase = (== TrainingPhase) <$> get
|
Loading…
Reference in New Issue
Block a user