Remove unused variables.
PiperOrigin-RevId: 251882502
This commit is contained in:
parent
1a3b22f289
commit
80b76e2396
@ -195,9 +195,6 @@ TEST_F(DropoutUtilsTest, DropoutSeedTest) {
|
|||||||
std::vector<int32> dropped_trees_2;
|
std::vector<int32> dropped_trees_2;
|
||||||
std::vector<float> original_weights_2;
|
std::vector<float> original_weights_2;
|
||||||
|
|
||||||
DecisionTreeEnsembleConfig new_ensemble_1;
|
|
||||||
DecisionTreeEnsembleConfig new_ensemble_2;
|
|
||||||
|
|
||||||
TF_EXPECT_OK(DropoutUtils::DropOutTrees(
|
TF_EXPECT_OK(DropoutUtils::DropOutTrees(
|
||||||
kSeed + 1, config, trees_not_to_drop, weights_, &dropped_trees_1,
|
kSeed + 1, config, trees_not_to_drop, weights_, &dropped_trees_1,
|
||||||
&original_weights_1));
|
&original_weights_1));
|
||||||
@ -219,8 +216,6 @@ TEST_F(DropoutUtilsTest, DropoutSeedTest) {
|
|||||||
std::vector<int32> dropped_trees_2;
|
std::vector<int32> dropped_trees_2;
|
||||||
std::vector<float> original_weights_2;
|
std::vector<float> original_weights_2;
|
||||||
|
|
||||||
DecisionTreeEnsembleConfig new_ensemble_1;
|
|
||||||
DecisionTreeEnsembleConfig new_ensemble_2;
|
|
||||||
|
|
||||||
TF_EXPECT_OK(DropoutUtils::DropOutTrees(kSeed, config, trees_not_to_drop,
|
TF_EXPECT_OK(DropoutUtils::DropOutTrees(kSeed, config, trees_not_to_drop,
|
||||||
weights_, &dropped_trees_1,
|
weights_, &dropped_trees_1,
|
||||||
@ -264,7 +259,6 @@ TEST_F(DropoutUtilsTest, InvalidConfigTest) {
|
|||||||
config.set_dropout_probability(0.5);
|
config.set_dropout_probability(0.5);
|
||||||
config.set_probability_of_skipping_dropout(-10);
|
config.set_probability_of_skipping_dropout(-10);
|
||||||
|
|
||||||
DecisionTreeEnsembleConfig new_ensemble;
|
|
||||||
EXPECT_FALSE(DropoutUtils::DropOutTrees(kSeed, config, trees_not_to_drop,
|
EXPECT_FALSE(DropoutUtils::DropOutTrees(kSeed, config, trees_not_to_drop,
|
||||||
weights_, &dropped_trees,
|
weights_, &dropped_trees,
|
||||||
&original_weights)
|
&original_weights)
|
||||||
@ -276,7 +270,6 @@ TEST_F(DropoutUtilsTest, InvalidConfigTest) {
|
|||||||
config.set_dropout_probability(0.5);
|
config.set_dropout_probability(0.5);
|
||||||
config.set_probability_of_skipping_dropout(1.2);
|
config.set_probability_of_skipping_dropout(1.2);
|
||||||
|
|
||||||
DecisionTreeEnsembleConfig new_ensemble;
|
|
||||||
EXPECT_FALSE(DropoutUtils::DropOutTrees(kSeed, config, trees_not_to_drop,
|
EXPECT_FALSE(DropoutUtils::DropOutTrees(kSeed, config, trees_not_to_drop,
|
||||||
weights_, &dropped_trees,
|
weights_, &dropped_trees,
|
||||||
&original_weights)
|
&original_weights)
|
||||||
|
@ -715,7 +715,6 @@ void LaunchFusedConv2DBiasActivationOp<GPUDevice, T, BiasType, ScaleType>::
|
|||||||
&extra_left_padding, &extra_right_padding);
|
&extra_left_padding, &extra_right_padding);
|
||||||
if (extra_top_padding != 0 || extra_bottom_padding != 0 ||
|
if (extra_top_padding != 0 || extra_bottom_padding != 0 ||
|
||||||
extra_left_padding != 0 || extra_right_padding != 0) {
|
extra_left_padding != 0 || extra_right_padding != 0) {
|
||||||
Tensor transformed_input;
|
|
||||||
const int new_conv_input_rows =
|
const int new_conv_input_rows =
|
||||||
conv_input_rows + extra_top_padding + extra_bottom_padding;
|
conv_input_rows + extra_top_padding + extra_bottom_padding;
|
||||||
const int new_conv_input_cols =
|
const int new_conv_input_cols =
|
||||||
|
@ -1622,8 +1622,6 @@ void RdmaTensorRequest::RecvTensorContent() {
|
|||||||
<< ": Received tensor content #" << index_ << ": " << key_
|
<< ": Received tensor content #" << index_ << ": " << key_
|
||||||
<< " (Size: 0x" << std::hex << message_size << ")";
|
<< " (Size: 0x" << std::hex << message_size << ")";
|
||||||
|
|
||||||
Tensor val;
|
|
||||||
|
|
||||||
#if GOOGLE_CUDA
|
#if GOOGLE_CUDA
|
||||||
if (proxy_tensor_ != nullptr) {
|
if (proxy_tensor_ != nullptr) {
|
||||||
CountCopies(key_, (void*)DMAHelper::base(proxy_tensor_),
|
CountCopies(key_, (void*)DMAHelper::base(proxy_tensor_),
|
||||||
|
Loading…
Reference in New Issue
Block a user