我正在尝试将 WebLogic 安装到我的 CentOS 虚拟机。
我安装了openjdk-1.8.0 version.
当我尝试安装fmw_12.2.1.1.0_wls_quick.jar哪个是 linux 的快速安装程序时,代码java -jar fmw_12.2.1.1.0_wls_quick.jar出现错误。
OpenJDK JVM 不支持此平台。
我怎么解决这个问题?
我想使用以下代码计算预测:
import tensorflow as tf
x = tf.placeholder("float", [None, n_input])
y = tf.placeholder("float", [None, n_classes])
pred = multilayer_perceptron(x, weights, biases)
cost = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(pred, y))
optimizer = tf.train.AdamOptimizer(learning_rate=learning_rate).minimize(cost)
# Initializing the variables
##trn.txt start
##tst.txt end
with tf.Session() as sess:
sess.run(init)
# Training cycle
for epoch in range(training_epochs):
avg_cost = 0.
total_batch = int(num_lines_trn/batch_size)
# Loop over all batches
for i in range(total_batch):
batch_x, batch_y = bat_x[i*batch_size:(i+1)*batch_size],bat_y[i*batch_size:(i+1)*batch_size]#mnist.train.next_batch(batch_size)
# Run optimization op (backprop) and cost op (to get loss value)
_, c …Run Code Online (Sandbox Code Playgroud)