Code Monkey home page Code Monkey logo

batchnorm_prune's Introduction

Pruning ConvNet Channels by Enforcing Sparsity on BatchNorm Layers

Tensorflow codes for "Rethinking the Smaller-Norm-Less-Informative Assumption in Channel Pruning of Convolution Layers"

batchnorm_prune's People

Contributors

bobye avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

batchnorm_prune's Issues

Python3.6 代码运行错误

训练过程中,当训练完毕

  1. mon_sess.should_stop()=True时报错

    training and sparisifying

    while not mon_sess.should_stop():
    mon_sess.run(train_op)
    2.错误定位在cifar10_train.py中112号处会发生错cifprune_op = dt.prune(tf.get_collection('is prune'))
    3.错误描述
    2019-10-11 17:37:10.286919: W tensorflow/core/framework/op_kernel.cc:1490] Unknown: KeyError: b'g2b2c0/BatchNorm/gamma'
    Traceback (most recent call last):

File "/home/ubuntu/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/script_ops.py", line 209, in call
ret = func(*args)

File "/home/ubuntu/Downloads/batchnorm_prune-master/src/python/cifar10/batchnorm_prune/Transformer.py", line 111, in
collection.append(tf.py_func(lambda a, b: self.flow.get_channel_pruned(a, b),

File "/home/ubuntu/Downloads/batchnorm_prune-master/src/python/cifar10/batchnorm_prune/Graph.py", line 155, in get_channel_pruned
print(self.edgename_map[varname])

KeyError: b'g2b2c0/BatchNorm/gamma'

本人环境:
python3.6
tensorflow1.14
请作者看看,谢谢

enable the modularity of core API

  1. Need to remove dependency on explicitly computing the pruning weights. (Current is hard-coding)

  2. Need to properly handle input.op.name in compressed mode. (Current is hard-coding)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.