updated
This commit is contained in:
parent
4fb8aee393
commit
8e1ef76d20
|
@ -140,10 +140,10 @@ func main() {
|
|||
|
||||
devicedData := item.Data.MustTo(vs.Device(), true)
|
||||
devicedLabel := item.Label.MustTo(vs.Device(), true)
|
||||
bimages := vision.Augmentation(devicedData, true, 0, 0)
|
||||
// bimages := vision.Augmentation(devicedData, true, 0, 0)
|
||||
|
||||
logits := net.ForwardT(bimages, true)
|
||||
// logits := net.ForwardT(devicedData, true)
|
||||
// logits := net.ForwardT(bimages, true)
|
||||
logits := net.ForwardT(devicedData, true)
|
||||
|
||||
// logits := net.ForwardT(item.Data.MustTo(vs.Device(), true), false)
|
||||
loss := logits.CrossEntropyForLogits(devicedLabel)
|
||||
|
@ -156,7 +156,7 @@ func main() {
|
|||
// item.Label.MustDrop()
|
||||
devicedData.MustDrop()
|
||||
devicedLabel.MustDrop()
|
||||
bimages.MustDrop()
|
||||
// bimages.MustDrop()
|
||||
loss.MustDrop()
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user