Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removes dependency of resource_var.h in stateful_random_ops_cpu_gpu.h…merge to 2.7 #52191

Merged
merged 1 commit into from Sep 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion tensorflow/core/kernels/stateful_random_ops_cpu_gpu.h
Expand Up @@ -16,7 +16,6 @@ limitations under the License.
#ifndef TENSORFLOW_CORE_KERNELS_STATEFUL_RANDOM_OPS_CPU_GPU_H_
#define TENSORFLOW_CORE_KERNELS_STATEFUL_RANDOM_OPS_CPU_GPU_H_

#include "tensorflow/core/framework/resource_var.h"
#include "tensorflow/core/kernels/random_ops_util.h"
#include "tensorflow/core/kernels/stateful_random_ops.h"

Expand Down Expand Up @@ -76,9 +75,12 @@ struct RngSkip_Philox;

using CPUDevice = Eigen::ThreadPoolDevice;

class ScopedUnlockUnrefVar;

struct UpdateVariableAndFill_Philox_Arg {
int64_t output_size;
int64_t alg_tag_skip;
// TODO(b/201572028): Rename `not_used`.
ScopedUnlockUnrefVar* not_used;
Tensor* state_tensor;
};
Expand Down