小编kop*_*nna的帖子

Tensorflow相同的训练准确性继续

我在Tensorflow上坚持使用CNN模型.我的代码如下.

图书馆

# -*- coding: utf-8 -*-
import tensorflow as tf
import time
import json
import numpy as np
import matplotlib.pyplot as plt
import random
import multiprocessing as mp
import glob
import os
Run Code Online (Sandbox Code Playgroud)

模型

def inference(images_placeholder, keep_prob):

    def weight_variable(shape):
        initial = tf.truncated_normal(shape, stddev=0.1)
        return tf.Variable(initial)

    def bias_variable(shape):
        initial = tf.constant(0.1, shape=shape)
        return tf.Variable(initial)

    # convolution
    def conv2d(x, W):
        return tf.nn.conv2d(x, W, strides=[1, 1, 1, 1], padding='SAME')

    # X2 pooling
    def max_pool_2x128(x):
        return tf.nn.max_pool(x, ksize=[1, 2, 1, 1],strides=[1, 2, 1, 1], …
Run Code Online (Sandbox Code Playgroud)

python tensorflow tensorboard

8
推荐指数
1
解决办法
3238
查看次数

标签 统计

python ×1

tensorboard ×1

tensorflow ×1