linux中slim登录管理器在登录界面下关机,重启等操作

原文地址:http://slim.berlios.de/manual.php


原文:

3. Special user names: reboot



You may shutdown, reboot, suspend, exit or even launch a terminal from the SLiM login screen. To do so, enter the appropriate value in the username field, and the root password in the password field:


To launch a terminal, enter console as the username (defaults to xterm which must be installed separately... edit /etc/slim.conf to change terminal preference)
For shutdown, enter halt as the username
For reboot, enter reboot as the username
For suspend, enter suspend as the username

To exit to the shell, enter exit as the username


翻译:

3.特殊的用户名:reboot


在slim登录界面,你可能会进行关机,重启,休眠,退出或者启动一个终端等操作,可以在username区域输入合适的值,并在password区域输入root密码来完成这些操作:


启动一个终端:在username框中输入console(默认会启动xterm,它必须已经被安装,可以编辑/etc/slim.conf文件来改变默认终端设置)

关机:输入halt作为用户名

重启:输入reboot作为用户名

休眠:输入suspend作为用户名

退出:输入exit作为用户名


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
TensorFlow的`slim`函数是一个用于构建和管理神经网络的高级API。它是TensorFlow的一个子模块,提供了一组方便的函数和类,可以简化模型的定义和训练过程。 `slim`函数主要用于定义神经网络的结构,包括卷积层、池化层、全连接层等。通过使用`slim`函数,你可以更加简洁地定义和组织复杂的神经网络模型。 下面是一个使用`slim`函数定义一个简单卷积神经网络的例子: ```python import tensorflow as tf import tensorflow.contrib.slim as slim def my_model(inputs): with slim.arg_scope([slim.conv2d, slim.fully_connected], activation_fn=tf.nn.relu): net = slim.conv2d(inputs, 32, [3, 3]) net = slim.max_pool2d(net, [2, 2]) net = slim.conv2d(net, 64, [3, 3]) net = slim.max_pool2d(net, [2, 2]) net = slim.flatten(net) net = slim.fully_connected(net, 128) net = slim.dropout(net, 0.5) outputs = slim.fully_connected(net, num_classes, activation_fn=None) return outputs # 构建输入张量 inputs = tf.placeholder(tf.float32, [None, 32, 32, 3]) # 构建模型 outputs = my_model(inputs) # ... 接下来可以进行训练、评估等操作 ``` 在这个例子,通过调用`slim.conv2d`、`slim.max_pool2d`、`slim.fully_connected`等函数,可以方便地构建卷积神经网络。`slim.arg_scope`函数可以设置一些默认参数,使得代码更加简洁。 总的来说,`slim`函数提供了一种更加高级、便捷的方式来定义和管理神经网络模型,在TensorFlow被广泛使用。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值