diff --git a/linux/include/absl b/linux/include/absl deleted file mode 120000 index fba19a251..000000000 --- a/linux/include/absl +++ /dev/null @@ -1 +0,0 @@ -abseil-cpp/absl/ \ No newline at end of file diff --git a/linux/include/tensorflow/cc/ops/array_ops.h b/linux/include/tensorflow/cc/ops/array_ops.h deleted file mode 100755 index af1f749d2..000000000 --- a/linux/include/tensorflow/cc/ops/array_ops.h +++ /dev/null @@ -1,5447 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_ARRAY_OPS_H_ -#define TENSORFLOW_CC_OPS_ARRAY_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup array_ops Array Ops -/// @{ - -/// BatchToSpace for 4-D tensors of type T. -/// -/// This is a legacy version of the more general BatchToSpaceND. -/// -/// Rearranges (permutes) data from batch into blocks of spatial data, followed by -/// cropping. This is the reverse transformation of SpaceToBatch. More specifically, -/// this op outputs a copy of the input tensor where values from the `batch` -/// dimension are moved in spatial blocks to the `height` and `width` dimensions, -/// followed by cropping along the `height` and `width` dimensions. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 4-D tensor with shape -/// `[batch*block_size*block_size, height_pad/block_size, width_pad/block_size, -/// depth]`. Note that the batch size of the input tensor must be divisible by -/// `block_size * block_size`. -/// * crops: 2-D tensor of non-negative integers with shape `[2, 2]`. It specifies -/// how many elements to crop from the intermediate result across the spatial -/// dimensions as follows: -/// -/// crops = [[crop_top, crop_bottom], [crop_left, crop_right]] -/// -/// Returns: -/// * `Output`: 4-D with shape `[batch, height, width, depth]`, where: -/// -/// height = height_pad - crop_top - crop_bottom -/// width = width_pad - crop_left - crop_right -/// -/// The attr `block_size` must be greater than one. It indicates the block size. -/// -/// Some examples: -/// -/// (1) For the following input of shape `[4, 1, 1, 1]` and block_size of 2: -/// -/// ``` -/// [[[[1]]], [[[2]]], [[[3]]], [[[4]]]] -/// ``` -/// -/// The output tensor has shape `[1, 2, 2, 1]` and value: -/// -/// ``` -/// x = [[[[1], [2]], [[3], [4]]]] -/// ``` -/// -/// (2) For the following input of shape `[4, 1, 1, 3]` and block_size of 2: -/// -/// ``` -/// [[[1, 2, 3]], [[4, 5, 6]], [[7, 8, 9]], [[10, 11, 12]]] -/// ``` -/// -/// The output tensor has shape `[1, 2, 2, 3]` and value: -/// -/// ``` -/// x = [[[[1, 2, 3], [4, 5, 6]], -/// [[7, 8, 9], [10, 11, 12]]]] -/// ``` -/// -/// (3) For the following input of shape `[4, 2, 2, 1]` and block_size of 2: -/// -/// ``` -/// x = [[[[1], [3]], [[9], [11]]], -/// [[[2], [4]], [[10], [12]]], -/// [[[5], [7]], [[13], [15]]], -/// [[[6], [8]], [[14], [16]]]] -/// ``` -/// -/// The output tensor has shape `[1, 4, 4, 1]` and value: -/// -/// ``` -/// x = [[[1], [2], [3], [4]], -/// [[5], [6], [7], [8]], -/// [[9], [10], [11], [12]], -/// [[13], [14], [15], [16]]] -/// ``` -/// -/// (4) For the following input of shape `[8, 1, 2, 1]` and block_size of 2: -/// -/// ``` -/// x = [[[[1], [3]]], [[[9], [11]]], [[[2], [4]]], [[[10], [12]]], -/// [[[5], [7]]], [[[13], [15]]], [[[6], [8]]], [[[14], [16]]]] -/// ``` -/// -/// The output tensor has shape `[2, 2, 4, 1]` and value: -/// -/// ``` -/// x = [[[[1], [3]], [[5], [7]]], -/// [[[2], [4]], [[10], [12]]], -/// [[[5], [7]], [[13], [15]]], -/// [[[6], [8]], [[14], [16]]]] -/// ``` -class BatchToSpace { - public: - BatchToSpace(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input crops, int64 block_size); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// BatchToSpace for N-D tensors of type T. -/// -/// This operation reshapes the "batch" dimension 0 into `M + 1` dimensions of shape -/// `block_shape + [batch]`, interleaves these blocks back into the grid defined by -/// the spatial dimensions `[1, ..., M]`, to obtain a result with the same rank as -/// the input. The spatial dimensions of this intermediate result are then -/// optionally cropped according to `crops` to produce the output. This is the -/// reverse of SpaceToBatch. See below for a precise description. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: N-D with shape `input_shape = [batch] + spatial_shape + remaining_shape`, -/// where spatial_shape has M dimensions. -/// * block_shape: 1-D with shape `[M]`, all values must be >= 1. -/// * crops: 2-D with shape `[M, 2]`, all values must be >= 0. -/// `crops[i] = [crop_start, crop_end]` specifies the amount to crop from input -/// dimension `i + 1`, which corresponds to spatial dimension `i`. It is -/// required that -/// `crop_start[i] + crop_end[i] <= block_shape[i] * input_shape[i + 1]`. -/// -/// This operation is equivalent to the following steps: -/// -/// 1. Reshape `input` to `reshaped` of shape: -/// [block_shape[0], ..., block_shape[M-1], -/// batch / prod(block_shape), -/// input_shape[1], ..., input_shape[N-1]] -/// -/// 2. Permute dimensions of `reshaped` to produce `permuted` of shape -/// [batch / prod(block_shape), -/// -/// input_shape[1], block_shape[0], -/// ..., -/// input_shape[M], block_shape[M-1], -/// -/// input_shape[M+1], ..., input_shape[N-1]] -/// -/// 3. Reshape `permuted` to produce `reshaped_permuted` of shape -/// [batch / prod(block_shape), -/// -/// input_shape[1] * block_shape[0], -/// ..., -/// input_shape[M] * block_shape[M-1], -/// -/// input_shape[M+1], -/// ..., -/// input_shape[N-1]] -/// -/// 4. Crop the start and end of dimensions `[1, ..., M]` of -/// `reshaped_permuted` according to `crops` to produce the output of shape: -/// [batch / prod(block_shape), -/// -/// input_shape[1] * block_shape[0] - crops[0,0] - crops[0,1], -/// ..., -/// input_shape[M] * block_shape[M-1] - crops[M-1,0] - crops[M-1,1], -/// -/// input_shape[M+1], ..., input_shape[N-1]] -/// -/// Some examples: -/// -/// (1) For the following input of shape `[4, 1, 1, 1]`, `block_shape = [2, 2]`, and -/// `crops = [[0, 0], [0, 0]]`: -/// -/// ``` -/// [[[[1]]], [[[2]]], [[[3]]], [[[4]]]] -/// ``` -/// -/// The output tensor has shape `[1, 2, 2, 1]` and value: -/// -/// ``` -/// x = [[[[1], [2]], [[3], [4]]]] -/// ``` -/// -/// (2) For the following input of shape `[4, 1, 1, 3]`, `block_shape = [2, 2]`, and -/// `crops = [[0, 0], [0, 0]]`: -/// -/// ``` -/// [[[1, 2, 3]], [[4, 5, 6]], [[7, 8, 9]], [[10, 11, 12]]] -/// ``` -/// -/// The output tensor has shape `[1, 2, 2, 3]` and value: -/// -/// ``` -/// x = [[[[1, 2, 3], [4, 5, 6]], -/// [[7, 8, 9], [10, 11, 12]]]] -/// ``` -/// -/// (3) For the following input of shape `[4, 2, 2, 1]`, `block_shape = [2, 2]`, and -/// `crops = [[0, 0], [0, 0]]`: -/// -/// ``` -/// x = [[[[1], [3]], [[9], [11]]], -/// [[[2], [4]], [[10], [12]]], -/// [[[5], [7]], [[13], [15]]], -/// [[[6], [8]], [[14], [16]]]] -/// ``` -/// -/// The output tensor has shape `[1, 4, 4, 1]` and value: -/// -/// ``` -/// x = [[[1], [2], [3], [4]], -/// [[5], [6], [7], [8]], -/// [[9], [10], [11], [12]], -/// [[13], [14], [15], [16]]] -/// ``` -/// -/// (4) For the following input of shape `[8, 1, 3, 1]`, `block_shape = [2, 2]`, and -/// `crops = [[0, 0], [2, 0]]`: -/// -/// ``` -/// x = [[[[0], [1], [3]]], [[[0], [9], [11]]], -/// [[[0], [2], [4]]], [[[0], [10], [12]]], -/// [[[0], [5], [7]]], [[[0], [13], [15]]], -/// [[[0], [6], [8]]], [[[0], [14], [16]]]] -/// ``` -/// -/// The output tensor has shape `[2, 2, 4, 1]` and value: -/// -/// ``` -/// x = [[[[1], [2], [3], [4]], -/// [[5], [6], [7], [8]]], -/// [[[9], [10], [11], [12]], -/// [[13], [14], [15], [16]]]] -/// ``` -/// -/// Returns: -/// * `Output`: The output tensor. -class BatchToSpaceND { - public: - BatchToSpaceND(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input block_shape, ::tensorflow::Input crops); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Bitcasts a tensor from one type to another without copying data. -/// -/// Given a tensor `input`, this operation returns a tensor that has the same buffer -/// data as `input` with datatype `type`. -/// -/// If the input datatype `T` is larger than the output datatype `type` then the -/// shape changes from [...] to [..., sizeof(`T`)/sizeof(`type`)]. -/// -/// If `T` is smaller than `type`, the operator requires that the rightmost -/// dimension be equal to sizeof(`type`)/sizeof(`T`). The shape then goes from -/// [..., sizeof(`type`)/sizeof(`T`)] to [...]. -/// -/// *NOTE*: Bitcast is implemented as a low-level cast, so machines with different -/// endian orderings will give different results. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class Bitcast { - public: - Bitcast(const ::tensorflow::Scope& scope, ::tensorflow::Input input, DataType - type); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Return the shape of s0 op s1 with broadcast. -/// -/// Given `s0` and `s1`, tensors that represent shapes, compute `r0`, the -/// broadcasted shape. `s0`, `s1` and `r0` are all integer vectors. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The r0 tensor. -class BroadcastDynamicShape { - public: - BroadcastDynamicShape(const ::tensorflow::Scope& scope, ::tensorflow::Input s0, - ::tensorflow::Input s1); - operator ::tensorflow::Output() const { return r0; } - operator ::tensorflow::Input() const { return r0; } - ::tensorflow::Node* node() const { return r0.node(); } - - Operation operation; - ::tensorflow::Output r0; -}; - -/// Broadcast an array for a compatible shape. -/// -/// Broadcasting is the process of making arrays to have compatible shapes -/// for arithmetic operations. Two shapes are compatible if for each -/// dimension pair they are either equal or one of them is one. When trying -/// to broadcast a Tensor to a shape, it starts with the trailing dimensions, -/// and works its way forward. -/// -/// For example, -/// ``` -/// >>> x = tf.constant([1, 2, 3]) -/// >>> y = tf.broadcast_to(x, [3, 3]) -/// >>> sess.run(y) -/// array([[1, 2, 3], -/// [1, 2, 3], -/// [1, 2, 3]], dtype=int32) -/// ``` -/// In the above example, the input Tensor with the shape of `[1, 3]` -/// is broadcasted to output Tensor with shape of `[3, 3]`. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: A Tensor to broadcast. -/// * shape: An 1-D `int` Tensor. The shape of the desired output. -/// -/// Returns: -/// * `Output`: A Tensor. -class BroadcastTo { - public: - BroadcastTo(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input shape); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Checks a tensor for NaN and Inf values. -/// -/// When run, reports an `InvalidArgument` error if `tensor` has any values -/// that are not a number (NaN) or infinity (Inf). Otherwise, passes `tensor` as-is. -/// -/// Arguments: -/// * scope: A Scope object -/// * message: Prefix of the error message. -/// -/// Returns: -/// * `Output`: The output tensor. -class CheckNumerics { - public: - CheckNumerics(const ::tensorflow::Scope& scope, ::tensorflow::Input tensor, - StringPiece message); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Concatenates tensors along one dimension. -/// -/// Arguments: -/// * scope: A Scope object -/// * values: List of `N` Tensors to concatenate. Their ranks and types must match, -/// and their sizes must match in all dimensions except `concat_dim`. -/// * axis: 0-D. The dimension along which to concatenate. Must be in the -/// range [-rank(values), rank(values)). -/// -/// Returns: -/// * `Output`: A `Tensor` with the concatenation of values stacked along the -/// `concat_dim` dimension. This tensor's shape matches that of `values` except -/// in `concat_dim` where it has the sum of the sizes. -class Concat { - public: - Concat(const ::tensorflow::Scope& scope, ::tensorflow::InputList values, - ::tensorflow::Input axis); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Shuffle dimensions of x according to a permutation and conjugate the result. -/// -/// The output `y` has the same rank as `x`. The shapes of `x` and `y` satisfy: -/// `y.shape[i] == x.shape[perm[i]] for i in [0, 1, ..., rank(x) - 1]` -/// `y[i,j,k,...,s,t,u] == conj(x[perm[i], perm[j], perm[k],...,perm[s], perm[t], perm[u]])` -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class ConjugateTranspose { - public: - ConjugateTranspose(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input perm); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Identity op for gradient debugging. -/// -/// This op is hidden from public in Python. It is used by TensorFlow Debugger to -/// register gradient tensors for gradient debugging. -/// This op operates on non-reference-type tensors. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class DebugGradientIdentity { - public: - DebugGradientIdentity(const ::tensorflow::Scope& scope, ::tensorflow::Input - input); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Identity op for gradient debugging. -/// -/// This op is hidden from public in Python. It is used by TensorFlow Debugger to -/// register gradient tensors for gradient debugging. -/// This op operates on reference-type tensors. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class DebugGradientRefIdentity { - public: - DebugGradientRefIdentity(const ::tensorflow::Scope& scope, ::tensorflow::Input - input); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Makes a copy of `x`. -/// -/// Arguments: -/// * scope: A Scope object -/// * x: The source tensor of type `T`. -/// -/// Returns: -/// * `Output`: y: A `Tensor` of type `T`. A copy of `x`. Guaranteed that `y` -/// is not an alias of `x`. -class DeepCopy { - public: - DeepCopy(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// DepthToSpace for tensors of type T. -/// -/// Rearranges data from depth into blocks of spatial data. -/// This is the reverse transformation of SpaceToDepth. More specifically, -/// this op outputs a copy of the input tensor where values from the `depth` -/// dimension are moved in spatial blocks to the `height` and `width` dimensions. -/// The attr `block_size` indicates the input block size and how the data is moved. -/// -/// * Chunks of data of size `block_size * block_size` from depth are rearranged -/// into non-overlapping blocks of size `block_size x block_size` -/// * The width the output tensor is `input_depth * block_size`, whereas the -/// height is `input_height * block_size`. -/// * The Y, X coordinates within each block of the output image are determined -/// by the high order component of the input channel index. -/// * The depth of the input tensor must be divisible by -/// `block_size * block_size`. -/// -/// The `data_format` attr specifies the layout of the input and output tensors -/// with the following options: -/// "NHWC": `[ batch, height, width, channels ]` -/// "NCHW": `[ batch, channels, height, width ]` -/// "NCHW_VECT_C": -/// `qint8 [ batch, channels / 4, height, width, 4 ]` -/// -/// It is useful to consider the operation as transforming a 6-D Tensor. -/// e.g. for data_format = NHWC, -/// Each element in the input tensor can be specified via 6 coordinates, -/// ordered by decreasing memory layout significance as: -/// n,iY,iX,bY,bX,oC (where n=batch index, iX, iY means X or Y coordinates -/// within the input image, bX, bY means coordinates -/// within the output block, oC means output channels). -/// The output would be the input transposed to the following layout: -/// n,iY,bY,iX,bX,oC -/// -/// This operation is useful for resizing the activations between convolutions -/// (but keeping all data), e.g. instead of pooling. It is also useful for training -/// purely convolutional models. -/// -/// For example, given an input of shape `[1, 1, 1, 4]`, data_format = "NHWC" and -/// block_size = 2: -/// -/// ``` -/// x = [[[[1, 2, 3, 4]]]] -/// -/// ``` -/// -/// This operation will output a tensor of shape `[1, 2, 2, 1]`: -/// -/// ``` -/// [[[[1], [2]], -/// [[3], [4]]]] -/// ``` -/// -/// Here, the input has a batch of 1 and each batch element has shape `[1, 1, 4]`, -/// the corresponding output will have 2x2 elements and will have a depth of -/// 1 channel (1 = `4 / (block_size * block_size)`). -/// The output element shape is `[2, 2, 1]`. -/// -/// For an input tensor with larger depth, here of shape `[1, 1, 1, 12]`, e.g. -/// -/// ``` -/// x = [[[[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]]]] -/// ``` -/// -/// This operation, for block size of 2, will return the following tensor of shape -/// `[1, 2, 2, 3]` -/// -/// ``` -/// [[[[1, 2, 3], [4, 5, 6]], -/// [[7, 8, 9], [10, 11, 12]]]] -/// -/// ``` -/// -/// Similarly, for the following input of shape `[1 2 2 4]`, and a block size of 2: -/// -/// ``` -/// x = [[[[1, 2, 3, 4], -/// [5, 6, 7, 8]], -/// [[9, 10, 11, 12], -/// [13, 14, 15, 16]]]] -/// ``` -/// -/// the operator will return the following tensor of shape `[1 4 4 1]`: -/// -/// ``` -/// x = [[[ [1], [2], [5], [6]], -/// [ [3], [4], [7], [8]], -/// [ [9], [10], [13], [14]], -/// [ [11], [12], [15], [16]]]] -/// -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * block_size: The size of the spatial block, same as in Space2Depth. -/// -/// Returns: -/// * `Output`: The output tensor. -class DepthToSpace { - public: - /// Optional attribute setters for DepthToSpace - struct Attrs { - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - StringPiece data_format_ = "NHWC"; - }; - DepthToSpace(const ::tensorflow::Scope& scope, ::tensorflow::Input input, int64 - block_size); - DepthToSpace(const ::tensorflow::Scope& scope, ::tensorflow::Input input, int64 - block_size, const DepthToSpace::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Dequantize the 'input' tensor into a float Tensor. -/// -/// [min_range, max_range] are scalar floats that specify the range for -/// the 'input' data. The 'mode' attribute controls exactly which calculations are -/// used to convert the float values to their quantized equivalents. -/// -/// In 'MIN_COMBINED' mode, each value of the tensor will undergo the following: -/// -/// ``` -/// if T == qint8, in[i] += (range(T) + 1)/ 2.0 -/// out[i] = min_range + (in[i]* (max_range - min_range) / range(T)) -/// ``` -/// here `range(T) = numeric_limits::max() - numeric_limits::min()` -/// -/// *MIN_COMBINED Mode Example* -/// -/// If the input comes from a QuantizedRelu6, the output type is -/// quint8 (range of 0-255) but the possible range of QuantizedRelu6 is -/// 0-6. The min_range and max_range values are therefore 0.0 and 6.0. -/// Dequantize on quint8 will take each value, cast to float, and multiply -/// by 6 / 255. -/// Note that if quantizedtype is qint8, the operation will additionally add -/// each value by 128 prior to casting. -/// -/// If the mode is 'MIN_FIRST', then this approach is used: -/// -/// ```c++ -/// num_discrete_values = 1 << (# of bits in T) -/// range_adjust = num_discrete_values / (num_discrete_values - 1) -/// range = (range_max - range_min) * range_adjust -/// range_scale = range / num_discrete_values -/// const double offset_input = static_cast(input) - lowest_quantized; -/// result = range_min + ((input - numeric_limits::min()) * range_scale) -/// ``` -/// -/// *SCALED mode Example* -/// -/// `SCALED` mode matches the quantization approach used in -/// `QuantizeAndDequantize{V2|V3}`. -/// -/// If the mode is `SCALED`, we do not use the full range of the output type, -/// choosing to elide the lowest possible value for symmetry (e.g., output range is -/// -127 to 127, not -128 to 127 for signed 8 bit quantization), so that 0.0 maps to -/// 0. -/// -/// We first find the range of values in our tensor. The -/// range we use is always centered on 0, so we find m such that -/// ```c++ -/// m = max(abs(input_min), abs(input_max)) -/// ``` -/// -/// Our input tensor range is then `[-m, m]`. -/// -/// Next, we choose our fixed-point quantization buckets, `[min_fixed, max_fixed]`. -/// If T is signed, this is -/// ``` -/// num_bits = sizeof(T) * 8 -/// [min_fixed, max_fixed] = -/// [-(1 << (num_bits - 1) - 1), (1 << (num_bits - 1)) - 1] -/// ``` -/// -/// Otherwise, if T is unsigned, the fixed-point range is -/// ``` -/// [min_fixed, max_fixed] = [0, (1 << num_bits) - 1] -/// ``` -/// -/// From this we compute our scaling factor, s: -/// ```c++ -/// s = (2 * m) / (max_fixed - min_fixed) -/// ``` -/// -/// Now we can dequantize the elements of our tensor: -/// ```c++ -/// result = input * s -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * min_range: The minimum scalar value possibly produced for the input. -/// * max_range: The maximum scalar value possibly produced for the input. -/// -/// Returns: -/// * `Output`: The output tensor. -class Dequantize { - public: - /// Optional attribute setters for Dequantize - struct Attrs { - /// Defaults to "MIN_COMBINED" - TF_MUST_USE_RESULT Attrs Mode(StringPiece x) { - Attrs ret = *this; - ret.mode_ = x; - return ret; - } - - StringPiece mode_ = "MIN_COMBINED"; - }; - Dequantize(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input min_range, ::tensorflow::Input max_range); - Dequantize(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input min_range, ::tensorflow::Input max_range, const - Dequantize::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Mode(StringPiece x) { - return Attrs().Mode(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Returns a diagonal tensor with a given diagonal values. -/// -/// Given a `diagonal`, this operation returns a tensor with the `diagonal` and -/// everything else padded with zeros. The diagonal is computed as follows: -/// -/// Assume `diagonal` has dimensions [D1,..., Dk], then the output is a tensor of -/// rank 2k with dimensions [D1,..., Dk, D1,..., Dk] where: -/// -/// `output[i1,..., ik, i1,..., ik] = diagonal[i1, ..., ik]` and 0 everywhere else. -/// -/// For example: -/// -/// ``` -/// # 'diagonal' is [1, 2, 3, 4] -/// tf.diag(diagonal) ==> [[1, 0, 0, 0] -/// [0, 2, 0, 0] -/// [0, 0, 3, 0] -/// [0, 0, 0, 4]] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * diagonal: Rank k tensor where k is at most 1. -/// -/// Returns: -/// * `Output`: The output tensor. -class Diag { - public: - Diag(const ::tensorflow::Scope& scope, ::tensorflow::Input diagonal); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Returns the diagonal part of the tensor. -/// -/// This operation returns a tensor with the `diagonal` part -/// of the `input`. The `diagonal` part is computed as follows: -/// -/// Assume `input` has dimensions `[D1,..., Dk, D1,..., Dk]`, then the output is a -/// tensor of rank `k` with dimensions `[D1,..., Dk]` where: -/// -/// `diagonal[i1,..., ik] = input[i1, ..., ik, i1,..., ik]`. -/// -/// For example: -/// -/// ``` -/// # 'input' is [[1, 0, 0, 0] -/// [0, 2, 0, 0] -/// [0, 0, 3, 0] -/// [0, 0, 0, 4]] -/// -/// tf.diag_part(input) ==> [1, 2, 3, 4] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Rank k tensor where k is even and not zero. -/// -/// Returns: -/// * `Output`: The extracted diagonal. -class DiagPart { - public: - DiagPart(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - operator ::tensorflow::Output() const { return diagonal; } - operator ::tensorflow::Input() const { return diagonal; } - ::tensorflow::Node* node() const { return diagonal.node(); } - - Operation operation; - ::tensorflow::Output diagonal; -}; - -/// Computes the (possibly normalized) Levenshtein Edit Distance. -/// -/// The inputs are variable-length sequences provided by SparseTensors -/// (hypothesis_indices, hypothesis_values, hypothesis_shape) -/// and -/// (truth_indices, truth_values, truth_shape). -/// -/// The inputs are: -/// -/// Arguments: -/// * scope: A Scope object -/// * hypothesis_indices: The indices of the hypothesis list SparseTensor. -/// This is an N x R int64 matrix. -/// * hypothesis_values: The values of the hypothesis list SparseTensor. -/// This is an N-length vector. -/// * hypothesis_shape: The shape of the hypothesis list SparseTensor. -/// This is an R-length vector. -/// * truth_indices: The indices of the truth list SparseTensor. -/// This is an M x R int64 matrix. -/// * truth_values: The values of the truth list SparseTensor. -/// This is an M-length vector. -/// * truth_shape: truth indices, vector. -/// -/// Optional attributes (see `Attrs`): -/// * normalize: boolean (if true, edit distances are normalized by length of truth). -/// -/// The output is: -/// -/// Returns: -/// * `Output`: A dense float tensor with rank R - 1. -/// -/// For the example input: -/// -/// // hypothesis represents a 2x1 matrix with variable-length values: -/// // (0,0) = ["a"] -/// // (1,0) = ["b"] -/// hypothesis_indices = [[0, 0, 0], -/// [1, 0, 0]] -/// hypothesis_values = ["a", "b"] -/// hypothesis_shape = [2, 1, 1] -/// -/// // truth represents a 2x2 matrix with variable-length values: -/// // (0,0) = [] -/// // (0,1) = ["a"] -/// // (1,0) = ["b", "c"] -/// // (1,1) = ["a"] -/// truth_indices = [[0, 1, 0], -/// [1, 0, 0], -/// [1, 0, 1], -/// [1, 1, 0]] -/// truth_values = ["a", "b", "c", "a"] -/// truth_shape = [2, 2, 2] -/// normalize = true -/// -/// The output will be: -/// -/// // output is a 2x2 matrix with edit distances normalized by truth lengths. -/// output = [[inf, 1.0], // (0,0): no truth, (0,1): no hypothesis -/// [0.5, 1.0]] // (1,0): addition, (1,1): no hypothesis -class EditDistance { - public: - /// Optional attribute setters for EditDistance - struct Attrs { - /// boolean (if true, edit distances are normalized by length of truth). - /// - /// The output is: - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs Normalize(bool x) { - Attrs ret = *this; - ret.normalize_ = x; - return ret; - } - - bool normalize_ = true; - }; - EditDistance(const ::tensorflow::Scope& scope, ::tensorflow::Input - hypothesis_indices, ::tensorflow::Input hypothesis_values, - ::tensorflow::Input hypothesis_shape, ::tensorflow::Input - truth_indices, ::tensorflow::Input truth_values, - ::tensorflow::Input truth_shape); - EditDistance(const ::tensorflow::Scope& scope, ::tensorflow::Input - hypothesis_indices, ::tensorflow::Input hypothesis_values, - ::tensorflow::Input hypothesis_shape, ::tensorflow::Input - truth_indices, ::tensorflow::Input truth_values, - ::tensorflow::Input truth_shape, const EditDistance::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Normalize(bool x) { - return Attrs().Normalize(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Creates a tensor with the given shape. -/// -/// This operation creates a tensor of `shape` and `dtype`. -/// -/// Arguments: -/// * scope: A Scope object -/// * shape: 1-D. Represents the shape of the output tensor. -/// -/// Optional attributes (see `Attrs`): -/// * init: If True, initialize the returned tensor with the default value of dtype. Otherwise, the implementation is free not to initializethe tensor's content. -/// -/// Returns: -/// * `Output`: A `Tensor` of type `T`. -class Empty { - public: - /// Optional attribute setters for Empty - struct Attrs { - /// If True, initialize the returned tensor with the default value of dtype. Otherwise, the implementation is free not to initializethe tensor's content. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs Init(bool x) { - Attrs ret = *this; - ret.init_ = x; - return ret; - } - - bool init_ = false; - }; - Empty(const ::tensorflow::Scope& scope, ::tensorflow::Input shape, DataType - dtype); - Empty(const ::tensorflow::Scope& scope, ::tensorflow::Input shape, DataType - dtype, const Empty::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Init(bool x) { - return Attrs().Init(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Ensures that the tensor's shape matches the expected shape. -/// -/// Raises an error if the input tensor's shape does not match the specified shape. -/// Returns the input tensor otherwise. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: A tensor, whose shape is to be validated. -/// * shape: The expected (possibly partially specified) shape of the input tensor. -/// -/// Returns: -/// * `Output`: A tensor with the same shape and contents as the input tensor or value. -class EnsureShape { - public: - EnsureShape(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - PartialTensorShape shape); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Inserts a dimension of 1 into a tensor's shape. -/// -/// Given a tensor `input`, this operation inserts a dimension of 1 at the -/// dimension index `axis` of `input`'s shape. The dimension index `axis` starts at -/// zero; if you specify a negative number for `axis` it is counted backward from -/// the end. -/// -/// This operation is useful if you want to add a batch dimension to a single -/// element. For example, if you have a single image of shape `[height, width, -/// channels]`, you can make it a batch of 1 image with `expand_dims(image, 0)`, -/// which will make the shape `[1, height, width, channels]`. -/// -/// Other examples: -/// -/// ``` -/// # 't' is a tensor of shape [2] -/// shape(expand_dims(t, 0)) ==> [1, 2] -/// shape(expand_dims(t, 1)) ==> [2, 1] -/// shape(expand_dims(t, -1)) ==> [2, 1] -/// -/// # 't2' is a tensor of shape [2, 3, 5] -/// shape(expand_dims(t2, 0)) ==> [1, 2, 3, 5] -/// shape(expand_dims(t2, 2)) ==> [2, 3, 1, 5] -/// shape(expand_dims(t2, 3)) ==> [2, 3, 5, 1] -/// ``` -/// -/// This operation requires that: -/// -/// `-1-input.dims() <= dim <= input.dims()` -/// -/// This operation is related to `squeeze()`, which removes dimensions of -/// size 1. -/// -/// Arguments: -/// * scope: A Scope object -/// * axis: 0-D (scalar). Specifies the dimension index at which to -/// expand the shape of `input`. Must be in the range -/// `[-rank(input) - 1, rank(input)]`. -/// -/// Returns: -/// * `Output`: Contains the same data as `input`, but its shape has an additional -/// dimension of size 1 added. -class ExpandDims { - public: - ExpandDims(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input axis); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Extract `patches` from `images` and put them in the "depth" output dimension. -/// -/// Arguments: -/// * scope: A Scope object -/// * images: 4-D Tensor with shape `[batch, in_rows, in_cols, depth]`. -/// * ksizes: The size of the sliding window for each dimension of `images`. -/// * strides: 1-D of length 4. How far the centers of two consecutive patches are in -/// the images. Must be: `[1, stride_rows, stride_cols, 1]`. -/// * rates: 1-D of length 4. Must be: `[1, rate_rows, rate_cols, 1]`. This is the -/// input stride, specifying how far two consecutive patch samples are in the -/// input. Equivalent to extracting patches with -/// `patch_sizes_eff = patch_sizes + (patch_sizes - 1) * (rates - 1)`, followed by -/// subsampling them spatially by a factor of `rates`. This is equivalent to -/// `rate` in dilated (a.k.a. Atrous) convolutions. -/// * padding: The type of padding algorithm to use. -/// -/// We specify the size-related attributes as: -/// -/// ```python -/// ksizes = [1, ksize_rows, ksize_cols, 1] -/// strides = [1, strides_rows, strides_cols, 1] -/// rates = [1, rates_rows, rates_cols, 1] -/// ``` -/// -/// Returns: -/// * `Output`: 4-D Tensor with shape `[batch, out_rows, out_cols, ksize_rows * -/// ksize_cols * depth]` containing image patches with size -/// `ksize_rows x ksize_cols x depth` vectorized in the "depth" dimension. Note -/// `out_rows` and `out_cols` are the dimensions of the output patches. -class ExtractImagePatches { - public: - ExtractImagePatches(const ::tensorflow::Scope& scope, ::tensorflow::Input - images, const gtl::ArraySlice& ksizes, const - gtl::ArraySlice& strides, const gtl::ArraySlice& - rates, StringPiece padding); - operator ::tensorflow::Output() const { return patches; } - operator ::tensorflow::Input() const { return patches; } - ::tensorflow::Node* node() const { return patches.node(); } - - Operation operation; - ::tensorflow::Output patches; -}; - -/// Extract `patches` from `input` and put them in the "depth" output -/// dimension. 3D extension of `extract_image_patches`. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 5-D Tensor with shape `[batch, in_planes, in_rows, in_cols, depth]`. -/// * ksizes: The size of the sliding window for each dimension of `input`. -/// * strides: 1-D of length 5. How far the centers of two consecutive patches are in -/// `input`. Must be: `[1, stride_planes, stride_rows, stride_cols, 1]`. -/// * padding: The type of padding algorithm to use. -/// -/// We specify the size-related attributes as: -/// -/// ```python -/// ksizes = [1, ksize_planes, ksize_rows, ksize_cols, 1] -/// strides = [1, stride_planes, strides_rows, strides_cols, 1] -/// ``` -/// -/// Returns: -/// * `Output`: 5-D Tensor with shape `[batch, out_planes, out_rows, out_cols, -/// ksize_planes * ksize_rows * ksize_cols * depth]` containing patches -/// with size `ksize_planes x ksize_rows x ksize_cols x depth` vectorized -/// in the "depth" dimension. Note `out_planes`, `out_rows` and `out_cols` -/// are the dimensions of the output patches. -class ExtractVolumePatches { - public: - ExtractVolumePatches(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, const gtl::ArraySlice& ksizes, const - gtl::ArraySlice& strides, StringPiece padding); - operator ::tensorflow::Output() const { return patches; } - operator ::tensorflow::Input() const { return patches; } - ::tensorflow::Node* node() const { return patches.node(); } - - Operation operation; - ::tensorflow::Output patches; -}; - -/// Fake-quantize the 'inputs' tensor, type float to 'outputs' tensor of same type. -/// -/// Attributes `[min; max]` define the clamping range for the `inputs` data. -/// `inputs` values are quantized into the quantization range (`[0; 2^num_bits - 1]` -/// when `narrow_range` is false and `[1; 2^num_bits - 1]` when it is true) and -/// then de-quantized and output as floats in `[min; max]` interval. -/// `num_bits` is the bitwidth of the quantization; between 2 and 16, inclusive. -/// -/// Quantization is called fake since the output is still in floating point. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The outputs tensor. -class FakeQuantWithMinMaxArgs { - public: - /// Optional attribute setters for FakeQuantWithMinMaxArgs - struct Attrs { - /// Defaults to -6 - TF_MUST_USE_RESULT Attrs Min(float x) { - Attrs ret = *this; - ret.min_ = x; - return ret; - } - - /// Defaults to 6 - TF_MUST_USE_RESULT Attrs Max(float x) { - Attrs ret = *this; - ret.max_ = x; - return ret; - } - - /// Defaults to 8 - TF_MUST_USE_RESULT Attrs NumBits(int64 x) { - Attrs ret = *this; - ret.num_bits_ = x; - return ret; - } - - /// Defaults to false - TF_MUST_USE_RESULT Attrs NarrowRange(bool x) { - Attrs ret = *this; - ret.narrow_range_ = x; - return ret; - } - - float min_ = -6.0f; - float max_ = 6.0f; - int64 num_bits_ = 8; - bool narrow_range_ = false; - }; - FakeQuantWithMinMaxArgs(const ::tensorflow::Scope& scope, ::tensorflow::Input - inputs); - FakeQuantWithMinMaxArgs(const ::tensorflow::Scope& scope, ::tensorflow::Input - inputs, const FakeQuantWithMinMaxArgs::Attrs& attrs); - operator ::tensorflow::Output() const { return outputs; } - operator ::tensorflow::Input() const { return outputs; } - ::tensorflow::Node* node() const { return outputs.node(); } - - static Attrs Min(float x) { - return Attrs().Min(x); - } - static Attrs Max(float x) { - return Attrs().Max(x); - } - static Attrs NumBits(int64 x) { - return Attrs().NumBits(x); - } - static Attrs NarrowRange(bool x) { - return Attrs().NarrowRange(x); - } - - Operation operation; - ::tensorflow::Output outputs; -}; - -/// Compute gradients for a FakeQuantWithMinMaxArgs operation. -/// -/// Arguments: -/// * scope: A Scope object -/// * gradients: Backpropagated gradients above the FakeQuantWithMinMaxArgs operation. -/// * inputs: Values passed as inputs to the FakeQuantWithMinMaxArgs operation. -/// -/// Returns: -/// * `Output`: Backpropagated gradients below the FakeQuantWithMinMaxArgs operation: -/// `gradients * (inputs >= min && inputs <= max)`. -class FakeQuantWithMinMaxArgsGradient { - public: - /// Optional attribute setters for FakeQuantWithMinMaxArgsGradient - struct Attrs { - /// Defaults to -6 - TF_MUST_USE_RESULT Attrs Min(float x) { - Attrs ret = *this; - ret.min_ = x; - return ret; - } - - /// Defaults to 6 - TF_MUST_USE_RESULT Attrs Max(float x) { - Attrs ret = *this; - ret.max_ = x; - return ret; - } - - /// Defaults to 8 - TF_MUST_USE_RESULT Attrs NumBits(int64 x) { - Attrs ret = *this; - ret.num_bits_ = x; - return ret; - } - - /// Defaults to false - TF_MUST_USE_RESULT Attrs NarrowRange(bool x) { - Attrs ret = *this; - ret.narrow_range_ = x; - return ret; - } - - float min_ = -6.0f; - float max_ = 6.0f; - int64 num_bits_ = 8; - bool narrow_range_ = false; - }; - FakeQuantWithMinMaxArgsGradient(const ::tensorflow::Scope& scope, - ::tensorflow::Input gradients, - ::tensorflow::Input inputs); - FakeQuantWithMinMaxArgsGradient(const ::tensorflow::Scope& scope, - ::tensorflow::Input gradients, - ::tensorflow::Input inputs, const - FakeQuantWithMinMaxArgsGradient::Attrs& attrs); - operator ::tensorflow::Output() const { return backprops; } - operator ::tensorflow::Input() const { return backprops; } - ::tensorflow::Node* node() const { return backprops.node(); } - - static Attrs Min(float x) { - return Attrs().Min(x); - } - static Attrs Max(float x) { - return Attrs().Max(x); - } - static Attrs NumBits(int64 x) { - return Attrs().NumBits(x); - } - static Attrs NarrowRange(bool x) { - return Attrs().NarrowRange(x); - } - - Operation operation; - ::tensorflow::Output backprops; -}; - -/// Fake-quantize the 'inputs' tensor of type float via global float scalars `min` -/// -/// and `max` to 'outputs' tensor of same shape as `inputs`. -/// -/// `[min; max]` define the clamping range for the `inputs` data. -/// `inputs` values are quantized into the quantization range (`[0; 2^num_bits - 1]` -/// when `narrow_range` is false and `[1; 2^num_bits - 1]` when it is true) and -/// then de-quantized and output as floats in `[min; max]` interval. -/// `num_bits` is the bitwidth of the quantization; between 2 and 16, inclusive. -/// -/// This operation has a gradient and thus allows for training `min` and `max` -/// values. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The outputs tensor. -class FakeQuantWithMinMaxVars { - public: - /// Optional attribute setters for FakeQuantWithMinMaxVars - struct Attrs { - /// Defaults to 8 - TF_MUST_USE_RESULT Attrs NumBits(int64 x) { - Attrs ret = *this; - ret.num_bits_ = x; - return ret; - } - - /// Defaults to false - TF_MUST_USE_RESULT Attrs NarrowRange(bool x) { - Attrs ret = *this; - ret.narrow_range_ = x; - return ret; - } - - int64 num_bits_ = 8; - bool narrow_range_ = false; - }; - FakeQuantWithMinMaxVars(const ::tensorflow::Scope& scope, ::tensorflow::Input - inputs, ::tensorflow::Input min, ::tensorflow::Input - max); - FakeQuantWithMinMaxVars(const ::tensorflow::Scope& scope, ::tensorflow::Input - inputs, ::tensorflow::Input min, ::tensorflow::Input - max, const FakeQuantWithMinMaxVars::Attrs& attrs); - operator ::tensorflow::Output() const { return outputs; } - operator ::tensorflow::Input() const { return outputs; } - ::tensorflow::Node* node() const { return outputs.node(); } - - static Attrs NumBits(int64 x) { - return Attrs().NumBits(x); - } - static Attrs NarrowRange(bool x) { - return Attrs().NarrowRange(x); - } - - Operation operation; - ::tensorflow::Output outputs; -}; - -/// Compute gradients for a FakeQuantWithMinMaxVars operation. -/// -/// Arguments: -/// * scope: A Scope object -/// * gradients: Backpropagated gradients above the FakeQuantWithMinMaxVars operation. -/// * inputs: Values passed as inputs to the FakeQuantWithMinMaxVars operation. -/// min, max: Quantization interval, scalar floats. -/// -/// Optional attributes (see `Attrs`): -/// * num_bits: The bitwidth of the quantization; between 2 and 8, inclusive. -/// * narrow_range: Whether to quantize into 2^num_bits - 1 distinct values. -/// -/// Returns: -/// * `Output` backprops_wrt_input: Backpropagated gradients w.r.t. inputs: -/// `gradients * (inputs >= min && inputs <= max)`. -/// * `Output` backprop_wrt_min: Backpropagated gradients w.r.t. min parameter: -/// `sum(gradients * (inputs < min))`. -/// * `Output` backprop_wrt_max: Backpropagated gradients w.r.t. max parameter: -/// `sum(gradients * (inputs > max))`. -class FakeQuantWithMinMaxVarsGradient { - public: - /// Optional attribute setters for FakeQuantWithMinMaxVarsGradient - struct Attrs { - /// The bitwidth of the quantization; between 2 and 8, inclusive. - /// - /// Defaults to 8 - TF_MUST_USE_RESULT Attrs NumBits(int64 x) { - Attrs ret = *this; - ret.num_bits_ = x; - return ret; - } - - /// Whether to quantize into 2^num_bits - 1 distinct values. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs NarrowRange(bool x) { - Attrs ret = *this; - ret.narrow_range_ = x; - return ret; - } - - int64 num_bits_ = 8; - bool narrow_range_ = false; - }; - FakeQuantWithMinMaxVarsGradient(const ::tensorflow::Scope& scope, - ::tensorflow::Input gradients, - ::tensorflow::Input inputs, ::tensorflow::Input - min, ::tensorflow::Input max); - FakeQuantWithMinMaxVarsGradient(const ::tensorflow::Scope& scope, - ::tensorflow::Input gradients, - ::tensorflow::Input inputs, ::tensorflow::Input - min, ::tensorflow::Input max, const - FakeQuantWithMinMaxVarsGradient::Attrs& attrs); - - static Attrs NumBits(int64 x) { - return Attrs().NumBits(x); - } - static Attrs NarrowRange(bool x) { - return Attrs().NarrowRange(x); - } - - Operation operation; - ::tensorflow::Output backprops_wrt_input; - ::tensorflow::Output backprop_wrt_min; - ::tensorflow::Output backprop_wrt_max; -}; - -/// Fake-quantize the 'inputs' tensor of type float and one of the shapes: `[d]`, -/// -/// `[b, d]` `[b, h, w, d]` via per-channel floats `min` and `max` of shape `[d]` -/// to 'outputs' tensor of same shape as `inputs`. -/// -/// `[min; max]` define the clamping range for the `inputs` data. -/// `inputs` values are quantized into the quantization range (`[0; 2^num_bits - 1]` -/// when `narrow_range` is false and `[1; 2^num_bits - 1]` when it is true) and -/// then de-quantized and output as floats in `[min; max]` interval. -/// `num_bits` is the bitwidth of the quantization; between 2 and 16, inclusive. -/// -/// This operation has a gradient and thus allows for training `min` and `max` -/// values. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The outputs tensor. -class FakeQuantWithMinMaxVarsPerChannel { - public: - /// Optional attribute setters for FakeQuantWithMinMaxVarsPerChannel - struct Attrs { - /// Defaults to 8 - TF_MUST_USE_RESULT Attrs NumBits(int64 x) { - Attrs ret = *this; - ret.num_bits_ = x; - return ret; - } - - /// Defaults to false - TF_MUST_USE_RESULT Attrs NarrowRange(bool x) { - Attrs ret = *this; - ret.narrow_range_ = x; - return ret; - } - - int64 num_bits_ = 8; - bool narrow_range_ = false; - }; - FakeQuantWithMinMaxVarsPerChannel(const ::tensorflow::Scope& scope, - ::tensorflow::Input inputs, - ::tensorflow::Input min, ::tensorflow::Input - max); - FakeQuantWithMinMaxVarsPerChannel(const ::tensorflow::Scope& scope, - ::tensorflow::Input inputs, - ::tensorflow::Input min, ::tensorflow::Input - max, const - FakeQuantWithMinMaxVarsPerChannel::Attrs& - attrs); - operator ::tensorflow::Output() const { return outputs; } - operator ::tensorflow::Input() const { return outputs; } - ::tensorflow::Node* node() const { return outputs.node(); } - - static Attrs NumBits(int64 x) { - return Attrs().NumBits(x); - } - static Attrs NarrowRange(bool x) { - return Attrs().NarrowRange(x); - } - - Operation operation; - ::tensorflow::Output outputs; -}; - -/// Compute gradients for a FakeQuantWithMinMaxVarsPerChannel operation. -/// -/// Arguments: -/// * scope: A Scope object -/// * gradients: Backpropagated gradients above the FakeQuantWithMinMaxVars operation, -/// shape one of: `[d]`, `[b, d]`, `[b, h, w, d]`. -/// * inputs: Values passed as inputs to the FakeQuantWithMinMaxVars operation, shape -/// same as `gradients`. -/// min, max: Quantization interval, floats of shape `[d]`. -/// -/// Optional attributes (see `Attrs`): -/// * num_bits: The bitwidth of the quantization; between 2 and 16, inclusive. -/// * narrow_range: Whether to quantize into 2^num_bits - 1 distinct values. -/// -/// Returns: -/// * `Output` backprops_wrt_input: Backpropagated gradients w.r.t. inputs, shape same as -/// `inputs`: -/// `gradients * (inputs >= min && inputs <= max)`. -/// * `Output` backprop_wrt_min: Backpropagated gradients w.r.t. min parameter, shape `[d]`: -/// `sum_per_d(gradients * (inputs < min))`. -/// * `Output` backprop_wrt_max: Backpropagated gradients w.r.t. max parameter, shape `[d]`: -/// `sum_per_d(gradients * (inputs > max))`. -class FakeQuantWithMinMaxVarsPerChannelGradient { - public: - /// Optional attribute setters for FakeQuantWithMinMaxVarsPerChannelGradient - struct Attrs { - /// The bitwidth of the quantization; between 2 and 16, inclusive. - /// - /// Defaults to 8 - TF_MUST_USE_RESULT Attrs NumBits(int64 x) { - Attrs ret = *this; - ret.num_bits_ = x; - return ret; - } - - /// Whether to quantize into 2^num_bits - 1 distinct values. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs NarrowRange(bool x) { - Attrs ret = *this; - ret.narrow_range_ = x; - return ret; - } - - int64 num_bits_ = 8; - bool narrow_range_ = false; - }; - FakeQuantWithMinMaxVarsPerChannelGradient(const ::tensorflow::Scope& scope, - ::tensorflow::Input gradients, - ::tensorflow::Input inputs, - ::tensorflow::Input min, - ::tensorflow::Input max); - FakeQuantWithMinMaxVarsPerChannelGradient(const ::tensorflow::Scope& scope, - ::tensorflow::Input gradients, - ::tensorflow::Input inputs, - ::tensorflow::Input min, - ::tensorflow::Input max, const - FakeQuantWithMinMaxVarsPerChannelGradient::Attrs& - attrs); - - static Attrs NumBits(int64 x) { - return Attrs().NumBits(x); - } - static Attrs NarrowRange(bool x) { - return Attrs().NarrowRange(x); - } - - Operation operation; - ::tensorflow::Output backprops_wrt_input; - ::tensorflow::Output backprop_wrt_min; - ::tensorflow::Output backprop_wrt_max; -}; - -/// Creates a tensor filled with a scalar value. -/// -/// This operation creates a tensor of shape `dims` and fills it with `value`. -/// -/// For example: -/// -/// ``` -/// # Output tensor has shape [2, 3]. -/// fill([2, 3], 9) ==> [[9, 9, 9] -/// [9, 9, 9]] -/// ``` -/// -/// `tf.fill` differs from `tf.constant` in a few ways: -/// -/// * `tf.fill` only supports scalar contents, whereas `tf.constant` supports -/// Tensor values. -/// * `tf.fill` creates an Op in the computation graph that constructs the actual -/// Tensor value at runtime. This is in contrast to `tf.constant` which embeds -/// the entire Tensor into the graph with a `Const` node. -/// * Because `tf.fill` evaluates at graph runtime, it supports dynamic shapes -/// based on other runtime Tensors, unlike `tf.constant`. -/// -/// Arguments: -/// * scope: A Scope object -/// * dims: 1-D. Represents the shape of the output tensor. -/// * value: 0-D (scalar). Value to fill the returned tensor. -/// -/// @compatibility(numpy) -/// Equivalent to np.full -/// @end_compatibility -/// -/// Returns: -/// * `Output`: The output tensor. -class Fill { - public: - Fill(const ::tensorflow::Scope& scope, ::tensorflow::Input dims, - ::tensorflow::Input value); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Gather slices from `params` according to `indices`. -/// -/// `indices` must be an integer tensor of any dimension (usually 0-D or 1-D). -/// Produces an output tensor with shape `indices.shape + params.shape[1:]` where: -/// -/// ```python -/// # Scalar indices -/// output[:, ..., :] = params[indices, :, ... :] -/// -/// # Vector indices -/// output[i, :, ..., :] = params[indices[i], :, ... :] -/// -/// # Higher rank indices -/// output[i, ..., j, :, ... :] = params[indices[i, ..., j], :, ..., :] -/// ``` -/// -/// If `indices` is a permutation and `len(indices) == params.shape[0]` then -/// this operation will permute `params` accordingly. -/// -/// `validate_indices`: DEPRECATED. If this operation is assigned to CPU, values in -/// `indices` are always validated to be within range. If assigned to GPU, -/// out-of-bound indices result in safe but unspecified behavior, which may include -/// raising an error. -/// -///
-/// -///
-/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class Gather { - public: - /// Optional attribute setters for Gather - struct Attrs { - /// Defaults to true - TF_MUST_USE_RESULT Attrs ValidateIndices(bool x) { - Attrs ret = *this; - ret.validate_indices_ = x; - return ret; - } - - bool validate_indices_ = true; - }; - Gather(const ::tensorflow::Scope& scope, ::tensorflow::Input params, - ::tensorflow::Input indices); - Gather(const ::tensorflow::Scope& scope, ::tensorflow::Input params, - ::tensorflow::Input indices, const Gather::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs ValidateIndices(bool x) { - return Attrs().ValidateIndices(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Gather slices from `params` into a Tensor with shape specified by `indices`. -/// -/// `indices` is an K-dimensional integer tensor, best thought of as a -/// (K-1)-dimensional tensor of indices into `params`, where each element defines a -/// slice of `params`: -/// -/// output[\\(i_0, ..., i_{K-2}\\)] = params[indices[\\(i_0, ..., i_{K-2}\\)]] -/// -/// Whereas in `tf.gather` `indices` defines slices into the first -/// dimension of `params`, in `tf.gather_nd`, `indices` defines slices into the -/// first `N` dimensions of `params`, where `N = indices.shape[-1]`. -/// -/// The last dimension of `indices` can be at most the rank of -/// `params`: -/// -/// indices.shape[-1] <= params.rank -/// -/// The last dimension of `indices` corresponds to elements -/// (if `indices.shape[-1] == params.rank`) or slices -/// (if `indices.shape[-1] < params.rank`) along dimension `indices.shape[-1]` -/// of `params`. The output tensor has shape -/// -/// indices.shape[:-1] + params.shape[indices.shape[-1]:] -/// -/// Note that on CPU, if an out of bound index is found, an error is returned. -/// On GPU, if an out of bound index is found, a 0 is stored in the -/// corresponding output value. -/// -/// Some examples below. -/// -/// Simple indexing into a matrix: -/// -/// ```python -/// indices = [[0, 0], [1, 1]] -/// params = [['a', 'b'], ['c', 'd']] -/// output = ['a', 'd'] -/// ``` -/// -/// Slice indexing into a matrix: -/// -/// ```python -/// indices = [[1], [0]] -/// params = [['a', 'b'], ['c', 'd']] -/// output = [['c', 'd'], ['a', 'b']] -/// ``` -/// -/// Indexing into a 3-tensor: -/// -/// ```python -/// indices = [[1]] -/// params = [[['a0', 'b0'], ['c0', 'd0']], -/// [['a1', 'b1'], ['c1', 'd1']]] -/// output = [[['a1', 'b1'], ['c1', 'd1']]] -/// -/// -/// indices = [[0, 1], [1, 0]] -/// params = [[['a0', 'b0'], ['c0', 'd0']], -/// [['a1', 'b1'], ['c1', 'd1']]] -/// output = [['c0', 'd0'], ['a1', 'b1']] -/// -/// -/// indices = [[0, 0, 1], [1, 0, 1]] -/// params = [[['a0', 'b0'], ['c0', 'd0']], -/// [['a1', 'b1'], ['c1', 'd1']]] -/// output = ['b0', 'b1'] -/// ``` -/// -/// Batched indexing into a matrix: -/// -/// ```python -/// indices = [[[0, 0]], [[0, 1]]] -/// params = [['a', 'b'], ['c', 'd']] -/// output = [['a'], ['b']] -/// ``` -/// -/// Batched slice indexing into a matrix: -/// -/// ```python -/// indices = [[[1]], [[0]]] -/// params = [['a', 'b'], ['c', 'd']] -/// output = [[['c', 'd']], [['a', 'b']]] -/// ``` -/// -/// Batched indexing into a 3-tensor: -/// -/// ```python -/// indices = [[[1]], [[0]]] -/// params = [[['a0', 'b0'], ['c0', 'd0']], -/// [['a1', 'b1'], ['c1', 'd1']]] -/// output = [[[['a1', 'b1'], ['c1', 'd1']]], -/// [[['a0', 'b0'], ['c0', 'd0']]]] -/// -/// indices = [[[0, 1], [1, 0]], [[0, 0], [1, 1]]] -/// params = [[['a0', 'b0'], ['c0', 'd0']], -/// [['a1', 'b1'], ['c1', 'd1']]] -/// output = [[['c0', 'd0'], ['a1', 'b1']], -/// [['a0', 'b0'], ['c1', 'd1']]] -/// -/// -/// indices = [[[0, 0, 1], [1, 0, 1]], [[0, 1, 1], [1, 1, 0]]] -/// params = [[['a0', 'b0'], ['c0', 'd0']], -/// [['a1', 'b1'], ['c1', 'd1']]] -/// output = [['b0', 'b1'], ['d0', 'c1']] -/// ``` -/// -/// See also `tf.gather` and `tf.batch_gather`. -/// -/// Arguments: -/// * scope: A Scope object -/// * params: The tensor from which to gather values. -/// * indices: Index tensor. -/// -/// Returns: -/// * `Output`: Values from `params` gathered from indices given by `indices`, with -/// shape `indices.shape[:-1] + params.shape[indices.shape[-1]:]`. -class GatherNd { - public: - GatherNd(const ::tensorflow::Scope& scope, ::tensorflow::Input params, - ::tensorflow::Input indices); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Gather slices from `params` axis `axis` according to `indices`. -/// -/// `indices` must be an integer tensor of any dimension (usually 0-D or 1-D). -/// Produces an output tensor with shape `params.shape[:axis] + indices.shape + -/// params.shape[axis + 1:]` where: -/// -/// ```python -/// # Scalar indices (output is rank(params) - 1). -/// output[a_0, ..., a_n, b_0, ..., b_n] = -/// params[a_0, ..., a_n, indices, b_0, ..., b_n] -/// -/// # Vector indices (output is rank(params)). -/// output[a_0, ..., a_n, i, b_0, ..., b_n] = -/// params[a_0, ..., a_n, indices[i], b_0, ..., b_n] -/// -/// # Higher rank indices (output is rank(params) + rank(indices) - 1). -/// output[a_0, ..., a_n, i, ..., j, b_0, ... b_n] = -/// params[a_0, ..., a_n, indices[i, ..., j], b_0, ..., b_n] -/// ``` -/// -///
-/// -///
-/// -/// Note that on CPU, if an out of bound index is found, an error is returned. -/// On GPU, if an out of bound index is found, a 0 is stored in the -/// corresponding output value. -/// -/// See also `tf.batch_gather` and `tf.gather_nd`. -/// -/// Arguments: -/// * scope: A Scope object -/// * params: The tensor from which to gather values. Must be at least rank -/// `axis + 1`. -/// * indices: Index tensor. Must be in range `[0, params.shape[axis])`. -/// * axis: The axis in `params` to gather `indices` from. Defaults to the first -/// dimension. Supports negative indexes. -/// -/// Returns: -/// * `Output`: Values from `params` gathered from indices given by `indices`, with -/// shape `params.shape[:axis] + indices.shape + params.shape[axis + 1:]`. -class GatherV2 { - public: - GatherV2(const ::tensorflow::Scope& scope, ::tensorflow::Input params, - ::tensorflow::Input indices, ::tensorflow::Input axis); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Gives a guarantee to the TF runtime that the input tensor is a constant. -/// -/// The runtime is then free to make optimizations based on this. -/// -/// Only accepts value typed tensors as inputs and rejects resource variable handles -/// as input. -/// -/// Returns the input tensor without modification. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class GuaranteeConst { - public: - GuaranteeConst(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Return a tensor with the same shape and contents as the input tensor or value. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class Identity { - public: - Identity(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Returns a list of tensors with the same shapes and contents as the input -/// -/// tensors. -/// -/// This op can be used to override the gradient for complicated functions. For -/// example, suppose y = f(x) and we wish to apply a custom function g for backprop -/// such that dx = g(dy). In Python, -/// -/// ```python -/// with tf.get_default_graph().gradient_override_map( -/// {'IdentityN': 'OverrideGradientWithG'}): -/// y, _ = identity_n([f(x), x]) -/// -/// @tf.RegisterGradient('OverrideGradientWithG') -/// def ApplyG(op, dy, _): -/// return [None, g(dy)] # Do not backprop to f(x). -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `OutputList`: The output tensor. -class IdentityN { - public: - IdentityN(const ::tensorflow::Scope& scope, ::tensorflow::InputList input); - ::tensorflow::Output operator[](size_t index) const { return output[index]; } - - - Operation operation; - ::tensorflow::OutputList output; -}; - -/// Returns immutable tensor from memory region. -/// -/// The current implementation memmaps the tensor from a file. -/// -/// Arguments: -/// * scope: A Scope object -/// * dtype: Type of the returned tensor. -/// * shape: Shape of the returned tensor. -/// * memory_region_name: Name of readonly memory region used by the tensor, see -/// NewReadOnlyMemoryRegionFromFile in tensorflow::Env. -/// -/// Returns: -/// * `Output`: The tensor tensor. -class ImmutableConst { - public: - ImmutableConst(const ::tensorflow::Scope& scope, DataType dtype, - PartialTensorShape shape, StringPiece memory_region_name); - operator ::tensorflow::Output() const { return tensor; } - operator ::tensorflow::Input() const { return tensor; } - ::tensorflow::Node* node() const { return tensor.node(); } - - Operation operation; - ::tensorflow::Output tensor; -}; - -/// Adds v into specified rows of x. -/// -/// Computes y = x; y[i, :] += v; return y. -/// -/// Arguments: -/// * scope: A Scope object -/// * x: A `Tensor` of type T. -/// * i: A vector. Indices into the left-most dimension of `x`. -/// * v: A `Tensor` of type T. Same dimension sizes as x except the first dimension, which must be the same as i's size. -/// -/// Returns: -/// * `Output`: A `Tensor` of type T. An alias of `x`. The content of `y` is undefined if there are duplicates in `i`. -class InplaceAdd { - public: - InplaceAdd(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input i, ::tensorflow::Input v); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Subtracts `v` into specified rows of `x`. -/// -/// Computes y = x; y[i, :] -= v; return y. -/// -/// Arguments: -/// * scope: A Scope object -/// * x: A `Tensor` of type T. -/// * i: A vector. Indices into the left-most dimension of `x`. -/// * v: A `Tensor` of type T. Same dimension sizes as x except the first dimension, which must be the same as i's size. -/// -/// Returns: -/// * `Output`: A `Tensor` of type T. An alias of `x`. The content of `y` is undefined if there are duplicates in `i`. -class InplaceSub { - public: - InplaceSub(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input i, ::tensorflow::Input v); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Updates specified rows with values in `v`. -/// -/// Computes `x[i, :] = v; return x`. -/// -/// Arguments: -/// * scope: A Scope object -/// * x: A tensor of type `T`. -/// * i: A vector. Indices into the left-most dimension of `x`. -/// * v: A `Tensor` of type T. Same dimension sizes as x except the first dimension, which must be the same as i's size. -/// -/// Returns: -/// * `Output`: A `Tensor` of type T. An alias of `x`. The content of `y` is undefined if there are duplicates in `i`. -class InplaceUpdate { - public: - InplaceUpdate(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input i, ::tensorflow::Input v); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes the inverse permutation of a tensor. -/// -/// This operation computes the inverse of an index permutation. It takes a 1-D -/// integer tensor `x`, which represents the indices of a zero-based array, and -/// swaps each value with its index position. In other words, for an output tensor -/// `y` and an input tensor `x`, this operation computes the following: -/// -/// `y[x[i]] = i for i in [0, 1, ..., len(x) - 1]` -/// -/// The values must include 0. There can be no duplicate values or negative values. -/// -/// For example: -/// -/// ``` -/// # tensor `x` is [3, 4, 0, 2, 1] -/// invert_permutation(x) ==> [2, 4, 3, 0, 1] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * x: 1-D. -/// -/// Returns: -/// * `Output`: 1-D. -class InvertPermutation { - public: - InvertPermutation(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes the difference between two lists of numbers or strings. -/// -/// Given a list `x` and a list `y`, this operation returns a list `out` that -/// represents all values that are in `x` but not in `y`. The returned list `out` -/// is sorted in the same order that the numbers appear in `x` (duplicates are -/// preserved). This operation also returns a list `idx` that represents the -/// position of each `out` element in `x`. In other words: -/// -/// `out[i] = x[idx[i]] for i in [0, 1, ..., len(out) - 1]` -/// -/// For example, given this input: -/// -/// ``` -/// x = [1, 2, 3, 4, 5, 6] -/// y = [1, 3, 5] -/// ``` -/// -/// This operation would return: -/// -/// ``` -/// out ==> [2, 4, 6] -/// idx ==> [1, 3, 5] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * x: 1-D. Values to keep. -/// * y: 1-D. Values to remove. -/// -/// Returns: -/// * `Output` out: 1-D. Values present in `x` but not in `y`. -/// * `Output` idx: 1-D. Positions of `x` values preserved in `out`. -class SetDiff1D { - public: - /// Optional attribute setters for SetDiff1D - struct Attrs { - /// Defaults to DT_INT32 - TF_MUST_USE_RESULT Attrs OutIdx(DataType x) { - Attrs ret = *this; - ret.out_idx_ = x; - return ret; - } - - DataType out_idx_ = DT_INT32; - }; - SetDiff1D(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - SetDiff1D(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y, const SetDiff1D::Attrs& attrs); - - static Attrs OutIdx(DataType x) { - return Attrs().OutIdx(x); - } - - Operation operation; - ::tensorflow::Output out; - ::tensorflow::Output idx; -}; - -/// Copy a tensor setting everything outside a central band in each innermost matrix -/// -/// to zero. -/// -/// The `band` part is computed as follows: -/// Assume `input` has `k` dimensions `[I, J, K, ..., M, N]`, then the output is a -/// tensor with the same shape where -/// -/// `band[i, j, k, ..., m, n] = in_band(m, n) * input[i, j, k, ..., m, n]`. -/// -/// The indicator function -/// -/// `in_band(m, n) = (num_lower < 0 || (m-n) <= num_lower)) && -/// (num_upper < 0 || (n-m) <= num_upper)`. -/// -/// For example: -/// -/// ``` -/// # if 'input' is [[ 0, 1, 2, 3] -/// [-1, 0, 1, 2] -/// [-2, -1, 0, 1] -/// [-3, -2, -1, 0]], -/// -/// tf.matrix_band_part(input, 1, -1) ==> [[ 0, 1, 2, 3] -/// [-1, 0, 1, 2] -/// [ 0, -1, 0, 1] -/// [ 0, 0, -1, 0]], -/// -/// tf.matrix_band_part(input, 2, 1) ==> [[ 0, 1, 0, 0] -/// [-1, 0, 1, 0] -/// [-2, -1, 0, 1] -/// [ 0, -2, -1, 0]] -/// ``` -/// -/// Useful special cases: -/// -/// ``` -/// tf.matrix_band_part(input, 0, -1) ==> Upper triangular part. -/// tf.matrix_band_part(input, -1, 0) ==> Lower triangular part. -/// tf.matrix_band_part(input, 0, 0) ==> Diagonal. -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Rank `k` tensor. -/// * num_lower: 0-D tensor. Number of subdiagonals to keep. If negative, keep entire -/// lower triangle. -/// * num_upper: 0-D tensor. Number of superdiagonals to keep. If negative, keep -/// entire upper triangle. -/// -/// Returns: -/// * `Output`: Rank `k` tensor of the same shape as input. The extracted banded tensor. -class MatrixBandPart { - public: - MatrixBandPart(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input num_lower, ::tensorflow::Input num_upper); - operator ::tensorflow::Output() const { return band; } - operator ::tensorflow::Input() const { return band; } - ::tensorflow::Node* node() const { return band.node(); } - - Operation operation; - ::tensorflow::Output band; -}; - -/// Returns a batched diagonal tensor with a given batched diagonal values. -/// -/// Given a `diagonal`, this operation returns a tensor with the `diagonal` and -/// everything else padded with zeros. The diagonal is computed as follows: -/// -/// Assume `diagonal` has `k` dimensions `[I, J, K, ..., N]`, then the output is a -/// tensor of rank `k+1` with dimensions [I, J, K, ..., N, N]` where: -/// -/// `output[i, j, k, ..., m, n] = 1{m=n} * diagonal[i, j, k, ..., n]`. -/// -/// For example: -/// -/// ``` -/// # 'diagonal' is [[1, 2, 3, 4], [5, 6, 7, 8]] -/// -/// and diagonal.shape = (2, 4) -/// -/// tf.matrix_diag(diagonal) ==> [[[1, 0, 0, 0] -/// [0, 2, 0, 0] -/// [0, 0, 3, 0] -/// [0, 0, 0, 4]], -/// [[5, 0, 0, 0] -/// [0, 6, 0, 0] -/// [0, 0, 7, 0] -/// [0, 0, 0, 8]]] -/// -/// which has shape (2, 4, 4) -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * diagonal: Rank `k`, where `k >= 1`. -/// -/// Returns: -/// * `Output`: Rank `k+1`, with `output.shape = diagonal.shape + [diagonal.shape[-1]]`. -class MatrixDiag { - public: - MatrixDiag(const ::tensorflow::Scope& scope, ::tensorflow::Input diagonal); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Returns the batched diagonal part of a batched tensor. -/// -/// This operation returns a tensor with the `diagonal` part -/// of the batched `input`. The `diagonal` part is computed as follows: -/// -/// Assume `input` has `k` dimensions `[I, J, K, ..., M, N]`, then the output is a -/// tensor of rank `k - 1` with dimensions `[I, J, K, ..., min(M, N)]` where: -/// -/// `diagonal[i, j, k, ..., n] = input[i, j, k, ..., n, n]`. -/// -/// The input must be at least a matrix. -/// -/// For example: -/// -/// ``` -/// # 'input' is [[[1, 0, 0, 0] -/// [0, 2, 0, 0] -/// [0, 0, 3, 0] -/// [0, 0, 0, 4]], -/// [[5, 0, 0, 0] -/// [0, 6, 0, 0] -/// [0, 0, 7, 0] -/// [0, 0, 0, 8]]] -/// -/// and input.shape = (2, 4, 4) -/// -/// tf.matrix_diag_part(input) ==> [[1, 2, 3, 4], [5, 6, 7, 8]] -/// -/// which has shape (2, 4) -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Rank `k` tensor where `k >= 2`. -/// -/// Returns: -/// * `Output`: The extracted diagonal(s) having shape -/// `diagonal.shape = input.shape[:-2] + [min(input.shape[-2:])]`. -class MatrixDiagPart { - public: - MatrixDiagPart(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - operator ::tensorflow::Output() const { return diagonal; } - operator ::tensorflow::Input() const { return diagonal; } - ::tensorflow::Node* node() const { return diagonal.node(); } - - Operation operation; - ::tensorflow::Output diagonal; -}; - -/// Returns a batched matrix tensor with new batched diagonal values. -/// -/// Given `input` and `diagonal`, this operation returns a tensor with the -/// same shape and values as `input`, except for the main diagonal of the -/// innermost matrices. These will be overwritten by the values in `diagonal`. -/// -/// The output is computed as follows: -/// -/// Assume `input` has `k+1` dimensions `[I, J, K, ..., M, N]` and `diagonal` has -/// `k` dimensions `[I, J, K, ..., min(M, N)]`. Then the output is a -/// tensor of rank `k+1` with dimensions `[I, J, K, ..., M, N]` where: -/// -/// * `output[i, j, k, ..., m, n] = diagonal[i, j, k, ..., n]` for `m == n`. -/// * `output[i, j, k, ..., m, n] = input[i, j, k, ..., m, n]` for `m != n`. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Rank `k+1`, where `k >= 1`. -/// * diagonal: Rank `k`, where `k >= 1`. -/// -/// Returns: -/// * `Output`: Rank `k+1`, with `output.shape = input.shape`. -class MatrixSetDiag { - public: - MatrixSetDiag(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input diagonal); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Pads a tensor with mirrored values. -/// -/// This operation pads a `input` with mirrored values according to the `paddings` -/// you specify. `paddings` is an integer tensor with shape `[n, 2]`, where n is -/// the rank of `input`. For each dimension D of `input`, `paddings[D, 0]` indicates -/// how many values to add before the contents of `input` in that dimension, and -/// `paddings[D, 1]` indicates how many values to add after the contents of `input` -/// in that dimension. Both `paddings[D, 0]` and `paddings[D, 1]` must be no greater -/// than `input.dim_size(D)` (or `input.dim_size(D) - 1`) if `copy_border` is true -/// (if false, respectively). -/// -/// The padded size of each dimension D of the output is: -/// -/// `paddings(D, 0) + input.dim_size(D) + paddings(D, 1)` -/// -/// For example: -/// -/// ``` -/// # 't' is [[1, 2, 3], [4, 5, 6]]. -/// # 'paddings' is [[1, 1]], [2, 2]]. -/// # 'mode' is SYMMETRIC. -/// # rank of 't' is 2. -/// pad(t, paddings) ==> [[2, 1, 1, 2, 3, 3, 2] -/// [2, 1, 1, 2, 3, 3, 2] -/// [5, 4, 4, 5, 6, 6, 5] -/// [5, 4, 4, 5, 6, 6, 5]] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The input tensor to be padded. -/// * paddings: A two-column matrix specifying the padding sizes. The number of -/// rows must be the same as the rank of `input`. -/// * mode: Either `REFLECT` or `SYMMETRIC`. In reflect mode the padded regions -/// do not include the borders, while in symmetric mode the padded regions -/// do include the borders. For example, if `input` is `[1, 2, 3]` and `paddings` -/// is `[0, 2]`, then the output is `[1, 2, 3, 2, 1]` in reflect mode, and -/// it is `[1, 2, 3, 3, 2]` in symmetric mode. -/// -/// Returns: -/// * `Output`: The padded tensor. -class MirrorPad { - public: - MirrorPad(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input paddings, StringPiece mode); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Returns a one-hot tensor. -/// -/// The locations represented by indices in `indices` take value `on_value`, -/// while all other locations take value `off_value`. -/// -/// If the input `indices` is rank `N`, the output will have rank `N+1`, -/// The new axis is created at dimension `axis` (default: the new axis is -/// appended at the end). -/// -/// If `indices` is a scalar the output shape will be a vector of length `depth`. -/// -/// If `indices` is a vector of length `features`, the output shape will be: -/// ``` -/// features x depth if axis == -1 -/// depth x features if axis == 0 -/// ``` -/// -/// If `indices` is a matrix (batch) with shape `[batch, features]`, -/// the output shape will be: -/// ``` -/// batch x features x depth if axis == -1 -/// batch x depth x features if axis == 1 -/// depth x batch x features if axis == 0 -/// ``` -/// -/// -/// Examples -/// ========= -/// -/// Suppose that -/// -/// ``` -/// indices = [0, 2, -1, 1] -/// depth = 3 -/// on_value = 5.0 -/// off_value = 0.0 -/// axis = -1 -/// ``` -/// -/// Then output is `[4 x 3]`: -/// -/// ```output = -/// [5.0 0.0 0.0] // one_hot(0) -/// [0.0 0.0 5.0] // one_hot(2) -/// [0.0 0.0 0.0] // one_hot(-1) -/// [0.0 5.0 0.0] // one_hot(1) -/// ``` -/// -/// Suppose that -/// -/// ``` -/// indices = [0, 2, -1, 1] -/// depth = 3 -/// on_value = 0.0 -/// off_value = 3.0 -/// axis = 0 -/// ``` -/// -/// Then output is `[3 x 4]`: -/// -/// ```output = -/// [0.0 3.0 3.0 3.0] -/// [3.0 3.0 3.0 0.0] -/// [3.0 3.0 3.0 3.0] -/// [3.0 0.0 3.0 3.0] -/// // ^ one_hot(0) -/// // ^ one_hot(2) -/// // ^ one_hot(-1) -/// // ^ one_hot(1) -/// ``` -/// Suppose that -/// -/// ``` -/// indices = [[0, 2], [1, -1]] -/// depth = 3 -/// on_value = 1.0 -/// off_value = 0.0 -/// axis = -1 -/// ``` -/// -/// Then output is `[2 x 2 x 3]`: -/// -/// ```output = -/// [ -/// [1.0, 0.0, 0.0] // one_hot(0) -/// [0.0, 0.0, 1.0] // one_hot(2) -/// ][ -/// [0.0, 1.0, 0.0] // one_hot(1) -/// [0.0, 0.0, 0.0] // one_hot(-1) -/// ]``` -/// -/// Arguments: -/// * scope: A Scope object -/// * indices: A tensor of indices. -/// * depth: A scalar defining the depth of the one hot dimension. -/// * on_value: A scalar defining the value to fill in output when `indices[j] = i`. -/// * off_value: A scalar defining the value to fill in output when `indices[j] != i`. -/// -/// Optional attributes (see `Attrs`): -/// * axis: The axis to fill (default: -1, a new inner-most axis). -/// -/// Returns: -/// * `Output`: The one-hot tensor. -class OneHot { - public: - /// Optional attribute setters for OneHot - struct Attrs { - /// The axis to fill (default: -1, a new inner-most axis). - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs Axis(int64 x) { - Attrs ret = *this; - ret.axis_ = x; - return ret; - } - - int64 axis_ = -1; - }; - OneHot(const ::tensorflow::Scope& scope, ::tensorflow::Input indices, - ::tensorflow::Input depth, ::tensorflow::Input on_value, - ::tensorflow::Input off_value); - OneHot(const ::tensorflow::Scope& scope, ::tensorflow::Input indices, - ::tensorflow::Input depth, ::tensorflow::Input on_value, - ::tensorflow::Input off_value, const OneHot::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Axis(int64 x) { - return Attrs().Axis(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Returns a tensor of ones with the same shape and type as x. -/// -/// Arguments: -/// * scope: A Scope object -/// * x: a tensor of type T. -/// -/// Returns: -/// * `Output`: a tensor of the same shape and type as x but filled with ones. -class OnesLike { - public: - OnesLike(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Packs a list of `N` rank-`R` tensors into one rank-`(R+1)` tensor. -/// -/// Packs the `N` tensors in `values` into a tensor with rank one higher than each -/// tensor in `values`, by packing them along the `axis` dimension. -/// Given a list of tensors of shape `(A, B, C)`; -/// -/// if `axis == 0` then the `output` tensor will have the shape `(N, A, B, C)`. -/// if `axis == 1` then the `output` tensor will have the shape `(A, N, B, C)`. -/// Etc. -/// -/// For example: -/// -/// ``` -/// # 'x' is [1, 4] -/// # 'y' is [2, 5] -/// # 'z' is [3, 6] -/// pack([x, y, z]) => [[1, 4], [2, 5], [3, 6]] # Pack along first dim. -/// pack([x, y, z], axis=1) => [[1, 2, 3], [4, 5, 6]] -/// ``` -/// -/// This is the opposite of `unpack`. -/// -/// Arguments: -/// * scope: A Scope object -/// * values: Must be of same shape and type. -/// -/// Optional attributes (see `Attrs`): -/// * axis: Dimension along which to pack. Negative values wrap around, so the -/// valid range is `[-(R+1), R+1)`. -/// -/// Returns: -/// * `Output`: The packed tensor. -class Stack { - public: - /// Optional attribute setters for Stack - struct Attrs { - /// Dimension along which to pack. Negative values wrap around, so the - /// valid range is `[-(R+1), R+1)`. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Axis(int64 x) { - Attrs ret = *this; - ret.axis_ = x; - return ret; - } - - int64 axis_ = 0; - }; - Stack(const ::tensorflow::Scope& scope, ::tensorflow::InputList values); - Stack(const ::tensorflow::Scope& scope, ::tensorflow::InputList values, const - Stack::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Axis(int64 x) { - return Attrs().Axis(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Pads a tensor with zeros. -/// -/// This operation pads a `input` with zeros according to the `paddings` you -/// specify. `paddings` is an integer tensor with shape `[Dn, 2]`, where n is the -/// rank of `input`. For each dimension D of `input`, `paddings[D, 0]` indicates -/// how many zeros to add before the contents of `input` in that dimension, and -/// `paddings[D, 1]` indicates how many zeros to add after the contents of `input` -/// in that dimension. -/// -/// The padded size of each dimension D of the output is: -/// -/// `paddings(D, 0) + input.dim_size(D) + paddings(D, 1)` -/// -/// For example: -/// -/// ``` -/// # 't' is [[1, 1], [2, 2]] -/// # 'paddings' is [[1, 1], [2, 2]] -/// # rank of 't' is 2 -/// pad(t, paddings) ==> [[0, 0, 0, 0, 0, 0] -/// [0, 0, 1, 1, 0, 0] -/// [0, 0, 2, 2, 0, 0] -/// [0, 0, 0, 0, 0, 0]] -/// ``` -/// -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class Pad { - public: - Pad(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input paddings); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Pads a tensor. -/// -/// This operation pads `input` according to the `paddings` and `constant_values` -/// you specify. `paddings` is an integer tensor with shape `[Dn, 2]`, where n is -/// the rank of `input`. For each dimension D of `input`, `paddings[D, 0]` indicates -/// how many padding values to add before the contents of `input` in that dimension, -/// and `paddings[D, 1]` indicates how many padding values to add after the contents -/// of `input` in that dimension. `constant_values` is a scalar tensor of the same -/// type as `input` that indicates the value to use for padding `input`. -/// -/// The padded size of each dimension D of the output is: -/// -/// `paddings(D, 0) + input.dim_size(D) + paddings(D, 1)` -/// -/// For example: -/// -/// ``` -/// # 't' is [[1, 1], [2, 2]] -/// # 'paddings' is [[1, 1], [2, 2]] -/// # 'constant_values' is 0 -/// # rank of 't' is 2 -/// pad(t, paddings) ==> [[0, 0, 0, 0, 0, 0] -/// [0, 0, 1, 1, 0, 0] -/// [0, 0, 2, 2, 0, 0] -/// [0, 0, 0, 0, 0, 0]] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class PadV2 { - public: - PadV2(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input paddings, ::tensorflow::Input constant_values); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Concatenates a list of `N` tensors along the first dimension. -/// -/// The input tensors are all required to have size 1 in the first dimension. -/// -/// For example: -/// -/// ``` -/// # 'x' is [[1, 4]] -/// # 'y' is [[2, 5]] -/// # 'z' is [[3, 6]] -/// parallel_concat([x, y, z]) => [[1, 4], [2, 5], [3, 6]] # Pack along first dim. -/// ``` -/// -/// The difference between concat and parallel_concat is that concat requires all -/// of the inputs be computed before the operation will begin but doesn't require -/// that the input shapes be known during graph construction. Parallel concat -/// will copy pieces of the input into the output as they become available, in -/// some situations this can provide a performance benefit. -/// -/// Arguments: -/// * scope: A Scope object -/// * values: Tensors to be concatenated. All must have size 1 in the first dimension -/// and same shape. -/// * shape: the final shape of the result; should be equal to the shapes of any input -/// but with the number of input values in the first dimension. -/// -/// Returns: -/// * `Output`: The concatenated tensor. -class ParallelConcat { - public: - ParallelConcat(const ::tensorflow::Scope& scope, ::tensorflow::InputList - values, PartialTensorShape shape); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// A placeholder op for a value that will be fed into the computation. -/// -/// N.B. This operation will fail with an error if it is executed. It is -/// intended as a way to represent a value that will always be fed, and to -/// provide attrs that enable the fed value to be checked at runtime. -/// -/// Arguments: -/// * scope: A Scope object -/// * dtype: The type of elements in the tensor. -/// -/// Optional attributes (see `Attrs`): -/// * shape: (Optional) The shape of the tensor. If the shape has 0 dimensions, the -/// shape is unconstrained. -/// -/// Returns: -/// * `Output`: A placeholder tensor that must be replaced using the feed mechanism. -class Placeholder { - public: - /// Optional attribute setters for Placeholder - struct Attrs { - /// (Optional) The shape of the tensor. If the shape has 0 dimensions, the - /// shape is unconstrained. - /// - /// Defaults to - TF_MUST_USE_RESULT Attrs Shape(PartialTensorShape x) { - Attrs ret = *this; - ret.shape_ = x; - return ret; - } - - PartialTensorShape shape_ = ::tensorflow::PartialTensorShape() /* unknown */; - }; - Placeholder(const ::tensorflow::Scope& scope, DataType dtype); - Placeholder(const ::tensorflow::Scope& scope, DataType dtype, const - Placeholder::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Shape(PartialTensorShape x) { - return Attrs().Shape(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// A placeholder op that passes through `input` when its output is not fed. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The default value to produce when `output` is not fed. -/// * shape: The (possibly partial) shape of the tensor. -/// -/// Returns: -/// * `Output`: A placeholder tensor that defaults to `input` if it is not fed. -class PlaceholderWithDefault { - public: - PlaceholderWithDefault(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, PartialTensorShape shape); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// An identity op that triggers an error if a gradient is requested. -/// -/// When executed in a graph, this op outputs its input tensor as-is. -/// -/// When building ops to compute gradients, the TensorFlow gradient system -/// will return an error when trying to lookup the gradient of this op, -/// because no gradient must ever be registered for this function. This -/// op exists to prevent subtle bugs from silently returning unimplemented -/// gradients in some corner cases. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: any tensor. -/// -/// Optional attributes (see `Attrs`): -/// * message: Will be printed in the error when anyone tries to differentiate -/// this operation. -/// -/// Returns: -/// * `Output`: the same input tensor. -class PreventGradient { - public: - /// Optional attribute setters for PreventGradient - struct Attrs { - /// Will be printed in the error when anyone tries to differentiate - /// this operation. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Message(StringPiece x) { - Attrs ret = *this; - ret.message_ = x; - return ret; - } - - StringPiece message_ = ""; - }; - PreventGradient(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - PreventGradient(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - const PreventGradient::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Message(StringPiece x) { - return Attrs().Message(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Quantizes then dequantizes a tensor. -/// -/// This op simulates the precision loss from the quantized forward pass by: -/// -/// 1. Quantizing the tensor to fixed point numbers, which should match the target -/// quantization method when it is used in inference. -/// 2. Dequantizing it back to floating point numbers for the following ops, most -/// likely matmul. -/// -/// There are different ways to quantize. This version uses only scaling, so 0.0 -/// maps to 0. -/// -/// From the specified 'num_bits' in the quantized output type, it determines -/// minimum and maximum representable quantized values. -/// -/// e.g. -/// -/// * [-128, 127] for signed, num_bits = 8, or -/// * [0, 255] for unsigned, num_bits = 8. -/// -/// If range_given == False, the initial input_min, input_max will be determined -/// automatically as the minimum and maximum values in the input tensor, otherwise -/// the specified values of input_min, input_max are used. -/// -/// Note: If the input_min, input_max are specified, they do not need to equal the -/// actual minimum and maximum values in the tensor. e.g. in some cases it may be -/// beneficial to specify these values such that the low probability extremes of the -/// input distribution are clipped. -/// -/// This op determines the maximum scale_factor that would map the initial -/// [input_min, input_max] range to a range that lies within the representable -/// quantized range. -/// -/// It determines the scale from one of input_min and input_max, then updates the -/// other one to maximize the respresentable range. -/// -/// e.g. -/// -/// * if the output is signed, num_bits = 8, [input_min, input_max] = [-10.0, -/// 5.0]: it would use a scale_factor of -128 / -10.0 = 12.8 In this case, it -/// would update input_max to be 127 / 12.8 = 9.921875 -/// * if the output is signed, num_bits = 8, [input_min, input_max] = [-10.0, -/// 10.0]: it would use a scale_factor of 127 / 10.0 = 12.7 In this case, it -/// would update input_min to be 128.0 / 12.7 = -10.07874 -/// * if the output is unsigned, input_min is forced to be 0, and only the -/// specified input_max is used. -/// -/// After determining the scale_factor and updating the input range, it applies the -/// following to each value in the 'input' tensor. -/// -/// output = round(clamp(value, input_min, input_max) * scale_factor) / scale_factor. -/// -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Tensor to quantize and then dequantize. -/// * input_min: If `range_given == True`, this specifies the minimum input value that needs to -/// be represented, otherwise it is determined from the min value of the `input` -/// tensor. -/// * input_max: If `range_given == True`, this specifies the maximum input value that needs to -/// be represented, otherwise it is determined from the max value of the `input` -/// tensor. -/// -/// Optional attributes (see `Attrs`): -/// * signed_input: Whether the quantization is signed or unsigned. (actually this parameter should -/// have been called `signed_output`) -/// * num_bits: The bitwidth of the quantization. -/// * range_given: Whether the range is given or should be determined from the `input` tensor. -/// -/// Returns: -/// * `Output`: The output tensor. -class QuantizeAndDequantizeV2 { - public: - /// Optional attribute setters for QuantizeAndDequantizeV2 - struct Attrs { - /// Whether the quantization is signed or unsigned. (actually this parameter should - /// have been called `signed_output`) - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs SignedInput(bool x) { - Attrs ret = *this; - ret.signed_input_ = x; - return ret; - } - - /// The bitwidth of the quantization. - /// - /// Defaults to 8 - TF_MUST_USE_RESULT Attrs NumBits(int64 x) { - Attrs ret = *this; - ret.num_bits_ = x; - return ret; - } - - /// Whether the range is given or should be determined from the `input` tensor. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs RangeGiven(bool x) { - Attrs ret = *this; - ret.range_given_ = x; - return ret; - } - - bool signed_input_ = true; - int64 num_bits_ = 8; - bool range_given_ = false; - }; - QuantizeAndDequantizeV2(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, ::tensorflow::Input input_min, - ::tensorflow::Input input_max); - QuantizeAndDequantizeV2(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, ::tensorflow::Input input_min, - ::tensorflow::Input input_max, const - QuantizeAndDequantizeV2::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs SignedInput(bool x) { - return Attrs().SignedInput(x); - } - static Attrs NumBits(int64 x) { - return Attrs().NumBits(x); - } - static Attrs RangeGiven(bool x) { - return Attrs().RangeGiven(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Quantizes then dequantizes a tensor. -/// -/// This is almost identical to QuantizeAndDequantizeV2, except that num_bits is a -/// tensor, so its value can change during training. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class QuantizeAndDequantizeV3 { - public: - /// Optional attribute setters for QuantizeAndDequantizeV3 - struct Attrs { - /// Defaults to true - TF_MUST_USE_RESULT Attrs SignedInput(bool x) { - Attrs ret = *this; - ret.signed_input_ = x; - return ret; - } - - /// Defaults to true - TF_MUST_USE_RESULT Attrs RangeGiven(bool x) { - Attrs ret = *this; - ret.range_given_ = x; - return ret; - } - - bool signed_input_ = true; - bool range_given_ = true; - }; - QuantizeAndDequantizeV3(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, ::tensorflow::Input input_min, - ::tensorflow::Input input_max, ::tensorflow::Input - num_bits); - QuantizeAndDequantizeV3(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, ::tensorflow::Input input_min, - ::tensorflow::Input input_max, ::tensorflow::Input - num_bits, const QuantizeAndDequantizeV3::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs SignedInput(bool x) { - return Attrs().SignedInput(x); - } - static Attrs RangeGiven(bool x) { - return Attrs().RangeGiven(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Quantize the 'input' tensor of type float to 'output' tensor of type 'T'. -/// -/// [min_range, max_range] are scalar floats that specify the range for -/// the 'input' data. The 'mode' attribute controls exactly which calculations are -/// used to convert the float values to their quantized equivalents. The -/// 'round_mode' attribute controls which rounding tie-breaking algorithm is used -/// when rounding float values to their quantized equivalents. -/// -/// In 'MIN_COMBINED' mode, each value of the tensor will undergo the following: -/// -/// ``` -/// out[i] = (in[i] - min_range) * range(T) / (max_range - min_range) -/// if T == qint8, out[i] -= (range(T) + 1) / 2.0 -/// ``` -/// -/// here `range(T) = numeric_limits::max() - numeric_limits::min()` -/// -/// *MIN_COMBINED Mode Example* -/// -/// Assume the input is type float and has a possible range of [0.0, 6.0] and the -/// output type is quint8 ([0, 255]). The min_range and max_range values should be -/// specified as 0.0 and 6.0. Quantizing from float to quint8 will multiply each -/// value of the input by 255/6 and cast to quint8. -/// -/// If the output type was qint8 ([-128, 127]), the operation will additionally -/// subtract each value by 128 prior to casting, so that the range of values aligns -/// with the range of qint8. -/// -/// If the mode is 'MIN_FIRST', then this approach is used: -/// -/// ``` -/// num_discrete_values = 1 << (# of bits in T) -/// range_adjust = num_discrete_values / (num_discrete_values - 1) -/// range = (range_max - range_min) * range_adjust -/// range_scale = num_discrete_values / range -/// quantized = round(input * range_scale) - round(range_min * range_scale) + -/// numeric_limits::min() -/// quantized = max(quantized, numeric_limits::min()) -/// quantized = min(quantized, numeric_limits::max()) -/// ``` -/// -/// The biggest difference between this and MIN_COMBINED is that the minimum range -/// is rounded first, before it's subtracted from the rounded value. With -/// MIN_COMBINED, a small bias is introduced where repeated iterations of quantizing -/// and dequantizing will introduce a larger and larger error. -/// -/// *SCALED mode Example* -/// -/// `SCALED` mode matches the quantization approach used in -/// `QuantizeAndDequantize{V2|V3}`. -/// -/// If the mode is `SCALED`, we do not use the full range of the output type, -/// choosing to elide the lowest possible value for symmetry (e.g., output range is -/// -127 to 127, not -128 to 127 for signed 8 bit quantization), so that 0.0 maps to -/// 0. -/// -/// We first find the range of values in our tensor. The -/// range we use is always centered on 0, so we find m such that -/// -/// ```c++ -/// m = max(abs(input_min), abs(input_max)) -/// ``` -/// -/// Our input tensor range is then `[-m, m]`. -/// -/// Next, we choose our fixed-point quantization buckets, `[min_fixed, max_fixed]`. -/// If T is signed, this is -/// -/// ``` -/// num_bits = sizeof(T) * 8 -/// [min_fixed, max_fixed] = -/// [-(1 << (num_bits - 1) - 1), (1 << (num_bits - 1)) - 1] -/// ``` -/// -/// Otherwise, if T is unsigned, the fixed-point range is -/// -/// ``` -/// [min_fixed, max_fixed] = [0, (1 << num_bits) - 1] -/// ``` -/// -/// From this we compute our scaling factor, s: -/// -/// ```c++ -/// s = (max_fixed - min_fixed) / (2 * m) -/// ``` -/// -/// Now we can quantize the elements of our tensor: -/// -/// ```c++ -/// result = round(input * s) -/// ``` -/// -/// One thing to watch out for is that the operator may choose to adjust the -/// requested minimum and maximum values slightly during the quantization process, -/// so you should always use the output ports as the range for further calculations. -/// For example, if the requested minimum and maximum values are close to equal, -/// they will be separated by a small epsilon value to prevent ill-formed quantized -/// buffers from being created. Otherwise, you can end up with buffers where all the -/// quantized values map to the same float value, which causes problems for -/// operations that have to perform further calculations on them. -/// -/// Arguments: -/// * scope: A Scope object -/// * min_range: The minimum scalar value possibly produced for the input. -/// * max_range: The maximum scalar value possibly produced for the input. -/// -/// Returns: -/// * `Output` output: The quantized data produced from the float input. -/// * `Output` output_min: The actual minimum scalar value used for the output. -/// * `Output` output_max: The actual maximum scalar value used for the output. -class QuantizeV2 { - public: - /// Optional attribute setters for QuantizeV2 - struct Attrs { - /// Defaults to "MIN_COMBINED" - TF_MUST_USE_RESULT Attrs Mode(StringPiece x) { - Attrs ret = *this; - ret.mode_ = x; - return ret; - } - - /// Defaults to "HALF_AWAY_FROM_ZERO" - TF_MUST_USE_RESULT Attrs RoundMode(StringPiece x) { - Attrs ret = *this; - ret.round_mode_ = x; - return ret; - } - - StringPiece mode_ = "MIN_COMBINED"; - StringPiece round_mode_ = "HALF_AWAY_FROM_ZERO"; - }; - QuantizeV2(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input min_range, ::tensorflow::Input max_range, - DataType T); - QuantizeV2(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input min_range, ::tensorflow::Input max_range, - DataType T, const QuantizeV2::Attrs& attrs); - - static Attrs Mode(StringPiece x) { - return Attrs().Mode(x); - } - static Attrs RoundMode(StringPiece x) { - return Attrs().RoundMode(x); - } - - Operation operation; - ::tensorflow::Output output; - ::tensorflow::Output output_min; - ::tensorflow::Output output_max; -}; - -/// Concatenates quantized tensors along one dimension. -/// -/// Arguments: -/// * scope: A Scope object -/// * concat_dim: 0-D. The dimension along which to concatenate. Must be in the -/// range [0, rank(values)). -/// * values: The `N` Tensors to concatenate. Their ranks and types must match, -/// and their sizes must match in all dimensions except `concat_dim`. -/// * input_mins: The minimum scalar values for each of the input tensors. -/// * input_maxes: The maximum scalar values for each of the input tensors. -/// -/// Returns: -/// * `Output` output: A `Tensor` with the concatenation of values stacked along the -/// `concat_dim` dimension. This tensor's shape matches that of `values` except -/// in `concat_dim` where it has the sum of the sizes. -/// * `Output` output_min: The float value that the minimum quantized output value represents. -/// * `Output` output_max: The float value that the maximum quantized output value represents. -class QuantizedConcat { - public: - QuantizedConcat(const ::tensorflow::Scope& scope, ::tensorflow::Input - concat_dim, ::tensorflow::InputList values, - ::tensorflow::InputList input_mins, ::tensorflow::InputList - input_maxes); - - Operation operation; - ::tensorflow::Output output; - ::tensorflow::Output output_min; - ::tensorflow::Output output_max; -}; - -/// Quantized Instance normalization. -/// -/// Arguments: -/// * scope: A Scope object -/// * x: A 4D input Tensor. -/// * x_min: The value represented by the lowest quantized input. -/// * x_max: The value represented by the highest quantized input. -/// -/// Optional attributes (see `Attrs`): -/// * output_range_given: If True, `given_y_min` and `given_y_min` -/// and `given_y_max` are used as the output range. Otherwise, -/// the implementation computes the output range. -/// * given_y_min: Output in `y_min` if `output_range_given` is True. -/// * given_y_max: Output in `y_max` if `output_range_given` is True. -/// * variance_epsilon: A small float number to avoid dividing by 0. -/// * min_separation: Minimum value of `y_max - y_min` -/// -/// Returns: -/// * `Output` y: A 4D Tensor. -/// * `Output` y_min: The value represented by the lowest quantized output. -/// * `Output` y_max: The value represented by the highest quantized output. -class QuantizedInstanceNorm { - public: - /// Optional attribute setters for QuantizedInstanceNorm - struct Attrs { - /// If True, `given_y_min` and `given_y_min` - /// and `given_y_max` are used as the output range. Otherwise, - /// the implementation computes the output range. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs OutputRangeGiven(bool x) { - Attrs ret = *this; - ret.output_range_given_ = x; - return ret; - } - - /// Output in `y_min` if `output_range_given` is True. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs GivenYMin(float x) { - Attrs ret = *this; - ret.given_y_min_ = x; - return ret; - } - - /// Output in `y_max` if `output_range_given` is True. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs GivenYMax(float x) { - Attrs ret = *this; - ret.given_y_max_ = x; - return ret; - } - - /// A small float number to avoid dividing by 0. - /// - /// Defaults to 1e-05 - TF_MUST_USE_RESULT Attrs VarianceEpsilon(float x) { - Attrs ret = *this; - ret.variance_epsilon_ = x; - return ret; - } - - /// Minimum value of `y_max - y_min` - /// - /// Defaults to 0.001 - TF_MUST_USE_RESULT Attrs MinSeparation(float x) { - Attrs ret = *this; - ret.min_separation_ = x; - return ret; - } - - bool output_range_given_ = false; - float given_y_min_ = 0.0f; - float given_y_max_ = 0.0f; - float variance_epsilon_ = 1e-05f; - float min_separation_ = 0.001f; - }; - QuantizedInstanceNorm(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input x_min, ::tensorflow::Input x_max); - QuantizedInstanceNorm(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input x_min, ::tensorflow::Input x_max, - const QuantizedInstanceNorm::Attrs& attrs); - - static Attrs OutputRangeGiven(bool x) { - return Attrs().OutputRangeGiven(x); - } - static Attrs GivenYMin(float x) { - return Attrs().GivenYMin(x); - } - static Attrs GivenYMax(float x) { - return Attrs().GivenYMax(x); - } - static Attrs VarianceEpsilon(float x) { - return Attrs().VarianceEpsilon(x); - } - static Attrs MinSeparation(float x) { - return Attrs().MinSeparation(x); - } - - Operation operation; - ::tensorflow::Output y; - ::tensorflow::Output y_min; - ::tensorflow::Output y_max; -}; - -/// Reshapes a quantized tensor as per the Reshape op. -/// -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * shape: Defines the shape of the output tensor. -/// * input_min: The minimum value of the input. -/// * input_max: The maximum value of the input. -/// -/// Returns: -/// * `Output` output -/// * `Output` output_min: This value is copied from input_min. -/// * `Output` output_max: This value is copied from input_max. -class QuantizedReshape { - public: - QuantizedReshape(const ::tensorflow::Scope& scope, ::tensorflow::Input tensor, - ::tensorflow::Input shape, ::tensorflow::Input input_min, - ::tensorflow::Input input_max); - - Operation operation; - ::tensorflow::Output output; - ::tensorflow::Output output_min; - ::tensorflow::Output output_max; -}; - -/// Returns the rank of a tensor. -/// -/// This operation returns an integer representing the rank of `input`. -/// -/// For example: -/// -/// ``` -/// # 't' is [[[1, 1, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]] -/// # shape of tensor 't' is [2, 2, 3] -/// rank(t) ==> 3 -/// ``` -/// -/// **Note**: The rank of a tensor is not the same as the rank of a matrix. The rank -/// of a tensor is the number of indices required to uniquely select each element -/// of the tensor. Rank is also known as "order", "degree", or "ndims." -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class Rank { - public: - Rank(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Reshapes a tensor. -/// -/// Given `tensor`, this operation returns a tensor that has the same values -/// as `tensor` with shape `shape`. -/// -/// If one component of `shape` is the special value -1, the size of that dimension -/// is computed so that the total size remains constant. In particular, a `shape` -/// of `[-1]` flattens into 1-D. At most one component of `shape` can be -1. -/// -/// If `shape` is 1-D or higher, then the operation returns a tensor with shape -/// `shape` filled with the values of `tensor`. In this case, the number of elements -/// implied by `shape` must be the same as the number of elements in `tensor`. -/// -/// For example: -/// -/// ``` -/// # tensor 't' is [1, 2, 3, 4, 5, 6, 7, 8, 9] -/// # tensor 't' has shape [9] -/// reshape(t, [3, 3]) ==> [[1, 2, 3], -/// [4, 5, 6], -/// [7, 8, 9]] -/// -/// # tensor 't' is [[[1, 1], [2, 2]], -/// # [[3, 3], [4, 4]]] -/// # tensor 't' has shape [2, 2, 2] -/// reshape(t, [2, 4]) ==> [[1, 1, 2, 2], -/// [3, 3, 4, 4]] -/// -/// # tensor 't' is [[[1, 1, 1], -/// # [2, 2, 2]], -/// # [[3, 3, 3], -/// # [4, 4, 4]], -/// # [[5, 5, 5], -/// # [6, 6, 6]]] -/// # tensor 't' has shape [3, 2, 3] -/// # pass '[-1]' to flatten 't' -/// reshape(t, [-1]) ==> [1, 1, 1, 2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6] -/// -/// # -1 can also be used to infer the shape -/// -/// # -1 is inferred to be 9: -/// reshape(t, [2, -1]) ==> [[1, 1, 1, 2, 2, 2, 3, 3, 3], -/// [4, 4, 4, 5, 5, 5, 6, 6, 6]] -/// # -1 is inferred to be 2: -/// reshape(t, [-1, 9]) ==> [[1, 1, 1, 2, 2, 2, 3, 3, 3], -/// [4, 4, 4, 5, 5, 5, 6, 6, 6]] -/// # -1 is inferred to be 3: -/// reshape(t, [ 2, -1, 3]) ==> [[[1, 1, 1], -/// [2, 2, 2], -/// [3, 3, 3]], -/// [[4, 4, 4], -/// [5, 5, 5], -/// [6, 6, 6]]] -/// -/// # tensor 't' is [7] -/// # shape `[]` reshapes to a scalar -/// reshape(t, []) ==> 7 -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * shape: Defines the shape of the output tensor. -/// -/// Returns: -/// * `Output`: The output tensor. -class Reshape { - public: - Reshape(const ::tensorflow::Scope& scope, ::tensorflow::Input tensor, - ::tensorflow::Input shape); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Assign `value` to the sliced l-value reference of `ref`. -/// -/// The values of `value` are assigned to the positions in the variable -/// `ref` that are selected by the slice parameters. The slice parameters -/// `begin, `end`, `strides`, etc. work exactly as in `StridedSlice`. -/// -/// NOTE this op currently does not support broadcasting and so `value`'s -/// shape must be exactly the shape produced by the slice of `ref`. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * the created `Operation` -class ResourceStridedSliceAssign { - public: - /// Optional attribute setters for ResourceStridedSliceAssign - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs BeginMask(int64 x) { - Attrs ret = *this; - ret.begin_mask_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs EndMask(int64 x) { - Attrs ret = *this; - ret.end_mask_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs EllipsisMask(int64 x) { - Attrs ret = *this; - ret.ellipsis_mask_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs NewAxisMask(int64 x) { - Attrs ret = *this; - ret.new_axis_mask_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs ShrinkAxisMask(int64 x) { - Attrs ret = *this; - ret.shrink_axis_mask_ = x; - return ret; - } - - int64 begin_mask_ = 0; - int64 end_mask_ = 0; - int64 ellipsis_mask_ = 0; - int64 new_axis_mask_ = 0; - int64 shrink_axis_mask_ = 0; - }; - ResourceStridedSliceAssign(const ::tensorflow::Scope& scope, - ::tensorflow::Input ref, ::tensorflow::Input begin, - ::tensorflow::Input end, ::tensorflow::Input - strides, ::tensorflow::Input value); - ResourceStridedSliceAssign(const ::tensorflow::Scope& scope, - ::tensorflow::Input ref, ::tensorflow::Input begin, - ::tensorflow::Input end, ::tensorflow::Input - strides, ::tensorflow::Input value, const - ResourceStridedSliceAssign::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs BeginMask(int64 x) { - return Attrs().BeginMask(x); - } - static Attrs EndMask(int64 x) { - return Attrs().EndMask(x); - } - static Attrs EllipsisMask(int64 x) { - return Attrs().EllipsisMask(x); - } - static Attrs NewAxisMask(int64 x) { - return Attrs().NewAxisMask(x); - } - static Attrs ShrinkAxisMask(int64 x) { - return Attrs().ShrinkAxisMask(x); - } - - Operation operation; -}; - -/// Reverses variable length slices. -/// -/// This op first slices `input` along the dimension `batch_dim`, and for each -/// slice `i`, reverses the first `seq_lengths[i]` elements along -/// the dimension `seq_dim`. -/// -/// The elements of `seq_lengths` must obey `seq_lengths[i] <= input.dims[seq_dim]`, -/// and `seq_lengths` must be a vector of length `input.dims[batch_dim]`. -/// -/// The output slice `i` along dimension `batch_dim` is then given by input -/// slice `i`, with the first `seq_lengths[i]` slices along dimension -/// `seq_dim` reversed. -/// -/// For example: -/// -/// ``` -/// # Given this: -/// batch_dim = 0 -/// seq_dim = 1 -/// input.dims = (4, 8, ...) -/// seq_lengths = [7, 2, 3, 5] -/// -/// # then slices of input are reversed on seq_dim, but only up to seq_lengths: -/// output[0, 0:7, :, ...] = input[0, 7:0:-1, :, ...] -/// output[1, 0:2, :, ...] = input[1, 2:0:-1, :, ...] -/// output[2, 0:3, :, ...] = input[2, 3:0:-1, :, ...] -/// output[3, 0:5, :, ...] = input[3, 5:0:-1, :, ...] -/// -/// # while entries past seq_lens are copied through: -/// output[0, 7:, :, ...] = input[0, 7:, :, ...] -/// output[1, 2:, :, ...] = input[1, 2:, :, ...] -/// output[2, 3:, :, ...] = input[2, 3:, :, ...] -/// output[3, 2:, :, ...] = input[3, 2:, :, ...] -/// ``` -/// -/// In contrast, if: -/// -/// ``` -/// # Given this: -/// batch_dim = 2 -/// seq_dim = 0 -/// input.dims = (8, ?, 4, ...) -/// seq_lengths = [7, 2, 3, 5] -/// -/// # then slices of input are reversed on seq_dim, but only up to seq_lengths: -/// output[0:7, :, 0, :, ...] = input[7:0:-1, :, 0, :, ...] -/// output[0:2, :, 1, :, ...] = input[2:0:-1, :, 1, :, ...] -/// output[0:3, :, 2, :, ...] = input[3:0:-1, :, 2, :, ...] -/// output[0:5, :, 3, :, ...] = input[5:0:-1, :, 3, :, ...] -/// -/// # while entries past seq_lens are copied through: -/// output[7:, :, 0, :, ...] = input[7:, :, 0, :, ...] -/// output[2:, :, 1, :, ...] = input[2:, :, 1, :, ...] -/// output[3:, :, 2, :, ...] = input[3:, :, 2, :, ...] -/// output[2:, :, 3, :, ...] = input[2:, :, 3, :, ...] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The input to reverse. -/// * seq_lengths: 1-D with length `input.dims(batch_dim)` and -/// `max(seq_lengths) <= input.dims(seq_dim)` -/// * seq_dim: The dimension which is partially reversed. -/// -/// Optional attributes (see `Attrs`): -/// * batch_dim: The dimension along which reversal is performed. -/// -/// Returns: -/// * `Output`: The partially reversed input. It has the same shape as `input`. -class ReverseSequence { - public: - /// Optional attribute setters for ReverseSequence - struct Attrs { - /// The dimension along which reversal is performed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs BatchDim(int64 x) { - Attrs ret = *this; - ret.batch_dim_ = x; - return ret; - } - - int64 batch_dim_ = 0; - }; - ReverseSequence(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input seq_lengths, int64 seq_dim); - ReverseSequence(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input seq_lengths, int64 seq_dim, const - ReverseSequence::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs BatchDim(int64 x) { - return Attrs().BatchDim(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Reverses specific dimensions of a tensor. -/// -/// NOTE `tf.reverse` has now changed behavior in preparation for 1.0. -/// `tf.reverse_v2` is currently an alias that will be deprecated before TF 1.0. -/// -/// Given a `tensor`, and a `int32` tensor `axis` representing the set of -/// dimensions of `tensor` to reverse. This operation reverses each dimension -/// `i` for which there exists `j` s.t. `axis[j] == i`. -/// -/// `tensor` can have up to 8 dimensions. The number of dimensions specified -/// in `axis` may be 0 or more entries. If an index is specified more than -/// once, a InvalidArgument error is raised. -/// -/// For example: -/// -/// ``` -/// # tensor 't' is [[[[ 0, 1, 2, 3], -/// # [ 4, 5, 6, 7], -/// # [ 8, 9, 10, 11]], -/// # [[12, 13, 14, 15], -/// # [16, 17, 18, 19], -/// # [20, 21, 22, 23]]]] -/// # tensor 't' shape is [1, 2, 3, 4] -/// -/// # 'dims' is [3] or 'dims' is [-1] -/// reverse(t, dims) ==> [[[[ 3, 2, 1, 0], -/// [ 7, 6, 5, 4], -/// [ 11, 10, 9, 8]], -/// [[15, 14, 13, 12], -/// [19, 18, 17, 16], -/// [23, 22, 21, 20]]]] -/// -/// # 'dims' is '[1]' (or 'dims' is '[-3]') -/// reverse(t, dims) ==> [[[[12, 13, 14, 15], -/// [16, 17, 18, 19], -/// [20, 21, 22, 23] -/// [[ 0, 1, 2, 3], -/// [ 4, 5, 6, 7], -/// [ 8, 9, 10, 11]]]] -/// -/// # 'dims' is '[2]' (or 'dims' is '[-2]') -/// reverse(t, dims) ==> [[[[8, 9, 10, 11], -/// [4, 5, 6, 7], -/// [0, 1, 2, 3]] -/// [[20, 21, 22, 23], -/// [16, 17, 18, 19], -/// [12, 13, 14, 15]]]] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * tensor: Up to 8-D. -/// * axis: 1-D. The indices of the dimensions to reverse. Must be in the range -/// `[-rank(tensor), rank(tensor))`. -/// -/// Returns: -/// * `Output`: The same shape as `tensor`. -class Reverse { - public: - Reverse(const ::tensorflow::Scope& scope, ::tensorflow::Input tensor, - ::tensorflow::Input axis); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Scatter `updates` into a new tensor according to `indices`. -/// -/// Creates a new tensor by applying sparse `updates` to individual values or -/// slices within a tensor (initially zero for numeric, empty for string) of -/// the given `shape` according to indices. This operator is the inverse of the -/// `tf.gather_nd` operator which extracts values or slices from a given tensor. -/// -/// If `indices` contains duplicates, then their updates are accumulated (summed). -/// -/// **WARNING**: The order in which updates are applied is nondeterministic, so the -/// output will be nondeterministic if `indices` contains duplicates -- because -/// of some numerical approximation issues, numbers summed in different order -/// may yield different results. -/// -/// `indices` is an integer tensor containing indices into a new tensor of shape -/// `shape`. The last dimension of `indices` can be at most the rank of `shape`: -/// -/// indices.shape[-1] <= shape.rank -/// -/// The last dimension of `indices` corresponds to indices into elements -/// (if `indices.shape[-1] = shape.rank`) or slices -/// (if `indices.shape[-1] < shape.rank`) along dimension `indices.shape[-1]` of -/// `shape`. `updates` is a tensor with shape -/// -/// indices.shape[:-1] + shape[indices.shape[-1]:] -/// -/// The simplest form of scatter is to insert individual elements in a tensor by -/// index. For example, say we want to insert 4 scattered elements in a rank-1 -/// tensor with 8 elements. -/// -///
-/// -///
-/// -/// In Python, this scatter operation would look like this: -/// -/// ```python -/// indices = tf.constant([[4], [3], [1], [7]]) -/// updates = tf.constant([9, 10, 11, 12]) -/// shape = tf.constant([8]) -/// scatter = tf.scatter_nd(indices, updates, shape) -/// with tf.Session() as sess: -/// print(sess.run(scatter)) -/// ``` -/// -/// The resulting tensor would look like this: -/// -/// [0, 11, 0, 10, 9, 0, 0, 12] -/// -/// We can also, insert entire slices of a higher rank tensor all at once. For -/// example, if we wanted to insert two slices in the first dimension of a -/// rank-3 tensor with two matrices of new values. -/// -///
-/// -///
-/// -/// In Python, this scatter operation would look like this: -/// -/// ```python -/// indices = tf.constant([[0], [2]]) -/// updates = tf.constant([[[5, 5, 5, 5], [6, 6, 6, 6], -/// [7, 7, 7, 7], [8, 8, 8, 8]], -/// [[5, 5, 5, 5], [6, 6, 6, 6], -/// [7, 7, 7, 7], [8, 8, 8, 8]]]) -/// shape = tf.constant([4, 4, 4]) -/// scatter = tf.scatter_nd(indices, updates, shape) -/// with tf.Session() as sess: -/// print(sess.run(scatter)) -/// ``` -/// -/// The resulting tensor would look like this: -/// -/// [[[5, 5, 5, 5], [6, 6, 6, 6], [7, 7, 7, 7], [8, 8, 8, 8]], -/// [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]], -/// [[5, 5, 5, 5], [6, 6, 6, 6], [7, 7, 7, 7], [8, 8, 8, 8]], -/// [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]] -/// -/// Note that on CPU, if an out of bound index is found, an error is returned. -/// On GPU, if an out of bound index is found, the index is ignored. -/// -/// Arguments: -/// * scope: A Scope object -/// * indices: Index tensor. -/// * updates: Updates to scatter into output. -/// * shape: 1-D. The shape of the resulting tensor. -/// -/// Returns: -/// * `Output`: A new tensor with the given shape and updates applied according -/// to the indices. -class ScatterNd { - public: - ScatterNd(const ::tensorflow::Scope& scope, ::tensorflow::Input indices, - ::tensorflow::Input updates, ::tensorflow::Input shape); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Applies sparse addition to `input` using individual values or slices -/// -/// from `updates` according to indices `indices`. The updates are non-aliasing: -/// `input` is only modified in-place if no other operations will use it. -/// Otherwise, a copy of `input` is made. This operation has a gradient with -/// respect to both `input` and `updates`. -/// -/// `input` is a `Tensor` with rank `P` and `indices` is a `Tensor` of rank `Q`. -/// -/// `indices` must be integer tensor, containing indices into `input`. -/// It must be shape \\([d_0, ..., d_{Q-2}, K]\\) where `0 < K <= P`. -/// -/// The innermost dimension of `indices` (with length `K`) corresponds to -/// indices into elements (if `K = P`) or `(P-K)`-dimensional slices -/// (if `K < P`) along the `K`th dimension of `input`. -/// -/// `updates` is `Tensor` of rank `Q-1+P-K` with shape: -/// -/// $$[d_0, ..., d_{Q-2}, input.shape[K], ..., input.shape[P-1]].$$ -/// -/// For example, say we want to add 4 scattered elements to a rank-1 tensor to 8 -/// elements. In Python, that addition would look like this: -/// -/// input = tf.constant([1, 2, 3, 4, 5, 6, 7, 8]) -/// indices = tf.constant([[4], [3], [1], [7]]) -/// updates = tf.constant([9, 10, 11, 12]) -/// output = tf.scatter_nd_non_aliasing_add(input, indices, updates) -/// with tf.Session() as sess: -/// print(sess.run(output)) -/// -/// The resulting value `output` would look like this: -/// -/// [1, 13, 3, 14, 14, 6, 7, 20] -/// -/// See `tf.scatter_nd` for more details about how to make updates to slices. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: A Tensor. -/// * indices: A Tensor. Must be one of the following types: `int32`, `int64`. -/// A tensor of indices into `input`. -/// * updates: A Tensor. Must have the same type as ref. A tensor of updated values -/// to add to `input`. -/// -/// Returns: -/// * `Output`: A `Tensor` with the same shape as `input`, containing values of `input` -/// updated with `updates`. -class ScatterNdNonAliasingAdd { - public: - ScatterNdNonAliasingAdd(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, ::tensorflow::Input indices, ::tensorflow::Input - updates); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Returns the shape of a tensor. -/// -/// This operation returns a 1-D integer tensor representing the shape of `input`. -/// -/// For example: -/// -/// ``` -/// # 't' is [[[1, 1, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]] -/// shape(t) ==> [2, 2, 3] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class Shape { - public: - /// Optional attribute setters for Shape - struct Attrs { - /// Defaults to DT_INT32 - TF_MUST_USE_RESULT Attrs OutType(DataType x) { - Attrs ret = *this; - ret.out_type_ = x; - return ret; - } - - DataType out_type_ = DT_INT32; - }; - Shape(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - Shape(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - Shape::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs OutType(DataType x) { - return Attrs().OutType(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Returns shape of tensors. -/// -/// This operation returns N 1-D integer tensors representing shape of `input[i]s`. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `OutputList`: The output tensor. -class ShapeN { - public: - /// Optional attribute setters for ShapeN - struct Attrs { - /// Defaults to DT_INT32 - TF_MUST_USE_RESULT Attrs OutType(DataType x) { - Attrs ret = *this; - ret.out_type_ = x; - return ret; - } - - DataType out_type_ = DT_INT32; - }; - ShapeN(const ::tensorflow::Scope& scope, ::tensorflow::InputList input); - ShapeN(const ::tensorflow::Scope& scope, ::tensorflow::InputList input, const - ShapeN::Attrs& attrs); - ::tensorflow::Output operator[](size_t index) const { return output[index]; } - - - static Attrs OutType(DataType x) { - return Attrs().OutType(x); - } - - Operation operation; - ::tensorflow::OutputList output; -}; - -/// Returns the size of a tensor. -/// -/// This operation returns an integer representing the number of elements in -/// `input`. -/// -/// For example: -/// -/// ``` -/// # 't' is [[[1, 1,, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]]] -/// size(t) ==> 12 -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class Size { - public: - /// Optional attribute setters for Size - struct Attrs { - /// Defaults to DT_INT32 - TF_MUST_USE_RESULT Attrs OutType(DataType x) { - Attrs ret = *this; - ret.out_type_ = x; - return ret; - } - - DataType out_type_ = DT_INT32; - }; - Size(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - Size(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - Size::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs OutType(DataType x) { - return Attrs().OutType(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Return a slice from 'input'. -/// -/// The output tensor is a tensor with dimensions described by 'size' -/// whose values are extracted from 'input' starting at the offsets in -/// 'begin'. -/// -/// *Requirements*: -/// 0 <= begin[i] <= begin[i] + size[i] <= Di for i in [0, n) -/// -/// Arguments: -/// * scope: A Scope object -/// * begin: begin[i] specifies the offset into the 'i'th dimension of -/// 'input' to slice from. -/// * size: size[i] specifies the number of elements of the 'i'th dimension -/// of 'input' to slice. If size[i] is -1, all remaining elements in dimension -/// i are included in the slice (i.e. this is equivalent to setting -/// size[i] = input.dim_size(i) - begin[i]). -/// -/// Returns: -/// * `Output`: The output tensor. -class Slice { - public: - Slice(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input begin, ::tensorflow::Input size); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Returns a copy of the input tensor. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class Snapshot { - public: - Snapshot(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// SpaceToBatch for 4-D tensors of type T. -/// -/// This is a legacy version of the more general SpaceToBatchND. -/// -/// Zero-pads and then rearranges (permutes) blocks of spatial data into batch. -/// More specifically, this op outputs a copy of the input tensor where values from -/// the `height` and `width` dimensions are moved to the `batch` dimension. After -/// the zero-padding, both `height` and `width` of the input must be divisible by the -/// block size. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 4-D with shape `[batch, height, width, depth]`. -/// * paddings: 2-D tensor of non-negative integers with shape `[2, 2]`. It specifies -/// the padding of the input with zeros across the spatial dimensions as follows: -/// -/// paddings = [[pad_top, pad_bottom], [pad_left, pad_right]] -/// -/// The effective spatial dimensions of the zero-padded input tensor will be: -/// -/// height_pad = pad_top + height + pad_bottom -/// width_pad = pad_left + width + pad_right -/// -/// The attr `block_size` must be greater than one. It indicates the block size. -/// -/// * Non-overlapping blocks of size `block_size x block size` in the height and -/// width dimensions are rearranged into the batch dimension at each location. -/// * The batch of the output tensor is `batch * block_size * block_size`. -/// * Both height_pad and width_pad must be divisible by block_size. -/// -/// The shape of the output will be: -/// -/// [batch*block_size*block_size, height_pad/block_size, width_pad/block_size, -/// depth] -/// -/// Some examples: -/// -/// (1) For the following input of shape `[1, 2, 2, 1]` and block_size of 2: -/// -/// ``` -/// x = [[[[1], [2]], [[3], [4]]]] -/// ``` -/// -/// The output tensor has shape `[4, 1, 1, 1]` and value: -/// -/// ``` -/// [[[[1]]], [[[2]]], [[[3]]], [[[4]]]] -/// ``` -/// -/// (2) For the following input of shape `[1, 2, 2, 3]` and block_size of 2: -/// -/// ``` -/// x = [[[[1, 2, 3], [4, 5, 6]], -/// [[7, 8, 9], [10, 11, 12]]]] -/// ``` -/// -/// The output tensor has shape `[4, 1, 1, 3]` and value: -/// -/// ``` -/// [[[1, 2, 3]], [[4, 5, 6]], [[7, 8, 9]], [[10, 11, 12]]] -/// ``` -/// -/// (3) For the following input of shape `[1, 4, 4, 1]` and block_size of 2: -/// -/// ``` -/// x = [[[[1], [2], [3], [4]], -/// [[5], [6], [7], [8]], -/// [[9], [10], [11], [12]], -/// [[13], [14], [15], [16]]]] -/// ``` -/// -/// The output tensor has shape `[4, 2, 2, 1]` and value: -/// -/// ``` -/// x = [[[[1], [3]], [[9], [11]]], -/// [[[2], [4]], [[10], [12]]], -/// [[[5], [7]], [[13], [15]]], -/// [[[6], [8]], [[14], [16]]]] -/// ``` -/// -/// (4) For the following input of shape `[2, 2, 4, 1]` and block_size of 2: -/// -/// ``` -/// x = [[[[1], [2], [3], [4]], -/// [[5], [6], [7], [8]]], -/// [[[9], [10], [11], [12]], -/// [[13], [14], [15], [16]]]] -/// ``` -/// -/// The output tensor has shape `[8, 1, 2, 1]` and value: -/// -/// ``` -/// x = [[[[1], [3]]], [[[9], [11]]], [[[2], [4]]], [[[10], [12]]], -/// [[[5], [7]]], [[[13], [15]]], [[[6], [8]]], [[[14], [16]]]] -/// ``` -/// -/// Among others, this operation is useful for reducing atrous convolution into -/// regular convolution. -/// -/// Returns: -/// * `Output`: The output tensor. -class SpaceToBatch { - public: - SpaceToBatch(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input paddings, int64 block_size); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// SpaceToBatch for N-D tensors of type T. -/// -/// This operation divides "spatial" dimensions `[1, ..., M]` of the input into a -/// grid of blocks of shape `block_shape`, and interleaves these blocks with the -/// "batch" dimension (0) such that in the output, the spatial dimensions -/// `[1, ..., M]` correspond to the position within the grid, and the batch -/// dimension combines both the position within a spatial block and the original -/// batch position. Prior to division into blocks, the spatial dimensions of the -/// input are optionally zero padded according to `paddings`. See below for a -/// precise description. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: N-D with shape `input_shape = [batch] + spatial_shape + remaining_shape`, -/// where spatial_shape has `M` dimensions. -/// * block_shape: 1-D with shape `[M]`, all values must be >= 1. -/// * paddings: 2-D with shape `[M, 2]`, all values must be >= 0. -/// `paddings[i] = [pad_start, pad_end]` specifies the padding for input dimension -/// `i + 1`, which corresponds to spatial dimension `i`. It is required that -/// `block_shape[i]` divides `input_shape[i + 1] + pad_start + pad_end`. -/// -/// This operation is equivalent to the following steps: -/// -/// 1. Zero-pad the start and end of dimensions `[1, ..., M]` of the -/// input according to `paddings` to produce `padded` of shape `padded_shape`. -/// -/// 2. Reshape `padded` to `reshaped_padded` of shape: -/// -/// [batch] + -/// [padded_shape[1] / block_shape[0], -/// block_shape[0], -/// ..., -/// padded_shape[M] / block_shape[M-1], -/// block_shape[M-1]] + -/// remaining_shape -/// -/// 3. Permute dimensions of `reshaped_padded` to produce -/// `permuted_reshaped_padded` of shape: -/// -/// block_shape + -/// [batch] + -/// [padded_shape[1] / block_shape[0], -/// ..., -/// padded_shape[M] / block_shape[M-1]] + -/// remaining_shape -/// -/// 4. Reshape `permuted_reshaped_padded` to flatten `block_shape` into the batch -/// dimension, producing an output tensor of shape: -/// -/// [batch * prod(block_shape)] + -/// [padded_shape[1] / block_shape[0], -/// ..., -/// padded_shape[M] / block_shape[M-1]] + -/// remaining_shape -/// -/// Some examples: -/// -/// (1) For the following input of shape `[1, 2, 2, 1]`, `block_shape = [2, 2]`, and -/// `paddings = [[0, 0], [0, 0]]`: -/// -/// ``` -/// x = [[[[1], [2]], [[3], [4]]]] -/// ``` -/// -/// The output tensor has shape `[4, 1, 1, 1]` and value: -/// -/// ``` -/// [[[[1]]], [[[2]]], [[[3]]], [[[4]]]] -/// ``` -/// -/// (2) For the following input of shape `[1, 2, 2, 3]`, `block_shape = [2, 2]`, and -/// `paddings = [[0, 0], [0, 0]]`: -/// -/// ``` -/// x = [[[[1, 2, 3], [4, 5, 6]], -/// [[7, 8, 9], [10, 11, 12]]]] -/// ``` -/// -/// The output tensor has shape `[4, 1, 1, 3]` and value: -/// -/// ``` -/// [[[1, 2, 3]], [[4, 5, 6]], [[7, 8, 9]], [[10, 11, 12]]] -/// ``` -/// -/// (3) For the following input of shape `[1, 4, 4, 1]`, `block_shape = [2, 2]`, and -/// `paddings = [[0, 0], [0, 0]]`: -/// -/// ``` -/// x = [[[[1], [2], [3], [4]], -/// [[5], [6], [7], [8]], -/// [[9], [10], [11], [12]], -/// [[13], [14], [15], [16]]]] -/// ``` -/// -/// The output tensor has shape `[4, 2, 2, 1]` and value: -/// -/// ``` -/// x = [[[[1], [3]], [[9], [11]]], -/// [[[2], [4]], [[10], [12]]], -/// [[[5], [7]], [[13], [15]]], -/// [[[6], [8]], [[14], [16]]]] -/// ``` -/// -/// (4) For the following input of shape `[2, 2, 4, 1]`, block_shape = `[2, 2]`, and -/// paddings = `[[0, 0], [2, 0]]`: -/// -/// ``` -/// x = [[[[1], [2], [3], [4]], -/// [[5], [6], [7], [8]]], -/// [[[9], [10], [11], [12]], -/// [[13], [14], [15], [16]]]] -/// ``` -/// -/// The output tensor has shape `[8, 1, 3, 1]` and value: -/// -/// ``` -/// x = [[[[0], [1], [3]]], [[[0], [9], [11]]], -/// [[[0], [2], [4]]], [[[0], [10], [12]]], -/// [[[0], [5], [7]]], [[[0], [13], [15]]], -/// [[[0], [6], [8]]], [[[0], [14], [16]]]] -/// ``` -/// -/// Among others, this operation is useful for reducing atrous convolution into -/// regular convolution. -/// -/// Returns: -/// * `Output`: The output tensor. -class SpaceToBatchND { - public: - SpaceToBatchND(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input block_shape, ::tensorflow::Input paddings); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// SpaceToDepth for tensors of type T. -/// -/// Rearranges blocks of spatial data, into depth. More specifically, -/// this op outputs a copy of the input tensor where values from the `height` -/// and `width` dimensions are moved to the `depth` dimension. -/// The attr `block_size` indicates the input block size. -/// -/// * Non-overlapping blocks of size `block_size x block size` are rearranged -/// into depth at each location. -/// * The depth of the output tensor is `block_size * block_size * input_depth`. -/// * The Y, X coordinates within each block of the input become the high order -/// component of the output channel index. -/// * The input tensor's height and width must be divisible by block_size. -/// -/// The `data_format` attr specifies the layout of the input and output tensors -/// with the following options: -/// "NHWC": `[ batch, height, width, channels ]` -/// "NCHW": `[ batch, channels, height, width ]` -/// "NCHW_VECT_C": -/// `qint8 [ batch, channels / 4, height, width, 4 ]` -/// -/// It is useful to consider the operation as transforming a 6-D Tensor. -/// e.g. for data_format = NHWC, -/// Each element in the input tensor can be specified via 6 coordinates, -/// ordered by decreasing memory layout significance as: -/// n,oY,bY,oX,bX,iC (where n=batch index, oX, oY means X or Y coordinates -/// within the output image, bX, bY means coordinates -/// within the input block, iC means input channels). -/// The output would be a transpose to the following layout: -/// n,oY,oX,bY,bX,iC -/// -/// This operation is useful for resizing the activations between convolutions -/// (but keeping all data), e.g. instead of pooling. It is also useful for training -/// purely convolutional models. -/// -/// For example, given an input of shape `[1, 2, 2, 1]`, data_format = "NHWC" and -/// block_size = 2: -/// -/// ``` -/// x = [[[[1], [2]], -/// [[3], [4]]]] -/// ``` -/// -/// This operation will output a tensor of shape `[1, 1, 1, 4]`: -/// -/// ``` -/// [[[[1, 2, 3, 4]]]] -/// ``` -/// -/// Here, the input has a batch of 1 and each batch element has shape `[2, 2, 1]`, -/// the corresponding output will have a single element (i.e. width and height are -/// both 1) and will have a depth of 4 channels (1 * block_size * block_size). -/// The output element shape is `[1, 1, 4]`. -/// -/// For an input tensor with larger depth, here of shape `[1, 2, 2, 3]`, e.g. -/// -/// ``` -/// x = [[[[1, 2, 3], [4, 5, 6]], -/// [[7, 8, 9], [10, 11, 12]]]] -/// ``` -/// -/// This operation, for block_size of 2, will return the following tensor of shape -/// `[1, 1, 1, 12]` -/// -/// ``` -/// [[[[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]]]] -/// ``` -/// -/// Similarly, for the following input of shape `[1 4 4 1]`, and a block size of 2: -/// -/// ``` -/// x = [[[[1], [2], [5], [6]], -/// [[3], [4], [7], [8]], -/// [[9], [10], [13], [14]], -/// [[11], [12], [15], [16]]]] -/// ``` -/// -/// the operator will return the following tensor of shape `[1 2 2 4]`: -/// -/// ``` -/// x = [[[[1, 2, 3, 4], -/// [5, 6, 7, 8]], -/// [[9, 10, 11, 12], -/// [13, 14, 15, 16]]]] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * block_size: The size of the spatial block. -/// -/// Returns: -/// * `Output`: The output tensor. -class SpaceToDepth { - public: - /// Optional attribute setters for SpaceToDepth - struct Attrs { - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - StringPiece data_format_ = "NHWC"; - }; - SpaceToDepth(const ::tensorflow::Scope& scope, ::tensorflow::Input input, int64 - block_size); - SpaceToDepth(const ::tensorflow::Scope& scope, ::tensorflow::Input input, int64 - block_size, const SpaceToDepth::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Splits a tensor into `num_split` tensors along one dimension. -/// -/// Arguments: -/// * scope: A Scope object -/// * axis: 0-D. The dimension along which to split. Must be in the range -/// `[-rank(value), rank(value))`. -/// * value: The tensor to split. -/// * num_split: The number of ways to split. Must evenly divide -/// `value.shape[split_dim]`. -/// -/// Returns: -/// * `OutputList`: They are identically shaped tensors, whose shape matches that of `value` -/// except along `axis`, where their sizes are -/// `values.shape[split_dim] / num_split`. -class Split { - public: - Split(const ::tensorflow::Scope& scope, ::tensorflow::Input axis, - ::tensorflow::Input value, int64 num_split); - ::tensorflow::Output operator[](size_t index) const { return output[index]; } - - - Operation operation; - ::tensorflow::OutputList output; -}; - -/// Splits a tensor into `num_split` tensors along one dimension. -/// -/// Arguments: -/// * scope: A Scope object -/// * value: The tensor to split. -/// * size_splits: list containing the sizes of each output tensor along the split -/// dimension. Must sum to the dimension of value along split_dim. -/// Can contain one -1 indicating that dimension is to be inferred. -/// * axis: 0-D. The dimension along which to split. Must be in the range -/// `[-rank(value), rank(value))`. -/// -/// Returns: -/// * `OutputList`: Tensors whose shape matches that of `value` -/// except along `axis`, where their sizes are -/// `size_splits[i]`. -class SplitV { - public: - SplitV(const ::tensorflow::Scope& scope, ::tensorflow::Input value, - ::tensorflow::Input size_splits, ::tensorflow::Input axis, int64 - num_split); - ::tensorflow::Output operator[](size_t index) const { return output[index]; } - - - Operation operation; - ::tensorflow::OutputList output; -}; - -/// Removes dimensions of size 1 from the shape of a tensor. -/// -/// Given a tensor `input`, this operation returns a tensor of the same type with -/// all dimensions of size 1 removed. If you don't want to remove all size 1 -/// dimensions, you can remove specific size 1 dimensions by specifying -/// `axis`. -/// -/// For example: -/// -/// ``` -/// # 't' is a tensor of shape [1, 2, 1, 3, 1, 1] -/// shape(squeeze(t)) ==> [2, 3] -/// ``` -/// -/// Or, to remove specific size 1 dimensions: -/// -/// ``` -/// # 't' is a tensor of shape [1, 2, 1, 3, 1, 1] -/// shape(squeeze(t, [2, 4])) ==> [1, 2, 3, 1] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The `input` to squeeze. -/// -/// Optional attributes (see `Attrs`): -/// * axis: If specified, only squeezes the dimensions listed. The dimension -/// index starts at 0. It is an error to squeeze a dimension that is not 1. Must -/// be in the range `[-rank(input), rank(input))`. -/// -/// Returns: -/// * `Output`: Contains the same data as `input`, but has one or more dimensions of -/// size 1 removed. -class Squeeze { - public: - /// Optional attribute setters for Squeeze - struct Attrs { - /// If specified, only squeezes the dimensions listed. The dimension - /// index starts at 0. It is an error to squeeze a dimension that is not 1. Must - /// be in the range `[-rank(input), rank(input))`. - /// - /// Defaults to [] - TF_MUST_USE_RESULT Attrs Axis(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.axis_ = x; - return ret; - } - - gtl::ArraySlice axis_ = {}; - }; - Squeeze(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - Squeeze(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - Squeeze::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Axis(const gtl::ArraySlice& x) { - return Attrs().Axis(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Stops gradient computation. -/// -/// When executed in a graph, this op outputs its input tensor as-is. -/// -/// When building ops to compute gradients, this op prevents the contribution of -/// its inputs to be taken into account. Normally, the gradient generator adds ops -/// to a graph to compute the derivatives of a specified 'loss' by recursively -/// finding out inputs that contributed to its computation. If you insert this op -/// in the graph it inputs are masked from the gradient generator. They are not -/// taken into account for computing gradients. -/// -/// This is useful any time you want to compute a value with TensorFlow but need -/// to pretend that the value was a constant. Some examples include: -/// -/// * The *EM* algorithm where the *M-step* should not involve backpropagation -/// through the output of the *E-step*. -/// * Contrastive divergence training of Boltzmann machines where, when -/// differentiating the energy function, the training must not backpropagate -/// through the graph that generated the samples from the model. -/// * Adversarial training, where no backprop should happen through the adversarial -/// example generation process. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class StopGradient { - public: - StopGradient(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Return a strided slice from `input`. -/// -/// Note, most python users will want to use the Python `Tensor.__getitem__` -/// or `Variable.__getitem__` rather than this op directly. -/// -/// The goal of this op is to produce a new tensor with a subset of -/// the elements from the `n` dimensional `input` tensor. The subset is chosen using -/// a sequence of `m` sparse range specifications encoded into the arguments -/// of this function. Note, in some cases -/// `m` could be equal to `n`, but this need not be the case. Each -/// range specification entry can be one of the following: -/// -/// - An ellipsis (...). Ellipses are used to imply zero or more -/// dimensions of full-dimension selection and are produced using -/// `ellipsis_mask`. For example, `foo[...]` is the identity slice. -/// -/// - A new axis. This is used to insert a new shape=1 dimension and is -/// produced using `new_axis_mask`. For example, `foo[:, ...]` where -/// `foo` is shape `(3, 4)` produces a `(1, 3, 4)` tensor. -/// -/// -/// - A range `begin:end:stride`. This is used to specify how much to choose from -/// a given dimension. `stride` can be any integer but 0. `begin` is an integer -/// which represents the index of the first value to select while `end` represents -/// the index of the last value to select. The number of values selected in each -/// dimension is `end - begin` if `stride > 0` and `begin - end` if `stride < 0`. -/// `begin` and `end` can be negative where `-1` is the last element, `-2` is -/// the second to last. `begin_mask` controls whether to replace the explicitly -/// given `begin` with an implicit effective value of `0` if `stride > 0` and -/// `-1` if `stride < 0`. `end_mask` is analogous but produces the number -/// required to create the largest open interval. For example, given a shape -/// `(3,)` tensor `foo[:]`, the effective `begin` and `end` are `0` and `3`. Do -/// not assume this is equivalent to `foo[0:-1]` which has an effective `begin` -/// and `end` of `0` and `2`. Another example is `foo[-2::-1]` which reverses the -/// first dimension of a tensor while dropping the last two (in the original -/// order elements). For example `foo = [1,2,3,4]; foo[-2::-1]` is `[4,3]`. -/// -/// - A single index. This is used to keep only elements that have a given -/// index. For example (`foo[2, :]` on a shape `(5,6)` tensor produces a -/// shape `(6,)` tensor. This is encoded in `begin` and `end` and -/// `shrink_axis_mask`. -/// -/// Each conceptual range specification is encoded in the op's argument. This -/// encoding is best understand by considering a non-trivial example. In -/// particular, -/// `foo[1, 2:4, None, ..., :-3:-1, :]` will be encoded as -/// -/// ``` -/// begin = [1, 2, x, x, 0, x] # x denotes don't care (usually 0) -/// end = [2, 4, x, x, -3, x] -/// strides = [1, 1, x, x, -1, 1] -/// begin_mask = 1<<4 | 1 << 5 = 48 -/// end_mask = 1<<5 = 32 -/// ellipsis_mask = 1<<3 = 8 -/// new_axis_mask = 1<<2 4 -/// shrink_axis_mask = 1<<0 -/// ``` -/// -/// In this case if `foo.shape` is (5, 5, 5, 5, 5, 5) the final shape of -/// the slice becomes (2, 1, 5, 5, 2, 5). -/// Let us walk step by step through each argument specification. -/// -/// 1. The first argument in the example slice is turned into `begin = 1` and -/// `end = begin + 1 = 2`. To disambiguate from the original spec `2:4` we -/// also set the appropriate bit in `shrink_axis_mask`. -/// -/// 2. `2:4` is contributes 2, 4, 1 to begin, end, and stride. All masks have -/// zero bits contributed. -/// -/// 3. None is a synonym for `tf.newaxis`. This means insert a dimension of size 1 -/// dimension in the final shape. Dummy values are contributed to begin, -/// end and stride, while the new_axis_mask bit is set. -/// -/// 4. `...` grab the full ranges from as many dimensions as needed to -/// fully specify a slice for every dimension of the input shape. -/// -/// 5. `:-3:-1` shows the use of negative indices. A negative index `i` associated -/// with a dimension that has shape `s` is converted to a positive index -/// `s + i`. So `-1` becomes `s-1` (i.e. the last element). This conversion -/// is done internally so begin, end and strides receive x, -3, and -1. -/// The appropriate begin_mask bit is set to indicate the start range is the -/// full range (ignoring the x). -/// -/// 6. `:` indicates that the entire contents of the corresponding dimension -/// is selected. This is equivalent to `::` or `0::1`. begin, end, and strides -/// receive 0, 0, and 1, respectively. The appropriate bits in `begin_mask` and -/// `end_mask` are also set. -/// -/// *Requirements*: -/// `0 != strides[i] for i in [0, m)` -/// `ellipsis_mask must be a power of two (only one ellipsis)` -/// -/// Arguments: -/// * scope: A Scope object -/// * begin: `begin[k]` specifies the offset into the `k`th range specification. -/// The exact dimension this corresponds to will be determined by context. -/// Out-of-bounds values will be silently clamped. If the `k`th bit of -/// `begin_mask` then `begin[k]` is ignored and the full range of the -/// appropriate dimension is used instead. Negative values causes indexing -/// to start from the highest element e.g. If `foo==[1,2,3]` then `foo[-1]==3`. -/// * end: `end[i]` is like `begin` with the exception that `end_mask` is -/// used to determine full ranges. -/// * strides: `strides[i]` specifies the increment in the `i`th specification -/// after extracting a given element. Negative indices will reverse -/// the original order. Out or range values are -/// clamped to `[0,dim[i]) if slice[i]>0` or `[-1,dim[i]-1] if slice[i] < 0` -/// -/// Optional attributes (see `Attrs`): -/// * begin_mask: a bitmask where a bit i being 1 means to ignore the begin -/// value and instead use the largest interval possible. At runtime -/// begin[i] will be replaced with `[0, n-1)` if `stride[i] > 0` or -/// `[-1, n-1]` if `stride[i] < 0` -/// * end_mask: analogous to `begin_mask` -/// * ellipsis_mask: a bitmask where bit `i` being 1 means the `i`th -/// position is actually an ellipsis. One bit at most can be 1. -/// If `ellipsis_mask == 0`, then an implicit ellipsis mask of `1 << (m+1)` -/// is provided. This means that `foo[3:5] == foo[3:5, ...]`. An ellipsis -/// implicitly creates as many range specifications as necessary to fully -/// specify the sliced range for every dimension. For example for a 4-dimensional -/// tensor `foo` the slice `foo[2, ..., 5:8]` implies `foo[2, :, :, 5:8]`. -/// * new_axis_mask: a bitmask where bit `i` being 1 means the `i`th -/// specification creates a new shape 1 dimension. For example -/// `foo[:4, tf.newaxis, :2]` would produce a shape `(4, 1, 2)` tensor. -/// * shrink_axis_mask: a bitmask where bit `i` implies that the `i`th -/// specification should shrink the dimensionality. begin and end -/// must imply a slice of size 1 in the dimension. For example in -/// python one might do `foo[:, 3, :]` which would result in -/// `shrink_axis_mask` being 2. -/// -/// Returns: -/// * `Output`: The output tensor. -class StridedSlice { - public: - /// Optional attribute setters for StridedSlice - struct Attrs { - /// a bitmask where a bit i being 1 means to ignore the begin - /// value and instead use the largest interval possible. At runtime - /// begin[i] will be replaced with `[0, n-1)` if `stride[i] > 0` or - /// `[-1, n-1]` if `stride[i] < 0` - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs BeginMask(int64 x) { - Attrs ret = *this; - ret.begin_mask_ = x; - return ret; - } - - /// analogous to `begin_mask` - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs EndMask(int64 x) { - Attrs ret = *this; - ret.end_mask_ = x; - return ret; - } - - /// a bitmask where bit `i` being 1 means the `i`th - /// position is actually an ellipsis. One bit at most can be 1. - /// If `ellipsis_mask == 0`, then an implicit ellipsis mask of `1 << (m+1)` - /// is provided. This means that `foo[3:5] == foo[3:5, ...]`. An ellipsis - /// implicitly creates as many range specifications as necessary to fully - /// specify the sliced range for every dimension. For example for a 4-dimensional - /// tensor `foo` the slice `foo[2, ..., 5:8]` implies `foo[2, :, :, 5:8]`. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs EllipsisMask(int64 x) { - Attrs ret = *this; - ret.ellipsis_mask_ = x; - return ret; - } - - /// a bitmask where bit `i` being 1 means the `i`th - /// specification creates a new shape 1 dimension. For example - /// `foo[:4, tf.newaxis, :2]` would produce a shape `(4, 1, 2)` tensor. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs NewAxisMask(int64 x) { - Attrs ret = *this; - ret.new_axis_mask_ = x; - return ret; - } - - /// a bitmask where bit `i` implies that the `i`th - /// specification should shrink the dimensionality. begin and end - /// must imply a slice of size 1 in the dimension. For example in - /// python one might do `foo[:, 3, :]` which would result in - /// `shrink_axis_mask` being 2. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs ShrinkAxisMask(int64 x) { - Attrs ret = *this; - ret.shrink_axis_mask_ = x; - return ret; - } - - int64 begin_mask_ = 0; - int64 end_mask_ = 0; - int64 ellipsis_mask_ = 0; - int64 new_axis_mask_ = 0; - int64 shrink_axis_mask_ = 0; - }; - StridedSlice(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input begin, ::tensorflow::Input end, - ::tensorflow::Input strides); - StridedSlice(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input begin, ::tensorflow::Input end, - ::tensorflow::Input strides, const StridedSlice::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs BeginMask(int64 x) { - return Attrs().BeginMask(x); - } - static Attrs EndMask(int64 x) { - return Attrs().EndMask(x); - } - static Attrs EllipsisMask(int64 x) { - return Attrs().EllipsisMask(x); - } - static Attrs NewAxisMask(int64 x) { - return Attrs().NewAxisMask(x); - } - static Attrs ShrinkAxisMask(int64 x) { - return Attrs().ShrinkAxisMask(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Assign `value` to the sliced l-value reference of `ref`. -/// -/// The values of `value` are assigned to the positions in the variable -/// `ref` that are selected by the slice parameters. The slice parameters -/// `begin, `end`, `strides`, etc. work exactly as in `StridedSlice`. -/// -/// NOTE this op currently does not support broadcasting and so `value`'s -/// shape must be exactly the shape produced by the slice of `ref`. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output_ref tensor. -class StridedSliceAssign { - public: - /// Optional attribute setters for StridedSliceAssign - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs BeginMask(int64 x) { - Attrs ret = *this; - ret.begin_mask_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs EndMask(int64 x) { - Attrs ret = *this; - ret.end_mask_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs EllipsisMask(int64 x) { - Attrs ret = *this; - ret.ellipsis_mask_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs NewAxisMask(int64 x) { - Attrs ret = *this; - ret.new_axis_mask_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs ShrinkAxisMask(int64 x) { - Attrs ret = *this; - ret.shrink_axis_mask_ = x; - return ret; - } - - int64 begin_mask_ = 0; - int64 end_mask_ = 0; - int64 ellipsis_mask_ = 0; - int64 new_axis_mask_ = 0; - int64 shrink_axis_mask_ = 0; - }; - StridedSliceAssign(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input begin, ::tensorflow::Input end, - ::tensorflow::Input strides, ::tensorflow::Input value); - StridedSliceAssign(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input begin, ::tensorflow::Input end, - ::tensorflow::Input strides, ::tensorflow::Input value, - const StridedSliceAssign::Attrs& attrs); - operator ::tensorflow::Output() const { return output_ref; } - operator ::tensorflow::Input() const { return output_ref; } - ::tensorflow::Node* node() const { return output_ref.node(); } - - static Attrs BeginMask(int64 x) { - return Attrs().BeginMask(x); - } - static Attrs EndMask(int64 x) { - return Attrs().EndMask(x); - } - static Attrs EllipsisMask(int64 x) { - return Attrs().EllipsisMask(x); - } - static Attrs NewAxisMask(int64 x) { - return Attrs().NewAxisMask(x); - } - static Attrs ShrinkAxisMask(int64 x) { - return Attrs().ShrinkAxisMask(x); - } - - Operation operation; - ::tensorflow::Output output_ref; -}; - -/// Returns the gradient of `StridedSlice`. -/// -/// Since `StridedSlice` cuts out pieces of its `input` which is size -/// `shape`, its gradient will have the same shape (which is passed here -/// as `shape`). The gradient will be zero in any element that the slice -/// does not select. -/// -/// Arguments are the same as StridedSliceGrad with the exception that -/// `dy` is the input gradient to be propagated and `shape` is the -/// shape of `StridedSlice`'s `input`. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class StridedSliceGrad { - public: - /// Optional attribute setters for StridedSliceGrad - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs BeginMask(int64 x) { - Attrs ret = *this; - ret.begin_mask_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs EndMask(int64 x) { - Attrs ret = *this; - ret.end_mask_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs EllipsisMask(int64 x) { - Attrs ret = *this; - ret.ellipsis_mask_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs NewAxisMask(int64 x) { - Attrs ret = *this; - ret.new_axis_mask_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs ShrinkAxisMask(int64 x) { - Attrs ret = *this; - ret.shrink_axis_mask_ = x; - return ret; - } - - int64 begin_mask_ = 0; - int64 end_mask_ = 0; - int64 ellipsis_mask_ = 0; - int64 new_axis_mask_ = 0; - int64 shrink_axis_mask_ = 0; - }; - StridedSliceGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input shape, - ::tensorflow::Input begin, ::tensorflow::Input end, - ::tensorflow::Input strides, ::tensorflow::Input dy); - StridedSliceGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input shape, - ::tensorflow::Input begin, ::tensorflow::Input end, - ::tensorflow::Input strides, ::tensorflow::Input dy, const - StridedSliceGrad::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs BeginMask(int64 x) { - return Attrs().BeginMask(x); - } - static Attrs EndMask(int64 x) { - return Attrs().EndMask(x); - } - static Attrs EllipsisMask(int64 x) { - return Attrs().EllipsisMask(x); - } - static Attrs NewAxisMask(int64 x) { - return Attrs().NewAxisMask(x); - } - static Attrs ShrinkAxisMask(int64 x) { - return Attrs().ShrinkAxisMask(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Constructs a tensor by tiling a given tensor. -/// -/// This operation creates a new tensor by replicating `input` `multiples` times. -/// The output tensor's i'th dimension has `input.dims(i) * multiples[i]` elements, -/// and the values of `input` are replicated `multiples[i]` times along the 'i'th -/// dimension. For example, tiling `[a b c d]` by `[2]` produces -/// `[a b c d a b c d]`. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 1-D or higher. -/// * multiples: 1-D. Length must be the same as the number of dimensions in `input` -/// -/// Returns: -/// * `Output`: The output tensor. -class Tile { - public: - Tile(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input multiples); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Shuffle dimensions of x according to a permutation. -/// -/// The output `y` has the same rank as `x`. The shapes of `x` and `y` satisfy: -/// `y.shape[i] == x.shape[perm[i]] for i in [0, 1, ..., rank(x) - 1]` -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Transpose { - public: - Transpose(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input perm); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Finds unique elements in a 1-D tensor. -/// -/// This operation returns a tensor `y` containing all of the unique elements of `x` -/// sorted in the same order that they occur in `x`. This operation also returns a -/// tensor `idx` the same size as `x` that contains the index of each value of `x` -/// in the unique output `y`. In other words: -/// -/// `y[idx[i]] = x[i] for i in [0, 1,...,rank(x) - 1]` -/// -/// For example: -/// -/// ``` -/// # tensor 'x' is [1, 1, 2, 4, 4, 4, 7, 8, 8] -/// y, idx = unique(x) -/// y ==> [1, 2, 4, 7, 8] -/// idx ==> [0, 0, 1, 2, 2, 2, 3, 4, 4] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * x: 1-D. -/// -/// Returns: -/// * `Output` y: 1-D. -/// * `Output` idx: 1-D. -class Unique { - public: - /// Optional attribute setters for Unique - struct Attrs { - /// Defaults to DT_INT32 - TF_MUST_USE_RESULT Attrs OutIdx(DataType x) { - Attrs ret = *this; - ret.out_idx_ = x; - return ret; - } - - DataType out_idx_ = DT_INT32; - }; - Unique(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - Unique(const ::tensorflow::Scope& scope, ::tensorflow::Input x, const - Unique::Attrs& attrs); - - static Attrs OutIdx(DataType x) { - return Attrs().OutIdx(x); - } - - Operation operation; - ::tensorflow::Output y; - ::tensorflow::Output idx; -}; - -/// Finds unique elements along an axis of a tensor. -/// -/// This operation either returns a tensor `y` containing unique elements -/// along the `axis` of a tensor. The returned unique elements is sorted -/// in the same order as they occur along `axis` in `x`. -/// This operation also returns a tensor `idx` that is the same size as -/// the number of the elements in `x` along the `axis` dimension. It -/// contains the index in the unique output `y`. -/// In other words, for an `1-D` tensor `x` with `axis = None: -/// -/// `y[idx[i]] = x[i] for i in [0, 1,...,rank(x) - 1]` -/// -/// For example: -/// -/// ``` -/// # tensor 'x' is [1, 1, 2, 4, 4, 4, 7, 8, 8] -/// y, idx = unique(x) -/// y ==> [1, 2, 4, 7, 8] -/// idx ==> [0, 0, 1, 2, 2, 2, 3, 4, 4] -/// ``` -/// -/// For an `2-D` tensor `x` with `axis = 0`: -/// -/// ``` -/// # tensor 'x' is [[1, 0, 0], -/// # [1, 0, 0], -/// # [2, 0, 0]] -/// y, idx = unique(x, axis=0) -/// y ==> [[1, 0, 0], -/// [2, 0, 0]] -/// idx ==> [0, 0, 1] -/// ``` -/// -/// For an `2-D` tensor `x` with `axis = 1`: -/// -/// ``` -/// # tensor 'x' is [[1, 0, 0], -/// # [1, 0, 0], -/// # [2, 0, 0]] -/// y, idx = unique(x, axis=1) -/// y ==> [[1, 0], -/// [1, 0], -/// [2, 0]] -/// idx ==> [0, 1, 1] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * x: A `Tensor`. -/// * axis: A `Tensor` of type `int32` (default: None). The axis of the Tensor to -/// find the unique elements. -/// -/// Returns: -/// * `Output` y: A `Tensor`. Unique elements along the `axis` of `Tensor` x. -/// * `Output` idx: A 1-D Tensor. Has the same type as x that contains the index of each -/// value of x in the output y. -class UniqueV2 { - public: - /// Optional attribute setters for UniqueV2 - struct Attrs { - /// Defaults to DT_INT32 - TF_MUST_USE_RESULT Attrs OutIdx(DataType x) { - Attrs ret = *this; - ret.out_idx_ = x; - return ret; - } - - DataType out_idx_ = DT_INT32; - }; - UniqueV2(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input axis); - UniqueV2(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input axis, const UniqueV2::Attrs& attrs); - - static Attrs OutIdx(DataType x) { - return Attrs().OutIdx(x); - } - - Operation operation; - ::tensorflow::Output y; - ::tensorflow::Output idx; -}; - -/// Finds unique elements in a 1-D tensor. -/// -/// This operation returns a tensor `y` containing all of the unique elements of `x` -/// sorted in the same order that they occur in `x`. This operation also returns a -/// tensor `idx` the same size as `x` that contains the index of each value of `x` -/// in the unique output `y`. Finally, it returns a third tensor `count` that -/// contains the count of each element of `y` in `x`. In other words: -/// -/// `y[idx[i]] = x[i] for i in [0, 1,...,rank(x) - 1]` -/// -/// For example: -/// -/// ``` -/// # tensor 'x' is [1, 1, 2, 4, 4, 4, 7, 8, 8] -/// y, idx, count = unique_with_counts(x) -/// y ==> [1, 2, 4, 7, 8] -/// idx ==> [0, 0, 1, 2, 2, 2, 3, 4, 4] -/// count ==> [2, 1, 3, 1, 2] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * x: 1-D. -/// -/// Returns: -/// * `Output` y: 1-D. -/// * `Output` idx: 1-D. -/// * `Output` count: 1-D. -class UniqueWithCounts { - public: - /// Optional attribute setters for UniqueWithCounts - struct Attrs { - /// Defaults to DT_INT32 - TF_MUST_USE_RESULT Attrs OutIdx(DataType x) { - Attrs ret = *this; - ret.out_idx_ = x; - return ret; - } - - DataType out_idx_ = DT_INT32; - }; - UniqueWithCounts(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - UniqueWithCounts(const ::tensorflow::Scope& scope, ::tensorflow::Input x, const - UniqueWithCounts::Attrs& attrs); - - static Attrs OutIdx(DataType x) { - return Attrs().OutIdx(x); - } - - Operation operation; - ::tensorflow::Output y; - ::tensorflow::Output idx; - ::tensorflow::Output count; -}; - -/// Finds unique elements along an axis of a tensor. -/// -/// This operation either returns a tensor `y` containing unique elements -/// along the `axis` of a tensor. The returned unique elements is sorted -/// in the same order as they occur along `axis` in `x`. -/// This operation also returns a tensor `idx` and a tensor `count` -/// that are the same size as the number of the elements in `x` along the -/// `axis` dimension. The `idx` contains the index in the unique output `y` -/// and the `count` contains the count in the unique output `y`. -/// In other words, for an `1-D` tensor `x` with `axis = None: -/// -/// `y[idx[i]] = x[i] for i in [0, 1,...,rank(x) - 1]` -/// -/// For example: -/// -/// ``` -/// # tensor 'x' is [1, 1, 2, 4, 4, 4, 7, 8, 8] -/// y, idx, count = unique_with_counts(x) -/// y ==> [1, 2, 4, 7, 8] -/// idx ==> [0, 0, 1, 2, 2, 2, 3, 4, 4] -/// count ==> [2, 1, 3, 1, 2] -/// ``` -/// -/// For an `2-D` tensor `x` with `axis = 0`: -/// -/// ``` -/// # tensor 'x' is [[1, 0, 0], -/// # [1, 0, 0], -/// # [2, 0, 0]] -/// y, idx, count = unique_with_counts(x, axis=0) -/// y ==> [[1, 0, 0], -/// [2, 0, 0]] -/// idx ==> [0, 0, 1] -/// count ==> [2, 1] -/// ``` -/// -/// For an `2-D` tensor `x` with `axis = 1`: -/// -/// ``` -/// # tensor 'x' is [[1, 0, 0], -/// # [1, 0, 0], -/// # [2, 0, 0]] -/// y, idx, count = unique_with_counts(x, axis=1) -/// y ==> [[1, 0], -/// [1, 0], -/// [2, 0]] -/// idx ==> [0, 1, 1] -/// count ==> [1, 2] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * x: A `Tensor`. -/// * axis: A `Tensor` of type `int32` (default: None). The axis of the Tensor to -/// find the unique elements. -/// -/// Returns: -/// * `Output` y: A `Tensor`. Unique elements along the `axis` of `Tensor` x. -/// * `Output` idx: A 1-D Tensor. Has the same type as x that contains the index of each -/// value of x in the output y. -/// * `Output` count: A 1-D Tensor. The count of each value of x in the output y. -class UniqueWithCountsV2 { - public: - /// Optional attribute setters for UniqueWithCountsV2 - struct Attrs { - /// Defaults to DT_INT32 - TF_MUST_USE_RESULT Attrs OutIdx(DataType x) { - Attrs ret = *this; - ret.out_idx_ = x; - return ret; - } - - DataType out_idx_ = DT_INT32; - }; - UniqueWithCountsV2(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input axis); - UniqueWithCountsV2(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input axis, const UniqueWithCountsV2::Attrs& - attrs); - - static Attrs OutIdx(DataType x) { - return Attrs().OutIdx(x); - } - - Operation operation; - ::tensorflow::Output y; - ::tensorflow::Output idx; - ::tensorflow::Output count; -}; - -/// Unpacks a given dimension of a rank-`R` tensor into `num` rank-`(R-1)` tensors. -/// -/// Unpacks `num` tensors from `value` by chipping it along the `axis` dimension. -/// For example, given a tensor of shape `(A, B, C, D)`; -/// -/// If `axis == 0` then the i'th tensor in `output` is the slice `value[i, :, :, :]` -/// and each tensor in `output` will have shape `(B, C, D)`. (Note that the -/// dimension unpacked along is gone, unlike `split`). -/// -/// If `axis == 1` then the i'th tensor in `output` is the slice `value[:, i, :, :]` -/// and each tensor in `output` will have shape `(A, C, D)`. -/// Etc. -/// -/// This is the opposite of `pack`. -/// -/// Arguments: -/// * scope: A Scope object -/// * value: 1-D or higher, with `axis` dimension size equal to `num`. -/// -/// Optional attributes (see `Attrs`): -/// * axis: Dimension along which to unpack. Negative values wrap around, so the -/// valid range is `[-R, R)`. -/// -/// Returns: -/// * `OutputList`: The list of tensors unpacked from `value`. -class Unstack { - public: - /// Optional attribute setters for Unstack - struct Attrs { - /// Dimension along which to unpack. Negative values wrap around, so the - /// valid range is `[-R, R)`. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Axis(int64 x) { - Attrs ret = *this; - ret.axis_ = x; - return ret; - } - - int64 axis_ = 0; - }; - Unstack(const ::tensorflow::Scope& scope, ::tensorflow::Input value, int64 num); - Unstack(const ::tensorflow::Scope& scope, ::tensorflow::Input value, int64 num, - const Unstack::Attrs& attrs); - ::tensorflow::Output operator[](size_t index) const { return output[index]; } - - - static Attrs Axis(int64 x) { - return Attrs().Axis(x); - } - - Operation operation; - ::tensorflow::OutputList output; -}; - -/// Converts a flat index or array of flat indices into a tuple of -/// -/// coordinate arrays. -/// -/// @compatibility(numpy) -/// Equivalent to np.unravel_index -/// @end_compatibility -/// -/// Arguments: -/// * scope: A Scope object -/// * indices: An 0-D or 1-D `int` Tensor whose elements are indices into the -/// flattened version of an array of dimensions dims. -/// * dims: An 1-D `int` Tensor. The shape of the array to use for unraveling -/// indices. -/// -/// Returns: -/// * `Output`: An 2-D (or 1-D if indices is 0-D) tensor where each row has the -/// same shape as the indices array. -class UnravelIndex { - public: - UnravelIndex(const ::tensorflow::Scope& scope, ::tensorflow::Input indices, - ::tensorflow::Input dims); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Returns locations of nonzero / true values in a tensor. -/// -/// This operation returns the coordinates of true elements in `condition`. The -/// coordinates are returned in a 2-D tensor where the first dimension (rows) -/// represents the number of true elements, and the second dimension (columns) -/// represents the coordinates of the true elements. Keep in mind, the shape of -/// the output tensor can vary depending on how many true values there are in -/// `condition`. Indices are output in row-major order. -/// -/// For example: -/// -/// ``` -/// # 'input' tensor is [[True, False] -/// # [True, False]] -/// # 'input' has two true values, so output has two coordinates. -/// # 'input' has rank of 2, so coordinates have two indices. -/// where(input) ==> [[0, 0], -/// [1, 0]] -/// -/// # `condition` tensor is [[[True, False] -/// # [True, False]] -/// # [[False, True] -/// # [False, True]] -/// # [[False, False] -/// # [False, True]]] -/// # 'input' has 5 true values, so output has 5 coordinates. -/// # 'input' has rank of 3, so coordinates have three indices. -/// where(input) ==> [[0, 0, 0], -/// [0, 1, 0], -/// [1, 0, 1], -/// [1, 1, 1], -/// [2, 1, 1]] -/// -/// # `condition` tensor is [[[1.5, 0.0] -/// # [-0.5, 0.0]] -/// # [[0.0, 0.25] -/// # [0.0, 0.75]] -/// # [[0.0, 0.0] -/// # [0.0, 0.01]]] -/// # 'input' has 5 nonzero values, so output has 5 coordinates. -/// # 'input' has rank of 3, so coordinates have three indices. -/// where(input) ==> [[0, 0, 0], -/// [0, 1, 0], -/// [1, 0, 1], -/// [1, 1, 1], -/// [2, 1, 1]] -/// -/// # `condition` tensor is [[[1.5 + 0.0j, 0.0 + 0.0j] -/// # [0.0 + 0.5j, 0.0 + 0.0j]] -/// # [[0.0 + 0.0j, 0.25 + 1.5j] -/// # [0.0 + 0.0j, 0.75 + 0.0j]] -/// # [[0.0 + 0.0j, 0.0 + 0.0j] -/// # [0.0 + 0.0j, 0.01 + 0.0j]]] -/// # 'input' has 5 nonzero magnitude values, so output has 5 coordinates. -/// # 'input' has rank of 3, so coordinates have three indices. -/// where(input) ==> [[0, 0, 0], -/// [0, 1, 0], -/// [1, 0, 1], -/// [1, 1, 1], -/// [2, 1, 1]] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The index tensor. -class Where { - public: - Where(const ::tensorflow::Scope& scope, ::tensorflow::Input condition); - operator ::tensorflow::Output() const { return index; } - operator ::tensorflow::Input() const { return index; } - ::tensorflow::Node* node() const { return index.node(); } - - Operation operation; - ::tensorflow::Output index; -}; - -/// Returns a tensor of zeros with the same shape and type as x. -/// -/// Arguments: -/// * scope: A Scope object -/// * x: a tensor of type T. -/// -/// Returns: -/// * `Output`: a tensor of the same shape and type as x but filled with zeros. -class ZerosLike { - public: - ZerosLike(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_ARRAY_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/array_ops_internal.h b/linux/include/tensorflow/cc/ops/array_ops_internal.h deleted file mode 100755 index ada44088c..000000000 --- a/linux/include/tensorflow/cc/ops/array_ops_internal.h +++ /dev/null @@ -1,226 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_ARRAY_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_ARRAY_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup array_ops_internal Array Ops Internal -/// @{ - -/// Return the reduction indices for computing gradients of s0 op s1 with broadcast. -/// -/// This is typically used by gradient computations for a broadcasting operation. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output` r0 -/// * `Output` r1 -class BroadcastGradientArgs { - public: - BroadcastGradientArgs(const ::tensorflow::Scope& scope, ::tensorflow::Input s0, - ::tensorflow::Input s1); - - Operation operation; - ::tensorflow::Output r0; - ::tensorflow::Output r1; -}; - -/// Applies lower_bound(sorted_search_values, values) along each row. -/// -/// Each set of rows with the same index in (sorted_inputs, values) is treated -/// independently. The resulting row is the equivalent of calling -/// `np.searchsorted(sorted_inputs, values, side='left')`. -/// -/// The result is not a global index to the entire -/// `Tensor`, but rather just the index in the last dimension. -/// -/// A 2-D example: -/// sorted_sequence = [[0, 3, 9, 9, 10], -/// [1, 2, 3, 4, 5]] -/// values = [[2, 4, 9], -/// [0, 2, 6]] -/// -/// result = LowerBound(sorted_sequence, values) -/// -/// result == [[1, 2, 2], -/// [0, 1, 5]] -/// -/// Arguments: -/// * scope: A Scope object -/// * sorted_inputs: 2-D Tensor where each row is ordered. -/// * values: 2-D Tensor with the same numbers of rows as `sorted_search_values`. Contains -/// the values that will be searched for in `sorted_search_values`. -/// -/// Returns: -/// * `Output`: A `Tensor` with the same shape as `values`. It contains the first scalar index -/// into the last dimension where values can be inserted without changing the -/// ordered property. -class LowerBound { - public: - /// Optional attribute setters for LowerBound - struct Attrs { - /// Defaults to DT_INT32 - TF_MUST_USE_RESULT Attrs OutType(DataType x) { - Attrs ret = *this; - ret.out_type_ = x; - return ret; - } - - DataType out_type_ = DT_INT32; - }; - LowerBound(const ::tensorflow::Scope& scope, ::tensorflow::Input sorted_inputs, - ::tensorflow::Input values); - LowerBound(const ::tensorflow::Scope& scope, ::tensorflow::Input sorted_inputs, - ::tensorflow::Input values, const LowerBound::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs OutType(DataType x) { - return Attrs().OutType(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Gradient op for `MirrorPad` op. This op folds a mirror-padded tensor. -/// -/// This operation folds the padded areas of `input` by `MirrorPad` according to the -/// `paddings` you specify. `paddings` must be the same as `paddings` argument -/// given to the corresponding `MirrorPad` op. -/// -/// The folded size of each dimension D of the output is: -/// -/// `input.dim_size(D) - paddings(D, 0) - paddings(D, 1)` -/// -/// For example: -/// -/// ``` -/// # 't' is [[1, 2, 3], [4, 5, 6], [7, 8, 9]]. -/// # 'paddings' is [[0, 1]], [0, 1]]. -/// # 'mode' is SYMMETRIC. -/// # rank of 't' is 2. -/// pad(t, paddings) ==> [[ 1, 5] -/// [11, 28]] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The input tensor to be folded. -/// * paddings: A two-column matrix specifying the padding sizes. The number of -/// rows must be the same as the rank of `input`. -/// * mode: The mode used in the `MirrorPad` op. -/// -/// Returns: -/// * `Output`: The folded tensor. -class MirrorPadGrad { - public: - MirrorPadGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input paddings, StringPiece mode); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Return the same ref tensor as the input ref tensor. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class RefIdentity { - public: - RefIdentity(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Applies upper_bound(sorted_search_values, values) along each row. -/// -/// Each set of rows with the same index in (sorted_inputs, values) is treated -/// independently. The resulting row is the equivalent of calling -/// `np.searchsorted(sorted_inputs, values, side='right')`. -/// -/// The result is not a global index to the entire -/// `Tensor`, but rather just the index in the last dimension. -/// -/// A 2-D example: -/// sorted_sequence = [[0, 3, 9, 9, 10], -/// [1, 2, 3, 4, 5]] -/// values = [[2, 4, 9], -/// [0, 2, 6]] -/// -/// result = UpperBound(sorted_sequence, values) -/// -/// result == [[1, 2, 4], -/// [0, 2, 5]] -/// -/// Arguments: -/// * scope: A Scope object -/// * sorted_inputs: 2-D Tensor where each row is ordered. -/// * values: 2-D Tensor with the same numbers of rows as `sorted_search_values`. Contains -/// the values that will be searched for in `sorted_search_values`. -/// -/// Returns: -/// * `Output`: A `Tensor` with the same shape as `values`. It contains the last scalar index -/// into the last dimension where values can be inserted without changing the -/// ordered property. -class UpperBound { - public: - /// Optional attribute setters for UpperBound - struct Attrs { - /// Defaults to DT_INT32 - TF_MUST_USE_RESULT Attrs OutType(DataType x) { - Attrs ret = *this; - ret.out_type_ = x; - return ret; - } - - DataType out_type_ = DT_INT32; - }; - UpperBound(const ::tensorflow::Scope& scope, ::tensorflow::Input sorted_inputs, - ::tensorflow::Input values); - UpperBound(const ::tensorflow::Scope& scope, ::tensorflow::Input sorted_inputs, - ::tensorflow::Input values, const UpperBound::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs OutType(DataType x) { - return Attrs().OutType(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_ARRAY_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/audio_ops.h b/linux/include/tensorflow/cc/ops/audio_ops.h deleted file mode 100755 index ccf626a85..000000000 --- a/linux/include/tensorflow/cc/ops/audio_ops.h +++ /dev/null @@ -1,295 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_AUDIO_OPS_H_ -#define TENSORFLOW_CC_OPS_AUDIO_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup audio_ops Audio Ops -/// @{ - -/// Produces a visualization of audio data over time. -/// -/// Spectrograms are a standard way of representing audio information as a series of -/// slices of frequency information, one slice for each window of time. By joining -/// these together into a sequence, they form a distinctive fingerprint of the sound -/// over time. -/// -/// This op expects to receive audio data as an input, stored as floats in the range -/// -1 to 1, together with a window width in samples, and a stride specifying how -/// far to move the window between slices. From this it generates a three -/// dimensional output. The lowest dimension has an amplitude value for each -/// frequency during that time slice. The next dimension is time, with successive -/// frequency slices. The final dimension is for the channels in the input, so a -/// stereo audio input would have two here for example. -/// -/// This means the layout when converted and saved as an image is rotated 90 degrees -/// clockwise from a typical spectrogram. Time is descending down the Y axis, and -/// the frequency decreases from left to right. -/// -/// Each value in the result represents the square root of the sum of the real and -/// imaginary parts of an FFT on the current window of samples. In this way, the -/// lowest dimension represents the power of each frequency in the current window, -/// and adjacent windows are concatenated in the next dimension. -/// -/// To get a more intuitive and visual look at what this operation does, you can run -/// tensorflow/examples/wav_to_spectrogram to read in an audio file and save out the -/// resulting spectrogram as a PNG image. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Float representation of audio data. -/// * window_size: How wide the input window is in samples. For the highest efficiency -/// this should be a power of two, but other values are accepted. -/// * stride: How widely apart the center of adjacent sample windows should be. -/// -/// Optional attributes (see `Attrs`): -/// * magnitude_squared: Whether to return the squared magnitude or just the -/// magnitude. Using squared magnitude can avoid extra calculations. -/// -/// Returns: -/// * `Output`: 3D representation of the audio frequencies as an image. -class AudioSpectrogram { - public: - /// Optional attribute setters for AudioSpectrogram - struct Attrs { - /// Whether to return the squared magnitude or just the - /// magnitude. Using squared magnitude can avoid extra calculations. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs MagnitudeSquared(bool x) { - Attrs ret = *this; - ret.magnitude_squared_ = x; - return ret; - } - - bool magnitude_squared_ = false; - }; - AudioSpectrogram(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - int64 window_size, int64 stride); - AudioSpectrogram(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - int64 window_size, int64 stride, const - AudioSpectrogram::Attrs& attrs); - operator ::tensorflow::Output() const { return spectrogram; } - operator ::tensorflow::Input() const { return spectrogram; } - ::tensorflow::Node* node() const { return spectrogram.node(); } - - static Attrs MagnitudeSquared(bool x) { - return Attrs().MagnitudeSquared(x); - } - - Operation operation; - ::tensorflow::Output spectrogram; -}; - -/// Decode a 16-bit PCM WAV file to a float tensor. -/// -/// The -32768 to 32767 signed 16-bit values will be scaled to -1.0 to 1.0 in float. -/// -/// When desired_channels is set, if the input contains fewer channels than this -/// then the last channel will be duplicated to give the requested number, else if -/// the input has more channels than requested then the additional channels will be -/// ignored. -/// -/// If desired_samples is set, then the audio will be cropped or padded with zeroes -/// to the requested length. -/// -/// The first output contains a Tensor with the content of the audio samples. The -/// lowest dimension will be the number of channels, and the second will be the -/// number of samples. For example, a ten-sample-long stereo WAV file should give an -/// output shape of [10, 2]. -/// -/// Arguments: -/// * scope: A Scope object -/// * contents: The WAV-encoded audio, usually from a file. -/// -/// Optional attributes (see `Attrs`): -/// * desired_channels: Number of sample channels wanted. -/// * desired_samples: Length of audio requested. -/// -/// Returns: -/// * `Output` audio: 2-D with shape `[length, channels]`. -/// * `Output` sample_rate: Scalar holding the sample rate found in the WAV header. -class DecodeWav { - public: - /// Optional attribute setters for DecodeWav - struct Attrs { - /// Number of sample channels wanted. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs DesiredChannels(int64 x) { - Attrs ret = *this; - ret.desired_channels_ = x; - return ret; - } - - /// Length of audio requested. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs DesiredSamples(int64 x) { - Attrs ret = *this; - ret.desired_samples_ = x; - return ret; - } - - int64 desired_channels_ = -1; - int64 desired_samples_ = -1; - }; - DecodeWav(const ::tensorflow::Scope& scope, ::tensorflow::Input contents); - DecodeWav(const ::tensorflow::Scope& scope, ::tensorflow::Input contents, const - DecodeWav::Attrs& attrs); - - static Attrs DesiredChannels(int64 x) { - return Attrs().DesiredChannels(x); - } - static Attrs DesiredSamples(int64 x) { - return Attrs().DesiredSamples(x); - } - - Operation operation; - ::tensorflow::Output audio; - ::tensorflow::Output sample_rate; -}; - -/// Encode audio data using the WAV file format. -/// -/// This operation will generate a string suitable to be saved out to create a .wav -/// audio file. It will be encoded in the 16-bit PCM format. It takes in float -/// values in the range -1.0f to 1.0f, and any outside that value will be clamped to -/// that range. -/// -/// `audio` is a 2-D float Tensor of shape `[length, channels]`. -/// `sample_rate` is a scalar Tensor holding the rate to use (e.g. 44100). -/// -/// Arguments: -/// * scope: A Scope object -/// * audio: 2-D with shape `[length, channels]`. -/// * sample_rate: Scalar containing the sample frequency. -/// -/// Returns: -/// * `Output`: 0-D. WAV-encoded file contents. -class EncodeWav { - public: - EncodeWav(const ::tensorflow::Scope& scope, ::tensorflow::Input audio, - ::tensorflow::Input sample_rate); - operator ::tensorflow::Output() const { return contents; } - operator ::tensorflow::Input() const { return contents; } - ::tensorflow::Node* node() const { return contents.node(); } - - Operation operation; - ::tensorflow::Output contents; -}; - -/// Transforms a spectrogram into a form that's useful for speech recognition. -/// -/// Mel Frequency Cepstral Coefficients are a way of representing audio data that's -/// been effective as an input feature for machine learning. They are created by -/// taking the spectrum of a spectrogram (a 'cepstrum'), and discarding some of the -/// higher frequencies that are less significant to the human ear. They have a long -/// history in the speech recognition world, and https://en.wikipedia.org/wiki/Mel-frequency_cepstrum -/// is a good resource to learn more. -/// -/// Arguments: -/// * scope: A Scope object -/// * spectrogram: Typically produced by the Spectrogram op, with magnitude_squared -/// set to true. -/// * sample_rate: How many samples per second the source audio used. -/// -/// Optional attributes (see `Attrs`): -/// * upper_frequency_limit: The highest frequency to use when calculating the -/// ceptstrum. -/// * lower_frequency_limit: The lowest frequency to use when calculating the -/// ceptstrum. -/// * filterbank_channel_count: Resolution of the Mel bank used internally. -/// * dct_coefficient_count: How many output channels to produce per time slice. -/// -/// Returns: -/// * `Output`: The output tensor. -class Mfcc { - public: - /// Optional attribute setters for Mfcc - struct Attrs { - /// The highest frequency to use when calculating the - /// ceptstrum. - /// - /// Defaults to 4000 - TF_MUST_USE_RESULT Attrs UpperFrequencyLimit(float x) { - Attrs ret = *this; - ret.upper_frequency_limit_ = x; - return ret; - } - - /// The lowest frequency to use when calculating the - /// ceptstrum. - /// - /// Defaults to 20 - TF_MUST_USE_RESULT Attrs LowerFrequencyLimit(float x) { - Attrs ret = *this; - ret.lower_frequency_limit_ = x; - return ret; - } - - /// Resolution of the Mel bank used internally. - /// - /// Defaults to 40 - TF_MUST_USE_RESULT Attrs FilterbankChannelCount(int64 x) { - Attrs ret = *this; - ret.filterbank_channel_count_ = x; - return ret; - } - - /// How many output channels to produce per time slice. - /// - /// Defaults to 13 - TF_MUST_USE_RESULT Attrs DctCoefficientCount(int64 x) { - Attrs ret = *this; - ret.dct_coefficient_count_ = x; - return ret; - } - - float upper_frequency_limit_ = 4000.0f; - float lower_frequency_limit_ = 20.0f; - int64 filterbank_channel_count_ = 40; - int64 dct_coefficient_count_ = 13; - }; - Mfcc(const ::tensorflow::Scope& scope, ::tensorflow::Input spectrogram, - ::tensorflow::Input sample_rate); - Mfcc(const ::tensorflow::Scope& scope, ::tensorflow::Input spectrogram, - ::tensorflow::Input sample_rate, const Mfcc::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs UpperFrequencyLimit(float x) { - return Attrs().UpperFrequencyLimit(x); - } - static Attrs LowerFrequencyLimit(float x) { - return Attrs().LowerFrequencyLimit(x); - } - static Attrs FilterbankChannelCount(int64 x) { - return Attrs().FilterbankChannelCount(x); - } - static Attrs DctCoefficientCount(int64 x) { - return Attrs().DctCoefficientCount(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_AUDIO_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/audio_ops_internal.h b/linux/include/tensorflow/cc/ops/audio_ops_internal.h deleted file mode 100755 index 7b0ac2632..000000000 --- a/linux/include/tensorflow/cc/ops/audio_ops_internal.h +++ /dev/null @@ -1,28 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_AUDIO_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_AUDIO_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup audio_ops_internal Audio Ops Internal -/// @{ - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_AUDIO_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/candidate_sampling_ops.h b/linux/include/tensorflow/cc/ops/candidate_sampling_ops.h deleted file mode 100755 index 480b0ee7b..000000000 --- a/linux/include/tensorflow/cc/ops/candidate_sampling_ops.h +++ /dev/null @@ -1,657 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_CANDIDATE_SAMPLING_OPS_H_ -#define TENSORFLOW_CC_OPS_CANDIDATE_SAMPLING_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup candidate_sampling_ops Candidate Sampling Ops -/// @{ - -/// Generates labels for candidate sampling with a learned unigram distribution. -/// -/// See explanations of candidate sampling and the data formats at -/// go/candidate-sampling. -/// -/// For each batch, this op picks a single set of sampled candidate labels. -/// -/// The advantages of sampling candidates per-batch are simplicity and the -/// possibility of efficient dense matrix multiplication. The disadvantage is that -/// the sampled candidates must be chosen independently of the context and of the -/// true labels. -/// -/// Arguments: -/// * scope: A Scope object -/// * true_classes: A batch_size * num_true matrix, in which each row contains the -/// IDs of the num_true target_classes in the corresponding original label. -/// * num_true: Number of true labels per context. -/// * num_sampled: Number of candidates to produce. -/// * unique: If unique is true, we sample with rejection, so that all sampled -/// candidates in a batch are unique. This requires some approximation to -/// estimate the post-rejection sampling probabilities. -/// -/// Optional attributes (see `Attrs`): -/// * seed: If either seed or seed2 are set to be non-zero, the random number -/// generator is seeded by the given seed. Otherwise, it is seeded by a -/// random seed. -/// * seed2: An second seed to avoid seed collision. -/// -/// Returns: -/// * `Output` sampled_candidates: A vector of length num_sampled, in which each element is -/// the ID of a sampled candidate. -/// * `Output` true_expected_count: A batch_size * num_true matrix, representing -/// the number of times each candidate is expected to occur in a batch -/// of sampled candidates. If unique=true, then this is a probability. -/// * `Output` sampled_expected_count: A vector of length num_sampled, for each sampled -/// candidate representing the number of times the candidate is expected -/// to occur in a batch of sampled candidates. If unique=true, then this is a -/// probability. -class AllCandidateSampler { - public: - /// Optional attribute setters for AllCandidateSampler - struct Attrs { - /// If either seed or seed2 are set to be non-zero, the random number - /// generator is seeded by the given seed. Otherwise, it is seeded by a - /// random seed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// An second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - int64 seed_ = 0; - int64 seed2_ = 0; - }; - AllCandidateSampler(const ::tensorflow::Scope& scope, ::tensorflow::Input - true_classes, int64 num_true, int64 num_sampled, bool - unique); - AllCandidateSampler(const ::tensorflow::Scope& scope, ::tensorflow::Input - true_classes, int64 num_true, int64 num_sampled, bool - unique, const AllCandidateSampler::Attrs& attrs); - - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - - Operation operation; - ::tensorflow::Output sampled_candidates; - ::tensorflow::Output true_expected_count; - ::tensorflow::Output sampled_expected_count; -}; - -/// Computes the ids of the positions in sampled_candidates that match true_labels. -/// -/// When doing log-odds NCE, the result of this op should be passed through a -/// SparseToDense op, then added to the logits of the sampled candidates. This has -/// the effect of 'removing' the sampled labels that match the true labels by -/// making the classifier sure that they are sampled labels. -/// -/// Arguments: -/// * scope: A Scope object -/// * true_classes: The true_classes output of UnpackSparseLabels. -/// * sampled_candidates: The sampled_candidates output of CandidateSampler. -/// * num_true: Number of true labels per context. -/// -/// Optional attributes (see `Attrs`): -/// * seed: If either seed or seed2 are set to be non-zero, the random number -/// generator is seeded by the given seed. Otherwise, it is seeded by a -/// random seed. -/// * seed2: An second seed to avoid seed collision. -/// -/// Returns: -/// * `Output` indices: A vector of indices corresponding to rows of true_candidates. -/// * `Output` ids: A vector of IDs of positions in sampled_candidates that match a true_label -/// for the row with the corresponding index in indices. -/// * `Output` weights: A vector of the same length as indices and ids, in which each element -/// is -FLOAT_MAX. -class ComputeAccidentalHits { - public: - /// Optional attribute setters for ComputeAccidentalHits - struct Attrs { - /// If either seed or seed2 are set to be non-zero, the random number - /// generator is seeded by the given seed. Otherwise, it is seeded by a - /// random seed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// An second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - int64 seed_ = 0; - int64 seed2_ = 0; - }; - ComputeAccidentalHits(const ::tensorflow::Scope& scope, ::tensorflow::Input - true_classes, ::tensorflow::Input sampled_candidates, - int64 num_true); - ComputeAccidentalHits(const ::tensorflow::Scope& scope, ::tensorflow::Input - true_classes, ::tensorflow::Input sampled_candidates, - int64 num_true, const ComputeAccidentalHits::Attrs& - attrs); - - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - - Operation operation; - ::tensorflow::Output indices; - ::tensorflow::Output ids; - ::tensorflow::Output weights; -}; - -/// Generates labels for candidate sampling with a learned unigram distribution. -/// -/// A unigram sampler could use a fixed unigram distribution read from a -/// file or passed in as an in-memory array instead of building up the distribution -/// from data on the fly. There is also an option to skew the distribution by -/// applying a distortion power to the weights. -/// -/// The vocabulary file should be in CSV-like format, with the last field -/// being the weight associated with the word. -/// -/// For each batch, this op picks a single set of sampled candidate labels. -/// -/// The advantages of sampling candidates per-batch are simplicity and the -/// possibility of efficient dense matrix multiplication. The disadvantage is that -/// the sampled candidates must be chosen independently of the context and of the -/// true labels. -/// -/// Arguments: -/// * scope: A Scope object -/// * true_classes: A batch_size * num_true matrix, in which each row contains the -/// IDs of the num_true target_classes in the corresponding original label. -/// * num_true: Number of true labels per context. -/// * num_sampled: Number of candidates to randomly sample. -/// * unique: If unique is true, we sample with rejection, so that all sampled -/// candidates in a batch are unique. This requires some approximation to -/// estimate the post-rejection sampling probabilities. -/// * range_max: The sampler will sample integers from the interval [0, range_max). -/// -/// Optional attributes (see `Attrs`): -/// * vocab_file: Each valid line in this file (which should have a CSV-like format) -/// corresponds to a valid word ID. IDs are in sequential order, starting from -/// num_reserved_ids. The last entry in each line is expected to be a value -/// corresponding to the count or relative probability. Exactly one of vocab_file -/// and unigrams needs to be passed to this op. -/// * distortion: The distortion is used to skew the unigram probability distribution. -/// Each weight is first raised to the distortion's power before adding to the -/// internal unigram distribution. As a result, distortion = 1.0 gives regular -/// unigram sampling (as defined by the vocab file), and distortion = 0.0 gives -/// a uniform distribution. -/// * num_reserved_ids: Optionally some reserved IDs can be added in the range [0, -/// ..., num_reserved_ids) by the users. One use case is that a special unknown -/// word token is used as ID 0. These IDs will have a sampling probability of 0. -/// * num_shards: A sampler can be used to sample from a subset of the original range -/// in order to speed up the whole computation through parallelism. This parameter -/// (together with 'shard') indicates the number of partitions that are being -/// used in the overall computation. -/// * shard: A sampler can be used to sample from a subset of the original range -/// in order to speed up the whole computation through parallelism. This parameter -/// (together with 'num_shards') indicates the particular partition number of a -/// sampler op, when partitioning is being used. -/// * unigrams: A list of unigram counts or probabilities, one per ID in sequential -/// order. Exactly one of vocab_file and unigrams should be passed to this op. -/// * seed: If either seed or seed2 are set to be non-zero, the random number -/// generator is seeded by the given seed. Otherwise, it is seeded by a -/// random seed. -/// * seed2: An second seed to avoid seed collision. -/// -/// Returns: -/// * `Output` sampled_candidates: A vector of length num_sampled, in which each element is -/// the ID of a sampled candidate. -/// * `Output` true_expected_count: A batch_size * num_true matrix, representing -/// the number of times each candidate is expected to occur in a batch -/// of sampled candidates. If unique=true, then this is a probability. -/// * `Output` sampled_expected_count: A vector of length num_sampled, for each sampled -/// candidate representing the number of times the candidate is expected -/// to occur in a batch of sampled candidates. If unique=true, then this is a -/// probability. -class FixedUnigramCandidateSampler { - public: - /// Optional attribute setters for FixedUnigramCandidateSampler - struct Attrs { - /// Each valid line in this file (which should have a CSV-like format) - /// corresponds to a valid word ID. IDs are in sequential order, starting from - /// num_reserved_ids. The last entry in each line is expected to be a value - /// corresponding to the count or relative probability. Exactly one of vocab_file - /// and unigrams needs to be passed to this op. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs VocabFile(StringPiece x) { - Attrs ret = *this; - ret.vocab_file_ = x; - return ret; - } - - /// The distortion is used to skew the unigram probability distribution. - /// Each weight is first raised to the distortion's power before adding to the - /// internal unigram distribution. As a result, distortion = 1.0 gives regular - /// unigram sampling (as defined by the vocab file), and distortion = 0.0 gives - /// a uniform distribution. - /// - /// Defaults to 1 - TF_MUST_USE_RESULT Attrs Distortion(float x) { - Attrs ret = *this; - ret.distortion_ = x; - return ret; - } - - /// Optionally some reserved IDs can be added in the range [0, - /// ..., num_reserved_ids) by the users. One use case is that a special unknown - /// word token is used as ID 0. These IDs will have a sampling probability of 0. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs NumReservedIds(int64 x) { - Attrs ret = *this; - ret.num_reserved_ids_ = x; - return ret; - } - - /// A sampler can be used to sample from a subset of the original range - /// in order to speed up the whole computation through parallelism. This parameter - /// (together with 'shard') indicates the number of partitions that are being - /// used in the overall computation. - /// - /// Defaults to 1 - TF_MUST_USE_RESULT Attrs NumShards(int64 x) { - Attrs ret = *this; - ret.num_shards_ = x; - return ret; - } - - /// A sampler can be used to sample from a subset of the original range - /// in order to speed up the whole computation through parallelism. This parameter - /// (together with 'num_shards') indicates the particular partition number of a - /// sampler op, when partitioning is being used. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Shard(int64 x) { - Attrs ret = *this; - ret.shard_ = x; - return ret; - } - - /// A list of unigram counts or probabilities, one per ID in sequential - /// order. Exactly one of vocab_file and unigrams should be passed to this op. - /// - /// Defaults to [] - TF_MUST_USE_RESULT Attrs Unigrams(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.unigrams_ = x; - return ret; - } - - /// If either seed or seed2 are set to be non-zero, the random number - /// generator is seeded by the given seed. Otherwise, it is seeded by a - /// random seed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// An second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - StringPiece vocab_file_ = ""; - float distortion_ = 1.0f; - int64 num_reserved_ids_ = 0; - int64 num_shards_ = 1; - int64 shard_ = 0; - gtl::ArraySlice unigrams_ = {}; - int64 seed_ = 0; - int64 seed2_ = 0; - }; - FixedUnigramCandidateSampler(const ::tensorflow::Scope& scope, - ::tensorflow::Input true_classes, int64 num_true, - int64 num_sampled, bool unique, int64 range_max); - FixedUnigramCandidateSampler(const ::tensorflow::Scope& scope, - ::tensorflow::Input true_classes, int64 num_true, - int64 num_sampled, bool unique, int64 range_max, - const FixedUnigramCandidateSampler::Attrs& attrs); - - static Attrs VocabFile(StringPiece x) { - return Attrs().VocabFile(x); - } - static Attrs Distortion(float x) { - return Attrs().Distortion(x); - } - static Attrs NumReservedIds(int64 x) { - return Attrs().NumReservedIds(x); - } - static Attrs NumShards(int64 x) { - return Attrs().NumShards(x); - } - static Attrs Shard(int64 x) { - return Attrs().Shard(x); - } - static Attrs Unigrams(const gtl::ArraySlice& x) { - return Attrs().Unigrams(x); - } - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - - Operation operation; - ::tensorflow::Output sampled_candidates; - ::tensorflow::Output true_expected_count; - ::tensorflow::Output sampled_expected_count; -}; - -/// Generates labels for candidate sampling with a learned unigram distribution. -/// -/// See explanations of candidate sampling and the data formats at -/// go/candidate-sampling. -/// -/// For each batch, this op picks a single set of sampled candidate labels. -/// -/// The advantages of sampling candidates per-batch are simplicity and the -/// possibility of efficient dense matrix multiplication. The disadvantage is that -/// the sampled candidates must be chosen independently of the context and of the -/// true labels. -/// -/// Arguments: -/// * scope: A Scope object -/// * true_classes: A batch_size * num_true matrix, in which each row contains the -/// IDs of the num_true target_classes in the corresponding original label. -/// * num_true: Number of true labels per context. -/// * num_sampled: Number of candidates to randomly sample. -/// * unique: If unique is true, we sample with rejection, so that all sampled -/// candidates in a batch are unique. This requires some approximation to -/// estimate the post-rejection sampling probabilities. -/// * range_max: The sampler will sample integers from the interval [0, range_max). -/// -/// Optional attributes (see `Attrs`): -/// * seed: If either seed or seed2 are set to be non-zero, the random number -/// generator is seeded by the given seed. Otherwise, it is seeded by a -/// random seed. -/// * seed2: An second seed to avoid seed collision. -/// -/// Returns: -/// * `Output` sampled_candidates: A vector of length num_sampled, in which each element is -/// the ID of a sampled candidate. -/// * `Output` true_expected_count: A batch_size * num_true matrix, representing -/// the number of times each candidate is expected to occur in a batch -/// of sampled candidates. If unique=true, then this is a probability. -/// * `Output` sampled_expected_count: A vector of length num_sampled, for each sampled -/// candidate representing the number of times the candidate is expected -/// to occur in a batch of sampled candidates. If unique=true, then this is a -/// probability. -class LearnedUnigramCandidateSampler { - public: - /// Optional attribute setters for LearnedUnigramCandidateSampler - struct Attrs { - /// If either seed or seed2 are set to be non-zero, the random number - /// generator is seeded by the given seed. Otherwise, it is seeded by a - /// random seed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// An second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - int64 seed_ = 0; - int64 seed2_ = 0; - }; - LearnedUnigramCandidateSampler(const ::tensorflow::Scope& scope, - ::tensorflow::Input true_classes, int64 - num_true, int64 num_sampled, bool unique, int64 - range_max); - LearnedUnigramCandidateSampler(const ::tensorflow::Scope& scope, - ::tensorflow::Input true_classes, int64 - num_true, int64 num_sampled, bool unique, int64 - range_max, const - LearnedUnigramCandidateSampler::Attrs& attrs); - - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - - Operation operation; - ::tensorflow::Output sampled_candidates; - ::tensorflow::Output true_expected_count; - ::tensorflow::Output sampled_expected_count; -}; - -/// Generates labels for candidate sampling with a log-uniform distribution. -/// -/// See explanations of candidate sampling and the data formats at -/// go/candidate-sampling. -/// -/// For each batch, this op picks a single set of sampled candidate labels. -/// -/// The advantages of sampling candidates per-batch are simplicity and the -/// possibility of efficient dense matrix multiplication. The disadvantage is that -/// the sampled candidates must be chosen independently of the context and of the -/// true labels. -/// -/// Arguments: -/// * scope: A Scope object -/// * true_classes: A batch_size * num_true matrix, in which each row contains the -/// IDs of the num_true target_classes in the corresponding original label. -/// * num_true: Number of true labels per context. -/// * num_sampled: Number of candidates to randomly sample. -/// * unique: If unique is true, we sample with rejection, so that all sampled -/// candidates in a batch are unique. This requires some approximation to -/// estimate the post-rejection sampling probabilities. -/// * range_max: The sampler will sample integers from the interval [0, range_max). -/// -/// Optional attributes (see `Attrs`): -/// * seed: If either seed or seed2 are set to be non-zero, the random number -/// generator is seeded by the given seed. Otherwise, it is seeded by a -/// random seed. -/// * seed2: An second seed to avoid seed collision. -/// -/// Returns: -/// * `Output` sampled_candidates: A vector of length num_sampled, in which each element is -/// the ID of a sampled candidate. -/// * `Output` true_expected_count: A batch_size * num_true matrix, representing -/// the number of times each candidate is expected to occur in a batch -/// of sampled candidates. If unique=true, then this is a probability. -/// * `Output` sampled_expected_count: A vector of length num_sampled, for each sampled -/// candidate representing the number of times the candidate is expected -/// to occur in a batch of sampled candidates. If unique=true, then this is a -/// probability. -class LogUniformCandidateSampler { - public: - /// Optional attribute setters for LogUniformCandidateSampler - struct Attrs { - /// If either seed or seed2 are set to be non-zero, the random number - /// generator is seeded by the given seed. Otherwise, it is seeded by a - /// random seed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// An second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - int64 seed_ = 0; - int64 seed2_ = 0; - }; - LogUniformCandidateSampler(const ::tensorflow::Scope& scope, - ::tensorflow::Input true_classes, int64 num_true, - int64 num_sampled, bool unique, int64 range_max); - LogUniformCandidateSampler(const ::tensorflow::Scope& scope, - ::tensorflow::Input true_classes, int64 num_true, - int64 num_sampled, bool unique, int64 range_max, - const LogUniformCandidateSampler::Attrs& attrs); - - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - - Operation operation; - ::tensorflow::Output sampled_candidates; - ::tensorflow::Output true_expected_count; - ::tensorflow::Output sampled_expected_count; -}; - -/// Generates labels for candidate sampling with a uniform distribution. -/// -/// See explanations of candidate sampling and the data formats at -/// go/candidate-sampling. -/// -/// For each batch, this op picks a single set of sampled candidate labels. -/// -/// The advantages of sampling candidates per-batch are simplicity and the -/// possibility of efficient dense matrix multiplication. The disadvantage is that -/// the sampled candidates must be chosen independently of the context and of the -/// true labels. -/// -/// Arguments: -/// * scope: A Scope object -/// * true_classes: A batch_size * num_true matrix, in which each row contains the -/// IDs of the num_true target_classes in the corresponding original label. -/// * num_true: Number of true labels per context. -/// * num_sampled: Number of candidates to randomly sample. -/// * unique: If unique is true, we sample with rejection, so that all sampled -/// candidates in a batch are unique. This requires some approximation to -/// estimate the post-rejection sampling probabilities. -/// * range_max: The sampler will sample integers from the interval [0, range_max). -/// -/// Optional attributes (see `Attrs`): -/// * seed: If either seed or seed2 are set to be non-zero, the random number -/// generator is seeded by the given seed. Otherwise, it is seeded by a -/// random seed. -/// * seed2: An second seed to avoid seed collision. -/// -/// Returns: -/// * `Output` sampled_candidates: A vector of length num_sampled, in which each element is -/// the ID of a sampled candidate. -/// * `Output` true_expected_count: A batch_size * num_true matrix, representing -/// the number of times each candidate is expected to occur in a batch -/// of sampled candidates. If unique=true, then this is a probability. -/// * `Output` sampled_expected_count: A vector of length num_sampled, for each sampled -/// candidate representing the number of times the candidate is expected -/// to occur in a batch of sampled candidates. If unique=true, then this is a -/// probability. -class UniformCandidateSampler { - public: - /// Optional attribute setters for UniformCandidateSampler - struct Attrs { - /// If either seed or seed2 are set to be non-zero, the random number - /// generator is seeded by the given seed. Otherwise, it is seeded by a - /// random seed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// An second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - int64 seed_ = 0; - int64 seed2_ = 0; - }; - UniformCandidateSampler(const ::tensorflow::Scope& scope, ::tensorflow::Input - true_classes, int64 num_true, int64 num_sampled, bool - unique, int64 range_max); - UniformCandidateSampler(const ::tensorflow::Scope& scope, ::tensorflow::Input - true_classes, int64 num_true, int64 num_sampled, bool - unique, int64 range_max, const - UniformCandidateSampler::Attrs& attrs); - - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - - Operation operation; - ::tensorflow::Output sampled_candidates; - ::tensorflow::Output true_expected_count; - ::tensorflow::Output sampled_expected_count; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_CANDIDATE_SAMPLING_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/candidate_sampling_ops_internal.h b/linux/include/tensorflow/cc/ops/candidate_sampling_ops_internal.h deleted file mode 100755 index e458b8688..000000000 --- a/linux/include/tensorflow/cc/ops/candidate_sampling_ops_internal.h +++ /dev/null @@ -1,28 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_CANDIDATE_SAMPLING_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_CANDIDATE_SAMPLING_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup candidate_sampling_ops_internal Candidate Sampling Ops Internal -/// @{ - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_CANDIDATE_SAMPLING_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/control_flow_ops.h b/linux/include/tensorflow/cc/ops/control_flow_ops.h deleted file mode 100755 index 772a71557..000000000 --- a/linux/include/tensorflow/cc/ops/control_flow_ops.h +++ /dev/null @@ -1,250 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_CONTROL_FLOW_OPS_H_ -#define TENSORFLOW_CC_OPS_CONTROL_FLOW_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup control_flow_ops Control Flow Ops -/// @{ - -/// Raise a exception to abort the process when called. -/// -/// If exit_without_error is true, the process will exit normally, -/// otherwise it will exit with a SIGABORT signal. -/// -/// Returns nothing but an exception. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Optional attributes (see `Attrs`): -/// * error_msg: A string which is the message associated with the exception. -/// -/// Returns: -/// * the created `Operation` -class Abort { - public: - /// Optional attribute setters for Abort - struct Attrs { - /// A string which is the message associated with the exception. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs ErrorMsg(StringPiece x) { - Attrs ret = *this; - ret.error_msg_ = x; - return ret; - } - - /// Defaults to false - TF_MUST_USE_RESULT Attrs ExitWithoutError(bool x) { - Attrs ret = *this; - ret.exit_without_error_ = x; - return ret; - } - - StringPiece error_msg_ = ""; - bool exit_without_error_ = false; - }; - Abort(const ::tensorflow::Scope& scope); - Abort(const ::tensorflow::Scope& scope, const Abort::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs ErrorMsg(StringPiece x) { - return Attrs().ErrorMsg(x); - } - static Attrs ExitWithoutError(bool x) { - return Attrs().ExitWithoutError(x); - } - - Operation operation; -}; - -/// Does nothing. Serves as a control trigger for scheduling. -/// -/// Only useful as a placeholder for control edges. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * the created `Operation` -class ControlTrigger { - public: - ControlTrigger(const ::tensorflow::Scope& scope); - operator ::tensorflow::Operation() const { return operation; } - - Operation operation; -}; - -/// Forwards the input to the output. -/// -/// This operator represents the loop termination condition used by the -/// "pivot" switches of a loop. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: A boolean scalar, representing the branch predicate of the Switch op. -/// -/// Returns: -/// * `Output`: The same tensor as `input`. -class LoopCond { - public: - LoopCond(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Forwards the value of an available tensor from `inputs` to `output`. -/// -/// `Merge` waits for at least one of the tensors in `inputs` to become available. -/// It is usually combined with `Switch` to implement branching. -/// -/// `Merge` forwards the first tensor to become available to `output`, and sets -/// `value_index` to its index in `inputs`. -/// -/// Arguments: -/// * scope: A Scope object -/// * inputs: The input tensors, exactly one of which will become available. -/// -/// Returns: -/// * `Output` output: Will be set to the available input tensor. -/// * `Output` value_index: The index of the chosen input tensor in `inputs`. -class Merge { - public: - Merge(const ::tensorflow::Scope& scope, ::tensorflow::InputList inputs); - - Operation operation; - ::tensorflow::Output output; - ::tensorflow::Output value_index; -}; - -/// Makes its input available to the next iteration. -/// -/// Arguments: -/// * scope: A Scope object -/// * data: The tensor to be made available to the next iteration. -/// -/// Returns: -/// * `Output`: The same tensor as `data`. -class NextIteration { - public: - NextIteration(const ::tensorflow::Scope& scope, ::tensorflow::Input data); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Makes its input available to the next iteration. -/// -/// Arguments: -/// * scope: A Scope object -/// * data: The tensor to be made available to the next iteration. -/// -/// Returns: -/// * `Output`: The same tensor as `data`. -class RefNextIteration { - public: - RefNextIteration(const ::tensorflow::Scope& scope, ::tensorflow::Input data); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Forwards the `index`th element of `inputs` to `output`. -/// -/// Arguments: -/// * scope: A Scope object -/// * index: A scalar that determines the input that gets selected. -/// * inputs: A list of ref tensors, one of which will be forwarded to `output`. -/// -/// Returns: -/// * `Output`: The forwarded tensor. -class RefSelect { - public: - RefSelect(const ::tensorflow::Scope& scope, ::tensorflow::Input index, - ::tensorflow::InputList inputs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Forwards the ref tensor `data` to the output port determined by `pred`. -/// -/// If `pred` is true, the `data` input is forwarded to `output_true`. Otherwise, -/// the data goes to `output_false`. -/// -/// See also `Switch` and `Merge`. -/// -/// Arguments: -/// * scope: A Scope object -/// * data: The ref tensor to be forwarded to the appropriate output. -/// * pred: A scalar that specifies which output port will receive data. -/// -/// Returns: -/// * `Output` output_false: If `pred` is false, data will be forwarded to this output. -/// * `Output` output_true: If `pred` is true, data will be forwarded to this output. -class RefSwitch { - public: - RefSwitch(const ::tensorflow::Scope& scope, ::tensorflow::Input data, - ::tensorflow::Input pred); - - Operation operation; - ::tensorflow::Output output_false; - ::tensorflow::Output output_true; -}; - -/// Forwards `data` to the output port determined by `pred`. -/// -/// If `pred` is true, the `data` input is forwarded to `output_true`. Otherwise, -/// the data goes to `output_false`. -/// -/// See also `RefSwitch` and `Merge`. -/// -/// Arguments: -/// * scope: A Scope object -/// * data: The tensor to be forwarded to the appropriate output. -/// * pred: A scalar that specifies which output port will receive data. -/// -/// Returns: -/// * `Output` output_false: If `pred` is false, data will be forwarded to this output. -/// * `Output` output_true: If `pred` is true, data will be forwarded to this output. -class Switch { - public: - Switch(const ::tensorflow::Scope& scope, ::tensorflow::Input data, - ::tensorflow::Input pred); - - Operation operation; - ::tensorflow::Output output_false; - ::tensorflow::Output output_true; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_CONTROL_FLOW_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/control_flow_ops_internal.h b/linux/include/tensorflow/cc/ops/control_flow_ops_internal.h deleted file mode 100755 index 59548de54..000000000 --- a/linux/include/tensorflow/cc/ops/control_flow_ops_internal.h +++ /dev/null @@ -1,219 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_CONTROL_FLOW_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_CONTROL_FLOW_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup control_flow_ops_internal Control Flow Ops Internal -/// @{ - -/// Creates or finds a child frame, and makes `data` available to the child frame. -/// -/// This op is used together with `Exit` to create loops in the graph. -/// The unique `frame_name` is used by the `Executor` to identify frames. If -/// `is_constant` is true, `output` is a constant in the child frame; otherwise -/// it may be changed in the child frame. At most `parallel_iterations` iterations -/// are run in parallel in the child frame. -/// -/// Arguments: -/// * scope: A Scope object -/// * data: The tensor to be made available to the child frame. -/// * frame_name: The name of the child frame. -/// -/// Optional attributes (see `Attrs`): -/// * is_constant: If true, the output is constant within the child frame. -/// * parallel_iterations: The number of iterations allowed to run in parallel. -/// -/// Returns: -/// * `Output`: The same tensor as `data`. -class Enter { - public: - /// Optional attribute setters for Enter - struct Attrs { - /// If true, the output is constant within the child frame. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs IsConstant(bool x) { - Attrs ret = *this; - ret.is_constant_ = x; - return ret; - } - - /// The number of iterations allowed to run in parallel. - /// - /// Defaults to 10 - TF_MUST_USE_RESULT Attrs ParallelIterations(int64 x) { - Attrs ret = *this; - ret.parallel_iterations_ = x; - return ret; - } - - bool is_constant_ = false; - int64 parallel_iterations_ = 10; - }; - Enter(const ::tensorflow::Scope& scope, ::tensorflow::Input data, StringPiece - frame_name); - Enter(const ::tensorflow::Scope& scope, ::tensorflow::Input data, StringPiece - frame_name, const Enter::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs IsConstant(bool x) { - return Attrs().IsConstant(x); - } - static Attrs ParallelIterations(int64 x) { - return Attrs().ParallelIterations(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Exits the current frame to its parent frame. -/// -/// Exit makes its input `data` available to the parent frame. -/// -/// Arguments: -/// * scope: A Scope object -/// * data: The tensor to be made available to the parent frame. -/// -/// Returns: -/// * `Output`: The same tensor as `data`. -class Exit { - public: - Exit(const ::tensorflow::Scope& scope, ::tensorflow::Input data); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Creates or finds a child frame, and makes `data` available to the child frame. -/// -/// The unique `frame_name` is used by the `Executor` to identify frames. If -/// `is_constant` is true, `output` is a constant in the child frame; otherwise -/// it may be changed in the child frame. At most `parallel_iterations` iterations -/// are run in parallel in the child frame. -/// -/// Arguments: -/// * scope: A Scope object -/// * data: The tensor to be made available to the child frame. -/// * frame_name: The name of the child frame. -/// -/// Optional attributes (see `Attrs`): -/// * is_constant: If true, the output is constant within the child frame. -/// * parallel_iterations: The number of iterations allowed to run in parallel. -/// -/// Returns: -/// * `Output`: The same tensor as `data`. -class RefEnter { - public: - /// Optional attribute setters for RefEnter - struct Attrs { - /// If true, the output is constant within the child frame. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs IsConstant(bool x) { - Attrs ret = *this; - ret.is_constant_ = x; - return ret; - } - - /// The number of iterations allowed to run in parallel. - /// - /// Defaults to 10 - TF_MUST_USE_RESULT Attrs ParallelIterations(int64 x) { - Attrs ret = *this; - ret.parallel_iterations_ = x; - return ret; - } - - bool is_constant_ = false; - int64 parallel_iterations_ = 10; - }; - RefEnter(const ::tensorflow::Scope& scope, ::tensorflow::Input data, - StringPiece frame_name); - RefEnter(const ::tensorflow::Scope& scope, ::tensorflow::Input data, - StringPiece frame_name, const RefEnter::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs IsConstant(bool x) { - return Attrs().IsConstant(x); - } - static Attrs ParallelIterations(int64 x) { - return Attrs().ParallelIterations(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Exits the current frame to its parent frame. -/// -/// Exit makes its input `data` available to the parent frame. -/// -/// Arguments: -/// * scope: A Scope object -/// * data: The tensor to be made available to the parent frame. -/// -/// Returns: -/// * `Output`: The same tensor as `data`. -class RefExit { - public: - RefExit(const ::tensorflow::Scope& scope, ::tensorflow::Input data); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Forwards the value of an available tensor from `inputs` to `output`. -/// -/// `Merge` waits for at least one of the tensors in `inputs` to become available. -/// It is usually combined with `Switch` to implement branching. -/// -/// `Merge` forwards the first tensor for become available to `output`, and sets -/// `value_index` to its index in `inputs`. -/// -/// Arguments: -/// * scope: A Scope object -/// * inputs: The input tensors, exactly one of which will become available. -/// -/// Returns: -/// * `Output` output: Will be set to the available input tensor. -/// * `Output` value_index: The index of the chosen input tensor in `inputs`. -class RefMerge { - public: - RefMerge(const ::tensorflow::Scope& scope, ::tensorflow::InputList inputs); - - Operation operation; - ::tensorflow::Output output; - ::tensorflow::Output value_index; -}; - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_CONTROL_FLOW_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/data_flow_ops.h b/linux/include/tensorflow/cc/ops/data_flow_ops.h deleted file mode 100755 index 3d6bc7451..000000000 --- a/linux/include/tensorflow/cc/ops/data_flow_ops.h +++ /dev/null @@ -1,3780 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_DATA_FLOW_OPS_H_ -#define TENSORFLOW_CC_OPS_DATA_FLOW_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup data_flow_ops Data Flow Ops -/// @{ - -/// Applies a gradient to a given accumulator. -/// -/// Does not add if local_step is lesser than the accumulator's global_step. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a accumulator. -/// * local_step: The local_step value at which the gradient was computed. -/// * gradient: A tensor of the gradient to be accumulated. -/// -/// Returns: -/// * the created `Operation` -class AccumulatorApplyGradient { - public: - AccumulatorApplyGradient(const ::tensorflow::Scope& scope, ::tensorflow::Input - handle, ::tensorflow::Input local_step, - ::tensorflow::Input gradient); - operator ::tensorflow::Operation() const { return operation; } - - Operation operation; -}; - -/// Returns the number of gradients aggregated in the given accumulators. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to an accumulator. -/// -/// Returns: -/// * `Output`: The number of gradients aggregated in the given accumulator. -class AccumulatorNumAccumulated { - public: - AccumulatorNumAccumulated(const ::tensorflow::Scope& scope, ::tensorflow::Input - handle); - operator ::tensorflow::Output() const { return num_accumulated; } - operator ::tensorflow::Input() const { return num_accumulated; } - ::tensorflow::Node* node() const { return num_accumulated.node(); } - - Operation operation; - ::tensorflow::Output num_accumulated; -}; - -/// Updates the accumulator with a new value for global_step. -/// -/// Logs warning if the accumulator's value is already higher than -/// new_global_step. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to an accumulator. -/// * new_global_step: The new global_step value to set. -/// -/// Returns: -/// * the created `Operation` -class AccumulatorSetGlobalStep { - public: - AccumulatorSetGlobalStep(const ::tensorflow::Scope& scope, ::tensorflow::Input - handle, ::tensorflow::Input new_global_step); - operator ::tensorflow::Operation() const { return operation; } - - Operation operation; -}; - -/// Extracts the average gradient in the given ConditionalAccumulator. -/// -/// The op blocks until sufficient (i.e., more than num_required) -/// gradients have been accumulated. If the accumulator has already -/// aggregated more than num_required gradients, it returns the average of -/// the accumulated gradients. Also automatically increments the recorded -/// global_step in the accumulator by 1, and resets the aggregate to 0. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to an accumulator. -/// * num_required: Number of gradients required before we return an aggregate. -/// * dtype: The data type of accumulated gradients. Needs to correspond to the type -/// of the accumulator. -/// -/// Returns: -/// * `Output`: The average of the accumulated gradients. -class AccumulatorTakeGradient { - public: - AccumulatorTakeGradient(const ::tensorflow::Scope& scope, ::tensorflow::Input - handle, ::tensorflow::Input num_required, DataType - dtype); - operator ::tensorflow::Output() const { return average; } - operator ::tensorflow::Input() const { return average; } - ::tensorflow::Node* node() const { return average.node(); } - - Operation operation; - ::tensorflow::Output average; -}; - -/// Defines a barrier that persists across different graph executions. -/// -/// A barrier represents a key-value map, where each key is a string, and -/// each value is a tuple of tensors. -/// -/// At runtime, the barrier contains 'complete' and 'incomplete' -/// elements. A complete element has defined tensors for all components of -/// its value tuple, and may be accessed using BarrierTakeMany. An -/// incomplete element has some undefined components in its value tuple, -/// and may be updated using BarrierInsertMany. -/// -/// Arguments: -/// * scope: A Scope object -/// * component_types: The type of each component in a value. -/// -/// Optional attributes (see `Attrs`): -/// * shapes: The shape of each component in a value. Each shape must be 1 in the -/// first dimension. The length of this attr must be the same as the length of -/// component_types. -/// * capacity: The capacity of the barrier. The default capacity is MAX_INT32, -/// which is the largest capacity of the underlying queue. -/// * container: If non-empty, this barrier is placed in the given container. -/// Otherwise, a default container is used. -/// * shared_name: If non-empty, this barrier will be shared under the given name -/// across multiple sessions. -/// -/// Returns: -/// * `Output`: The handle to the barrier. -class Barrier { - public: - /// Optional attribute setters for Barrier - struct Attrs { - /// The shape of each component in a value. Each shape must be 1 in the - /// first dimension. The length of this attr must be the same as the length of - /// component_types. - /// - /// Defaults to [] - TF_MUST_USE_RESULT Attrs Shapes(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.shapes_ = x; - return ret; - } - - /// The capacity of the barrier. The default capacity is MAX_INT32, - /// which is the largest capacity of the underlying queue. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// If non-empty, this barrier is placed in the given container. - /// Otherwise, a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// If non-empty, this barrier will be shared under the given name - /// across multiple sessions. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - gtl::ArraySlice shapes_ = {}; - int64 capacity_ = -1; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - Barrier(const ::tensorflow::Scope& scope, const DataTypeSlice& component_types); - Barrier(const ::tensorflow::Scope& scope, const DataTypeSlice& component_types, - const Barrier::Attrs& attrs); - operator ::tensorflow::Output() const { return handle; } - operator ::tensorflow::Input() const { return handle; } - ::tensorflow::Node* node() const { return handle.node(); } - - static Attrs Shapes(const gtl::ArraySlice& x) { - return Attrs().Shapes(x); - } - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output handle; -}; - -/// Closes the given barrier. -/// -/// This operation signals that no more new elements will be inserted in the -/// given barrier. Subsequent InsertMany that try to introduce a new key will fail. -/// Subsequent InsertMany operations that just add missing components to already -/// existing elements will continue to succeed. Subsequent TakeMany operations will -/// continue to succeed if sufficient completed elements remain in the barrier. -/// Subsequent TakeMany operations that would block will fail immediately. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a barrier. -/// -/// Optional attributes (see `Attrs`): -/// * cancel_pending_enqueues: If true, all pending enqueue requests that are -/// blocked on the barrier's queue will be canceled. InsertMany will fail, even -/// if no new key is introduced. -/// -/// Returns: -/// * the created `Operation` -class BarrierClose { - public: - /// Optional attribute setters for BarrierClose - struct Attrs { - /// If true, all pending enqueue requests that are - /// blocked on the barrier's queue will be canceled. InsertMany will fail, even - /// if no new key is introduced. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs CancelPendingEnqueues(bool x) { - Attrs ret = *this; - ret.cancel_pending_enqueues_ = x; - return ret; - } - - bool cancel_pending_enqueues_ = false; - }; - BarrierClose(const ::tensorflow::Scope& scope, ::tensorflow::Input handle); - BarrierClose(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - const BarrierClose::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs CancelPendingEnqueues(bool x) { - return Attrs().CancelPendingEnqueues(x); - } - - Operation operation; -}; - -/// Computes the number of incomplete elements in the given barrier. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a barrier. -/// -/// Returns: -/// * `Output`: The number of incomplete elements (i.e. those with some of their value -/// components not set) in the barrier. -class BarrierIncompleteSize { - public: - BarrierIncompleteSize(const ::tensorflow::Scope& scope, ::tensorflow::Input - handle); - operator ::tensorflow::Output() const { return size; } - operator ::tensorflow::Input() const { return size; } - ::tensorflow::Node* node() const { return size.node(); } - - Operation operation; - ::tensorflow::Output size; -}; - -/// For each key, assigns the respective value to the specified component. -/// -/// If a key is not found in the barrier, this operation will create a new -/// incomplete element. If a key is found in the barrier, and the element -/// already has a value at component_index, this operation will fail with -/// INVALID_ARGUMENT, and leave the barrier in an undefined state. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a barrier. -/// * keys: A one-dimensional tensor of keys, with length n. -/// * values: An any-dimensional tensor of values, which are associated with the -/// respective keys. The 0th dimension must have length n. -/// * component_index: The component of the barrier elements that is being assigned. -/// -/// Returns: -/// * the created `Operation` -class BarrierInsertMany { - public: - BarrierInsertMany(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::Input keys, ::tensorflow::Input values, int64 - component_index); - operator ::tensorflow::Operation() const { return operation; } - - Operation operation; -}; - -/// Computes the number of complete elements in the given barrier. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a barrier. -/// -/// Returns: -/// * `Output`: The number of complete elements (i.e. those with all of their value -/// components set) in the barrier. -class BarrierReadySize { - public: - BarrierReadySize(const ::tensorflow::Scope& scope, ::tensorflow::Input handle); - operator ::tensorflow::Output() const { return size; } - operator ::tensorflow::Input() const { return size; } - ::tensorflow::Node* node() const { return size.node(); } - - Operation operation; - ::tensorflow::Output size; -}; - -/// Takes the given number of completed elements from a barrier. -/// -/// This operation concatenates completed-element component tensors along -/// the 0th dimension to make a single component tensor. -/// -/// Elements come out of the barrier when they are complete, and in the order -/// in which they were placed into the barrier. The indices output provides -/// information about the batch in which each element was originally inserted -/// into the barrier. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a barrier. -/// * num_elements: A single-element tensor containing the number of elements to -/// take. -/// * component_types: The type of each component in a value. -/// -/// Optional attributes (see `Attrs`): -/// * allow_small_batch: Allow to return less than num_elements items if barrier is -/// already closed. -/// * timeout_ms: If the queue is empty, this operation will block for up to -/// timeout_ms milliseconds. -/// Note: This option is not supported yet. -/// -/// Returns: -/// * `Output` indices: A one-dimensional tensor of indices, with length num_elems. -/// These indices refer to the batch in which the values were placed into the -/// barrier (starting with MIN_LONG and increasing with each BarrierInsertMany). -/// * `Output` keys: A one-dimensional tensor of keys, with length num_elements. -/// * `OutputList` values: One any-dimensional tensor per component in a barrier element. All -/// values have length num_elements in the 0th dimension. -class BarrierTakeMany { - public: - /// Optional attribute setters for BarrierTakeMany - struct Attrs { - /// Allow to return less than num_elements items if barrier is - /// already closed. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs AllowSmallBatch(bool x) { - Attrs ret = *this; - ret.allow_small_batch_ = x; - return ret; - } - - /// Defaults to false - TF_MUST_USE_RESULT Attrs WaitForIncomplete(bool x) { - Attrs ret = *this; - ret.wait_for_incomplete_ = x; - return ret; - } - - /// If the queue is empty, this operation will block for up to - /// timeout_ms milliseconds. - /// Note: This option is not supported yet. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs TimeoutMs(int64 x) { - Attrs ret = *this; - ret.timeout_ms_ = x; - return ret; - } - - bool allow_small_batch_ = false; - bool wait_for_incomplete_ = false; - int64 timeout_ms_ = -1; - }; - BarrierTakeMany(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::Input num_elements, const DataTypeSlice& - component_types); - BarrierTakeMany(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::Input num_elements, const DataTypeSlice& - component_types, const BarrierTakeMany::Attrs& attrs); - - static Attrs AllowSmallBatch(bool x) { - return Attrs().AllowSmallBatch(x); - } - static Attrs WaitForIncomplete(bool x) { - return Attrs().WaitForIncomplete(x); - } - static Attrs TimeoutMs(int64 x) { - return Attrs().TimeoutMs(x); - } - - Operation operation; - ::tensorflow::Output indices; - ::tensorflow::Output keys; - ::tensorflow::OutputList values; -}; - -/// A conditional accumulator for aggregating gradients. -/// -/// The accumulator accepts gradients marked with local_step greater or -/// equal to the most recent global_step known to the accumulator. The -/// average can be extracted from the accumulator, provided sufficient -/// gradients have been accumulated. Extracting the average automatically -/// resets the aggregate to 0, and increments the global_step recorded by -/// the accumulator. -/// -/// Arguments: -/// * scope: A Scope object -/// * dtype: The type of the value being accumulated. -/// * shape: The shape of the values, can be [], in which case shape is unknown. -/// -/// Optional attributes (see `Attrs`): -/// * container: If non-empty, this accumulator is placed in the given container. -/// Otherwise, a default container is used. -/// * shared_name: If non-empty, this accumulator will be shared under the -/// given name across multiple sessions. -/// -/// Returns: -/// * `Output`: The handle to the accumulator. -class ConditionalAccumulator { - public: - /// Optional attribute setters for ConditionalAccumulator - struct Attrs { - /// If non-empty, this accumulator is placed in the given container. - /// Otherwise, a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// If non-empty, this accumulator will be shared under the - /// given name across multiple sessions. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - /// Defaults to "MEAN" - TF_MUST_USE_RESULT Attrs ReductionType(StringPiece x) { - Attrs ret = *this; - ret.reduction_type_ = x; - return ret; - } - - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - StringPiece reduction_type_ = "MEAN"; - }; - ConditionalAccumulator(const ::tensorflow::Scope& scope, DataType dtype, - PartialTensorShape shape); - ConditionalAccumulator(const ::tensorflow::Scope& scope, DataType dtype, - PartialTensorShape shape, const - ConditionalAccumulator::Attrs& attrs); - operator ::tensorflow::Output() const { return handle; } - operator ::tensorflow::Input() const { return handle; } - ::tensorflow::Node* node() const { return handle.node(); } - - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - static Attrs ReductionType(StringPiece x) { - return Attrs().ReductionType(x); - } - - Operation operation; - ::tensorflow::Output handle; -}; - -/// Delete the tensor specified by its handle in the session. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle for a tensor stored in the session state. -/// -/// Returns: -/// * the created `Operation` -class DeleteSessionTensor { - public: - DeleteSessionTensor(const ::tensorflow::Scope& scope, ::tensorflow::Input - handle); - operator ::tensorflow::Operation() const { return operation; } - - Operation operation; -}; - -/// Partitions `data` into `num_partitions` tensors using indices from `partitions`. -/// -/// For each index tuple `js` of size `partitions.ndim`, the slice `data[js, ...]` -/// becomes part of `outputs[partitions[js]]`. The slices with `partitions[js] = i` -/// are placed in `outputs[i]` in lexicographic order of `js`, and the first -/// dimension of `outputs[i]` is the number of entries in `partitions` equal to `i`. -/// In detail, -/// -/// ```python -/// outputs[i].shape = [sum(partitions == i)] + data.shape[partitions.ndim:] -/// -/// outputs[i] = pack([data[js, ...] for js if partitions[js] == i]) -/// ``` -/// -/// `data.shape` must start with `partitions.shape`. -/// -/// For example: -/// -/// ```python -/// # Scalar partitions. -/// partitions = 1 -/// num_partitions = 2 -/// data = [10, 20] -/// outputs[0] = [] # Empty with shape [0, 2] -/// outputs[1] = [[10, 20]] -/// -/// # Vector partitions. -/// partitions = [0, 0, 1, 1, 0] -/// num_partitions = 2 -/// data = [10, 20, 30, 40, 50] -/// outputs[0] = [10, 20, 50] -/// outputs[1] = [30, 40] -/// ``` -/// -/// See `dynamic_stitch` for an example on how to merge partitions back. -/// -///
-/// -///
-/// -/// Arguments: -/// * scope: A Scope object -/// * partitions: Any shape. Indices in the range `[0, num_partitions)`. -/// * num_partitions: The number of partitions to output. -/// -/// Returns: -/// * `OutputList`: The outputs tensor. -class DynamicPartition { - public: - DynamicPartition(const ::tensorflow::Scope& scope, ::tensorflow::Input data, - ::tensorflow::Input partitions, int64 num_partitions); - ::tensorflow::Output operator[](size_t index) const { return outputs[index]; } - - - Operation operation; - ::tensorflow::OutputList outputs; -}; - -/// Interleave the values from the `data` tensors into a single tensor. -/// -/// Builds a merged tensor such that -/// -/// ```python -/// merged[indices[m][i, ..., j], ...] = data[m][i, ..., j, ...] -/// ``` -/// -/// For example, if each `indices[m]` is scalar or vector, we have -/// -/// ```python -/// # Scalar indices: -/// merged[indices[m], ...] = data[m][...] -/// -/// # Vector indices: -/// merged[indices[m][i], ...] = data[m][i, ...] -/// ``` -/// -/// Each `data[i].shape` must start with the corresponding `indices[i].shape`, -/// and the rest of `data[i].shape` must be constant w.r.t. `i`. That is, we -/// must have `data[i].shape = indices[i].shape + constant`. In terms of this -/// `constant`, the output shape is -/// -/// merged.shape = [max(indices)] + constant -/// -/// Values are merged in order, so if an index appears in both `indices[m][i]` and -/// `indices[n][j]` for `(m,i) < (n,j)` the slice `data[n][j]` will appear in the -/// merged result. If you do not need this guarantee, ParallelDynamicStitch might -/// perform better on some devices. -/// -/// For example: -/// -/// ```python -/// indices[0] = 6 -/// indices[1] = [4, 1] -/// indices[2] = [[5, 2], [0, 3]] -/// data[0] = [61, 62] -/// data[1] = [[41, 42], [11, 12]] -/// data[2] = [[[51, 52], [21, 22]], [[1, 2], [31, 32]]] -/// merged = [[1, 2], [11, 12], [21, 22], [31, 32], [41, 42], -/// [51, 52], [61, 62]] -/// ``` -/// -/// This method can be used to merge partitions created by `dynamic_partition` -/// as illustrated on the following example: -/// -/// ```python -/// # Apply function (increments x_i) on elements for which a certain condition -/// # apply (x_i != -1 in this example). -/// x=tf.constant([0.1, -1., 5.2, 4.3, -1., 7.4]) -/// condition_mask=tf.not_equal(x,tf.constant(-1.)) -/// partitioned_data = tf.dynamic_partition( -/// x, tf.cast(condition_mask, tf.int32) , 2) -/// partitioned_data[1] = partitioned_data[1] + 1.0 -/// condition_indices = tf.dynamic_partition( -/// tf.range(tf.shape(x)[0]), tf.cast(condition_mask, tf.int32) , 2) -/// x = tf.dynamic_stitch(condition_indices, partitioned_data) -/// # Here x=[1.1, -1., 6.2, 5.3, -1, 8.4], the -1. values remain -/// # unchanged. -/// ``` -/// -///
-/// -///
-/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The merged tensor. -class DynamicStitch { - public: - DynamicStitch(const ::tensorflow::Scope& scope, ::tensorflow::InputList - indices, ::tensorflow::InputList data); - operator ::tensorflow::Output() const { return merged; } - operator ::tensorflow::Input() const { return merged; } - ::tensorflow::Node* node() const { return merged.node(); } - - Operation operation; - ::tensorflow::Output merged; -}; - -/// A queue that produces elements in first-in first-out order. -/// -/// Arguments: -/// * scope: A Scope object -/// * component_types: The type of each component in a value. -/// -/// Optional attributes (see `Attrs`): -/// * shapes: The shape of each component in a value. The length of this attr must -/// be either 0 or the same as the length of component_types. If the length of -/// this attr is 0, the shapes of queue elements are not constrained, and -/// only one element may be dequeued at a time. -/// * capacity: The upper bound on the number of elements in this queue. -/// Negative numbers mean no limit. -/// * container: If non-empty, this queue is placed in the given container. -/// Otherwise, a default container is used. -/// * shared_name: If non-empty, this queue will be shared under the given name -/// across multiple sessions. -/// -/// Returns: -/// * `Output`: The handle to the queue. -class FIFOQueue { - public: - /// Optional attribute setters for FIFOQueue - struct Attrs { - /// The shape of each component in a value. The length of this attr must - /// be either 0 or the same as the length of component_types. If the length of - /// this attr is 0, the shapes of queue elements are not constrained, and - /// only one element may be dequeued at a time. - /// - /// Defaults to [] - TF_MUST_USE_RESULT Attrs Shapes(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.shapes_ = x; - return ret; - } - - /// The upper bound on the number of elements in this queue. - /// Negative numbers mean no limit. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// If non-empty, this queue is placed in the given container. - /// Otherwise, a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// If non-empty, this queue will be shared under the given name - /// across multiple sessions. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - gtl::ArraySlice shapes_ = {}; - int64 capacity_ = -1; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - FIFOQueue(const ::tensorflow::Scope& scope, const DataTypeSlice& - component_types); - FIFOQueue(const ::tensorflow::Scope& scope, const DataTypeSlice& - component_types, const FIFOQueue::Attrs& attrs); - operator ::tensorflow::Output() const { return handle; } - operator ::tensorflow::Input() const { return handle; } - ::tensorflow::Node* node() const { return handle.node(); } - - static Attrs Shapes(const gtl::ArraySlice& x) { - return Attrs().Shapes(x); - } - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output handle; -}; - -/// Store the input tensor in the state of the current session. -/// -/// Arguments: -/// * scope: A Scope object -/// * value: The tensor to be stored. -/// -/// Returns: -/// * `Output`: The handle for the tensor stored in the session state, represented -/// as a string. -class GetSessionHandle { - public: - GetSessionHandle(const ::tensorflow::Scope& scope, ::tensorflow::Input value); - operator ::tensorflow::Output() const { return handle; } - operator ::tensorflow::Input() const { return handle; } - ::tensorflow::Node* node() const { return handle.node(); } - - Operation operation; - ::tensorflow::Output handle; -}; - -/// Store the input tensor in the state of the current session. -/// -/// Arguments: -/// * scope: A Scope object -/// * value: The tensor to be stored. -/// -/// Returns: -/// * `Output`: The handle for the tensor stored in the session state, represented -/// as a ResourceHandle object. -class GetSessionHandleV2 { - public: - GetSessionHandleV2(const ::tensorflow::Scope& scope, ::tensorflow::Input value); - operator ::tensorflow::Output() const { return handle; } - operator ::tensorflow::Input() const { return handle; } - ::tensorflow::Node* node() const { return handle.node(); } - - Operation operation; - ::tensorflow::Output handle; -}; - -/// Get the value of the tensor specified by its handle. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle for a tensor stored in the session state. -/// * dtype: The type of the output value. -/// -/// Returns: -/// * `Output`: The tensor for the given handle. -class GetSessionTensor { - public: - GetSessionTensor(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - DataType dtype); - operator ::tensorflow::Output() const { return value; } - operator ::tensorflow::Input() const { return value; } - ::tensorflow::Node* node() const { return value.node(); } - - Operation operation; - ::tensorflow::Output value; -}; - -/// Op removes all elements in the underlying container. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * the created `Operation` -class MapClear { - public: - /// Optional attribute setters for MapClear - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - MapClear(const ::tensorflow::Scope& scope, const DataTypeSlice& dtypes); - MapClear(const ::tensorflow::Scope& scope, const DataTypeSlice& dtypes, const - MapClear::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; -}; - -/// Op returns the number of incomplete elements in the underlying container. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The size tensor. -class MapIncompleteSize { - public: - /// Optional attribute setters for MapIncompleteSize - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - MapIncompleteSize(const ::tensorflow::Scope& scope, const DataTypeSlice& - dtypes); - MapIncompleteSize(const ::tensorflow::Scope& scope, const DataTypeSlice& - dtypes, const MapIncompleteSize::Attrs& attrs); - operator ::tensorflow::Output() const { return size; } - operator ::tensorflow::Input() const { return size; } - ::tensorflow::Node* node() const { return size.node(); } - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output size; -}; - -/// Op peeks at the values at the specified key. If the -/// -/// underlying container does not contain this key -/// this op will block until it does. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `OutputList`: The values tensor. -class MapPeek { - public: - /// Optional attribute setters for MapPeek - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - MapPeek(const ::tensorflow::Scope& scope, ::tensorflow::Input key, - ::tensorflow::Input indices, const DataTypeSlice& dtypes); - MapPeek(const ::tensorflow::Scope& scope, ::tensorflow::Input key, - ::tensorflow::Input indices, const DataTypeSlice& dtypes, const - MapPeek::Attrs& attrs); - ::tensorflow::Output operator[](size_t index) const { return values[index]; } - - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::OutputList values; -}; - -/// Op returns the number of elements in the underlying container. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The size tensor. -class MapSize { - public: - /// Optional attribute setters for MapSize - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - MapSize(const ::tensorflow::Scope& scope, const DataTypeSlice& dtypes); - MapSize(const ::tensorflow::Scope& scope, const DataTypeSlice& dtypes, const - MapSize::Attrs& attrs); - operator ::tensorflow::Output() const { return size; } - operator ::tensorflow::Input() const { return size; } - ::tensorflow::Node* node() const { return size.node(); } - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output size; -}; - -/// Stage (key, values) in the underlying container which behaves like a hashtable. -/// -/// Arguments: -/// * scope: A Scope object -/// * key: int64 -/// * values: a list of tensors -/// dtypes A list of data types that inserted values should adhere to. -/// -/// Optional attributes (see `Attrs`): -/// * capacity: Maximum number of elements in the Staging Area. If > 0, inserts -/// on the container will block when the capacity is reached. -/// * container: If non-empty, this queue is placed in the given container. Otherwise, -/// a default container is used. -/// * shared_name: It is necessary to match this name to the matching Unstage Op. -/// -/// Returns: -/// * the created `Operation` -class MapStage { - public: - /// Optional attribute setters for MapStage - struct Attrs { - /// Maximum number of elements in the Staging Area. If > 0, inserts - /// on the container will block when the capacity is reached. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// If non-empty, this queue is placed in the given container. Otherwise, - /// a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// It is necessary to match this name to the matching Unstage Op. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - MapStage(const ::tensorflow::Scope& scope, ::tensorflow::Input key, - ::tensorflow::Input indices, ::tensorflow::InputList values, const - DataTypeSlice& dtypes); - MapStage(const ::tensorflow::Scope& scope, ::tensorflow::Input key, - ::tensorflow::Input indices, ::tensorflow::InputList values, const - DataTypeSlice& dtypes, const MapStage::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; -}; - -/// Op removes and returns the values associated with the key -/// -/// from the underlying container. If the underlying container -/// does not contain this key, the op will block until it does. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `OutputList`: The values tensor. -class MapUnstage { - public: - /// Optional attribute setters for MapUnstage - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - MapUnstage(const ::tensorflow::Scope& scope, ::tensorflow::Input key, - ::tensorflow::Input indices, const DataTypeSlice& dtypes); - MapUnstage(const ::tensorflow::Scope& scope, ::tensorflow::Input key, - ::tensorflow::Input indices, const DataTypeSlice& dtypes, const - MapUnstage::Attrs& attrs); - ::tensorflow::Output operator[](size_t index) const { return values[index]; } - - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::OutputList values; -}; - -/// Op removes and returns a random (key, value) -/// -/// from the underlying container. If the underlying container -/// does not contain elements, the op will block until it does. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output` key -/// * `OutputList` values -class MapUnstageNoKey { - public: - /// Optional attribute setters for MapUnstageNoKey - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - MapUnstageNoKey(const ::tensorflow::Scope& scope, ::tensorflow::Input indices, - const DataTypeSlice& dtypes); - MapUnstageNoKey(const ::tensorflow::Scope& scope, ::tensorflow::Input indices, - const DataTypeSlice& dtypes, const MapUnstageNoKey::Attrs& - attrs); - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output key; - ::tensorflow::OutputList values; -}; - -/// Op removes all elements in the underlying container. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * the created `Operation` -class OrderedMapClear { - public: - /// Optional attribute setters for OrderedMapClear - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - OrderedMapClear(const ::tensorflow::Scope& scope, const DataTypeSlice& dtypes); - OrderedMapClear(const ::tensorflow::Scope& scope, const DataTypeSlice& dtypes, - const OrderedMapClear::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; -}; - -/// Op returns the number of incomplete elements in the underlying container. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The size tensor. -class OrderedMapIncompleteSize { - public: - /// Optional attribute setters for OrderedMapIncompleteSize - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - OrderedMapIncompleteSize(const ::tensorflow::Scope& scope, const DataTypeSlice& - dtypes); - OrderedMapIncompleteSize(const ::tensorflow::Scope& scope, const DataTypeSlice& - dtypes, const OrderedMapIncompleteSize::Attrs& attrs); - operator ::tensorflow::Output() const { return size; } - operator ::tensorflow::Input() const { return size; } - ::tensorflow::Node* node() const { return size.node(); } - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output size; -}; - -/// Op peeks at the values at the specified key. If the -/// -/// underlying container does not contain this key -/// this op will block until it does. This Op is optimized for -/// performance. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `OutputList`: The values tensor. -class OrderedMapPeek { - public: - /// Optional attribute setters for OrderedMapPeek - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - OrderedMapPeek(const ::tensorflow::Scope& scope, ::tensorflow::Input key, - ::tensorflow::Input indices, const DataTypeSlice& dtypes); - OrderedMapPeek(const ::tensorflow::Scope& scope, ::tensorflow::Input key, - ::tensorflow::Input indices, const DataTypeSlice& dtypes, const - OrderedMapPeek::Attrs& attrs); - ::tensorflow::Output operator[](size_t index) const { return values[index]; } - - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::OutputList values; -}; - -/// Op returns the number of elements in the underlying container. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The size tensor. -class OrderedMapSize { - public: - /// Optional attribute setters for OrderedMapSize - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - OrderedMapSize(const ::tensorflow::Scope& scope, const DataTypeSlice& dtypes); - OrderedMapSize(const ::tensorflow::Scope& scope, const DataTypeSlice& dtypes, - const OrderedMapSize::Attrs& attrs); - operator ::tensorflow::Output() const { return size; } - operator ::tensorflow::Input() const { return size; } - ::tensorflow::Node* node() const { return size.node(); } - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output size; -}; - -/// Stage (key, values) in the underlying container which behaves like a ordered -/// -/// associative container. Elements are ordered by key. -/// -/// Arguments: -/// * scope: A Scope object -/// * key: int64 -/// * values: a list of tensors -/// dtypes A list of data types that inserted values should adhere to. -/// -/// Optional attributes (see `Attrs`): -/// * capacity: Maximum number of elements in the Staging Area. If > 0, inserts -/// on the container will block when the capacity is reached. -/// * container: If non-empty, this queue is placed in the given container. Otherwise, -/// a default container is used. -/// * shared_name: It is necessary to match this name to the matching Unstage Op. -/// -/// Returns: -/// * the created `Operation` -class OrderedMapStage { - public: - /// Optional attribute setters for OrderedMapStage - struct Attrs { - /// Maximum number of elements in the Staging Area. If > 0, inserts - /// on the container will block when the capacity is reached. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// If non-empty, this queue is placed in the given container. Otherwise, - /// a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// It is necessary to match this name to the matching Unstage Op. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - OrderedMapStage(const ::tensorflow::Scope& scope, ::tensorflow::Input key, - ::tensorflow::Input indices, ::tensorflow::InputList values, - const DataTypeSlice& dtypes); - OrderedMapStage(const ::tensorflow::Scope& scope, ::tensorflow::Input key, - ::tensorflow::Input indices, ::tensorflow::InputList values, - const DataTypeSlice& dtypes, const OrderedMapStage::Attrs& - attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; -}; - -/// Op removes and returns the values associated with the key -/// -/// from the underlying container. If the underlying container -/// does not contain this key, the op will block until it does. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `OutputList`: The values tensor. -class OrderedMapUnstage { - public: - /// Optional attribute setters for OrderedMapUnstage - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - OrderedMapUnstage(const ::tensorflow::Scope& scope, ::tensorflow::Input key, - ::tensorflow::Input indices, const DataTypeSlice& dtypes); - OrderedMapUnstage(const ::tensorflow::Scope& scope, ::tensorflow::Input key, - ::tensorflow::Input indices, const DataTypeSlice& dtypes, - const OrderedMapUnstage::Attrs& attrs); - ::tensorflow::Output operator[](size_t index) const { return values[index]; } - - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::OutputList values; -}; - -/// Op removes and returns the (key, value) element with the smallest -/// -/// key from the underlying container. If the underlying container -/// does not contain elements, the op will block until it does. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output` key -/// * `OutputList` values -class OrderedMapUnstageNoKey { - public: - /// Optional attribute setters for OrderedMapUnstageNoKey - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - OrderedMapUnstageNoKey(const ::tensorflow::Scope& scope, ::tensorflow::Input - indices, const DataTypeSlice& dtypes); - OrderedMapUnstageNoKey(const ::tensorflow::Scope& scope, ::tensorflow::Input - indices, const DataTypeSlice& dtypes, const - OrderedMapUnstageNoKey::Attrs& attrs); - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output key; - ::tensorflow::OutputList values; -}; - -/// A queue that produces elements in first-in first-out order. -/// -/// Variable-size shapes are allowed by setting the corresponding shape dimensions -/// to 0 in the shape attr. In this case DequeueMany will pad up to the maximum -/// size of any given element in the minibatch. See below for details. -/// -/// Arguments: -/// * scope: A Scope object -/// * component_types: The type of each component in a value. -/// -/// Optional attributes (see `Attrs`): -/// * shapes: The shape of each component in a value. The length of this attr must -/// be either 0 or the same as the length of component_types. -/// Shapes of fixed rank but variable size are allowed by setting -/// any shape dimension to -1. In this case, the inputs' shape may vary along -/// the given dimension, and DequeueMany will pad the given dimension with -/// zeros up to the maximum shape of all elements in the given batch. -/// If the length of this attr is 0, different queue elements may have -/// different ranks and shapes, but only one element may be dequeued at a time. -/// * capacity: The upper bound on the number of elements in this queue. -/// Negative numbers mean no limit. -/// * container: If non-empty, this queue is placed in the given container. -/// Otherwise, a default container is used. -/// * shared_name: If non-empty, this queue will be shared under the given name -/// across multiple sessions. -/// -/// Returns: -/// * `Output`: The handle to the queue. -class PaddingFIFOQueue { - public: - /// Optional attribute setters for PaddingFIFOQueue - struct Attrs { - /// The shape of each component in a value. The length of this attr must - /// be either 0 or the same as the length of component_types. - /// Shapes of fixed rank but variable size are allowed by setting - /// any shape dimension to -1. In this case, the inputs' shape may vary along - /// the given dimension, and DequeueMany will pad the given dimension with - /// zeros up to the maximum shape of all elements in the given batch. - /// If the length of this attr is 0, different queue elements may have - /// different ranks and shapes, but only one element may be dequeued at a time. - /// - /// Defaults to [] - TF_MUST_USE_RESULT Attrs Shapes(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.shapes_ = x; - return ret; - } - - /// The upper bound on the number of elements in this queue. - /// Negative numbers mean no limit. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// If non-empty, this queue is placed in the given container. - /// Otherwise, a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// If non-empty, this queue will be shared under the given name - /// across multiple sessions. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - gtl::ArraySlice shapes_ = {}; - int64 capacity_ = -1; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - PaddingFIFOQueue(const ::tensorflow::Scope& scope, const DataTypeSlice& - component_types); - PaddingFIFOQueue(const ::tensorflow::Scope& scope, const DataTypeSlice& - component_types, const PaddingFIFOQueue::Attrs& attrs); - operator ::tensorflow::Output() const { return handle; } - operator ::tensorflow::Input() const { return handle; } - ::tensorflow::Node* node() const { return handle.node(); } - - static Attrs Shapes(const gtl::ArraySlice& x) { - return Attrs().Shapes(x); - } - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output handle; -}; - -/// Interleave the values from the `data` tensors into a single tensor. -/// -/// Builds a merged tensor such that -/// -/// ```python -/// merged[indices[m][i, ..., j], ...] = data[m][i, ..., j, ...] -/// ``` -/// -/// For example, if each `indices[m]` is scalar or vector, we have -/// -/// ```python -/// # Scalar indices: -/// merged[indices[m], ...] = data[m][...] -/// -/// # Vector indices: -/// merged[indices[m][i], ...] = data[m][i, ...] -/// ``` -/// -/// Each `data[i].shape` must start with the corresponding `indices[i].shape`, -/// and the rest of `data[i].shape` must be constant w.r.t. `i`. That is, we -/// must have `data[i].shape = indices[i].shape + constant`. In terms of this -/// `constant`, the output shape is -/// -/// merged.shape = [max(indices)] + constant -/// -/// Values may be merged in parallel, so if an index appears in both `indices[m][i]` -/// and `indices[n][j]`, the result may be invalid. This differs from the normal -/// DynamicStitch operator that defines the behavior in that case. -/// -/// For example: -/// -/// ```python -/// indices[0] = 6 -/// indices[1] = [4, 1] -/// indices[2] = [[5, 2], [0, 3]] -/// data[0] = [61, 62] -/// data[1] = [[41, 42], [11, 12]] -/// data[2] = [[[51, 52], [21, 22]], [[1, 2], [31, 32]]] -/// merged = [[1, 2], [11, 12], [21, 22], [31, 32], [41, 42], -/// [51, 52], [61, 62]] -/// ``` -/// -/// This method can be used to merge partitions created by `dynamic_partition` -/// as illustrated on the following example: -/// -/// ```python -/// # Apply function (increments x_i) on elements for which a certain condition -/// # apply (x_i != -1 in this example). -/// x=tf.constant([0.1, -1., 5.2, 4.3, -1., 7.4]) -/// condition_mask=tf.not_equal(x,tf.constant(-1.)) -/// partitioned_data = tf.dynamic_partition( -/// x, tf.cast(condition_mask, tf.int32) , 2) -/// partitioned_data[1] = partitioned_data[1] + 1.0 -/// condition_indices = tf.dynamic_partition( -/// tf.range(tf.shape(x)[0]), tf.cast(condition_mask, tf.int32) , 2) -/// x = tf.dynamic_stitch(condition_indices, partitioned_data) -/// # Here x=[1.1, -1., 6.2, 5.3, -1, 8.4], the -1. values remain -/// # unchanged. -/// ``` -/// -///
-/// -///
-/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The merged tensor. -class ParallelDynamicStitch { - public: - ParallelDynamicStitch(const ::tensorflow::Scope& scope, ::tensorflow::InputList - indices, ::tensorflow::InputList data); - operator ::tensorflow::Output() const { return merged; } - operator ::tensorflow::Input() const { return merged; } - ::tensorflow::Node* node() const { return merged.node(); } - - Operation operation; - ::tensorflow::Output merged; -}; - -/// A queue that produces elements sorted by the first component value. -/// -/// Note that the PriorityQueue requires the first component of any element -/// to be a scalar int64, in addition to the other elements declared by -/// component_types. Therefore calls to Enqueue and EnqueueMany (resp. Dequeue -/// and DequeueMany) on a PriorityQueue will all require (resp. output) one extra -/// entry in their input (resp. output) lists. -/// -/// Arguments: -/// * scope: A Scope object -/// * shapes: The shape of each component in a value. The length of this attr must -/// be either 0 or the same as the length of component_types. If the length of -/// this attr is 0, the shapes of queue elements are not constrained, and -/// only one element may be dequeued at a time. -/// -/// Optional attributes (see `Attrs`): -/// * component_types: The type of each component in a value. -/// * capacity: The upper bound on the number of elements in this queue. -/// Negative numbers mean no limit. -/// * container: If non-empty, this queue is placed in the given container. -/// Otherwise, a default container is used. -/// * shared_name: If non-empty, this queue will be shared under the given name -/// across multiple sessions. -/// -/// Returns: -/// * `Output`: The handle to the queue. -class PriorityQueue { - public: - /// Optional attribute setters for PriorityQueue - struct Attrs { - /// The type of each component in a value. - /// - /// Defaults to [] - TF_MUST_USE_RESULT Attrs ComponentTypes(const DataTypeSlice& x) { - Attrs ret = *this; - ret.component_types_ = x; - return ret; - } - - /// The upper bound on the number of elements in this queue. - /// Negative numbers mean no limit. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// If non-empty, this queue is placed in the given container. - /// Otherwise, a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// If non-empty, this queue will be shared under the given name - /// across multiple sessions. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - DataTypeSlice component_types_ = {}; - int64 capacity_ = -1; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - PriorityQueue(const ::tensorflow::Scope& scope, const - gtl::ArraySlice& shapes); - PriorityQueue(const ::tensorflow::Scope& scope, const - gtl::ArraySlice& shapes, const - PriorityQueue::Attrs& attrs); - operator ::tensorflow::Output() const { return handle; } - operator ::tensorflow::Input() const { return handle; } - ::tensorflow::Node* node() const { return handle.node(); } - - static Attrs ComponentTypes(const DataTypeSlice& x) { - return Attrs().ComponentTypes(x); - } - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output handle; -}; - -/// Closes the given queue. -/// -/// This operation signals that no more elements will be enqueued in the -/// given queue. Subsequent Enqueue(Many) operations will fail. -/// Subsequent Dequeue(Many) operations will continue to succeed if -/// sufficient elements remain in the queue. Subsequent Dequeue(Many) -/// operations that would block will fail immediately. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a queue. -/// -/// Optional attributes (see `Attrs`): -/// * cancel_pending_enqueues: If true, all pending enqueue requests that are -/// blocked on the given queue will be canceled. -/// -/// Returns: -/// * the created `Operation` -class QueueClose { - public: - /// Optional attribute setters for QueueClose - struct Attrs { - /// If true, all pending enqueue requests that are - /// blocked on the given queue will be canceled. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs CancelPendingEnqueues(bool x) { - Attrs ret = *this; - ret.cancel_pending_enqueues_ = x; - return ret; - } - - bool cancel_pending_enqueues_ = false; - }; - QueueClose(const ::tensorflow::Scope& scope, ::tensorflow::Input handle); - QueueClose(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, const - QueueClose::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs CancelPendingEnqueues(bool x) { - return Attrs().CancelPendingEnqueues(x); - } - - Operation operation; -}; - -/// Dequeues `n` tuples of one or more tensors from the given queue. -/// -/// If the queue is closed and there are fewer than `n` elements, then an -/// OutOfRange error is returned. -/// -/// This operation concatenates queue-element component tensors along the -/// 0th dimension to make a single component tensor. All of the components -/// in the dequeued tuple will have size `n` in the 0th dimension. -/// -/// This operation has `k` outputs, where `k` is the number of components in -/// the tuples stored in the given queue, and output `i` is the ith -/// component of the dequeued tuple. -/// -/// N.B. If the queue is empty, this operation will block until `n` elements -/// have been dequeued (or 'timeout_ms' elapses, if specified). -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a queue. -/// * n: The number of tuples to dequeue. -/// * component_types: The type of each component in a tuple. -/// -/// Optional attributes (see `Attrs`): -/// * timeout_ms: If the queue has fewer than n elements, this operation -/// will block for up to timeout_ms milliseconds. -/// Note: This option is not supported yet. -/// -/// Returns: -/// * `OutputList`: One or more tensors that were dequeued as a tuple. -class QueueDequeueMany { - public: - /// Optional attribute setters for QueueDequeueMany - struct Attrs { - /// If the queue has fewer than n elements, this operation - /// will block for up to timeout_ms milliseconds. - /// Note: This option is not supported yet. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs TimeoutMs(int64 x) { - Attrs ret = *this; - ret.timeout_ms_ = x; - return ret; - } - - int64 timeout_ms_ = -1; - }; - QueueDequeueMany(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::Input n, const DataTypeSlice& component_types); - QueueDequeueMany(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::Input n, const DataTypeSlice& component_types, - const QueueDequeueMany::Attrs& attrs); - ::tensorflow::Output operator[](size_t index) const { return components[index]; } - - - static Attrs TimeoutMs(int64 x) { - return Attrs().TimeoutMs(x); - } - - Operation operation; - ::tensorflow::OutputList components; -}; - -/// Dequeues `n` tuples of one or more tensors from the given queue. -/// -/// This operation is not supported by all queues. If a queue does not support -/// DequeueUpTo, then an Unimplemented error is returned. -/// -/// If the queue is closed and there are more than 0 but less than `n` -/// elements remaining, then instead of returning an OutOfRange error like -/// QueueDequeueMany, less than `n` elements are returned immediately. If -/// the queue is closed and there are 0 elements left in the queue, then -/// an OutOfRange error is returned just like in QueueDequeueMany. -/// Otherwise the behavior is identical to QueueDequeueMany: -/// -/// This operation concatenates queue-element component tensors along the -/// 0th dimension to make a single component tensor. All of the components -/// in the dequeued tuple will have size n in the 0th dimension. -/// -/// This operation has `k` outputs, where `k` is the number of components in -/// the tuples stored in the given queue, and output `i` is the ith -/// component of the dequeued tuple. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a queue. -/// * n: The number of tuples to dequeue. -/// * component_types: The type of each component in a tuple. -/// -/// Optional attributes (see `Attrs`): -/// * timeout_ms: If the queue has fewer than n elements, this operation -/// will block for up to timeout_ms milliseconds. -/// Note: This option is not supported yet. -/// -/// Returns: -/// * `OutputList`: One or more tensors that were dequeued as a tuple. -class QueueDequeueUpTo { - public: - /// Optional attribute setters for QueueDequeueUpTo - struct Attrs { - /// If the queue has fewer than n elements, this operation - /// will block for up to timeout_ms milliseconds. - /// Note: This option is not supported yet. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs TimeoutMs(int64 x) { - Attrs ret = *this; - ret.timeout_ms_ = x; - return ret; - } - - int64 timeout_ms_ = -1; - }; - QueueDequeueUpTo(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::Input n, const DataTypeSlice& component_types); - QueueDequeueUpTo(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::Input n, const DataTypeSlice& component_types, - const QueueDequeueUpTo::Attrs& attrs); - ::tensorflow::Output operator[](size_t index) const { return components[index]; } - - - static Attrs TimeoutMs(int64 x) { - return Attrs().TimeoutMs(x); - } - - Operation operation; - ::tensorflow::OutputList components; -}; - -/// Dequeues a tuple of one or more tensors from the given queue. -/// -/// This operation has k outputs, where k is the number of components -/// in the tuples stored in the given queue, and output i is the ith -/// component of the dequeued tuple. -/// -/// N.B. If the queue is empty, this operation will block until an element -/// has been dequeued (or 'timeout_ms' elapses, if specified). -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a queue. -/// * component_types: The type of each component in a tuple. -/// -/// Optional attributes (see `Attrs`): -/// * timeout_ms: If the queue is empty, this operation will block for up to -/// timeout_ms milliseconds. -/// Note: This option is not supported yet. -/// -/// Returns: -/// * `OutputList`: One or more tensors that were dequeued as a tuple. -class QueueDequeue { - public: - /// Optional attribute setters for QueueDequeue - struct Attrs { - /// If the queue is empty, this operation will block for up to - /// timeout_ms milliseconds. - /// Note: This option is not supported yet. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs TimeoutMs(int64 x) { - Attrs ret = *this; - ret.timeout_ms_ = x; - return ret; - } - - int64 timeout_ms_ = -1; - }; - QueueDequeue(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - const DataTypeSlice& component_types); - QueueDequeue(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - const DataTypeSlice& component_types, const QueueDequeue::Attrs& - attrs); - ::tensorflow::Output operator[](size_t index) const { return components[index]; } - - - static Attrs TimeoutMs(int64 x) { - return Attrs().TimeoutMs(x); - } - - Operation operation; - ::tensorflow::OutputList components; -}; - -/// Enqueues zero or more tuples of one or more tensors in the given queue. -/// -/// This operation slices each component tensor along the 0th dimension to -/// make multiple queue elements. All of the tuple components must have the -/// same size in the 0th dimension. -/// -/// The components input has k elements, which correspond to the components of -/// tuples stored in the given queue. -/// -/// N.B. If the queue is full, this operation will block until the given -/// elements have been enqueued (or 'timeout_ms' elapses, if specified). -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a queue. -/// * components: One or more tensors from which the enqueued tensors should -/// be taken. -/// -/// Optional attributes (see `Attrs`): -/// * timeout_ms: If the queue is too full, this operation will block for up -/// to timeout_ms milliseconds. -/// Note: This option is not supported yet. -/// -/// Returns: -/// * the created `Operation` -class QueueEnqueueMany { - public: - /// Optional attribute setters for QueueEnqueueMany - struct Attrs { - /// If the queue is too full, this operation will block for up - /// to timeout_ms milliseconds. - /// Note: This option is not supported yet. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs TimeoutMs(int64 x) { - Attrs ret = *this; - ret.timeout_ms_ = x; - return ret; - } - - int64 timeout_ms_ = -1; - }; - QueueEnqueueMany(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::InputList components); - QueueEnqueueMany(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::InputList components, const - QueueEnqueueMany::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs TimeoutMs(int64 x) { - return Attrs().TimeoutMs(x); - } - - Operation operation; -}; - -/// Enqueues a tuple of one or more tensors in the given queue. -/// -/// The components input has k elements, which correspond to the components of -/// tuples stored in the given queue. -/// -/// N.B. If the queue is full, this operation will block until the given -/// element has been enqueued (or 'timeout_ms' elapses, if specified). -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a queue. -/// * components: One or more tensors from which the enqueued tensors should be taken. -/// -/// Optional attributes (see `Attrs`): -/// * timeout_ms: If the queue is full, this operation will block for up to -/// timeout_ms milliseconds. -/// Note: This option is not supported yet. -/// -/// Returns: -/// * the created `Operation` -class QueueEnqueue { - public: - /// Optional attribute setters for QueueEnqueue - struct Attrs { - /// If the queue is full, this operation will block for up to - /// timeout_ms milliseconds. - /// Note: This option is not supported yet. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs TimeoutMs(int64 x) { - Attrs ret = *this; - ret.timeout_ms_ = x; - return ret; - } - - int64 timeout_ms_ = -1; - }; - QueueEnqueue(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::InputList components); - QueueEnqueue(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::InputList components, const QueueEnqueue::Attrs& - attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs TimeoutMs(int64 x) { - return Attrs().TimeoutMs(x); - } - - Operation operation; -}; - -/// Returns true if queue is closed. -/// -/// This operation returns true if the queue is closed and false if the queue -/// is open. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a queue. -/// -/// Returns: -/// * `Output`: The is_closed tensor. -class QueueIsClosed { - public: - QueueIsClosed(const ::tensorflow::Scope& scope, ::tensorflow::Input handle); - operator ::tensorflow::Output() const { return is_closed; } - operator ::tensorflow::Input() const { return is_closed; } - ::tensorflow::Node* node() const { return is_closed.node(); } - - Operation operation; - ::tensorflow::Output is_closed; -}; - -/// Returns true if queue is closed. -/// -/// This operation returns true if the queue is closed and false if the queue -/// is open. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a queue. -/// -/// Returns: -/// * `Output`: The is_closed tensor. -class QueueIsClosedV2 { - public: - QueueIsClosedV2(const ::tensorflow::Scope& scope, ::tensorflow::Input handle); - operator ::tensorflow::Output() const { return is_closed; } - operator ::tensorflow::Input() const { return is_closed; } - ::tensorflow::Node* node() const { return is_closed.node(); } - - Operation operation; - ::tensorflow::Output is_closed; -}; - -/// Computes the number of elements in the given queue. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a queue. -/// -/// Returns: -/// * `Output`: The number of elements in the given queue. -class QueueSize { - public: - QueueSize(const ::tensorflow::Scope& scope, ::tensorflow::Input handle); - operator ::tensorflow::Output() const { return size; } - operator ::tensorflow::Input() const { return size; } - ::tensorflow::Node* node() const { return size.node(); } - - Operation operation; - ::tensorflow::Output size; -}; - -/// A queue that randomizes the order of elements. -/// -/// Arguments: -/// * scope: A Scope object -/// * component_types: The type of each component in a value. -/// -/// Optional attributes (see `Attrs`): -/// * shapes: The shape of each component in a value. The length of this attr must -/// be either 0 or the same as the length of component_types. If the length of -/// this attr is 0, the shapes of queue elements are not constrained, and -/// only one element may be dequeued at a time. -/// * capacity: The upper bound on the number of elements in this queue. -/// Negative numbers mean no limit. -/// * min_after_dequeue: Dequeue will block unless there would be this -/// many elements after the dequeue or the queue is closed. This -/// ensures a minimum level of mixing of elements. -/// * seed: If either seed or seed2 is set to be non-zero, the random number -/// generator is seeded by the given seed. Otherwise, a random seed is used. -/// * seed2: A second seed to avoid seed collision. -/// * container: If non-empty, this queue is placed in the given container. -/// Otherwise, a default container is used. -/// * shared_name: If non-empty, this queue will be shared under the given name -/// across multiple sessions. -/// -/// Returns: -/// * `Output`: The handle to the queue. -class RandomShuffleQueue { - public: - /// Optional attribute setters for RandomShuffleQueue - struct Attrs { - /// The shape of each component in a value. The length of this attr must - /// be either 0 or the same as the length of component_types. If the length of - /// this attr is 0, the shapes of queue elements are not constrained, and - /// only one element may be dequeued at a time. - /// - /// Defaults to [] - TF_MUST_USE_RESULT Attrs Shapes(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.shapes_ = x; - return ret; - } - - /// The upper bound on the number of elements in this queue. - /// Negative numbers mean no limit. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Dequeue will block unless there would be this - /// many elements after the dequeue or the queue is closed. This - /// ensures a minimum level of mixing of elements. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MinAfterDequeue(int64 x) { - Attrs ret = *this; - ret.min_after_dequeue_ = x; - return ret; - } - - /// If either seed or seed2 is set to be non-zero, the random number - /// generator is seeded by the given seed. Otherwise, a random seed is used. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// A second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - /// If non-empty, this queue is placed in the given container. - /// Otherwise, a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// If non-empty, this queue will be shared under the given name - /// across multiple sessions. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - gtl::ArraySlice shapes_ = {}; - int64 capacity_ = -1; - int64 min_after_dequeue_ = 0; - int64 seed_ = 0; - int64 seed2_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - RandomShuffleQueue(const ::tensorflow::Scope& scope, const DataTypeSlice& - component_types); - RandomShuffleQueue(const ::tensorflow::Scope& scope, const DataTypeSlice& - component_types, const RandomShuffleQueue::Attrs& attrs); - operator ::tensorflow::Output() const { return handle; } - operator ::tensorflow::Input() const { return handle; } - ::tensorflow::Node* node() const { return handle.node(); } - - static Attrs Shapes(const gtl::ArraySlice& x) { - return Attrs().Shapes(x); - } - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MinAfterDequeue(int64 x) { - return Attrs().MinAfterDequeue(x); - } - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output handle; -}; - -/// Emits randomized records. -/// -/// Arguments: -/// * scope: A Scope object -/// * file_pattern: Glob pattern for the data files. -/// -/// Optional attributes (see `Attrs`): -/// * file_random_seed: Random seeds used to produce randomized records. -/// * file_shuffle_shift_ratio: Shifts the list of files after the list is randomly -/// shuffled. -/// * file_buffer_size: The randomization shuffling buffer. -/// * file_parallelism: How many sstables are opened and concurrently iterated over. -/// * batch_size: The batch size. -/// * compression_type: The type of compression for the file. Currently ZLIB and -/// GZIP are supported. Defaults to none. -/// -/// Returns: -/// * `Output`: A tensor of shape [batch_size]. -class RecordInput { - public: - /// Optional attribute setters for RecordInput - struct Attrs { - /// Random seeds used to produce randomized records. - /// - /// Defaults to 301 - TF_MUST_USE_RESULT Attrs FileRandomSeed(int64 x) { - Attrs ret = *this; - ret.file_random_seed_ = x; - return ret; - } - - /// Shifts the list of files after the list is randomly - /// shuffled. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs FileShuffleShiftRatio(float x) { - Attrs ret = *this; - ret.file_shuffle_shift_ratio_ = x; - return ret; - } - - /// The randomization shuffling buffer. - /// - /// Defaults to 10000 - TF_MUST_USE_RESULT Attrs FileBufferSize(int64 x) { - Attrs ret = *this; - ret.file_buffer_size_ = x; - return ret; - } - - /// How many sstables are opened and concurrently iterated over. - /// - /// Defaults to 16 - TF_MUST_USE_RESULT Attrs FileParallelism(int64 x) { - Attrs ret = *this; - ret.file_parallelism_ = x; - return ret; - } - - /// The batch size. - /// - /// Defaults to 32 - TF_MUST_USE_RESULT Attrs BatchSize(int64 x) { - Attrs ret = *this; - ret.batch_size_ = x; - return ret; - } - - /// The type of compression for the file. Currently ZLIB and - /// GZIP are supported. Defaults to none. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs CompressionType(StringPiece x) { - Attrs ret = *this; - ret.compression_type_ = x; - return ret; - } - - int64 file_random_seed_ = 301; - float file_shuffle_shift_ratio_ = 0.0f; - int64 file_buffer_size_ = 10000; - int64 file_parallelism_ = 16; - int64 batch_size_ = 32; - StringPiece compression_type_ = ""; - }; - RecordInput(const ::tensorflow::Scope& scope, StringPiece file_pattern); - RecordInput(const ::tensorflow::Scope& scope, StringPiece file_pattern, const - RecordInput::Attrs& attrs); - operator ::tensorflow::Output() const { return records; } - operator ::tensorflow::Input() const { return records; } - ::tensorflow::Node* node() const { return records.node(); } - - static Attrs FileRandomSeed(int64 x) { - return Attrs().FileRandomSeed(x); - } - static Attrs FileShuffleShiftRatio(float x) { - return Attrs().FileShuffleShiftRatio(x); - } - static Attrs FileBufferSize(int64 x) { - return Attrs().FileBufferSize(x); - } - static Attrs FileParallelism(int64 x) { - return Attrs().FileParallelism(x); - } - static Attrs BatchSize(int64 x) { - return Attrs().BatchSize(x); - } - static Attrs CompressionType(StringPiece x) { - return Attrs().CompressionType(x); - } - - Operation operation; - ::tensorflow::Output records; -}; - -/// Applies a sparse gradient to a given accumulator. -/// -/// Does not add if local_step is smaller than the accumulator's -/// global_step. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a accumulator. -/// * local_step: The local_step value at which the sparse gradient was computed. -/// * gradient_indices: Indices of the sparse gradient to be accumulated. Must be a -/// vector. -/// * gradient_values: Values are the non-zero slices of the gradient, and must have -/// the same first dimension as indices, i.e., the nnz represented by indices and -/// values must be consistent. -/// * gradient_shape: Shape of the sparse gradient to be accumulated. -/// * has_known_shape: Boolean indicating whether gradient_shape is unknown, in which -/// case the input is ignored during validation. -/// -/// Returns: -/// * the created `Operation` -class SparseAccumulatorApplyGradient { - public: - SparseAccumulatorApplyGradient(const ::tensorflow::Scope& scope, - ::tensorflow::Input handle, ::tensorflow::Input - local_step, ::tensorflow::Input - gradient_indices, ::tensorflow::Input - gradient_values, ::tensorflow::Input - gradient_shape, bool has_known_shape); - operator ::tensorflow::Operation() const { return operation; } - - Operation operation; -}; - -/// Extracts the average sparse gradient in a SparseConditionalAccumulator. -/// -/// The op will blocks until sufficient (i.e., more than num_required) -/// gradients have been accumulated. If the accumulator has already -/// aggregated more than num_required gradients, it will return its -/// average of the accumulated gradients. Also automatically increments -/// the recorded global_step in the accumulator by 1, and resets the -/// aggregate to 0. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a SparseConditionalAccumulator. -/// * num_required: Number of gradients required before we return an aggregate. -/// * dtype: The data type of accumulated gradients. Needs to correspond to the type -/// of the accumulator. -/// -/// Returns: -/// * `Output` indices: Indices of the average of the accumulated sparse gradients. -/// * `Output` values: Values of the average of the accumulated sparse gradients. -/// * `Output` shape: Shape of the average of the accumulated sparse gradients. -class SparseAccumulatorTakeGradient { - public: - SparseAccumulatorTakeGradient(const ::tensorflow::Scope& scope, - ::tensorflow::Input handle, ::tensorflow::Input - num_required, DataType dtype); - - Operation operation; - ::tensorflow::Output indices; - ::tensorflow::Output values; - ::tensorflow::Output shape; -}; - -/// A conditional accumulator for aggregating sparse gradients. -/// -/// The accumulator accepts gradients marked with local_step greater or -/// equal to the most recent global_step known to the accumulator. The -/// average can be extracted from the accumulator, provided sufficient -/// gradients have been accumulated. Extracting the average automatically -/// resets the aggregate to 0, and increments the global_step recorded by -/// the accumulator. -/// -/// Arguments: -/// * scope: A Scope object -/// * dtype: The type of the value being accumulated. -/// * shape: The shape of the values. -/// -/// Optional attributes (see `Attrs`): -/// * container: If non-empty, this accumulator is placed in the given container. -/// Otherwise, a default container is used. -/// * shared_name: If non-empty, this accumulator will be shared under the given name -/// across multiple sessions. -/// -/// Returns: -/// * `Output`: The handle to the accumulator. -class SparseConditionalAccumulator { - public: - /// Optional attribute setters for SparseConditionalAccumulator - struct Attrs { - /// If non-empty, this accumulator is placed in the given container. - /// Otherwise, a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// If non-empty, this accumulator will be shared under the given name - /// across multiple sessions. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - /// Defaults to "MEAN" - TF_MUST_USE_RESULT Attrs ReductionType(StringPiece x) { - Attrs ret = *this; - ret.reduction_type_ = x; - return ret; - } - - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - StringPiece reduction_type_ = "MEAN"; - }; - SparseConditionalAccumulator(const ::tensorflow::Scope& scope, DataType dtype, - PartialTensorShape shape); - SparseConditionalAccumulator(const ::tensorflow::Scope& scope, DataType dtype, - PartialTensorShape shape, const - SparseConditionalAccumulator::Attrs& attrs); - operator ::tensorflow::Output() const { return handle; } - operator ::tensorflow::Input() const { return handle; } - ::tensorflow::Node* node() const { return handle.node(); } - - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - static Attrs ReductionType(StringPiece x) { - return Attrs().ReductionType(x); - } - - Operation operation; - ::tensorflow::Output handle; -}; - -/// Stage values similar to a lightweight Enqueue. -/// -/// The basic functionality of this Op is similar to a queue with many -/// fewer capabilities and options. This Op is optimized for performance. -/// -/// Arguments: -/// * scope: A Scope object -/// * values: a list of tensors -/// dtypes A list of data types that inserted values should adhere to. -/// -/// Optional attributes (see `Attrs`): -/// * capacity: Maximum number of elements in the Staging Area. If > 0, inserts -/// on the container will block when the capacity is reached. -/// * memory_limit: The maximum number of bytes allowed for Tensors in the Staging Area. -/// If > 0, inserts will block until sufficient space is available. -/// * container: If non-empty, this queue is placed in the given container. Otherwise, -/// a default container is used. -/// * shared_name: It is necessary to match this name to the matching Unstage Op. -/// -/// Returns: -/// * the created `Operation` -class Stage { - public: - /// Optional attribute setters for Stage - struct Attrs { - /// Maximum number of elements in the Staging Area. If > 0, inserts - /// on the container will block when the capacity is reached. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// The maximum number of bytes allowed for Tensors in the Staging Area. - /// If > 0, inserts will block until sufficient space is available. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// If non-empty, this queue is placed in the given container. Otherwise, - /// a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// It is necessary to match this name to the matching Unstage Op. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - Stage(const ::tensorflow::Scope& scope, ::tensorflow::InputList values); - Stage(const ::tensorflow::Scope& scope, ::tensorflow::InputList values, const - Stage::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; -}; - -/// Op removes all elements in the underlying container. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * the created `Operation` -class StageClear { - public: - /// Optional attribute setters for StageClear - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - StageClear(const ::tensorflow::Scope& scope, const DataTypeSlice& dtypes); - StageClear(const ::tensorflow::Scope& scope, const DataTypeSlice& dtypes, const - StageClear::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; -}; - -/// Op peeks at the values at the specified index. If the -/// -/// underlying container does not contain sufficient elements -/// this op will block until it does. This Op is optimized for -/// performance. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `OutputList`: The values tensor. -class StagePeek { - public: - /// Optional attribute setters for StagePeek - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - StagePeek(const ::tensorflow::Scope& scope, ::tensorflow::Input index, const - DataTypeSlice& dtypes); - StagePeek(const ::tensorflow::Scope& scope, ::tensorflow::Input index, const - DataTypeSlice& dtypes, const StagePeek::Attrs& attrs); - ::tensorflow::Output operator[](size_t index) const { return values[index]; } - - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::OutputList values; -}; - -/// Op returns the number of elements in the underlying container. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The size tensor. -class StageSize { - public: - /// Optional attribute setters for StageSize - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - StageSize(const ::tensorflow::Scope& scope, const DataTypeSlice& dtypes); - StageSize(const ::tensorflow::Scope& scope, const DataTypeSlice& dtypes, const - StageSize::Attrs& attrs); - operator ::tensorflow::Output() const { return size; } - operator ::tensorflow::Input() const { return size; } - ::tensorflow::Node* node() const { return size.node(); } - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output size; -}; - -/// Delete the TensorArray from its resource container. -/// -/// This enables the user to close and release the resource in the middle -/// of a step/run. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a TensorArray (output of TensorArray or TensorArrayGrad). -/// -/// Returns: -/// * the created `Operation` -class TensorArrayClose { - public: - TensorArrayClose(const ::tensorflow::Scope& scope, ::tensorflow::Input handle); - operator ::tensorflow::Operation() const { return operation; } - - Operation operation; -}; - -/// Concat the elements from the TensorArray into value `value`. -/// -/// Takes `T` elements of shapes -/// -/// ``` -/// (n0 x d0 x d1 x ...), (n1 x d0 x d1 x ...), ..., (n(T-1) x d0 x d1 x ...) -/// ``` -/// -/// and concatenates them into a Tensor of shape: -/// -/// ```(n0 + n1 + ... + n(T-1) x d0 x d1 x ...)``` -/// -/// All elements must have the same shape (excepting the first dimension). -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a TensorArray. -/// * flow_in: A float scalar that enforces proper chaining of operations. -/// * dtype: The type of the elem that is returned. -/// -/// Optional attributes (see `Attrs`): -/// * element_shape_except0: The expected shape of an element, if known, -/// excluding the first dimension. Used to validate the shapes of -/// TensorArray elements. If this shape is not fully specified, concatenating -/// zero-size TensorArrays is an error. -/// -/// Returns: -/// * `Output` value: All of the elements in the TensorArray, concatenated along the first -/// axis. -/// * `Output` lengths: A vector of the row sizes of the original T elements in the -/// value output. In the example above, this would be the values: -/// `(n1, n2, ..., n(T-1))`. -class TensorArrayConcat { - public: - /// Optional attribute setters for TensorArrayConcat - struct Attrs { - /// The expected shape of an element, if known, - /// excluding the first dimension. Used to validate the shapes of - /// TensorArray elements. If this shape is not fully specified, concatenating - /// zero-size TensorArrays is an error. - /// - /// Defaults to - TF_MUST_USE_RESULT Attrs ElementShapeExcept0(PartialTensorShape x) { - Attrs ret = *this; - ret.element_shape_except0_ = x; - return ret; - } - - PartialTensorShape element_shape_except0_ = ::tensorflow::PartialTensorShape() /* unknown */; - }; - TensorArrayConcat(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::Input flow_in, DataType dtype); - TensorArrayConcat(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::Input flow_in, DataType dtype, const - TensorArrayConcat::Attrs& attrs); - - static Attrs ElementShapeExcept0(PartialTensorShape x) { - return Attrs().ElementShapeExcept0(x); - } - - Operation operation; - ::tensorflow::Output value; - ::tensorflow::Output lengths; -}; - -/// Gather specific elements from the TensorArray into output `value`. -/// -/// All elements selected by `indices` must have the same shape. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a TensorArray. -/// * indices: The locations in the TensorArray from which to read tensor elements. -/// * flow_in: A float scalar that enforces proper chaining of operations. -/// * dtype: The type of the elem that is returned. -/// -/// Optional attributes (see `Attrs`): -/// * element_shape: The expected shape of an element, if known. Used to -/// validate the shapes of TensorArray elements. If this shape is not -/// fully specified, gathering zero-size TensorArrays is an error. -/// -/// Returns: -/// * `Output`: All of the elements in the TensorArray, concatenated along a new -/// axis (the new dimension 0). -class TensorArrayGather { - public: - /// Optional attribute setters for TensorArrayGather - struct Attrs { - /// The expected shape of an element, if known. Used to - /// validate the shapes of TensorArray elements. If this shape is not - /// fully specified, gathering zero-size TensorArrays is an error. - /// - /// Defaults to - TF_MUST_USE_RESULT Attrs ElementShape(PartialTensorShape x) { - Attrs ret = *this; - ret.element_shape_ = x; - return ret; - } - - PartialTensorShape element_shape_ = ::tensorflow::PartialTensorShape() /* unknown */; - }; - TensorArrayGather(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::Input indices, ::tensorflow::Input flow_in, - DataType dtype); - TensorArrayGather(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::Input indices, ::tensorflow::Input flow_in, - DataType dtype, const TensorArrayGather::Attrs& attrs); - operator ::tensorflow::Output() const { return value; } - operator ::tensorflow::Input() const { return value; } - ::tensorflow::Node* node() const { return value.node(); } - - static Attrs ElementShape(PartialTensorShape x) { - return Attrs().ElementShape(x); - } - - Operation operation; - ::tensorflow::Output value; -}; - -/// Creates a TensorArray for storing the gradients of values in the given handle. -/// -/// If the given TensorArray gradient already exists, returns a reference to it. -/// -/// Locks the size of the original TensorArray by disabling its dynamic size flag. -/// -/// **A note about the input flow_in:** -/// -/// The handle flow_in forces the execution of the gradient lookup to occur -/// only after certain other operations have occurred. For example, when -/// the forward TensorArray is dynamically sized, writes to this TensorArray -/// may resize the object. The gradient TensorArray is statically sized based -/// on the size of the forward TensorArray when this operation executes. -/// Furthermore, the size of the forward TensorArray is frozen by this call. -/// As a result, the flow is used to ensure that the call to generate the gradient -/// TensorArray only happens after all writes are executed. -/// -/// In the case of dynamically sized TensorArrays, gradient computation should -/// only be performed on read operations that have themselves been chained via -/// flow to occur only after all writes have executed. That way the final size -/// of the forward TensorArray is known when this operation is called. -/// -/// **A note about the source attribute:** -/// -/// TensorArray gradient calls use an accumulator TensorArray object. If -/// multiple gradients are calculated and run in the same session, the multiple -/// gradient nodes may accidentally flow through the same accumulator TensorArray. -/// This double counts and generally breaks the TensorArray gradient flow. -/// -/// The solution is to identify which gradient call this particular -/// TensorArray gradient is being called in. This is performed by identifying -/// a unique string (e.g. "gradients", "gradients_1", ...) from the input -/// gradient Tensor's name. This string is used as a suffix when creating -/// the TensorArray gradient object here (the attribute `source`). -/// -/// The attribute `source` is added as a suffix to the forward TensorArray's -/// name when performing the creation / lookup, so that each separate gradient -/// calculation gets its own TensorArray accumulator. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to the forward TensorArray. -/// * flow_in: A float scalar that enforces proper chaining of operations. -/// * source: The gradient source string, used to decide which gradient TensorArray -/// to return. -/// -/// Returns: -/// * `Output` grad_handle -/// * `Output` flow_out -class TensorArrayGrad { - public: - TensorArrayGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::Input flow_in, StringPiece source); - - Operation operation; - ::tensorflow::Output grad_handle; - ::tensorflow::Output flow_out; -}; - -/// Creates a TensorArray for storing multiple gradients of values in the given handle. -/// -/// Similar to TensorArrayGradV3. However it creates an accumulator with an -/// expanded shape compared to the input TensorArray whose gradient is being -/// computed. This enables multiple gradients for the same TensorArray to be -/// calculated using the same accumulator. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to the forward TensorArray. -/// * flow_in: A float scalar that enforces proper chaining of operations. -/// * shape_to_prepend: An int32 vector representing a shape. Elements in the gradient accumulator will -/// have shape which is this shape_to_prepend value concatenated with shape of the -/// elements in the TensorArray corresponding to the input handle. -/// * source: The gradient source string, used to decide which gradient TensorArray -/// to return. -/// -/// Returns: -/// * `Output` grad_handle -/// * `Output` flow_out -class TensorArrayGradWithShape { - public: - TensorArrayGradWithShape(const ::tensorflow::Scope& scope, ::tensorflow::Input - handle, ::tensorflow::Input flow_in, - ::tensorflow::Input shape_to_prepend, StringPiece - source); - - Operation operation; - ::tensorflow::Output grad_handle; - ::tensorflow::Output flow_out; -}; - -/// Read an element from the TensorArray into output `value`. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a TensorArray. -/// * flow_in: A float scalar that enforces proper chaining of operations. -/// * dtype: The type of the elem that is returned. -/// -/// Returns: -/// * `Output`: The tensor that is read from the TensorArray. -class TensorArrayRead { - public: - TensorArrayRead(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::Input index, ::tensorflow::Input flow_in, - DataType dtype); - operator ::tensorflow::Output() const { return value; } - operator ::tensorflow::Input() const { return value; } - ::tensorflow::Node* node() const { return value.node(); } - - Operation operation; - ::tensorflow::Output value; -}; - -/// Scatter the data from the input value into specific TensorArray elements. -/// -/// `indices` must be a vector, its length must match the first dim of `value`. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a TensorArray. -/// * indices: The locations at which to write the tensor elements. -/// * value: The concatenated tensor to write to the TensorArray. -/// * flow_in: A float scalar that enforces proper chaining of operations. -/// -/// Returns: -/// * `Output`: A float scalar that enforces proper chaining of operations. -class TensorArrayScatter { - public: - TensorArrayScatter(const ::tensorflow::Scope& scope, ::tensorflow::Input - handle, ::tensorflow::Input indices, ::tensorflow::Input - value, ::tensorflow::Input flow_in); - operator ::tensorflow::Output() const { return flow_out; } - operator ::tensorflow::Input() const { return flow_out; } - ::tensorflow::Node* node() const { return flow_out.node(); } - - Operation operation; - ::tensorflow::Output flow_out; -}; - -/// Get the current size of the TensorArray. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a TensorArray (output of TensorArray or TensorArrayGrad). -/// * flow_in: A float scalar that enforces proper chaining of operations. -/// -/// Returns: -/// * `Output`: The current size of the TensorArray. -class TensorArraySize { - public: - TensorArraySize(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::Input flow_in); - operator ::tensorflow::Output() const { return size; } - operator ::tensorflow::Input() const { return size; } - ::tensorflow::Node* node() const { return size.node(); } - - Operation operation; - ::tensorflow::Output size; -}; - -/// Split the data from the input value into TensorArray elements. -/// -/// Assuming that `lengths` takes on values -/// -/// ```(n0, n1, ..., n(T-1))``` -/// -/// and that `value` has shape -/// -/// ```(n0 + n1 + ... + n(T-1) x d0 x d1 x ...)```, -/// -/// this splits values into a TensorArray with T tensors. -/// -/// TensorArray index t will be the subtensor of values with starting position -/// -/// ```(n0 + n1 + ... + n(t-1), 0, 0, ...)``` -/// -/// and having size -/// -/// ```nt x d0 x d1 x ...``` -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a TensorArray. -/// * value: The concatenated tensor to write to the TensorArray. -/// * lengths: The vector of lengths, how to split the rows of value into the -/// TensorArray. -/// * flow_in: A float scalar that enforces proper chaining of operations. -/// -/// Returns: -/// * `Output`: A float scalar that enforces proper chaining of operations. -class TensorArraySplit { - public: - TensorArraySplit(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::Input value, ::tensorflow::Input lengths, - ::tensorflow::Input flow_in); - operator ::tensorflow::Output() const { return flow_out; } - operator ::tensorflow::Input() const { return flow_out; } - ::tensorflow::Node* node() const { return flow_out.node(); } - - Operation operation; - ::tensorflow::Output flow_out; -}; - -/// An array of Tensors of given size. -/// -/// Write data via Write and read via Read or Pack. -/// -/// Arguments: -/// * scope: A Scope object -/// * size: The size of the array. -/// * dtype: The type of the elements on the tensor_array. -/// -/// Optional attributes (see `Attrs`): -/// * element_shape: The expected shape of an element, if known. Used to -/// validate the shapes of TensorArray elements. If this shape is not -/// fully specified, gathering zero-size TensorArrays is an error. -/// * dynamic_size: A boolean that determines whether writes to the TensorArray -/// are allowed to grow the size. By default, this is not allowed. -/// * clear_after_read: If true (default), Tensors in the TensorArray are cleared -/// after being read. This disables multiple read semantics but allows early -/// release of memory. -/// * identical_element_shapes: If true (default is false), then all -/// elements in the TensorArray will be expected to have have identical shapes. -/// This allows certain behaviors, like dynamically checking for -/// consistent shapes on write, and being able to fill in properly -/// shaped zero tensors on stack -- even if the element_shape attribute -/// is not fully defined. -/// * tensor_array_name: Overrides the name used for the temporary tensor_array -/// resource. Default value is the name of the 'TensorArray' op (which -/// is guaranteed unique). -/// -/// Returns: -/// * `Output` handle: The handle to the TensorArray. -/// * `Output` flow: A scalar used to control gradient flow. -class TensorArray { - public: - /// Optional attribute setters for TensorArray - struct Attrs { - /// The expected shape of an element, if known. Used to - /// validate the shapes of TensorArray elements. If this shape is not - /// fully specified, gathering zero-size TensorArrays is an error. - /// - /// Defaults to - TF_MUST_USE_RESULT Attrs ElementShape(PartialTensorShape x) { - Attrs ret = *this; - ret.element_shape_ = x; - return ret; - } - - /// A boolean that determines whether writes to the TensorArray - /// are allowed to grow the size. By default, this is not allowed. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs DynamicSize(bool x) { - Attrs ret = *this; - ret.dynamic_size_ = x; - return ret; - } - - /// If true (default), Tensors in the TensorArray are cleared - /// after being read. This disables multiple read semantics but allows early - /// release of memory. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs ClearAfterRead(bool x) { - Attrs ret = *this; - ret.clear_after_read_ = x; - return ret; - } - - /// If true (default is false), then all - /// elements in the TensorArray will be expected to have have identical shapes. - /// This allows certain behaviors, like dynamically checking for - /// consistent shapes on write, and being able to fill in properly - /// shaped zero tensors on stack -- even if the element_shape attribute - /// is not fully defined. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs IdenticalElementShapes(bool x) { - Attrs ret = *this; - ret.identical_element_shapes_ = x; - return ret; - } - - /// Overrides the name used for the temporary tensor_array - /// resource. Default value is the name of the 'TensorArray' op (which - /// is guaranteed unique). - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs TensorArrayName(StringPiece x) { - Attrs ret = *this; - ret.tensor_array_name_ = x; - return ret; - } - - PartialTensorShape element_shape_ = ::tensorflow::PartialTensorShape() /* unknown */; - bool dynamic_size_ = false; - bool clear_after_read_ = true; - bool identical_element_shapes_ = false; - StringPiece tensor_array_name_ = ""; - }; - TensorArray(const ::tensorflow::Scope& scope, ::tensorflow::Input size, - DataType dtype); - TensorArray(const ::tensorflow::Scope& scope, ::tensorflow::Input size, - DataType dtype, const TensorArray::Attrs& attrs); - - static Attrs ElementShape(PartialTensorShape x) { - return Attrs().ElementShape(x); - } - static Attrs DynamicSize(bool x) { - return Attrs().DynamicSize(x); - } - static Attrs ClearAfterRead(bool x) { - return Attrs().ClearAfterRead(x); - } - static Attrs IdenticalElementShapes(bool x) { - return Attrs().IdenticalElementShapes(x); - } - static Attrs TensorArrayName(StringPiece x) { - return Attrs().TensorArrayName(x); - } - - Operation operation; - ::tensorflow::Output handle; - ::tensorflow::Output flow; -}; - -/// Push an element onto the tensor_array. -/// -/// Arguments: -/// * scope: A Scope object -/// * handle: The handle to a TensorArray. -/// * index: The position to write to inside the TensorArray. -/// * value: The tensor to write to the TensorArray. -/// * flow_in: A float scalar that enforces proper chaining of operations. -/// -/// Returns: -/// * `Output`: A float scalar that enforces proper chaining of operations. -class TensorArrayWrite { - public: - TensorArrayWrite(const ::tensorflow::Scope& scope, ::tensorflow::Input handle, - ::tensorflow::Input index, ::tensorflow::Input value, - ::tensorflow::Input flow_in); - operator ::tensorflow::Output() const { return flow_out; } - operator ::tensorflow::Input() const { return flow_out; } - ::tensorflow::Node* node() const { return flow_out.node(); } - - Operation operation; - ::tensorflow::Output flow_out; -}; - -/// Op is similar to a lightweight Dequeue. -/// -/// The basic functionality is similar to dequeue with many fewer -/// capabilities and options. This Op is optimized for performance. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `OutputList`: The values tensor. -class Unstage { - public: - /// Optional attribute setters for Unstage - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Capacity(int64 x) { - Attrs ret = *this; - ret.capacity_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs MemoryLimit(int64 x) { - Attrs ret = *this; - ret.memory_limit_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 capacity_ = 0; - int64 memory_limit_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - Unstage(const ::tensorflow::Scope& scope, const DataTypeSlice& dtypes); - Unstage(const ::tensorflow::Scope& scope, const DataTypeSlice& dtypes, const - Unstage::Attrs& attrs); - ::tensorflow::Output operator[](size_t index) const { return values[index]; } - - - static Attrs Capacity(int64 x) { - return Attrs().Capacity(x); - } - static Attrs MemoryLimit(int64 x) { - return Attrs().MemoryLimit(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::OutputList values; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_DATA_FLOW_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/data_flow_ops_internal.h b/linux/include/tensorflow/cc/ops/data_flow_ops_internal.h deleted file mode 100755 index e4ab562cd..000000000 --- a/linux/include/tensorflow/cc/ops/data_flow_ops_internal.h +++ /dev/null @@ -1,28 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_DATA_FLOW_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_DATA_FLOW_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup data_flow_ops_internal Data Flow Ops Internal -/// @{ - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_DATA_FLOW_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/image_ops.h b/linux/include/tensorflow/cc/ops/image_ops.h deleted file mode 100755 index 8cbea81ab..000000000 --- a/linux/include/tensorflow/cc/ops/image_ops.h +++ /dev/null @@ -1,2171 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_IMAGE_OPS_H_ -#define TENSORFLOW_CC_OPS_IMAGE_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup image_ops Image Ops -/// @{ - -/// Adjust the contrast of one or more images. -/// -/// `images` is a tensor of at least 3 dimensions. The last 3 dimensions are -/// interpreted as `[height, width, channels]`. The other dimensions only -/// represent a collection of images, such as `[batch, height, width, channels].` -/// -/// Contrast is adjusted independently for each channel of each image. -/// -/// For each channel, the Op first computes the mean of the image pixels in the -/// channel and then adjusts each component of each pixel to -/// `(x - mean) * contrast_factor + mean`. -/// -/// Arguments: -/// * scope: A Scope object -/// * images: Images to adjust. At least 3-D. -/// * contrast_factor: A float multiplier for adjusting contrast. -/// -/// Returns: -/// * `Output`: The contrast-adjusted image or images. -class AdjustContrast { - public: - AdjustContrast(const ::tensorflow::Scope& scope, ::tensorflow::Input images, - ::tensorflow::Input contrast_factor); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Adjust the hue of one or more images. -/// -/// `images` is a tensor of at least 3 dimensions. The last dimension is -/// interpretted as channels, and must be three. -/// -/// The input image is considered in the RGB colorspace. Conceptually, the RGB -/// colors are first mapped into HSV. A delta is then applied all the hue values, -/// and then remapped back to RGB colorspace. -/// -/// Arguments: -/// * scope: A Scope object -/// * images: Images to adjust. At least 3-D. -/// * delta: A float delta to add to the hue. -/// -/// Returns: -/// * `Output`: The hue-adjusted image or images. -class AdjustHue { - public: - AdjustHue(const ::tensorflow::Scope& scope, ::tensorflow::Input images, - ::tensorflow::Input delta); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Adjust the saturation of one or more images. -/// -/// `images` is a tensor of at least 3 dimensions. The last dimension is -/// interpretted as channels, and must be three. -/// -/// The input image is considered in the RGB colorspace. Conceptually, the RGB -/// colors are first mapped into HSV. A scale is then applied all the saturation -/// values, and then remapped back to RGB colorspace. -/// -/// Arguments: -/// * scope: A Scope object -/// * images: Images to adjust. At least 3-D. -/// * scale: A float scale to add to the saturation. -/// -/// Returns: -/// * `Output`: The hue-adjusted image or images. -class AdjustSaturation { - public: - AdjustSaturation(const ::tensorflow::Scope& scope, ::tensorflow::Input images, - ::tensorflow::Input scale); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Extracts crops from the input image tensor and resizes them. -/// -/// Extracts crops from the input image tensor and resizes them using bilinear -/// sampling or nearest neighbor sampling (possibly with aspect ratio change) to a -/// common output size specified by `crop_size`. This is more general than the -/// `crop_to_bounding_box` op which extracts a fixed size slice from the input image -/// and does not allow resizing or aspect ratio change. -/// -/// Returns a tensor with `crops` from the input `image` at positions defined at the -/// bounding box locations in `boxes`. The cropped boxes are all resized (with -/// bilinear or nearest neighbor interpolation) to a fixed -/// `size = [crop_height, crop_width]`. The result is a 4-D tensor -/// `[num_boxes, crop_height, crop_width, depth]`. The resizing is corner aligned. -/// In particular, if `boxes = [[0, 0, 1, 1]]`, the method will give identical -/// results to using `tf.image.resize_bilinear()` or -/// `tf.image.resize_nearest_neighbor()`(depends on the `method` argument) with -/// `align_corners=True`. -/// -/// Arguments: -/// * scope: A Scope object -/// * image: A 4-D tensor of shape `[batch, image_height, image_width, depth]`. -/// Both `image_height` and `image_width` need to be positive. -/// * boxes: A 2-D tensor of shape `[num_boxes, 4]`. The `i`-th row of the tensor -/// specifies the coordinates of a box in the `box_ind[i]` image and is specified -/// in normalized coordinates `[y1, x1, y2, x2]`. A normalized coordinate value of -/// `y` is mapped to the image coordinate at `y * (image_height - 1)`, so as the -/// `[0, 1]` interval of normalized image height is mapped to -/// `[0, image_height - 1]` in image height coordinates. We do allow `y1` > `y2`, in -/// which case the sampled crop is an up-down flipped version of the original -/// image. The width dimension is treated similarly. Normalized coordinates -/// outside the `[0, 1]` range are allowed, in which case we use -/// `extrapolation_value` to extrapolate the input image values. -/// * box_ind: A 1-D tensor of shape `[num_boxes]` with int32 values in `[0, batch)`. -/// The value of `box_ind[i]` specifies the image that the `i`-th box refers to. -/// * crop_size: A 1-D tensor of 2 elements, `size = [crop_height, crop_width]`. All -/// cropped image patches are resized to this size. The aspect ratio of the image -/// content is not preserved. Both `crop_height` and `crop_width` need to be -/// positive. -/// -/// Optional attributes (see `Attrs`): -/// * method: A string specifying the sampling method for resizing. It can be either -/// `"bilinear"` or `"nearest"` and default to `"bilinear"`. Currently two sampling -/// methods are supported: Bilinear and Nearest Neighbor. -/// * extrapolation_value: Value used for extrapolation, when applicable. -/// -/// Returns: -/// * `Output`: A 4-D tensor of shape `[num_boxes, crop_height, crop_width, depth]`. -class CropAndResize { - public: - /// Optional attribute setters for CropAndResize - struct Attrs { - /// A string specifying the sampling method for resizing. It can be either - /// `"bilinear"` or `"nearest"` and default to `"bilinear"`. Currently two sampling - /// methods are supported: Bilinear and Nearest Neighbor. - /// - /// Defaults to "bilinear" - TF_MUST_USE_RESULT Attrs Method(StringPiece x) { - Attrs ret = *this; - ret.method_ = x; - return ret; - } - - /// Value used for extrapolation, when applicable. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs ExtrapolationValue(float x) { - Attrs ret = *this; - ret.extrapolation_value_ = x; - return ret; - } - - StringPiece method_ = "bilinear"; - float extrapolation_value_ = 0.0f; - }; - CropAndResize(const ::tensorflow::Scope& scope, ::tensorflow::Input image, - ::tensorflow::Input boxes, ::tensorflow::Input box_ind, - ::tensorflow::Input crop_size); - CropAndResize(const ::tensorflow::Scope& scope, ::tensorflow::Input image, - ::tensorflow::Input boxes, ::tensorflow::Input box_ind, - ::tensorflow::Input crop_size, const CropAndResize::Attrs& attrs); - operator ::tensorflow::Output() const { return crops; } - operator ::tensorflow::Input() const { return crops; } - ::tensorflow::Node* node() const { return crops.node(); } - - static Attrs Method(StringPiece x) { - return Attrs().Method(x); - } - static Attrs ExtrapolationValue(float x) { - return Attrs().ExtrapolationValue(x); - } - - Operation operation; - ::tensorflow::Output crops; -}; - -/// Computes the gradient of the crop_and_resize op wrt the input boxes tensor. -/// -/// Arguments: -/// * scope: A Scope object -/// * grads: A 4-D tensor of shape `[num_boxes, crop_height, crop_width, depth]`. -/// * image: A 4-D tensor of shape `[batch, image_height, image_width, depth]`. -/// Both `image_height` and `image_width` need to be positive. -/// * boxes: A 2-D tensor of shape `[num_boxes, 4]`. The `i`-th row of the tensor -/// specifies the coordinates of a box in the `box_ind[i]` image and is specified -/// in normalized coordinates `[y1, x1, y2, x2]`. A normalized coordinate value of -/// `y` is mapped to the image coordinate at `y * (image_height - 1)`, so as the -/// `[0, 1]` interval of normalized image height is mapped to -/// `[0, image_height - 1] in image height coordinates. We do allow y1 > y2, in -/// which case the sampled crop is an up-down flipped version of the original -/// image. The width dimension is treated similarly. Normalized coordinates -/// outside the `[0, 1]` range are allowed, in which case we use -/// `extrapolation_value` to extrapolate the input image values. -/// * box_ind: A 1-D tensor of shape `[num_boxes]` with int32 values in `[0, batch)`. -/// The value of `box_ind[i]` specifies the image that the `i`-th box refers to. -/// -/// Optional attributes (see `Attrs`): -/// * method: A string specifying the interpolation method. Only 'bilinear' is -/// supported for now. -/// -/// Returns: -/// * `Output`: A 2-D tensor of shape `[num_boxes, 4]`. -class CropAndResizeGradBoxes { - public: - /// Optional attribute setters for CropAndResizeGradBoxes - struct Attrs { - /// A string specifying the interpolation method. Only 'bilinear' is - /// supported for now. - /// - /// Defaults to "bilinear" - TF_MUST_USE_RESULT Attrs Method(StringPiece x) { - Attrs ret = *this; - ret.method_ = x; - return ret; - } - - StringPiece method_ = "bilinear"; - }; - CropAndResizeGradBoxes(const ::tensorflow::Scope& scope, ::tensorflow::Input - grads, ::tensorflow::Input image, ::tensorflow::Input - boxes, ::tensorflow::Input box_ind); - CropAndResizeGradBoxes(const ::tensorflow::Scope& scope, ::tensorflow::Input - grads, ::tensorflow::Input image, ::tensorflow::Input - boxes, ::tensorflow::Input box_ind, const - CropAndResizeGradBoxes::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Method(StringPiece x) { - return Attrs().Method(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the gradient of the crop_and_resize op wrt the input image tensor. -/// -/// Arguments: -/// * scope: A Scope object -/// * grads: A 4-D tensor of shape `[num_boxes, crop_height, crop_width, depth]`. -/// * boxes: A 2-D tensor of shape `[num_boxes, 4]`. The `i`-th row of the tensor -/// specifies the coordinates of a box in the `box_ind[i]` image and is specified -/// in normalized coordinates `[y1, x1, y2, x2]`. A normalized coordinate value of -/// `y` is mapped to the image coordinate at `y * (image_height - 1)`, so as the -/// `[0, 1]` interval of normalized image height is mapped to -/// `[0, image_height - 1] in image height coordinates. We do allow y1 > y2, in -/// which case the sampled crop is an up-down flipped version of the original -/// image. The width dimension is treated similarly. Normalized coordinates -/// outside the `[0, 1]` range are allowed, in which case we use -/// `extrapolation_value` to extrapolate the input image values. -/// * box_ind: A 1-D tensor of shape `[num_boxes]` with int32 values in `[0, batch)`. -/// The value of `box_ind[i]` specifies the image that the `i`-th box refers to. -/// * image_size: A 1-D tensor with value `[batch, image_height, image_width, depth]` -/// containing the original image size. Both `image_height` and `image_width` need -/// to be positive. -/// -/// Optional attributes (see `Attrs`): -/// * method: A string specifying the interpolation method. Only 'bilinear' is -/// supported for now. -/// -/// Returns: -/// * `Output`: A 4-D tensor of shape `[batch, image_height, image_width, depth]`. -class CropAndResizeGradImage { - public: - /// Optional attribute setters for CropAndResizeGradImage - struct Attrs { - /// A string specifying the interpolation method. Only 'bilinear' is - /// supported for now. - /// - /// Defaults to "bilinear" - TF_MUST_USE_RESULT Attrs Method(StringPiece x) { - Attrs ret = *this; - ret.method_ = x; - return ret; - } - - StringPiece method_ = "bilinear"; - }; - CropAndResizeGradImage(const ::tensorflow::Scope& scope, ::tensorflow::Input - grads, ::tensorflow::Input boxes, ::tensorflow::Input - box_ind, ::tensorflow::Input image_size, DataType T); - CropAndResizeGradImage(const ::tensorflow::Scope& scope, ::tensorflow::Input - grads, ::tensorflow::Input boxes, ::tensorflow::Input - box_ind, ::tensorflow::Input image_size, DataType T, - const CropAndResizeGradImage::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Method(StringPiece x) { - return Attrs().Method(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Decode and Crop a JPEG-encoded image to a uint8 tensor. -/// -/// The attr `channels` indicates the desired number of color channels for the -/// decoded image. -/// -/// Accepted values are: -/// -/// * 0: Use the number of channels in the JPEG-encoded image. -/// * 1: output a grayscale image. -/// * 3: output an RGB image. -/// -/// If needed, the JPEG-encoded image is transformed to match the requested number -/// of color channels. -/// -/// The attr `ratio` allows downscaling the image by an integer factor during -/// decoding. Allowed values are: 1, 2, 4, and 8. This is much faster than -/// downscaling the image later. -/// -/// -/// It is equivalent to a combination of decode and crop, but much faster by only -/// decoding partial jpeg image. -/// -/// Arguments: -/// * scope: A Scope object -/// * contents: 0-D. The JPEG-encoded image. -/// * crop_window: 1-D. The crop window: [crop_y, crop_x, crop_height, crop_width]. -/// -/// Optional attributes (see `Attrs`): -/// * channels: Number of color channels for the decoded image. -/// * ratio: Downscaling ratio. -/// * fancy_upscaling: If true use a slower but nicer upscaling of the -/// chroma planes (yuv420/422 only). -/// * try_recover_truncated: If true try to recover an image from truncated input. -/// * acceptable_fraction: The minimum required fraction of lines before a truncated -/// input is accepted. -/// * dct_method: string specifying a hint about the algorithm used for -/// decompression. Defaults to "" which maps to a system-specific -/// default. Currently valid values are ["INTEGER_FAST", -/// "INTEGER_ACCURATE"]. The hint may be ignored (e.g., the internal -/// jpeg library changes to a version that does not have that specific -/// option.) -/// -/// Returns: -/// * `Output`: 3-D with shape `[height, width, channels]`.. -class DecodeAndCropJpeg { - public: - /// Optional attribute setters for DecodeAndCropJpeg - struct Attrs { - /// Number of color channels for the decoded image. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Channels(int64 x) { - Attrs ret = *this; - ret.channels_ = x; - return ret; - } - - /// Downscaling ratio. - /// - /// Defaults to 1 - TF_MUST_USE_RESULT Attrs Ratio(int64 x) { - Attrs ret = *this; - ret.ratio_ = x; - return ret; - } - - /// If true use a slower but nicer upscaling of the - /// chroma planes (yuv420/422 only). - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs FancyUpscaling(bool x) { - Attrs ret = *this; - ret.fancy_upscaling_ = x; - return ret; - } - - /// If true try to recover an image from truncated input. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs TryRecoverTruncated(bool x) { - Attrs ret = *this; - ret.try_recover_truncated_ = x; - return ret; - } - - /// The minimum required fraction of lines before a truncated - /// input is accepted. - /// - /// Defaults to 1 - TF_MUST_USE_RESULT Attrs AcceptableFraction(float x) { - Attrs ret = *this; - ret.acceptable_fraction_ = x; - return ret; - } - - /// string specifying a hint about the algorithm used for - /// decompression. Defaults to "" which maps to a system-specific - /// default. Currently valid values are ["INTEGER_FAST", - /// "INTEGER_ACCURATE"]. The hint may be ignored (e.g., the internal - /// jpeg library changes to a version that does not have that specific - /// option.) - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs DctMethod(StringPiece x) { - Attrs ret = *this; - ret.dct_method_ = x; - return ret; - } - - int64 channels_ = 0; - int64 ratio_ = 1; - bool fancy_upscaling_ = true; - bool try_recover_truncated_ = false; - float acceptable_fraction_ = 1.0f; - StringPiece dct_method_ = ""; - }; - DecodeAndCropJpeg(const ::tensorflow::Scope& scope, ::tensorflow::Input - contents, ::tensorflow::Input crop_window); - DecodeAndCropJpeg(const ::tensorflow::Scope& scope, ::tensorflow::Input - contents, ::tensorflow::Input crop_window, const - DecodeAndCropJpeg::Attrs& attrs); - operator ::tensorflow::Output() const { return image; } - operator ::tensorflow::Input() const { return image; } - ::tensorflow::Node* node() const { return image.node(); } - - static Attrs Channels(int64 x) { - return Attrs().Channels(x); - } - static Attrs Ratio(int64 x) { - return Attrs().Ratio(x); - } - static Attrs FancyUpscaling(bool x) { - return Attrs().FancyUpscaling(x); - } - static Attrs TryRecoverTruncated(bool x) { - return Attrs().TryRecoverTruncated(x); - } - static Attrs AcceptableFraction(float x) { - return Attrs().AcceptableFraction(x); - } - static Attrs DctMethod(StringPiece x) { - return Attrs().DctMethod(x); - } - - Operation operation; - ::tensorflow::Output image; -}; - -/// Decode the first frame of a BMP-encoded image to a uint8 tensor. -/// -/// The attr `channels` indicates the desired number of color channels for the -/// decoded image. -/// -/// Accepted values are: -/// -/// * 0: Use the number of channels in the BMP-encoded image. -/// * 3: output an RGB image. -/// * 4: output an RGBA image. -/// -/// Arguments: -/// * scope: A Scope object -/// * contents: 0-D. The BMP-encoded image. -/// -/// Returns: -/// * `Output`: 3-D with shape `[height, width, channels]`. RGB order -class DecodeBmp { - public: - /// Optional attribute setters for DecodeBmp - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Channels(int64 x) { - Attrs ret = *this; - ret.channels_ = x; - return ret; - } - - int64 channels_ = 0; - }; - DecodeBmp(const ::tensorflow::Scope& scope, ::tensorflow::Input contents); - DecodeBmp(const ::tensorflow::Scope& scope, ::tensorflow::Input contents, const - DecodeBmp::Attrs& attrs); - operator ::tensorflow::Output() const { return image; } - operator ::tensorflow::Input() const { return image; } - ::tensorflow::Node* node() const { return image.node(); } - - static Attrs Channels(int64 x) { - return Attrs().Channels(x); - } - - Operation operation; - ::tensorflow::Output image; -}; - -/// Decode the first frame of a GIF-encoded image to a uint8 tensor. -/// -/// GIF with frame or transparency compression are not supported -/// convert animated GIF from compressed to uncompressed by: -/// -/// convert $src.gif -coalesce $dst.gif -/// -/// This op also supports decoding JPEGs and PNGs, though it is cleaner to use -/// `tf.image.decode_image`. -/// -/// Arguments: -/// * scope: A Scope object -/// * contents: 0-D. The GIF-encoded image. -/// -/// Returns: -/// * `Output`: 4-D with shape `[num_frames, height, width, 3]`. RGB order -class DecodeGif { - public: - DecodeGif(const ::tensorflow::Scope& scope, ::tensorflow::Input contents); - operator ::tensorflow::Output() const { return image; } - operator ::tensorflow::Input() const { return image; } - ::tensorflow::Node* node() const { return image.node(); } - - Operation operation; - ::tensorflow::Output image; -}; - -/// Decode a JPEG-encoded image to a uint8 tensor. -/// -/// The attr `channels` indicates the desired number of color channels for the -/// decoded image. -/// -/// Accepted values are: -/// -/// * 0: Use the number of channels in the JPEG-encoded image. -/// * 1: output a grayscale image. -/// * 3: output an RGB image. -/// -/// If needed, the JPEG-encoded image is transformed to match the requested number -/// of color channels. -/// -/// The attr `ratio` allows downscaling the image by an integer factor during -/// decoding. Allowed values are: 1, 2, 4, and 8. This is much faster than -/// downscaling the image later. -/// -/// -/// This op also supports decoding PNGs and non-animated GIFs since the interface is -/// the same, though it is cleaner to use `tf.image.decode_image`. -/// -/// Arguments: -/// * scope: A Scope object -/// * contents: 0-D. The JPEG-encoded image. -/// -/// Optional attributes (see `Attrs`): -/// * channels: Number of color channels for the decoded image. -/// * ratio: Downscaling ratio. -/// * fancy_upscaling: If true use a slower but nicer upscaling of the -/// chroma planes (yuv420/422 only). -/// * try_recover_truncated: If true try to recover an image from truncated input. -/// * acceptable_fraction: The minimum required fraction of lines before a truncated -/// input is accepted. -/// * dct_method: string specifying a hint about the algorithm used for -/// decompression. Defaults to "" which maps to a system-specific -/// default. Currently valid values are ["INTEGER_FAST", -/// "INTEGER_ACCURATE"]. The hint may be ignored (e.g., the internal -/// jpeg library changes to a version that does not have that specific -/// option.) -/// -/// Returns: -/// * `Output`: 3-D with shape `[height, width, channels]`.. -class DecodeJpeg { - public: - /// Optional attribute setters for DecodeJpeg - struct Attrs { - /// Number of color channels for the decoded image. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Channels(int64 x) { - Attrs ret = *this; - ret.channels_ = x; - return ret; - } - - /// Downscaling ratio. - /// - /// Defaults to 1 - TF_MUST_USE_RESULT Attrs Ratio(int64 x) { - Attrs ret = *this; - ret.ratio_ = x; - return ret; - } - - /// If true use a slower but nicer upscaling of the - /// chroma planes (yuv420/422 only). - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs FancyUpscaling(bool x) { - Attrs ret = *this; - ret.fancy_upscaling_ = x; - return ret; - } - - /// If true try to recover an image from truncated input. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs TryRecoverTruncated(bool x) { - Attrs ret = *this; - ret.try_recover_truncated_ = x; - return ret; - } - - /// The minimum required fraction of lines before a truncated - /// input is accepted. - /// - /// Defaults to 1 - TF_MUST_USE_RESULT Attrs AcceptableFraction(float x) { - Attrs ret = *this; - ret.acceptable_fraction_ = x; - return ret; - } - - /// string specifying a hint about the algorithm used for - /// decompression. Defaults to "" which maps to a system-specific - /// default. Currently valid values are ["INTEGER_FAST", - /// "INTEGER_ACCURATE"]. The hint may be ignored (e.g., the internal - /// jpeg library changes to a version that does not have that specific - /// option.) - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs DctMethod(StringPiece x) { - Attrs ret = *this; - ret.dct_method_ = x; - return ret; - } - - int64 channels_ = 0; - int64 ratio_ = 1; - bool fancy_upscaling_ = true; - bool try_recover_truncated_ = false; - float acceptable_fraction_ = 1.0f; - StringPiece dct_method_ = ""; - }; - DecodeJpeg(const ::tensorflow::Scope& scope, ::tensorflow::Input contents); - DecodeJpeg(const ::tensorflow::Scope& scope, ::tensorflow::Input contents, - const DecodeJpeg::Attrs& attrs); - operator ::tensorflow::Output() const { return image; } - operator ::tensorflow::Input() const { return image; } - ::tensorflow::Node* node() const { return image.node(); } - - static Attrs Channels(int64 x) { - return Attrs().Channels(x); - } - static Attrs Ratio(int64 x) { - return Attrs().Ratio(x); - } - static Attrs FancyUpscaling(bool x) { - return Attrs().FancyUpscaling(x); - } - static Attrs TryRecoverTruncated(bool x) { - return Attrs().TryRecoverTruncated(x); - } - static Attrs AcceptableFraction(float x) { - return Attrs().AcceptableFraction(x); - } - static Attrs DctMethod(StringPiece x) { - return Attrs().DctMethod(x); - } - - Operation operation; - ::tensorflow::Output image; -}; - -/// Decode a PNG-encoded image to a uint8 or uint16 tensor. -/// -/// The attr `channels` indicates the desired number of color channels for the -/// decoded image. -/// -/// Accepted values are: -/// -/// * 0: Use the number of channels in the PNG-encoded image. -/// * 1: output a grayscale image. -/// * 3: output an RGB image. -/// * 4: output an RGBA image. -/// -/// If needed, the PNG-encoded image is transformed to match the requested number -/// of color channels. -/// -/// This op also supports decoding JPEGs and non-animated GIFs since the interface -/// is the same, though it is cleaner to use `tf.image.decode_image`. -/// -/// Arguments: -/// * scope: A Scope object -/// * contents: 0-D. The PNG-encoded image. -/// -/// Optional attributes (see `Attrs`): -/// * channels: Number of color channels for the decoded image. -/// -/// Returns: -/// * `Output`: 3-D with shape `[height, width, channels]`. -class DecodePng { - public: - /// Optional attribute setters for DecodePng - struct Attrs { - /// Number of color channels for the decoded image. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Channels(int64 x) { - Attrs ret = *this; - ret.channels_ = x; - return ret; - } - - /// Defaults to DT_UINT8 - TF_MUST_USE_RESULT Attrs Dtype(DataType x) { - Attrs ret = *this; - ret.dtype_ = x; - return ret; - } - - int64 channels_ = 0; - DataType dtype_ = DT_UINT8; - }; - DecodePng(const ::tensorflow::Scope& scope, ::tensorflow::Input contents); - DecodePng(const ::tensorflow::Scope& scope, ::tensorflow::Input contents, const - DecodePng::Attrs& attrs); - operator ::tensorflow::Output() const { return image; } - operator ::tensorflow::Input() const { return image; } - ::tensorflow::Node* node() const { return image.node(); } - - static Attrs Channels(int64 x) { - return Attrs().Channels(x); - } - static Attrs Dtype(DataType x) { - return Attrs().Dtype(x); - } - - Operation operation; - ::tensorflow::Output image; -}; - -/// Draw bounding boxes on a batch of images. -/// -/// Outputs a copy of `images` but draws on top of the pixels zero or more bounding -/// boxes specified by the locations in `boxes`. The coordinates of the each -/// bounding box in `boxes` are encoded as `[y_min, x_min, y_max, x_max]`. The -/// bounding box coordinates are floats in `[0.0, 1.0]` relative to the width and -/// height of the underlying image. -/// -/// For example, if an image is 100 x 200 pixels (height x width) and the bounding -/// box is `[0.1, 0.2, 0.5, 0.9]`, the upper-left and bottom-right coordinates of -/// the bounding box will be `(40, 10)` to `(180, 50)` (in (x,y) coordinates). -/// -/// Parts of the bounding box may fall outside the image. -/// -/// Arguments: -/// * scope: A Scope object -/// * images: 4-D with shape `[batch, height, width, depth]`. A batch of images. -/// * boxes: 3-D with shape `[batch, num_bounding_boxes, 4]` containing bounding -/// boxes. -/// -/// Returns: -/// * `Output`: 4-D with the same shape as `images`. The batch of input images with -/// bounding boxes drawn on the images. -class DrawBoundingBoxes { - public: - DrawBoundingBoxes(const ::tensorflow::Scope& scope, ::tensorflow::Input images, - ::tensorflow::Input boxes); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// JPEG-encode an image. -/// -/// `image` is a 3-D uint8 Tensor of shape `[height, width, channels]`. -/// -/// The attr `format` can be used to override the color format of the encoded -/// output. Values can be: -/// -/// * `''`: Use a default format based on the number of channels in the image. -/// * `grayscale`: Output a grayscale JPEG image. The `channels` dimension -/// of `image` must be 1. -/// * `rgb`: Output an RGB JPEG image. The `channels` dimension -/// of `image` must be 3. -/// -/// If `format` is not specified or is the empty string, a default format is picked -/// in function of the number of channels in `image`: -/// -/// * 1: Output a grayscale image. -/// * 3: Output an RGB image. -/// -/// Arguments: -/// * scope: A Scope object -/// * image: 3-D with shape `[height, width, channels]`. -/// -/// Optional attributes (see `Attrs`): -/// * format: Per pixel image format. -/// * quality: Quality of the compression from 0 to 100 (higher is better and slower). -/// * progressive: If True, create a JPEG that loads progressively (coarse to fine). -/// * optimize_size: If True, spend CPU/RAM to reduce size with no quality change. -/// * chroma_downsampling: See http://en.wikipedia.org/wiki/Chroma_subsampling. -/// * density_unit: Unit used to specify `x_density` and `y_density`: -/// pixels per inch (`'in'`) or centimeter (`'cm'`). -/// * x_density: Horizontal pixels per density unit. -/// * y_density: Vertical pixels per density unit. -/// * xmp_metadata: If not empty, embed this XMP metadata in the image header. -/// -/// Returns: -/// * `Output`: 0-D. JPEG-encoded image. -class EncodeJpeg { - public: - /// Optional attribute setters for EncodeJpeg - struct Attrs { - /// Per pixel image format. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Format(StringPiece x) { - Attrs ret = *this; - ret.format_ = x; - return ret; - } - - /// Quality of the compression from 0 to 100 (higher is better and slower). - /// - /// Defaults to 95 - TF_MUST_USE_RESULT Attrs Quality(int64 x) { - Attrs ret = *this; - ret.quality_ = x; - return ret; - } - - /// If True, create a JPEG that loads progressively (coarse to fine). - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs Progressive(bool x) { - Attrs ret = *this; - ret.progressive_ = x; - return ret; - } - - /// If True, spend CPU/RAM to reduce size with no quality change. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs OptimizeSize(bool x) { - Attrs ret = *this; - ret.optimize_size_ = x; - return ret; - } - - /// See http://en.wikipedia.org/wiki/Chroma_subsampling. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs ChromaDownsampling(bool x) { - Attrs ret = *this; - ret.chroma_downsampling_ = x; - return ret; - } - - /// Unit used to specify `x_density` and `y_density`: - /// pixels per inch (`'in'`) or centimeter (`'cm'`). - /// - /// Defaults to "in" - TF_MUST_USE_RESULT Attrs DensityUnit(StringPiece x) { - Attrs ret = *this; - ret.density_unit_ = x; - return ret; - } - - /// Horizontal pixels per density unit. - /// - /// Defaults to 300 - TF_MUST_USE_RESULT Attrs XDensity(int64 x) { - Attrs ret = *this; - ret.x_density_ = x; - return ret; - } - - /// Vertical pixels per density unit. - /// - /// Defaults to 300 - TF_MUST_USE_RESULT Attrs YDensity(int64 x) { - Attrs ret = *this; - ret.y_density_ = x; - return ret; - } - - /// If not empty, embed this XMP metadata in the image header. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs XmpMetadata(StringPiece x) { - Attrs ret = *this; - ret.xmp_metadata_ = x; - return ret; - } - - StringPiece format_ = ""; - int64 quality_ = 95; - bool progressive_ = false; - bool optimize_size_ = false; - bool chroma_downsampling_ = true; - StringPiece density_unit_ = "in"; - int64 x_density_ = 300; - int64 y_density_ = 300; - StringPiece xmp_metadata_ = ""; - }; - EncodeJpeg(const ::tensorflow::Scope& scope, ::tensorflow::Input image); - EncodeJpeg(const ::tensorflow::Scope& scope, ::tensorflow::Input image, const - EncodeJpeg::Attrs& attrs); - operator ::tensorflow::Output() const { return contents; } - operator ::tensorflow::Input() const { return contents; } - ::tensorflow::Node* node() const { return contents.node(); } - - static Attrs Format(StringPiece x) { - return Attrs().Format(x); - } - static Attrs Quality(int64 x) { - return Attrs().Quality(x); - } - static Attrs Progressive(bool x) { - return Attrs().Progressive(x); - } - static Attrs OptimizeSize(bool x) { - return Attrs().OptimizeSize(x); - } - static Attrs ChromaDownsampling(bool x) { - return Attrs().ChromaDownsampling(x); - } - static Attrs DensityUnit(StringPiece x) { - return Attrs().DensityUnit(x); - } - static Attrs XDensity(int64 x) { - return Attrs().XDensity(x); - } - static Attrs YDensity(int64 x) { - return Attrs().YDensity(x); - } - static Attrs XmpMetadata(StringPiece x) { - return Attrs().XmpMetadata(x); - } - - Operation operation; - ::tensorflow::Output contents; -}; - -/// PNG-encode an image. -/// -/// `image` is a 3-D uint8 or uint16 Tensor of shape `[height, width, channels]` -/// where `channels` is: -/// -/// * 1: for grayscale. -/// * 2: for grayscale + alpha. -/// * 3: for RGB. -/// * 4: for RGBA. -/// -/// The ZLIB compression level, `compression`, can be -1 for the PNG-encoder -/// default or a value from 0 to 9. 9 is the highest compression level, generating -/// the smallest output, but is slower. -/// -/// Arguments: -/// * scope: A Scope object -/// * image: 3-D with shape `[height, width, channels]`. -/// -/// Optional attributes (see `Attrs`): -/// * compression: Compression level. -/// -/// Returns: -/// * `Output`: 0-D. PNG-encoded image. -class EncodePng { - public: - /// Optional attribute setters for EncodePng - struct Attrs { - /// Compression level. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs Compression(int64 x) { - Attrs ret = *this; - ret.compression_ = x; - return ret; - } - - int64 compression_ = -1; - }; - EncodePng(const ::tensorflow::Scope& scope, ::tensorflow::Input image); - EncodePng(const ::tensorflow::Scope& scope, ::tensorflow::Input image, const - EncodePng::Attrs& attrs); - operator ::tensorflow::Output() const { return contents; } - operator ::tensorflow::Input() const { return contents; } - ::tensorflow::Node* node() const { return contents.node(); } - - static Attrs Compression(int64 x) { - return Attrs().Compression(x); - } - - Operation operation; - ::tensorflow::Output contents; -}; - -/// Extracts a glimpse from the input tensor. -/// -/// Returns a set of windows called glimpses extracted at location -/// `offsets` from the input tensor. If the windows only partially -/// overlaps the inputs, the non overlapping areas will be filled with -/// random noise. -/// -/// The result is a 4-D tensor of shape `[batch_size, glimpse_height, -/// glimpse_width, channels]`. The channels and batch dimensions are the -/// same as that of the input tensor. The height and width of the output -/// windows are specified in the `size` parameter. -/// -/// The argument `normalized` and `centered` controls how the windows are built: -/// -/// * If the coordinates are normalized but not centered, 0.0 and 1.0 -/// correspond to the minimum and maximum of each height and width -/// dimension. -/// * If the coordinates are both normalized and centered, they range from -/// -1.0 to 1.0. The coordinates (-1.0, -1.0) correspond to the upper -/// left corner, the lower right corner is located at (1.0, 1.0) and the -/// center is at (0, 0). -/// * If the coordinates are not normalized they are interpreted as -/// numbers of pixels. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: A 4-D float tensor of shape `[batch_size, height, width, channels]`. -/// * size: A 1-D tensor of 2 elements containing the size of the glimpses -/// to extract. The glimpse height must be specified first, following -/// by the glimpse width. -/// * offsets: A 2-D integer tensor of shape `[batch_size, 2]` containing -/// the y, x locations of the center of each window. -/// -/// Optional attributes (see `Attrs`): -/// * centered: indicates if the offset coordinates are centered relative to -/// the image, in which case the (0, 0) offset is relative to the center -/// of the input images. If false, the (0,0) offset corresponds to the -/// upper left corner of the input images. -/// * normalized: indicates if the offset coordinates are normalized. -/// * uniform_noise: indicates if the noise should be generated using a -/// uniform distribution or a Gaussian distribution. -/// -/// Returns: -/// * `Output`: A tensor representing the glimpses `[batch_size, -/// glimpse_height, glimpse_width, channels]`. -class ExtractGlimpse { - public: - /// Optional attribute setters for ExtractGlimpse - struct Attrs { - /// indicates if the offset coordinates are centered relative to - /// the image, in which case the (0, 0) offset is relative to the center - /// of the input images. If false, the (0,0) offset corresponds to the - /// upper left corner of the input images. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs Centered(bool x) { - Attrs ret = *this; - ret.centered_ = x; - return ret; - } - - /// indicates if the offset coordinates are normalized. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs Normalized(bool x) { - Attrs ret = *this; - ret.normalized_ = x; - return ret; - } - - /// indicates if the noise should be generated using a - /// uniform distribution or a Gaussian distribution. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs UniformNoise(bool x) { - Attrs ret = *this; - ret.uniform_noise_ = x; - return ret; - } - - bool centered_ = true; - bool normalized_ = true; - bool uniform_noise_ = true; - }; - ExtractGlimpse(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input size, ::tensorflow::Input offsets); - ExtractGlimpse(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input size, ::tensorflow::Input offsets, const - ExtractGlimpse::Attrs& attrs); - operator ::tensorflow::Output() const { return glimpse; } - operator ::tensorflow::Input() const { return glimpse; } - ::tensorflow::Node* node() const { return glimpse.node(); } - - static Attrs Centered(bool x) { - return Attrs().Centered(x); - } - static Attrs Normalized(bool x) { - return Attrs().Normalized(x); - } - static Attrs UniformNoise(bool x) { - return Attrs().UniformNoise(x); - } - - Operation operation; - ::tensorflow::Output glimpse; -}; - -/// Extract the shape information of a JPEG-encoded image. -/// -/// This op only parses the image header, so it is much faster than DecodeJpeg. -/// -/// Arguments: -/// * scope: A Scope object -/// * contents: 0-D. The JPEG-encoded image. -/// -/// Optional attributes (see `Attrs`): -/// * output_type: (Optional) The output type of the operation (int32 or int64). -/// Defaults to int32. -/// -/// Returns: -/// * `Output`: 1-D. The image shape with format [height, width, channels]. -class ExtractJpegShape { - public: - /// Optional attribute setters for ExtractJpegShape - struct Attrs { - /// (Optional) The output type of the operation (int32 or int64). - /// Defaults to int32. - /// - /// Defaults to DT_INT32 - TF_MUST_USE_RESULT Attrs OutputType(DataType x) { - Attrs ret = *this; - ret.output_type_ = x; - return ret; - } - - DataType output_type_ = DT_INT32; - }; - ExtractJpegShape(const ::tensorflow::Scope& scope, ::tensorflow::Input - contents); - ExtractJpegShape(const ::tensorflow::Scope& scope, ::tensorflow::Input - contents, const ExtractJpegShape::Attrs& attrs); - operator ::tensorflow::Output() const { return image_shape; } - operator ::tensorflow::Input() const { return image_shape; } - ::tensorflow::Node* node() const { return image_shape.node(); } - - static Attrs OutputType(DataType x) { - return Attrs().OutputType(x); - } - - Operation operation; - ::tensorflow::Output image_shape; -}; - -/// Convert one or more images from HSV to RGB. -/// -/// Outputs a tensor of the same shape as the `images` tensor, containing the RGB -/// value of the pixels. The output is only well defined if the value in `images` -/// are in `[0,1]`. -/// -/// See `rgb_to_hsv` for a description of the HSV encoding. -/// -/// Arguments: -/// * scope: A Scope object -/// * images: 1-D or higher rank. HSV data to convert. Last dimension must be size 3. -/// -/// Returns: -/// * `Output`: `images` converted to RGB. -class HSVToRGB { - public: - HSVToRGB(const ::tensorflow::Scope& scope, ::tensorflow::Input images); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Greedily selects a subset of bounding boxes in descending order of score, -/// -/// pruning away boxes that have high intersection-over-union (IOU) overlap -/// with previously selected boxes. Bounding boxes are supplied as -/// [y1, x1, y2, x2], where (y1, x1) and (y2, x2) are the coordinates of any -/// diagonal pair of box corners and the coordinates can be provided as normalized -/// (i.e., lying in the interval [0, 1]) or absolute. Note that this algorithm -/// is agnostic to where the origin is in the coordinate system. Note that this -/// algorithm is invariant to orthogonal transformations and translations -/// of the coordinate system; thus translating or reflections of the coordinate -/// system result in the same boxes being selected by the algorithm. -/// The output of this operation is a set of integers indexing into the input -/// collection of bounding boxes representing the selected boxes. The bounding -/// box coordinates corresponding to the selected indices can then be obtained -/// using the `tf.gather operation`. For example: -/// selected_indices = tf.image.non_max_suppression( -/// boxes, scores, max_output_size, iou_threshold) -/// selected_boxes = tf.gather(boxes, selected_indices) -/// -/// Arguments: -/// * scope: A Scope object -/// * boxes: A 2-D float tensor of shape `[num_boxes, 4]`. -/// * scores: A 1-D float tensor of shape `[num_boxes]` representing a single -/// score corresponding to each box (each row of boxes). -/// * max_output_size: A scalar integer tensor representing the maximum number of -/// boxes to be selected by non max suppression. -/// -/// Optional attributes (see `Attrs`): -/// * iou_threshold: A float representing the threshold for deciding whether boxes -/// overlap too much with respect to IOU. -/// -/// Returns: -/// * `Output`: A 1-D integer tensor of shape `[M]` representing the selected -/// indices from the boxes tensor, where `M <= max_output_size`. -class NonMaxSuppression { - public: - /// Optional attribute setters for NonMaxSuppression - struct Attrs { - /// A float representing the threshold for deciding whether boxes - /// overlap too much with respect to IOU. - /// - /// Defaults to 0.5 - TF_MUST_USE_RESULT Attrs IouThreshold(float x) { - Attrs ret = *this; - ret.iou_threshold_ = x; - return ret; - } - - float iou_threshold_ = 0.5f; - }; - NonMaxSuppression(const ::tensorflow::Scope& scope, ::tensorflow::Input boxes, - ::tensorflow::Input scores, ::tensorflow::Input - max_output_size); - NonMaxSuppression(const ::tensorflow::Scope& scope, ::tensorflow::Input boxes, - ::tensorflow::Input scores, ::tensorflow::Input - max_output_size, const NonMaxSuppression::Attrs& attrs); - operator ::tensorflow::Output() const { return selected_indices; } - operator ::tensorflow::Input() const { return selected_indices; } - ::tensorflow::Node* node() const { return selected_indices.node(); } - - static Attrs IouThreshold(float x) { - return Attrs().IouThreshold(x); - } - - Operation operation; - ::tensorflow::Output selected_indices; -}; - -/// Greedily selects a subset of bounding boxes in descending order of score, -/// -/// pruning away boxes that have high intersection-over-union (IOU) overlap -/// with previously selected boxes. Bounding boxes are supplied as -/// [y1, x1, y2, x2], where (y1, x1) and (y2, x2) are the coordinates of any -/// diagonal pair of box corners and the coordinates can be provided as normalized -/// (i.e., lying in the interval [0, 1]) or absolute. Note that this algorithm -/// is agnostic to where the origin is in the coordinate system. Note that this -/// algorithm is invariant to orthogonal transformations and translations -/// of the coordinate system; thus translating or reflections of the coordinate -/// system result in the same boxes being selected by the algorithm. -/// -/// The output of this operation is a set of integers indexing into the input -/// collection of bounding boxes representing the selected boxes. The bounding -/// box coordinates corresponding to the selected indices can then be obtained -/// using the `tf.gather operation`. For example: -/// -/// selected_indices = tf.image.non_max_suppression_v2( -/// boxes, scores, max_output_size, iou_threshold) -/// selected_boxes = tf.gather(boxes, selected_indices) -/// -/// Arguments: -/// * scope: A Scope object -/// * boxes: A 2-D float tensor of shape `[num_boxes, 4]`. -/// * scores: A 1-D float tensor of shape `[num_boxes]` representing a single -/// score corresponding to each box (each row of boxes). -/// * max_output_size: A scalar integer tensor representing the maximum number of -/// boxes to be selected by non max suppression. -/// * iou_threshold: A 0-D float tensor representing the threshold for deciding whether -/// boxes overlap too much with respect to IOU. -/// -/// Returns: -/// * `Output`: A 1-D integer tensor of shape `[M]` representing the selected -/// indices from the boxes tensor, where `M <= max_output_size`. -class NonMaxSuppressionV2 { - public: - NonMaxSuppressionV2(const ::tensorflow::Scope& scope, ::tensorflow::Input - boxes, ::tensorflow::Input scores, ::tensorflow::Input - max_output_size, ::tensorflow::Input iou_threshold); - operator ::tensorflow::Output() const { return selected_indices; } - operator ::tensorflow::Input() const { return selected_indices; } - ::tensorflow::Node* node() const { return selected_indices.node(); } - - Operation operation; - ::tensorflow::Output selected_indices; -}; - -/// Greedily selects a subset of bounding boxes in descending order of score, -/// -/// pruning away boxes that have high intersection-over-union (IOU) overlap -/// with previously selected boxes. Bounding boxes with score less than -/// `score_threshold` are removed. Bounding boxes are supplied as -/// [y1, x1, y2, x2], where (y1, x1) and (y2, x2) are the coordinates of any -/// diagonal pair of box corners and the coordinates can be provided as normalized -/// (i.e., lying in the interval [0, 1]) or absolute. Note that this algorithm -/// is agnostic to where the origin is in the coordinate system and more -/// generally is invariant to orthogonal transformations and translations -/// of the coordinate system; thus translating or reflections of the coordinate -/// system result in the same boxes being selected by the algorithm. -/// The output of this operation is a set of integers indexing into the input -/// collection of bounding boxes representing the selected boxes. The bounding -/// box coordinates corresponding to the selected indices can then be obtained -/// using the `tf.gather operation`. For example: -/// selected_indices = tf.image.non_max_suppression_v2( -/// boxes, scores, max_output_size, iou_threshold, score_threshold) -/// selected_boxes = tf.gather(boxes, selected_indices) -/// -/// Arguments: -/// * scope: A Scope object -/// * boxes: A 2-D float tensor of shape `[num_boxes, 4]`. -/// * scores: A 1-D float tensor of shape `[num_boxes]` representing a single -/// score corresponding to each box (each row of boxes). -/// * max_output_size: A scalar integer tensor representing the maximum number of -/// boxes to be selected by non max suppression. -/// * iou_threshold: A 0-D float tensor representing the threshold for deciding whether -/// boxes overlap too much with respect to IOU. -/// * score_threshold: A 0-D float tensor representing the threshold for deciding when to remove -/// boxes based on score. -/// -/// Returns: -/// * `Output`: A 1-D integer tensor of shape `[M]` representing the selected -/// indices from the boxes tensor, where `M <= max_output_size`. -class NonMaxSuppressionV3 { - public: - NonMaxSuppressionV3(const ::tensorflow::Scope& scope, ::tensorflow::Input - boxes, ::tensorflow::Input scores, ::tensorflow::Input - max_output_size, ::tensorflow::Input iou_threshold, - ::tensorflow::Input score_threshold); - operator ::tensorflow::Output() const { return selected_indices; } - operator ::tensorflow::Input() const { return selected_indices; } - ::tensorflow::Node* node() const { return selected_indices.node(); } - - Operation operation; - ::tensorflow::Output selected_indices; -}; - -/// Greedily selects a subset of bounding boxes in descending order of score, -/// -/// pruning away boxes that have high intersection-over-union (IOU) overlap -/// with previously selected boxes. Bounding boxes with score less than -/// `score_threshold` are removed. Bounding boxes are supplied as -/// [y1, x1, y2, x2], where (y1, x1) and (y2, x2) are the coordinates of any -/// diagonal pair of box corners and the coordinates can be provided as normalized -/// (i.e., lying in the interval [0, 1]) or absolute. Note that this algorithm -/// is agnostic to where the origin is in the coordinate system and more -/// generally is invariant to orthogonal transformations and translations -/// of the coordinate system; thus translating or reflections of the coordinate -/// system result in the same boxes being selected by the algorithm. -/// The output of this operation is a set of integers indexing into the input -/// collection of bounding boxes representing the selected boxes. The bounding -/// box coordinates corresponding to the selected indices can then be obtained -/// using the `tf.gather operation`. For example: -/// selected_indices = tf.image.non_max_suppression_v2( -/// boxes, scores, max_output_size, iou_threshold, score_threshold) -/// selected_boxes = tf.gather(boxes, selected_indices) -/// -/// Arguments: -/// * scope: A Scope object -/// * boxes: A 2-D float tensor of shape `[num_boxes, 4]`. -/// * scores: A 1-D float tensor of shape `[num_boxes]` representing a single -/// score corresponding to each box (each row of boxes). -/// * max_output_size: A scalar integer tensor representing the maximum number of -/// boxes to be selected by non max suppression. -/// * iou_threshold: A 0-D float tensor representing the threshold for deciding whether -/// boxes overlap too much with respect to IOU. -/// * score_threshold: A 0-D float tensor representing the threshold for deciding when to remove -/// boxes based on score. -/// -/// Optional attributes (see `Attrs`): -/// * pad_to_max_output_size: If true, the output `selected_indices` is padded to be of length -/// `max_output_size`. Defaults to false. -/// -/// Returns: -/// * `Output` selected_indices: A 1-D integer tensor of shape `[M]` representing the selected -/// indices from the boxes tensor, where `M <= max_output_size`. -/// * `Output` valid_outputs: A 0-D integer tensor representing the number of valid elements in -/// `selected_indices`, with the valid elements appearing first. -class NonMaxSuppressionV4 { - public: - /// Optional attribute setters for NonMaxSuppressionV4 - struct Attrs { - /// If true, the output `selected_indices` is padded to be of length - /// `max_output_size`. Defaults to false. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs PadToMaxOutputSize(bool x) { - Attrs ret = *this; - ret.pad_to_max_output_size_ = x; - return ret; - } - - bool pad_to_max_output_size_ = false; - }; - NonMaxSuppressionV4(const ::tensorflow::Scope& scope, ::tensorflow::Input - boxes, ::tensorflow::Input scores, ::tensorflow::Input - max_output_size, ::tensorflow::Input iou_threshold, - ::tensorflow::Input score_threshold); - NonMaxSuppressionV4(const ::tensorflow::Scope& scope, ::tensorflow::Input - boxes, ::tensorflow::Input scores, ::tensorflow::Input - max_output_size, ::tensorflow::Input iou_threshold, - ::tensorflow::Input score_threshold, const - NonMaxSuppressionV4::Attrs& attrs); - - static Attrs PadToMaxOutputSize(bool x) { - return Attrs().PadToMaxOutputSize(x); - } - - Operation operation; - ::tensorflow::Output selected_indices; - ::tensorflow::Output valid_outputs; -}; - -/// Greedily selects a subset of bounding boxes in descending order of score, -/// -/// pruning away boxes that have high overlaps -/// with previously selected boxes. Bounding boxes with score less than -/// `score_threshold` are removed. N-by-n overlap values are supplied as square matrix, -/// which allows for defining a custom overlap criterium (eg. intersection over union, -/// intersection over area, etc.). -/// -/// The output of this operation is a set of integers indexing into the input -/// collection of bounding boxes representing the selected boxes. The bounding -/// box coordinates corresponding to the selected indices can then be obtained -/// using the `tf.gather operation`. For example: -/// -/// selected_indices = tf.image.non_max_suppression_with_overlaps( -/// overlaps, scores, max_output_size, overlap_threshold, score_threshold) -/// selected_boxes = tf.gather(boxes, selected_indices) -/// -/// Arguments: -/// * scope: A Scope object -/// * overlaps: A 2-D float tensor of shape `[num_boxes, num_boxes]` representing -/// the n-by-n box overlap values. -/// * scores: A 1-D float tensor of shape `[num_boxes]` representing a single -/// score corresponding to each box (each row of boxes). -/// * max_output_size: A scalar integer tensor representing the maximum number of -/// boxes to be selected by non max suppression. -/// * overlap_threshold: A 0-D float tensor representing the threshold for deciding whether -/// boxes overlap too. -/// * score_threshold: A 0-D float tensor representing the threshold for deciding when to remove -/// boxes based on score. -/// -/// Returns: -/// * `Output`: A 1-D integer tensor of shape `[M]` representing the selected -/// indices from the boxes tensor, where `M <= max_output_size`. -class NonMaxSuppressionWithOverlaps { - public: - NonMaxSuppressionWithOverlaps(const ::tensorflow::Scope& scope, - ::tensorflow::Input overlaps, ::tensorflow::Input - scores, ::tensorflow::Input max_output_size, - ::tensorflow::Input overlap_threshold, - ::tensorflow::Input score_threshold); - operator ::tensorflow::Output() const { return selected_indices; } - operator ::tensorflow::Input() const { return selected_indices; } - ::tensorflow::Node* node() const { return selected_indices.node(); } - - Operation operation; - ::tensorflow::Output selected_indices; -}; - -/// Resize quantized `images` to `size` using quantized bilinear interpolation. -/// -/// Input images and output images must be quantized types. -/// -/// Arguments: -/// * scope: A Scope object -/// * images: 4-D with shape `[batch, height, width, channels]`. -/// * size: = A 1-D int32 Tensor of 2 elements: `new_height, new_width`. The -/// new size for the images. -/// -/// Optional attributes (see `Attrs`): -/// * align_corners: If true, the centers of the 4 corner pixels of the input and output tensors are -/// aligned, preserving the values at the corner pixels. Defaults to false. -/// -/// Returns: -/// * `Output` resized_images: 4-D with shape -/// `[batch, new_height, new_width, channels]`. -/// * `Output` out_min -/// * `Output` out_max -class QuantizedResizeBilinear { - public: - /// Optional attribute setters for QuantizedResizeBilinear - struct Attrs { - /// If true, the centers of the 4 corner pixels of the input and output tensors are - /// aligned, preserving the values at the corner pixels. Defaults to false. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs AlignCorners(bool x) { - Attrs ret = *this; - ret.align_corners_ = x; - return ret; - } - - bool align_corners_ = false; - }; - QuantizedResizeBilinear(const ::tensorflow::Scope& scope, ::tensorflow::Input - images, ::tensorflow::Input size, ::tensorflow::Input - min, ::tensorflow::Input max); - QuantizedResizeBilinear(const ::tensorflow::Scope& scope, ::tensorflow::Input - images, ::tensorflow::Input size, ::tensorflow::Input - min, ::tensorflow::Input max, const - QuantizedResizeBilinear::Attrs& attrs); - - static Attrs AlignCorners(bool x) { - return Attrs().AlignCorners(x); - } - - Operation operation; - ::tensorflow::Output resized_images; - ::tensorflow::Output out_min; - ::tensorflow::Output out_max; -}; - -/// Converts one or more images from RGB to HSV. -/// -/// Outputs a tensor of the same shape as the `images` tensor, containing the HSV -/// value of the pixels. The output is only well defined if the value in `images` -/// are in `[0,1]`. -/// -/// `output[..., 0]` contains hue, `output[..., 1]` contains saturation, and -/// `output[..., 2]` contains value. All HSV values are in `[0,1]`. A hue of 0 -/// corresponds to pure red, hue 1/3 is pure green, and 2/3 is pure blue. -/// -/// Arguments: -/// * scope: A Scope object -/// * images: 1-D or higher rank. RGB data to convert. Last dimension must be size 3. -/// -/// Returns: -/// * `Output`: `images` converted to HSV. -class RGBToHSV { - public: - RGBToHSV(const ::tensorflow::Scope& scope, ::tensorflow::Input images); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Resize `images` to `size` using area interpolation. -/// -/// Input images can be of different types but output images are always float. -/// -/// The range of pixel values for the output image might be slightly different -/// from the range for the input image because of limited numerical precision. -/// To guarantee an output range, for example `[0.0, 1.0]`, apply -/// `tf.clip_by_value` to the output. -/// -/// Each output pixel is computed by first transforming the pixel's footprint into -/// the input tensor and then averaging the pixels that intersect the footprint. An -/// input pixel's contribution to the average is weighted by the fraction of its -/// area that intersects the footprint. This is the same as OpenCV's INTER_AREA. -/// -/// Arguments: -/// * scope: A Scope object -/// * images: 4-D with shape `[batch, height, width, channels]`. -/// * size: = A 1-D int32 Tensor of 2 elements: `new_height, new_width`. The -/// new size for the images. -/// -/// Optional attributes (see `Attrs`): -/// * align_corners: If true, the centers of the 4 corner pixels of the input and output tensors are -/// aligned, preserving the values at the corner pixels. Defaults to false. -/// -/// Returns: -/// * `Output`: 4-D with shape -/// `[batch, new_height, new_width, channels]`. -class ResizeArea { - public: - /// Optional attribute setters for ResizeArea - struct Attrs { - /// If true, the centers of the 4 corner pixels of the input and output tensors are - /// aligned, preserving the values at the corner pixels. Defaults to false. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs AlignCorners(bool x) { - Attrs ret = *this; - ret.align_corners_ = x; - return ret; - } - - bool align_corners_ = false; - }; - ResizeArea(const ::tensorflow::Scope& scope, ::tensorflow::Input images, - ::tensorflow::Input size); - ResizeArea(const ::tensorflow::Scope& scope, ::tensorflow::Input images, - ::tensorflow::Input size, const ResizeArea::Attrs& attrs); - operator ::tensorflow::Output() const { return resized_images; } - operator ::tensorflow::Input() const { return resized_images; } - ::tensorflow::Node* node() const { return resized_images.node(); } - - static Attrs AlignCorners(bool x) { - return Attrs().AlignCorners(x); - } - - Operation operation; - ::tensorflow::Output resized_images; -}; - -/// Resize `images` to `size` using bicubic interpolation. -/// -/// Input images can be of different types but output images are always float. -/// -/// Arguments: -/// * scope: A Scope object -/// * images: 4-D with shape `[batch, height, width, channels]`. -/// * size: = A 1-D int32 Tensor of 2 elements: `new_height, new_width`. The -/// new size for the images. -/// -/// Optional attributes (see `Attrs`): -/// * align_corners: If true, the centers of the 4 corner pixels of the input and output tensors are -/// aligned, preserving the values at the corner pixels. Defaults to false. -/// -/// Returns: -/// * `Output`: 4-D with shape -/// `[batch, new_height, new_width, channels]`. -class ResizeBicubic { - public: - /// Optional attribute setters for ResizeBicubic - struct Attrs { - /// If true, the centers of the 4 corner pixels of the input and output tensors are - /// aligned, preserving the values at the corner pixels. Defaults to false. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs AlignCorners(bool x) { - Attrs ret = *this; - ret.align_corners_ = x; - return ret; - } - - bool align_corners_ = false; - }; - ResizeBicubic(const ::tensorflow::Scope& scope, ::tensorflow::Input images, - ::tensorflow::Input size); - ResizeBicubic(const ::tensorflow::Scope& scope, ::tensorflow::Input images, - ::tensorflow::Input size, const ResizeBicubic::Attrs& attrs); - operator ::tensorflow::Output() const { return resized_images; } - operator ::tensorflow::Input() const { return resized_images; } - ::tensorflow::Node* node() const { return resized_images.node(); } - - static Attrs AlignCorners(bool x) { - return Attrs().AlignCorners(x); - } - - Operation operation; - ::tensorflow::Output resized_images; -}; - -/// Resize `images` to `size` using bilinear interpolation. -/// -/// Input images can be of different types but output images are always float. -/// -/// Arguments: -/// * scope: A Scope object -/// * images: 4-D with shape `[batch, height, width, channels]`. -/// * size: = A 1-D int32 Tensor of 2 elements: `new_height, new_width`. The -/// new size for the images. -/// -/// Optional attributes (see `Attrs`): -/// * align_corners: If true, the centers of the 4 corner pixels of the input and output tensors are -/// aligned, preserving the values at the corner pixels. Defaults to false. -/// -/// Returns: -/// * `Output`: 4-D with shape -/// `[batch, new_height, new_width, channels]`. -class ResizeBilinear { - public: - /// Optional attribute setters for ResizeBilinear - struct Attrs { - /// If true, the centers of the 4 corner pixels of the input and output tensors are - /// aligned, preserving the values at the corner pixels. Defaults to false. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs AlignCorners(bool x) { - Attrs ret = *this; - ret.align_corners_ = x; - return ret; - } - - bool align_corners_ = false; - }; - ResizeBilinear(const ::tensorflow::Scope& scope, ::tensorflow::Input images, - ::tensorflow::Input size); - ResizeBilinear(const ::tensorflow::Scope& scope, ::tensorflow::Input images, - ::tensorflow::Input size, const ResizeBilinear::Attrs& attrs); - operator ::tensorflow::Output() const { return resized_images; } - operator ::tensorflow::Input() const { return resized_images; } - ::tensorflow::Node* node() const { return resized_images.node(); } - - static Attrs AlignCorners(bool x) { - return Attrs().AlignCorners(x); - } - - Operation operation; - ::tensorflow::Output resized_images; -}; - -/// Resize `images` to `size` using nearest neighbor interpolation. -/// -/// Arguments: -/// * scope: A Scope object -/// * images: 4-D with shape `[batch, height, width, channels]`. -/// * size: = A 1-D int32 Tensor of 2 elements: `new_height, new_width`. The -/// new size for the images. -/// -/// Optional attributes (see `Attrs`): -/// * align_corners: If true, the centers of the 4 corner pixels of the input and output tensors are -/// aligned, preserving the values at the corner pixels. Defaults to false. -/// -/// Returns: -/// * `Output`: 4-D with shape -/// `[batch, new_height, new_width, channels]`. -class ResizeNearestNeighbor { - public: - /// Optional attribute setters for ResizeNearestNeighbor - struct Attrs { - /// If true, the centers of the 4 corner pixels of the input and output tensors are - /// aligned, preserving the values at the corner pixels. Defaults to false. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs AlignCorners(bool x) { - Attrs ret = *this; - ret.align_corners_ = x; - return ret; - } - - bool align_corners_ = false; - }; - ResizeNearestNeighbor(const ::tensorflow::Scope& scope, ::tensorflow::Input - images, ::tensorflow::Input size); - ResizeNearestNeighbor(const ::tensorflow::Scope& scope, ::tensorflow::Input - images, ::tensorflow::Input size, const - ResizeNearestNeighbor::Attrs& attrs); - operator ::tensorflow::Output() const { return resized_images; } - operator ::tensorflow::Input() const { return resized_images; } - ::tensorflow::Node* node() const { return resized_images.node(); } - - static Attrs AlignCorners(bool x) { - return Attrs().AlignCorners(x); - } - - Operation operation; - ::tensorflow::Output resized_images; -}; - -/// Generate a single randomly distorted bounding box for an image. -/// -/// Bounding box annotations are often supplied in addition to ground-truth labels -/// in image recognition or object localization tasks. A common technique for -/// training such a system is to randomly distort an image while preserving -/// its content, i.e. *data augmentation*. This Op outputs a randomly distorted -/// localization of an object, i.e. bounding box, given an `image_size`, -/// `bounding_boxes` and a series of constraints. -/// -/// The output of this Op is a single bounding box that may be used to crop the -/// original image. The output is returned as 3 tensors: `begin`, `size` and -/// `bboxes`. The first 2 tensors can be fed directly into `tf.slice` to crop the -/// image. The latter may be supplied to `tf.image.draw_bounding_boxes` to visualize -/// what the bounding box looks like. -/// -/// Bounding boxes are supplied and returned as `[y_min, x_min, y_max, x_max]`. The -/// bounding box coordinates are floats in `[0.0, 1.0]` relative to the width and -/// height of the underlying image. -/// -/// For example, -/// -/// ```python -/// # Generate a single distorted bounding box. -/// begin, size, bbox_for_draw = tf.image.sample_distorted_bounding_box( -/// tf.shape(image), -/// bounding_boxes=bounding_boxes) -/// -/// # Draw the bounding box in an image summary. -/// image_with_box = tf.image.draw_bounding_boxes(tf.expand_dims(image, 0), -/// bbox_for_draw) -/// tf.summary.image('images_with_box', image_with_box) -/// -/// # Employ the bounding box to distort the image. -/// distorted_image = tf.slice(image, begin, size) -/// ``` -/// -/// Note that if no bounding box information is available, setting -/// `use_image_if_no_bounding_boxes = true` will assume there is a single implicit -/// bounding box covering the whole image. If `use_image_if_no_bounding_boxes` is -/// false and no bounding boxes are supplied, an error is raised. -/// -/// Arguments: -/// * scope: A Scope object -/// * image_size: 1-D, containing `[height, width, channels]`. -/// * bounding_boxes: 3-D with shape `[batch, N, 4]` describing the N bounding boxes -/// associated with the image. -/// -/// Optional attributes (see `Attrs`): -/// * seed: If either `seed` or `seed2` are set to non-zero, the random number -/// generator is seeded by the given `seed`. Otherwise, it is seeded by a random -/// seed. -/// * seed2: A second seed to avoid seed collision. -/// * min_object_covered: The cropped area of the image must contain at least this -/// fraction of any bounding box supplied. The value of this parameter should be -/// non-negative. In the case of 0, the cropped area does not need to overlap -/// any of the bounding boxes supplied. -/// * aspect_ratio_range: The cropped area of the image must have an aspect ratio = -/// width / height within this range. -/// * area_range: The cropped area of the image must contain a fraction of the -/// supplied image within this range. -/// * max_attempts: Number of attempts at generating a cropped region of the image -/// of the specified constraints. After `max_attempts` failures, return the entire -/// image. -/// * use_image_if_no_bounding_boxes: Controls behavior if no bounding boxes supplied. -/// If true, assume an implicit bounding box covering the whole input. If false, -/// raise an error. -/// -/// Returns: -/// * `Output` begin: 1-D, containing `[offset_height, offset_width, 0]`. Provide as input to -/// `tf.slice`. -/// * `Output` size: 1-D, containing `[target_height, target_width, -1]`. Provide as input to -/// `tf.slice`. -/// * `Output` bboxes: 3-D with shape `[1, 1, 4]` containing the distorted bounding box. -/// Provide as input to `tf.image.draw_bounding_boxes`. -class SampleDistortedBoundingBox { - public: - /// Optional attribute setters for SampleDistortedBoundingBox - struct Attrs { - /// If either `seed` or `seed2` are set to non-zero, the random number - /// generator is seeded by the given `seed`. Otherwise, it is seeded by a random - /// seed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// A second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - /// The cropped area of the image must contain at least this - /// fraction of any bounding box supplied. The value of this parameter should be - /// non-negative. In the case of 0, the cropped area does not need to overlap - /// any of the bounding boxes supplied. - /// - /// Defaults to 0.1 - TF_MUST_USE_RESULT Attrs MinObjectCovered(float x) { - Attrs ret = *this; - ret.min_object_covered_ = x; - return ret; - } - - /// The cropped area of the image must have an aspect ratio = - /// width / height within this range. - /// - /// Defaults to [0.75, 1.33] - TF_MUST_USE_RESULT Attrs AspectRatioRange(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.aspect_ratio_range_ = x; - return ret; - } - - /// The cropped area of the image must contain a fraction of the - /// supplied image within this range. - /// - /// Defaults to [0.05, 1] - TF_MUST_USE_RESULT Attrs AreaRange(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.area_range_ = x; - return ret; - } - - /// Number of attempts at generating a cropped region of the image - /// of the specified constraints. After `max_attempts` failures, return the entire - /// image. - /// - /// Defaults to 100 - TF_MUST_USE_RESULT Attrs MaxAttempts(int64 x) { - Attrs ret = *this; - ret.max_attempts_ = x; - return ret; - } - - /// Controls behavior if no bounding boxes supplied. - /// If true, assume an implicit bounding box covering the whole input. If false, - /// raise an error. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseImageIfNoBoundingBoxes(bool x) { - Attrs ret = *this; - ret.use_image_if_no_bounding_boxes_ = x; - return ret; - } - - int64 seed_ = 0; - int64 seed2_ = 0; - float min_object_covered_ = 0.1f; - gtl::ArraySlice aspect_ratio_range_ = Default_aspect_ratio_range(); - gtl::ArraySlice area_range_ = Default_area_range(); - int64 max_attempts_ = 100; - bool use_image_if_no_bounding_boxes_ = false; - private: - static gtl::ArraySlice Default_aspect_ratio_range() { - static const float kStorage[] = {0.75f, 1.33f}; - return gtl::ArraySlice(kStorage); - } - static gtl::ArraySlice Default_area_range() { - static const float kStorage[] = {0.05f, 1.0f}; - return gtl::ArraySlice(kStorage); - } - }; - SampleDistortedBoundingBox(const ::tensorflow::Scope& scope, - ::tensorflow::Input image_size, ::tensorflow::Input - bounding_boxes); - SampleDistortedBoundingBox(const ::tensorflow::Scope& scope, - ::tensorflow::Input image_size, ::tensorflow::Input - bounding_boxes, const - SampleDistortedBoundingBox::Attrs& attrs); - - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - static Attrs MinObjectCovered(float x) { - return Attrs().MinObjectCovered(x); - } - static Attrs AspectRatioRange(const gtl::ArraySlice& x) { - return Attrs().AspectRatioRange(x); - } - static Attrs AreaRange(const gtl::ArraySlice& x) { - return Attrs().AreaRange(x); - } - static Attrs MaxAttempts(int64 x) { - return Attrs().MaxAttempts(x); - } - static Attrs UseImageIfNoBoundingBoxes(bool x) { - return Attrs().UseImageIfNoBoundingBoxes(x); - } - - Operation operation; - ::tensorflow::Output begin; - ::tensorflow::Output size; - ::tensorflow::Output bboxes; -}; - -/// Generate a single randomly distorted bounding box for an image. -/// -/// Bounding box annotations are often supplied in addition to ground-truth labels -/// in image recognition or object localization tasks. A common technique for -/// training such a system is to randomly distort an image while preserving -/// its content, i.e. *data augmentation*. This Op outputs a randomly distorted -/// localization of an object, i.e. bounding box, given an `image_size`, -/// `bounding_boxes` and a series of constraints. -/// -/// The output of this Op is a single bounding box that may be used to crop the -/// original image. The output is returned as 3 tensors: `begin`, `size` and -/// `bboxes`. The first 2 tensors can be fed directly into `tf.slice` to crop the -/// image. The latter may be supplied to `tf.image.draw_bounding_boxes` to visualize -/// what the bounding box looks like. -/// -/// Bounding boxes are supplied and returned as `[y_min, x_min, y_max, x_max]`. The -/// bounding box coordinates are floats in `[0.0, 1.0]` relative to the width and -/// height of the underlying image. -/// -/// For example, -/// -/// ```python -/// # Generate a single distorted bounding box. -/// begin, size, bbox_for_draw = tf.image.sample_distorted_bounding_box( -/// tf.shape(image), -/// bounding_boxes=bounding_boxes) -/// -/// # Draw the bounding box in an image summary. -/// image_with_box = tf.image.draw_bounding_boxes(tf.expand_dims(image, 0), -/// bbox_for_draw) -/// tf.summary.image('images_with_box', image_with_box) -/// -/// # Employ the bounding box to distort the image. -/// distorted_image = tf.slice(image, begin, size) -/// ``` -/// -/// Note that if no bounding box information is available, setting -/// `use_image_if_no_bounding_boxes = true` will assume there is a single implicit -/// bounding box covering the whole image. If `use_image_if_no_bounding_boxes` is -/// false and no bounding boxes are supplied, an error is raised. -/// -/// Arguments: -/// * scope: A Scope object -/// * image_size: 1-D, containing `[height, width, channels]`. -/// * bounding_boxes: 3-D with shape `[batch, N, 4]` describing the N bounding boxes -/// associated with the image. -/// * min_object_covered: The cropped area of the image must contain at least this -/// fraction of any bounding box supplied. The value of this parameter should be -/// non-negative. In the case of 0, the cropped area does not need to overlap -/// any of the bounding boxes supplied. -/// -/// Optional attributes (see `Attrs`): -/// * seed: If either `seed` or `seed2` are set to non-zero, the random number -/// generator is seeded by the given `seed`. Otherwise, it is seeded by a random -/// seed. -/// * seed2: A second seed to avoid seed collision. -/// * aspect_ratio_range: The cropped area of the image must have an aspect ratio = -/// width / height within this range. -/// * area_range: The cropped area of the image must contain a fraction of the -/// supplied image within this range. -/// * max_attempts: Number of attempts at generating a cropped region of the image -/// of the specified constraints. After `max_attempts` failures, return the entire -/// image. -/// * use_image_if_no_bounding_boxes: Controls behavior if no bounding boxes supplied. -/// If true, assume an implicit bounding box covering the whole input. If false, -/// raise an error. -/// -/// Returns: -/// * `Output` begin: 1-D, containing `[offset_height, offset_width, 0]`. Provide as input to -/// `tf.slice`. -/// * `Output` size: 1-D, containing `[target_height, target_width, -1]`. Provide as input to -/// `tf.slice`. -/// * `Output` bboxes: 3-D with shape `[1, 1, 4]` containing the distorted bounding box. -/// Provide as input to `tf.image.draw_bounding_boxes`. -class SampleDistortedBoundingBoxV2 { - public: - /// Optional attribute setters for SampleDistortedBoundingBoxV2 - struct Attrs { - /// If either `seed` or `seed2` are set to non-zero, the random number - /// generator is seeded by the given `seed`. Otherwise, it is seeded by a random - /// seed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// A second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - /// The cropped area of the image must have an aspect ratio = - /// width / height within this range. - /// - /// Defaults to [0.75, 1.33] - TF_MUST_USE_RESULT Attrs AspectRatioRange(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.aspect_ratio_range_ = x; - return ret; - } - - /// The cropped area of the image must contain a fraction of the - /// supplied image within this range. - /// - /// Defaults to [0.05, 1] - TF_MUST_USE_RESULT Attrs AreaRange(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.area_range_ = x; - return ret; - } - - /// Number of attempts at generating a cropped region of the image - /// of the specified constraints. After `max_attempts` failures, return the entire - /// image. - /// - /// Defaults to 100 - TF_MUST_USE_RESULT Attrs MaxAttempts(int64 x) { - Attrs ret = *this; - ret.max_attempts_ = x; - return ret; - } - - /// Controls behavior if no bounding boxes supplied. - /// If true, assume an implicit bounding box covering the whole input. If false, - /// raise an error. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseImageIfNoBoundingBoxes(bool x) { - Attrs ret = *this; - ret.use_image_if_no_bounding_boxes_ = x; - return ret; - } - - int64 seed_ = 0; - int64 seed2_ = 0; - gtl::ArraySlice aspect_ratio_range_ = Default_aspect_ratio_range(); - gtl::ArraySlice area_range_ = Default_area_range(); - int64 max_attempts_ = 100; - bool use_image_if_no_bounding_boxes_ = false; - private: - static gtl::ArraySlice Default_aspect_ratio_range() { - static const float kStorage[] = {0.75f, 1.33f}; - return gtl::ArraySlice(kStorage); - } - static gtl::ArraySlice Default_area_range() { - static const float kStorage[] = {0.05f, 1.0f}; - return gtl::ArraySlice(kStorage); - } - }; - SampleDistortedBoundingBoxV2(const ::tensorflow::Scope& scope, - ::tensorflow::Input image_size, - ::tensorflow::Input bounding_boxes, - ::tensorflow::Input min_object_covered); - SampleDistortedBoundingBoxV2(const ::tensorflow::Scope& scope, - ::tensorflow::Input image_size, - ::tensorflow::Input bounding_boxes, - ::tensorflow::Input min_object_covered, const - SampleDistortedBoundingBoxV2::Attrs& attrs); - - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - static Attrs AspectRatioRange(const gtl::ArraySlice& x) { - return Attrs().AspectRatioRange(x); - } - static Attrs AreaRange(const gtl::ArraySlice& x) { - return Attrs().AreaRange(x); - } - static Attrs MaxAttempts(int64 x) { - return Attrs().MaxAttempts(x); - } - static Attrs UseImageIfNoBoundingBoxes(bool x) { - return Attrs().UseImageIfNoBoundingBoxes(x); - } - - Operation operation; - ::tensorflow::Output begin; - ::tensorflow::Output size; - ::tensorflow::Output bboxes; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_IMAGE_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/image_ops_internal.h b/linux/include/tensorflow/cc/ops/image_ops_internal.h deleted file mode 100755 index 9523df48a..000000000 --- a/linux/include/tensorflow/cc/ops/image_ops_internal.h +++ /dev/null @@ -1,174 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_IMAGE_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_IMAGE_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup image_ops_internal Image Ops Internal -/// @{ - -/// Computes the gradient of bicubic interpolation. -/// -/// Arguments: -/// * scope: A Scope object -/// * grads: 4-D with shape `[batch, height, width, channels]`. -/// * original_image: 4-D with shape `[batch, orig_height, orig_width, channels]`, -/// The image tensor that was resized. -/// -/// Optional attributes (see `Attrs`): -/// * align_corners: If true, the centers of the 4 corner pixels of the input and grad tensors are -/// aligned. Defaults to false. -/// -/// Returns: -/// * `Output`: 4-D with shape `[batch, orig_height, orig_width, channels]`. -/// Gradients with respect to the input image. Input image must have been -/// float or double. -class ResizeBicubicGrad { - public: - /// Optional attribute setters for ResizeBicubicGrad - struct Attrs { - /// If true, the centers of the 4 corner pixels of the input and grad tensors are - /// aligned. Defaults to false. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs AlignCorners(bool x) { - Attrs ret = *this; - ret.align_corners_ = x; - return ret; - } - - bool align_corners_ = false; - }; - ResizeBicubicGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input grads, - ::tensorflow::Input original_image); - ResizeBicubicGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input grads, - ::tensorflow::Input original_image, const - ResizeBicubicGrad::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs AlignCorners(bool x) { - return Attrs().AlignCorners(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the gradient of bilinear interpolation. -/// -/// Arguments: -/// * scope: A Scope object -/// * grads: 4-D with shape `[batch, height, width, channels]`. -/// * original_image: 4-D with shape `[batch, orig_height, orig_width, channels]`, -/// The image tensor that was resized. -/// -/// Optional attributes (see `Attrs`): -/// * align_corners: If true, the centers of the 4 corner pixels of the input and grad tensors are -/// aligned. Defaults to false. -/// -/// Returns: -/// * `Output`: 4-D with shape `[batch, orig_height, orig_width, channels]`. -/// Gradients with respect to the input image. Input image must have been -/// float or double. -class ResizeBilinearGrad { - public: - /// Optional attribute setters for ResizeBilinearGrad - struct Attrs { - /// If true, the centers of the 4 corner pixels of the input and grad tensors are - /// aligned. Defaults to false. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs AlignCorners(bool x) { - Attrs ret = *this; - ret.align_corners_ = x; - return ret; - } - - bool align_corners_ = false; - }; - ResizeBilinearGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input grads, - ::tensorflow::Input original_image); - ResizeBilinearGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input grads, - ::tensorflow::Input original_image, const - ResizeBilinearGrad::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs AlignCorners(bool x) { - return Attrs().AlignCorners(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the gradient of nearest neighbor interpolation. -/// -/// Arguments: -/// * scope: A Scope object -/// * grads: 4-D with shape `[batch, height, width, channels]`. -/// * size: = A 1-D int32 Tensor of 2 elements: `orig_height, orig_width`. The -/// original input size. -/// -/// Optional attributes (see `Attrs`): -/// * align_corners: If true, the centers of the 4 corner pixels of the input and grad tensors are -/// aligned. Defaults to false. -/// -/// Returns: -/// * `Output`: 4-D with shape `[batch, orig_height, orig_width, channels]`. Gradients -/// with respect to the input image. -class ResizeNearestNeighborGrad { - public: - /// Optional attribute setters for ResizeNearestNeighborGrad - struct Attrs { - /// If true, the centers of the 4 corner pixels of the input and grad tensors are - /// aligned. Defaults to false. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs AlignCorners(bool x) { - Attrs ret = *this; - ret.align_corners_ = x; - return ret; - } - - bool align_corners_ = false; - }; - ResizeNearestNeighborGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - grads, ::tensorflow::Input size); - ResizeNearestNeighborGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - grads, ::tensorflow::Input size, const - ResizeNearestNeighborGrad::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs AlignCorners(bool x) { - return Attrs().AlignCorners(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_IMAGE_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/io_ops.h b/linux/include/tensorflow/cc/ops/io_ops.h deleted file mode 100755 index 3e2533190..000000000 --- a/linux/include/tensorflow/cc/ops/io_ops.h +++ /dev/null @@ -1,1035 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_IO_OPS_H_ -#define TENSORFLOW_CC_OPS_IO_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup io_ops Io Ops -/// @{ - -/// A Reader that outputs fixed-length records from a file. -/// -/// Arguments: -/// * scope: A Scope object -/// * record_bytes: Number of bytes in the record. -/// -/// Optional attributes (see `Attrs`): -/// * header_bytes: Number of bytes in the header, defaults to 0. -/// * footer_bytes: Number of bytes in the footer, defaults to 0. -/// * hop_bytes: Number of bytes to hop before each read. Default of 0 means using -/// record_bytes. -/// * container: If non-empty, this reader is placed in the given container. -/// Otherwise, a default container is used. -/// * shared_name: If non-empty, this reader is named in the given bucket -/// with this shared_name. Otherwise, the node name is used instead. -/// * encoding: The type of encoding for the file. Currently ZLIB and GZIP -/// are supported. Defaults to none. -/// -/// Returns: -/// * `Output`: The handle to reference the Reader. -class FixedLengthRecordReader { - public: - /// Optional attribute setters for FixedLengthRecordReader - struct Attrs { - /// Number of bytes in the header, defaults to 0. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs HeaderBytes(int64 x) { - Attrs ret = *this; - ret.header_bytes_ = x; - return ret; - } - - /// Number of bytes in the footer, defaults to 0. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs FooterBytes(int64 x) { - Attrs ret = *this; - ret.footer_bytes_ = x; - return ret; - } - - /// Number of bytes to hop before each read. Default of 0 means using - /// record_bytes. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs HopBytes(int64 x) { - Attrs ret = *this; - ret.hop_bytes_ = x; - return ret; - } - - /// If non-empty, this reader is placed in the given container. - /// Otherwise, a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// If non-empty, this reader is named in the given bucket - /// with this shared_name. Otherwise, the node name is used instead. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - /// The type of encoding for the file. Currently ZLIB and GZIP - /// are supported. Defaults to none. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Encoding(StringPiece x) { - Attrs ret = *this; - ret.encoding_ = x; - return ret; - } - - int64 header_bytes_ = 0; - int64 footer_bytes_ = 0; - int64 hop_bytes_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - StringPiece encoding_ = ""; - }; - FixedLengthRecordReader(const ::tensorflow::Scope& scope, int64 record_bytes); - FixedLengthRecordReader(const ::tensorflow::Scope& scope, int64 record_bytes, - const FixedLengthRecordReader::Attrs& attrs); - operator ::tensorflow::Output() const { return reader_handle; } - operator ::tensorflow::Input() const { return reader_handle; } - ::tensorflow::Node* node() const { return reader_handle.node(); } - - static Attrs HeaderBytes(int64 x) { - return Attrs().HeaderBytes(x); - } - static Attrs FooterBytes(int64 x) { - return Attrs().FooterBytes(x); - } - static Attrs HopBytes(int64 x) { - return Attrs().HopBytes(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - static Attrs Encoding(StringPiece x) { - return Attrs().Encoding(x); - } - - Operation operation; - ::tensorflow::Output reader_handle; -}; - -/// A Reader that outputs the queued work as both the key and value. -/// -/// To use, enqueue strings in a Queue. ReaderRead will take the front -/// work string and output (work, work). -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Optional attributes (see `Attrs`): -/// * container: If non-empty, this reader is placed in the given container. -/// Otherwise, a default container is used. -/// * shared_name: If non-empty, this reader is named in the given bucket -/// with this shared_name. Otherwise, the node name is used instead. -/// -/// Returns: -/// * `Output`: The handle to reference the Reader. -class IdentityReader { - public: - /// Optional attribute setters for IdentityReader - struct Attrs { - /// If non-empty, this reader is placed in the given container. - /// Otherwise, a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// If non-empty, this reader is named in the given bucket - /// with this shared_name. Otherwise, the node name is used instead. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - IdentityReader(const ::tensorflow::Scope& scope); - IdentityReader(const ::tensorflow::Scope& scope, const IdentityReader::Attrs& - attrs); - operator ::tensorflow::Output() const { return reader_handle; } - operator ::tensorflow::Input() const { return reader_handle; } - ::tensorflow::Node* node() const { return reader_handle.node(); } - - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output reader_handle; -}; - -/// A Reader that outputs the records from a LMDB file. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Optional attributes (see `Attrs`): -/// * container: If non-empty, this reader is placed in the given container. -/// Otherwise, a default container is used. -/// * shared_name: If non-empty, this reader is named in the given bucket -/// with this shared_name. Otherwise, the node name is used instead. -/// -/// Returns: -/// * `Output`: The handle to reference the Reader. -class LMDBReader { - public: - /// Optional attribute setters for LMDBReader - struct Attrs { - /// If non-empty, this reader is placed in the given container. - /// Otherwise, a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// If non-empty, this reader is named in the given bucket - /// with this shared_name. Otherwise, the node name is used instead. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - LMDBReader(const ::tensorflow::Scope& scope); - LMDBReader(const ::tensorflow::Scope& scope, const LMDBReader::Attrs& attrs); - operator ::tensorflow::Output() const { return reader_handle; } - operator ::tensorflow::Input() const { return reader_handle; } - ::tensorflow::Node* node() const { return reader_handle.node(); } - - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output reader_handle; -}; - -/// Returns the set of files matching one or more glob patterns. -/// -/// Note that this routine only supports wildcard characters in the -/// basename portion of the pattern, not in the directory portion. -/// Note also that the order of filenames returned can be non-deterministic. -/// -/// Arguments: -/// * scope: A Scope object -/// * pattern: Shell wildcard pattern(s). Scalar or vector of type string. -/// -/// Returns: -/// * `Output`: A vector of matching filenames. -class MatchingFiles { - public: - MatchingFiles(const ::tensorflow::Scope& scope, ::tensorflow::Input pattern); - operator ::tensorflow::Output() const { return filenames; } - operator ::tensorflow::Input() const { return filenames; } - ::tensorflow::Node* node() const { return filenames.node(); } - - Operation operation; - ::tensorflow::Output filenames; -}; - -/// V2 format specific: merges the metadata files of sharded checkpoints. The -/// -/// result is one logical checkpoint, with one physical metadata file and renamed -/// data files. -/// -/// Intended for "grouping" multiple checkpoints in a sharded checkpoint setup. -/// -/// If delete_old_dirs is true, attempts to delete recursively the dirname of each -/// path in the input checkpoint_prefixes. This is useful when those paths are non -/// user-facing temporary locations. -/// -/// Arguments: -/// * scope: A Scope object -/// * checkpoint_prefixes: prefixes of V2 checkpoints to merge. -/// * destination_prefix: scalar. The desired final prefix. Allowed to be the same -/// as one of the checkpoint_prefixes. -/// -/// Optional attributes (see `Attrs`): -/// * delete_old_dirs: see above. -/// -/// Returns: -/// * the created `Operation` -class MergeV2Checkpoints { - public: - /// Optional attribute setters for MergeV2Checkpoints - struct Attrs { - /// see above. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs DeleteOldDirs(bool x) { - Attrs ret = *this; - ret.delete_old_dirs_ = x; - return ret; - } - - bool delete_old_dirs_ = true; - }; - MergeV2Checkpoints(const ::tensorflow::Scope& scope, ::tensorflow::Input - checkpoint_prefixes, ::tensorflow::Input destination_prefix); - MergeV2Checkpoints(const ::tensorflow::Scope& scope, ::tensorflow::Input - checkpoint_prefixes, ::tensorflow::Input destination_prefix, - const MergeV2Checkpoints::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs DeleteOldDirs(bool x) { - return Attrs().DeleteOldDirs(x); - } - - Operation operation; -}; - -/// Reads and outputs the entire contents of the input filename. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The contents tensor. -class ReadFile { - public: - ReadFile(const ::tensorflow::Scope& scope, ::tensorflow::Input filename); - operator ::tensorflow::Output() const { return contents; } - operator ::tensorflow::Input() const { return contents; } - ::tensorflow::Node* node() const { return contents.node(); } - - Operation operation; - ::tensorflow::Output contents; -}; - -/// Returns the number of records this Reader has produced. -/// -/// This is the same as the number of ReaderRead executions that have -/// succeeded. -/// -/// Arguments: -/// * scope: A Scope object -/// * reader_handle: Handle to a Reader. -/// -/// Returns: -/// * `Output`: The records_produced tensor. -class ReaderNumRecordsProduced { - public: - ReaderNumRecordsProduced(const ::tensorflow::Scope& scope, ::tensorflow::Input - reader_handle); - operator ::tensorflow::Output() const { return records_produced; } - operator ::tensorflow::Input() const { return records_produced; } - ::tensorflow::Node* node() const { return records_produced.node(); } - - Operation operation; - ::tensorflow::Output records_produced; -}; - -/// Returns the number of work units this Reader has finished processing. -/// -/// Arguments: -/// * scope: A Scope object -/// * reader_handle: Handle to a Reader. -/// -/// Returns: -/// * `Output`: The units_completed tensor. -class ReaderNumWorkUnitsCompleted { - public: - ReaderNumWorkUnitsCompleted(const ::tensorflow::Scope& scope, - ::tensorflow::Input reader_handle); - operator ::tensorflow::Output() const { return units_completed; } - operator ::tensorflow::Input() const { return units_completed; } - ::tensorflow::Node* node() const { return units_completed.node(); } - - Operation operation; - ::tensorflow::Output units_completed; -}; - -/// Returns up to `num_records` (key, value) pairs produced by a Reader. -/// -/// Will dequeue from the input queue if necessary (e.g. when the -/// Reader needs to start reading from a new file since it has finished -/// with the previous file). -/// It may return less than `num_records` even before the last batch. -/// -/// Arguments: -/// * scope: A Scope object -/// * reader_handle: Handle to a `Reader`. -/// * queue_handle: Handle to a `Queue`, with string work items. -/// * num_records: number of records to read from `Reader`. -/// -/// Returns: -/// * `Output` keys: A 1-D tensor. -/// * `Output` values: A 1-D tensor. -class ReaderReadUpTo { - public: - ReaderReadUpTo(const ::tensorflow::Scope& scope, ::tensorflow::Input - reader_handle, ::tensorflow::Input queue_handle, - ::tensorflow::Input num_records); - - Operation operation; - ::tensorflow::Output keys; - ::tensorflow::Output values; -}; - -/// Returns the next record (key, value pair) produced by a Reader. -/// -/// Will dequeue from the input queue if necessary (e.g. when the -/// Reader needs to start reading from a new file since it has finished -/// with the previous file). -/// -/// Arguments: -/// * scope: A Scope object -/// * reader_handle: Handle to a Reader. -/// * queue_handle: Handle to a Queue, with string work items. -/// -/// Returns: -/// * `Output` key: A scalar. -/// * `Output` value: A scalar. -class ReaderRead { - public: - ReaderRead(const ::tensorflow::Scope& scope, ::tensorflow::Input reader_handle, - ::tensorflow::Input queue_handle); - - Operation operation; - ::tensorflow::Output key; - ::tensorflow::Output value; -}; - -/// Restore a Reader to its initial clean state. -/// -/// Arguments: -/// * scope: A Scope object -/// * reader_handle: Handle to a Reader. -/// -/// Returns: -/// * the created `Operation` -class ReaderReset { - public: - ReaderReset(const ::tensorflow::Scope& scope, ::tensorflow::Input - reader_handle); - operator ::tensorflow::Operation() const { return operation; } - - Operation operation; -}; - -/// Restore a reader to a previously saved state. -/// -/// Not all Readers support being restored, so this can produce an -/// Unimplemented error. -/// -/// Arguments: -/// * scope: A Scope object -/// * reader_handle: Handle to a Reader. -/// * state: Result of a ReaderSerializeState of a Reader with type -/// matching reader_handle. -/// -/// Returns: -/// * the created `Operation` -class ReaderRestoreState { - public: - ReaderRestoreState(const ::tensorflow::Scope& scope, ::tensorflow::Input - reader_handle, ::tensorflow::Input state); - operator ::tensorflow::Operation() const { return operation; } - - Operation operation; -}; - -/// Produce a string tensor that encodes the state of a Reader. -/// -/// Not all Readers support being serialized, so this can produce an -/// Unimplemented error. -/// -/// Arguments: -/// * scope: A Scope object -/// * reader_handle: Handle to a Reader. -/// -/// Returns: -/// * `Output`: The state tensor. -class ReaderSerializeState { - public: - ReaderSerializeState(const ::tensorflow::Scope& scope, ::tensorflow::Input - reader_handle); - operator ::tensorflow::Output() const { return state; } - operator ::tensorflow::Input() const { return state; } - ::tensorflow::Node* node() const { return state.node(); } - - Operation operation; - ::tensorflow::Output state; -}; - -/// Restores a tensor from checkpoint files. -/// -/// Reads a tensor stored in one or several files. If there are several files (for -/// instance because a tensor was saved as slices), `file_pattern` may contain -/// wildcard symbols (`*` and `?`) in the filename portion only, not in the -/// directory portion. -/// -/// If a `file_pattern` matches several files, `preferred_shard` can be used to hint -/// in which file the requested tensor is likely to be found. This op will first -/// open the file at index `preferred_shard` in the list of matching files and try -/// to restore tensors from that file. Only if some tensors or tensor slices are -/// not found in that first file, then the Op opens all the files. Setting -/// `preferred_shard` to match the value passed as the `shard` input -/// of a matching `Save` Op may speed up Restore. This attribute only affects -/// performance, not correctness. The default value -1 means files are processed in -/// order. -/// -/// See also `RestoreSlice`. -/// -/// Arguments: -/// * scope: A Scope object -/// * file_pattern: Must have a single element. The pattern of the files from -/// which we read the tensor. -/// * tensor_name: Must have a single element. The name of the tensor to be -/// restored. -/// * dt: The type of the tensor to be restored. -/// -/// Optional attributes (see `Attrs`): -/// * preferred_shard: Index of file to open first if multiple files match -/// `file_pattern`. -/// -/// Returns: -/// * `Output`: The restored tensor. -class Restore { - public: - /// Optional attribute setters for Restore - struct Attrs { - /// Index of file to open first if multiple files match - /// `file_pattern`. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs PreferredShard(int64 x) { - Attrs ret = *this; - ret.preferred_shard_ = x; - return ret; - } - - int64 preferred_shard_ = -1; - }; - Restore(const ::tensorflow::Scope& scope, ::tensorflow::Input file_pattern, - ::tensorflow::Input tensor_name, DataType dt); - Restore(const ::tensorflow::Scope& scope, ::tensorflow::Input file_pattern, - ::tensorflow::Input tensor_name, DataType dt, const Restore::Attrs& - attrs); - operator ::tensorflow::Output() const { return tensor; } - operator ::tensorflow::Input() const { return tensor; } - ::tensorflow::Node* node() const { return tensor.node(); } - - static Attrs PreferredShard(int64 x) { - return Attrs().PreferredShard(x); - } - - Operation operation; - ::tensorflow::Output tensor; -}; - -/// Restores a tensor from checkpoint files. -/// -/// This is like `Restore` except that restored tensor can be listed as filling -/// only a slice of a larger tensor. `shape_and_slice` specifies the shape of the -/// larger tensor and the slice that the restored tensor covers. -/// -/// The `shape_and_slice` input has the same format as the -/// elements of the `shapes_and_slices` input of the `SaveSlices` op. -/// -/// Arguments: -/// * scope: A Scope object -/// * file_pattern: Must have a single element. The pattern of the files from -/// which we read the tensor. -/// * tensor_name: Must have a single element. The name of the tensor to be -/// restored. -/// * shape_and_slice: Scalar. The shapes and slice specifications to use when -/// restoring a tensors. -/// * dt: The type of the tensor to be restored. -/// -/// Optional attributes (see `Attrs`): -/// * preferred_shard: Index of file to open first if multiple files match -/// `file_pattern`. See the documentation for `Restore`. -/// -/// Returns: -/// * `Output`: The restored tensor. -class RestoreSlice { - public: - /// Optional attribute setters for RestoreSlice - struct Attrs { - /// Index of file to open first if multiple files match - /// `file_pattern`. See the documentation for `Restore`. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs PreferredShard(int64 x) { - Attrs ret = *this; - ret.preferred_shard_ = x; - return ret; - } - - int64 preferred_shard_ = -1; - }; - RestoreSlice(const ::tensorflow::Scope& scope, ::tensorflow::Input - file_pattern, ::tensorflow::Input tensor_name, ::tensorflow::Input - shape_and_slice, DataType dt); - RestoreSlice(const ::tensorflow::Scope& scope, ::tensorflow::Input - file_pattern, ::tensorflow::Input tensor_name, ::tensorflow::Input - shape_and_slice, DataType dt, const RestoreSlice::Attrs& attrs); - operator ::tensorflow::Output() const { return tensor; } - operator ::tensorflow::Input() const { return tensor; } - ::tensorflow::Node* node() const { return tensor.node(); } - - static Attrs PreferredShard(int64 x) { - return Attrs().PreferredShard(x); - } - - Operation operation; - ::tensorflow::Output tensor; -}; - -/// Restores tensors from a V2 checkpoint. -/// -/// For backward compatibility with the V1 format, this Op currently allows -/// restoring from a V1 checkpoint as well: -/// - This Op first attempts to find the V2 index file pointed to by "prefix", and -/// if found proceed to read it as a V2 checkpoint; -/// - Otherwise the V1 read path is invoked. -/// Relying on this behavior is not recommended, as the ability to fall back to read -/// V1 might be deprecated and eventually removed. -/// -/// By default, restores the named tensors in full. If the caller wishes to restore -/// specific slices of stored tensors, "shape_and_slices" should be non-empty -/// strings and correspondingly well-formed. -/// -/// Callers must ensure all the named tensors are indeed stored in the checkpoint. -/// -/// Arguments: -/// * scope: A Scope object -/// * prefix: Must have a single element. The prefix of a V2 checkpoint. -/// * tensor_names: shape {N}. The names of the tensors to be restored. -/// * shape_and_slices: shape {N}. The slice specs of the tensors to be restored. -/// Empty strings indicate that they are non-partitioned tensors. -/// * dtypes: shape {N}. The list of expected dtype for the tensors. Must match -/// those stored in the checkpoint. -/// -/// Returns: -/// * `OutputList`: shape {N}. The restored tensors, whose shapes are read from the -/// checkpoint directly. -class RestoreV2 { - public: - RestoreV2(const ::tensorflow::Scope& scope, ::tensorflow::Input prefix, - ::tensorflow::Input tensor_names, ::tensorflow::Input - shape_and_slices, const DataTypeSlice& dtypes); - ::tensorflow::Output operator[](size_t index) const { return tensors[index]; } - - - Operation operation; - ::tensorflow::OutputList tensors; -}; - -/// Saves the input tensors to disk. -/// -/// The size of `tensor_names` must match the number of tensors in `data`. `data[i]` -/// is written to `filename` with name `tensor_names[i]`. -/// -/// See also `SaveSlices`. -/// -/// Arguments: -/// * scope: A Scope object -/// * filename: Must have a single element. The name of the file to which we write -/// the tensor. -/// * tensor_names: Shape `[N]`. The names of the tensors to be saved. -/// * data: `N` tensors to save. -/// -/// Returns: -/// * the created `Operation` -class Save { - public: - Save(const ::tensorflow::Scope& scope, ::tensorflow::Input filename, - ::tensorflow::Input tensor_names, ::tensorflow::InputList data); - operator ::tensorflow::Operation() const { return operation; } - - Operation operation; -}; - -/// Saves input tensors slices to disk. -/// -/// This is like `Save` except that tensors can be listed in the saved file as being -/// a slice of a larger tensor. `shapes_and_slices` specifies the shape of the -/// larger tensor and the slice that this tensor covers. `shapes_and_slices` must -/// have as many elements as `tensor_names`. -/// -/// Elements of the `shapes_and_slices` input must either be: -/// -/// * The empty string, in which case the corresponding tensor is -/// saved normally. -/// * A string of the form `dim0 dim1 ... dimN-1 slice-spec` where the -/// `dimI` are the dimensions of the larger tensor and `slice-spec` -/// specifies what part is covered by the tensor to save. -/// -/// `slice-spec` itself is a `:`-separated list: `slice0:slice1:...:sliceN-1` -/// where each `sliceI` is either: -/// -/// * The string `-` meaning that the slice covers all indices of this dimension -/// * `start,length` where `start` and `length` are integers. In that -/// case the slice covers `length` indices starting at `start`. -/// -/// See also `Save`. -/// -/// Arguments: -/// * scope: A Scope object -/// * filename: Must have a single element. The name of the file to which we write the -/// tensor. -/// * tensor_names: Shape `[N]`. The names of the tensors to be saved. -/// * shapes_and_slices: Shape `[N]`. The shapes and slice specifications to use when -/// saving the tensors. -/// * data: `N` tensors to save. -/// -/// Returns: -/// * the created `Operation` -class SaveSlices { - public: - SaveSlices(const ::tensorflow::Scope& scope, ::tensorflow::Input filename, - ::tensorflow::Input tensor_names, ::tensorflow::Input - shapes_and_slices, ::tensorflow::InputList data); - operator ::tensorflow::Operation() const { return operation; } - - Operation operation; -}; - -/// Saves tensors in V2 checkpoint format. -/// -/// By default, saves the named tensors in full. If the caller wishes to save -/// specific slices of full tensors, "shape_and_slices" should be non-empty strings -/// and correspondingly well-formed. -/// -/// Arguments: -/// * scope: A Scope object -/// * prefix: Must have a single element. The prefix of the V2 checkpoint to which we -/// write the tensors. -/// * tensor_names: shape {N}. The names of the tensors to be saved. -/// * shape_and_slices: shape {N}. The slice specs of the tensors to be saved. -/// Empty strings indicate that they are non-partitioned tensors. -/// * tensors: `N` tensors to save. -/// -/// Returns: -/// * the created `Operation` -class SaveV2 { - public: - SaveV2(const ::tensorflow::Scope& scope, ::tensorflow::Input prefix, - ::tensorflow::Input tensor_names, ::tensorflow::Input shape_and_slices, - ::tensorflow::InputList tensors); - operator ::tensorflow::Operation() const { return operation; } - - Operation operation; -}; - -/// Generate a sharded filename. The filename is printf formatted as -/// -/// %s-%05d-of-%05d, basename, shard, num_shards. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The filename tensor. -class ShardedFilename { - public: - ShardedFilename(const ::tensorflow::Scope& scope, ::tensorflow::Input basename, - ::tensorflow::Input shard, ::tensorflow::Input num_shards); - operator ::tensorflow::Output() const { return filename; } - operator ::tensorflow::Input() const { return filename; } - ::tensorflow::Node* node() const { return filename.node(); } - - Operation operation; - ::tensorflow::Output filename; -}; - -/// Generate a glob pattern matching all sharded file names. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The filename tensor. -class ShardedFilespec { - public: - ShardedFilespec(const ::tensorflow::Scope& scope, ::tensorflow::Input basename, - ::tensorflow::Input num_shards); - operator ::tensorflow::Output() const { return filename; } - operator ::tensorflow::Input() const { return filename; } - ::tensorflow::Node* node() const { return filename.node(); } - - Operation operation; - ::tensorflow::Output filename; -}; - -/// A Reader that outputs the records from a TensorFlow Records file. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Optional attributes (see `Attrs`): -/// * container: If non-empty, this reader is placed in the given container. -/// Otherwise, a default container is used. -/// * shared_name: If non-empty, this reader is named in the given bucket -/// with this shared_name. Otherwise, the node name is used instead. -/// -/// Returns: -/// * `Output`: The handle to reference the Reader. -class TFRecordReader { - public: - /// Optional attribute setters for TFRecordReader - struct Attrs { - /// If non-empty, this reader is placed in the given container. - /// Otherwise, a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// If non-empty, this reader is named in the given bucket - /// with this shared_name. Otherwise, the node name is used instead. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - /// Defaults to "" - TF_MUST_USE_RESULT Attrs CompressionType(StringPiece x) { - Attrs ret = *this; - ret.compression_type_ = x; - return ret; - } - - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - StringPiece compression_type_ = ""; - }; - TFRecordReader(const ::tensorflow::Scope& scope); - TFRecordReader(const ::tensorflow::Scope& scope, const TFRecordReader::Attrs& - attrs); - operator ::tensorflow::Output() const { return reader_handle; } - operator ::tensorflow::Input() const { return reader_handle; } - ::tensorflow::Node* node() const { return reader_handle.node(); } - - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - static Attrs CompressionType(StringPiece x) { - return Attrs().CompressionType(x); - } - - Operation operation; - ::tensorflow::Output reader_handle; -}; - -/// A Reader that outputs the lines of a file delimited by '\n'. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Optional attributes (see `Attrs`): -/// * skip_header_lines: Number of lines to skip from the beginning of every file. -/// * container: If non-empty, this reader is placed in the given container. -/// Otherwise, a default container is used. -/// * shared_name: If non-empty, this reader is named in the given bucket -/// with this shared_name. Otherwise, the node name is used instead. -/// -/// Returns: -/// * `Output`: The handle to reference the Reader. -class TextLineReader { - public: - /// Optional attribute setters for TextLineReader - struct Attrs { - /// Number of lines to skip from the beginning of every file. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs SkipHeaderLines(int64 x) { - Attrs ret = *this; - ret.skip_header_lines_ = x; - return ret; - } - - /// If non-empty, this reader is placed in the given container. - /// Otherwise, a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// If non-empty, this reader is named in the given bucket - /// with this shared_name. Otherwise, the node name is used instead. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - int64 skip_header_lines_ = 0; - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - TextLineReader(const ::tensorflow::Scope& scope); - TextLineReader(const ::tensorflow::Scope& scope, const TextLineReader::Attrs& - attrs); - operator ::tensorflow::Output() const { return reader_handle; } - operator ::tensorflow::Input() const { return reader_handle; } - ::tensorflow::Node* node() const { return reader_handle.node(); } - - static Attrs SkipHeaderLines(int64 x) { - return Attrs().SkipHeaderLines(x); - } - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output reader_handle; -}; - -/// A Reader that outputs the entire contents of a file as a value. -/// -/// To use, enqueue filenames in a Queue. The output of ReaderRead will -/// be a filename (key) and the contents of that file (value). -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Optional attributes (see `Attrs`): -/// * container: If non-empty, this reader is placed in the given container. -/// Otherwise, a default container is used. -/// * shared_name: If non-empty, this reader is named in the given bucket -/// with this shared_name. Otherwise, the node name is used instead. -/// -/// Returns: -/// * `Output`: The handle to reference the Reader. -class WholeFileReader { - public: - /// Optional attribute setters for WholeFileReader - struct Attrs { - /// If non-empty, this reader is placed in the given container. - /// Otherwise, a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// If non-empty, this reader is named in the given bucket - /// with this shared_name. Otherwise, the node name is used instead. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - WholeFileReader(const ::tensorflow::Scope& scope); - WholeFileReader(const ::tensorflow::Scope& scope, const WholeFileReader::Attrs& - attrs); - operator ::tensorflow::Output() const { return reader_handle; } - operator ::tensorflow::Input() const { return reader_handle; } - ::tensorflow::Node* node() const { return reader_handle.node(); } - - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output reader_handle; -}; - -/// Writes contents to the file at input filename. Creates file and recursively -/// -/// creates directory if not existing. -/// -/// Arguments: -/// * scope: A Scope object -/// * filename: scalar. The name of the file to which we write the contents. -/// * contents: scalar. The content to be written to the output file. -/// -/// Returns: -/// * the created `Operation` -class WriteFile { - public: - WriteFile(const ::tensorflow::Scope& scope, ::tensorflow::Input filename, - ::tensorflow::Input contents); - operator ::tensorflow::Operation() const { return operation; } - - Operation operation; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_IO_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/io_ops_internal.h b/linux/include/tensorflow/cc/ops/io_ops_internal.h deleted file mode 100755 index dcd3590cb..000000000 --- a/linux/include/tensorflow/cc/ops/io_ops_internal.h +++ /dev/null @@ -1,28 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_IO_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_IO_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup io_ops_internal Io Ops Internal -/// @{ - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_IO_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/linalg_ops.h b/linux/include/tensorflow/cc/ops/linalg_ops.h deleted file mode 100755 index 446f24d8f..000000000 --- a/linux/include/tensorflow/cc/ops/linalg_ops.h +++ /dev/null @@ -1,601 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_LINALG_OPS_H_ -#define TENSORFLOW_CC_OPS_LINALG_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup linalg_ops Linalg Ops -/// @{ - -/// Computes the Cholesky decomposition of one or more square matrices. -/// -/// The input is a tensor of shape `[..., M, M]` whose inner-most 2 dimensions -/// form square matrices. -/// -/// The input has to be symmetric and positive definite. Only the lower-triangular -/// part of the input will be used for this operation. The upper-triangular part -/// will not be read. -/// -/// The output is a tensor of the same shape as the input -/// containing the Cholesky decompositions for all input submatrices `[..., :, :]`. -/// -/// **Note**: The gradient computation on GPU is faster for large matrices but -/// not for large batch dimensions when the submatrices are small. In this -/// case it might be faster to use the CPU. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Shape is `[..., M, M]`. -/// -/// Returns: -/// * `Output`: Shape is `[..., M, M]`. -class Cholesky { - public: - Cholesky(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the reverse mode backpropagated gradient of the Cholesky algorithm. -/// -/// For an explanation see "Differentiation of the Cholesky algorithm" by -/// Iain Murray http://arxiv.org/abs/1602.07527. -/// -/// Arguments: -/// * scope: A Scope object -/// * l: Output of batch Cholesky algorithm l = cholesky(A). Shape is `[..., M, M]`. -/// Algorithm depends only on lower triangular part of the innermost matrices of -/// this tensor. -/// * grad: df/dl where f is some scalar function. Shape is `[..., M, M]`. -/// Algorithm depends only on lower triangular part of the innermost matrices of -/// this tensor. -/// -/// Returns: -/// * `Output`: Symmetrized version of df/dA . Shape is `[..., M, M]` -class CholeskyGrad { - public: - CholeskyGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input l, - ::tensorflow::Input grad); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the sign and the log of the absolute value of the determinant of -/// -/// one or more square matrices. -/// -/// The input is a tensor of shape `[N, M, M]` whose inner-most 2 dimensions -/// form square matrices. The outputs are two tensors containing the signs and -/// absolute values of the log determinants for all N input submatrices -/// `[..., :, :]` such that the determinant = sign*exp(log_abs_determinant). -/// The log_abs_determinant is computed as det(P)*sum(log(diag(LU))) where LU -/// is the LU decomposition of the input and P is the corresponding -/// permutation matrix. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Shape is `[N, M, M]`. -/// -/// Returns: -/// * `Output` sign: The signs of the log determinants of the inputs. Shape is `[N]`. -/// * `Output` log_abs_determinant: The logs of the absolute values of the determinants -/// of the N input matrices. Shape is `[N]`. -class LogMatrixDeterminant { - public: - LogMatrixDeterminant(const ::tensorflow::Scope& scope, ::tensorflow::Input - input); - - Operation operation; - ::tensorflow::Output sign; - ::tensorflow::Output log_abs_determinant; -}; - -/// Computes the determinant of one or more square matrices. -/// -/// The input is a tensor of shape `[..., M, M]` whose inner-most 2 dimensions -/// form square matrices. The output is a tensor containing the determinants -/// for all input submatrices `[..., :, :]`. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Shape is `[..., M, M]`. -/// -/// Returns: -/// * `Output`: Shape is `[...]`. -class MatrixDeterminant { - public: - MatrixDeterminant(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the inverse of one or more square invertible matrices or their -/// -/// adjoints (conjugate transposes). -/// -/// The input is a tensor of shape `[..., M, M]` whose inner-most 2 dimensions -/// form square matrices. The output is a tensor of the same shape as the input -/// containing the inverse for all input submatrices `[..., :, :]`. -/// -/// The op uses LU decomposition with partial pivoting to compute the inverses. -/// -/// If a matrix is not invertible there is no guarantee what the op does. It -/// may detect the condition and raise an exception or it may simply return a -/// garbage result. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Shape is `[..., M, M]`. -/// -/// Returns: -/// * `Output`: Shape is `[..., M, M]`. -/// -/// @compatibility(numpy) -/// Equivalent to np.linalg.inv -/// @end_compatibility -class MatrixInverse { - public: - /// Optional attribute setters for MatrixInverse - struct Attrs { - /// Defaults to false - TF_MUST_USE_RESULT Attrs Adjoint(bool x) { - Attrs ret = *this; - ret.adjoint_ = x; - return ret; - } - - bool adjoint_ = false; - }; - MatrixInverse(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - MatrixInverse(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - const MatrixInverse::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Adjoint(bool x) { - return Attrs().Adjoint(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Solves systems of linear equations. -/// -/// `Matrix` is a tensor of shape `[..., M, M]` whose inner-most 2 dimensions -/// form square matrices. `Rhs` is a tensor of shape `[..., M, K]`. The `output` is -/// a tensor shape `[..., M, K]`. If `adjoint` is `False` then each output matrix -/// satisfies `matrix[..., :, :] * output[..., :, :] = rhs[..., :, :]`. -/// If `adjoint` is `True` then each output matrix satisfies -/// `adjoint(matrix[..., :, :]) * output[..., :, :] = rhs[..., :, :]`. -/// -/// Arguments: -/// * scope: A Scope object -/// * matrix: Shape is `[..., M, M]`. -/// * rhs: Shape is `[..., M, K]`. -/// -/// Optional attributes (see `Attrs`): -/// * adjoint: Boolean indicating whether to solve with `matrix` or its (block-wise) -/// adjoint. -/// -/// Returns: -/// * `Output`: Shape is `[..., M, K]`. -class MatrixSolve { - public: - /// Optional attribute setters for MatrixSolve - struct Attrs { - /// Boolean indicating whether to solve with `matrix` or its (block-wise) - /// adjoint. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs Adjoint(bool x) { - Attrs ret = *this; - ret.adjoint_ = x; - return ret; - } - - bool adjoint_ = false; - }; - MatrixSolve(const ::tensorflow::Scope& scope, ::tensorflow::Input matrix, - ::tensorflow::Input rhs); - MatrixSolve(const ::tensorflow::Scope& scope, ::tensorflow::Input matrix, - ::tensorflow::Input rhs, const MatrixSolve::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Adjoint(bool x) { - return Attrs().Adjoint(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Solves one or more linear least-squares problems. -/// -/// `matrix` is a tensor of shape `[..., M, N]` whose inner-most 2 dimensions -/// form real or complex matrices of size `[M, N]`. `Rhs` is a tensor of the same -/// type as `matrix` and shape `[..., M, K]`. -/// The output is a tensor shape `[..., N, K]` where each output matrix solves -/// each of the equations -/// `matrix[..., :, :]` * `output[..., :, :]` = `rhs[..., :, :]` -/// in the least squares sense. -/// -/// We use the following notation for (complex) matrix and right-hand sides -/// in the batch: -/// -/// `matrix`=\\(A \in \mathbb{C}^{m \times n}\\), -/// `rhs`=\\(B \in \mathbb{C}^{m \times k}\\), -/// `output`=\\(X \in \mathbb{C}^{n \times k}\\), -/// `l2_regularizer`=\\(\lambda \in \mathbb{R}\\). -/// -/// If `fast` is `True`, then the solution is computed by solving the normal -/// equations using Cholesky decomposition. Specifically, if \\(m \ge n\\) then -/// \\(X = (A^H A + \lambda I)^{-1} A^H B\\), which solves the least-squares -/// problem \\(X = \mathrm{argmin}_{Z \in \Re^{n \times k} } ||A Z - B||_F^2 + \lambda ||Z||_F^2\\). -/// If \\(m \lt n\\) then `output` is computed as -/// \\(X = A^H (A A^H + \lambda I)^{-1} B\\), which (for \\(\lambda = 0\\)) is the -/// minimum-norm solution to the under-determined linear system, i.e. -/// \\(X = \mathrm{argmin}_{Z \in \mathbb{C}^{n \times k} } ||Z||_F^2 \\), -/// subject to \\(A Z = B\\). Notice that the fast path is only numerically stable -/// when \\(A\\) is numerically full rank and has a condition number -/// \\(\mathrm{cond}(A) \lt \frac{1}{\sqrt{\epsilon_{mach} } }\\) or \\(\lambda\\) is -/// sufficiently large. -/// -/// If `fast` is `False` an algorithm based on the numerically robust complete -/// orthogonal decomposition is used. This computes the minimum-norm -/// least-squares solution, even when \\(A\\) is rank deficient. This path is -/// typically 6-7 times slower than the fast path. If `fast` is `False` then -/// `l2_regularizer` is ignored. -/// -/// Arguments: -/// * scope: A Scope object -/// * matrix: Shape is `[..., M, N]`. -/// * rhs: Shape is `[..., M, K]`. -/// * l2_regularizer: Scalar tensor. -/// -/// @compatibility(numpy) -/// Equivalent to np.linalg.lstsq -/// @end_compatibility -/// -/// Returns: -/// * `Output`: Shape is `[..., N, K]`. -class MatrixSolveLs { - public: - /// Optional attribute setters for MatrixSolveLs - struct Attrs { - /// Defaults to true - TF_MUST_USE_RESULT Attrs Fast(bool x) { - Attrs ret = *this; - ret.fast_ = x; - return ret; - } - - bool fast_ = true; - }; - MatrixSolveLs(const ::tensorflow::Scope& scope, ::tensorflow::Input matrix, - ::tensorflow::Input rhs, ::tensorflow::Input l2_regularizer); - MatrixSolveLs(const ::tensorflow::Scope& scope, ::tensorflow::Input matrix, - ::tensorflow::Input rhs, ::tensorflow::Input l2_regularizer, - const MatrixSolveLs::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Fast(bool x) { - return Attrs().Fast(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Solves systems of linear equations with upper or lower triangular matrices by -/// -/// backsubstitution. -/// -/// `matrix` is a tensor of shape `[..., M, M]` whose inner-most 2 dimensions form -/// square matrices. If `lower` is `True` then the strictly upper triangular part -/// of each inner-most matrix is assumed to be zero and not accessed. -/// If `lower` is False then the strictly lower triangular part of each inner-most -/// matrix is assumed to be zero and not accessed. -/// `rhs` is a tensor of shape `[..., M, K]`. -/// -/// The output is a tensor of shape `[..., M, K]`. If `adjoint` is -/// `True` then the innermost matrices in `output` satisfy matrix equations -/// `matrix[..., :, :] * output[..., :, :] = rhs[..., :, :]`. -/// If `adjoint` is `False` then the strictly then the innermost matrices in -/// `output` satisfy matrix equations -/// `adjoint(matrix[..., i, k]) * output[..., k, j] = rhs[..., i, j]`. -/// -/// Arguments: -/// * scope: A Scope object -/// * matrix: Shape is `[..., M, M]`. -/// * rhs: Shape is `[..., M, K]`. -/// -/// Optional attributes (see `Attrs`): -/// * lower: Boolean indicating whether the innermost matrices in `matrix` are -/// lower or upper triangular. -/// * adjoint: Boolean indicating whether to solve with `matrix` or its (block-wise) -/// adjoint. -/// -/// @compatibility(numpy) -/// Equivalent to scipy.linalg.solve_triangular -/// @end_compatibility -/// -/// Returns: -/// * `Output`: Shape is `[..., M, K]`. -class MatrixTriangularSolve { - public: - /// Optional attribute setters for MatrixTriangularSolve - struct Attrs { - /// Boolean indicating whether the innermost matrices in `matrix` are - /// lower or upper triangular. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs Lower(bool x) { - Attrs ret = *this; - ret.lower_ = x; - return ret; - } - - /// Boolean indicating whether to solve with `matrix` or its (block-wise) - /// adjoint. - /// - /// @compatibility(numpy) - /// Equivalent to scipy.linalg.solve_triangular - /// @end_compatibility - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs Adjoint(bool x) { - Attrs ret = *this; - ret.adjoint_ = x; - return ret; - } - - bool lower_ = true; - bool adjoint_ = false; - }; - MatrixTriangularSolve(const ::tensorflow::Scope& scope, ::tensorflow::Input - matrix, ::tensorflow::Input rhs); - MatrixTriangularSolve(const ::tensorflow::Scope& scope, ::tensorflow::Input - matrix, ::tensorflow::Input rhs, const - MatrixTriangularSolve::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Lower(bool x) { - return Attrs().Lower(x); - } - static Attrs Adjoint(bool x) { - return Attrs().Adjoint(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the QR decompositions of one or more matrices. -/// -/// Computes the QR decomposition of each inner matrix in `tensor` such that -/// `tensor[..., :, :] = q[..., :, :] * r[..., :,:])` -/// -/// ```python -/// # a is a tensor. -/// # q is a tensor of orthonormal matrices. -/// # r is a tensor of upper triangular matrices. -/// q, r = qr(a) -/// q_full, r_full = qr(a, full_matrices=True) -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * input: A tensor of shape `[..., M, N]` whose inner-most 2 dimensions -/// form matrices of size `[M, N]`. Let `P` be the minimum of `M` and `N`. -/// -/// Optional attributes (see `Attrs`): -/// * full_matrices: If true, compute full-sized `q` and `r`. If false -/// (the default), compute only the leading `P` columns of `q`. -/// -/// Returns: -/// * `Output` q: Orthonormal basis for range of `a`. If `full_matrices` is `False` then -/// shape is `[..., M, P]`; if `full_matrices` is `True` then shape is -/// `[..., M, M]`. -/// * `Output` r: Triangular factor. If `full_matrices` is `False` then shape is -/// `[..., P, N]`. If `full_matrices` is `True` then shape is `[..., M, N]`. -class Qr { - public: - /// Optional attribute setters for Qr - struct Attrs { - /// If true, compute full-sized `q` and `r`. If false - /// (the default), compute only the leading `P` columns of `q`. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs FullMatrices(bool x) { - Attrs ret = *this; - ret.full_matrices_ = x; - return ret; - } - - bool full_matrices_ = false; - }; - Qr(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - Qr(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - Qr::Attrs& attrs); - - static Attrs FullMatrices(bool x) { - return Attrs().FullMatrices(x); - } - - Operation operation; - ::tensorflow::Output q; - ::tensorflow::Output r; -}; - -/// Computes the eigen decomposition of one or more square self-adjoint matrices. -/// -/// Computes the eigenvalues and (optionally) eigenvectors of each inner matrix in -/// `input` such that `input[..., :, :] = v[..., :, :] * diag(e[..., :])`. The eigenvalues -/// are sorted in non-decreasing order. -/// -/// ```python -/// # a is a tensor. -/// # e is a tensor of eigenvalues. -/// # v is a tensor of eigenvectors. -/// e, v = self_adjoint_eig(a) -/// e = self_adjoint_eig(a, compute_v=False) -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * input: `Tensor` input of shape `[N, N]`. -/// -/// Optional attributes (see `Attrs`): -/// * compute_v: If `True` then eigenvectors will be computed and returned in `v`. -/// Otherwise, only the eigenvalues will be computed. -/// -/// Returns: -/// * `Output` e: Eigenvalues. Shape is `[N]`. -/// * `Output` v: Eigenvectors. Shape is `[N, N]`. -class SelfAdjointEig { - public: - /// Optional attribute setters for SelfAdjointEig - struct Attrs { - /// If `True` then eigenvectors will be computed and returned in `v`. - /// Otherwise, only the eigenvalues will be computed. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs ComputeV(bool x) { - Attrs ret = *this; - ret.compute_v_ = x; - return ret; - } - - bool compute_v_ = true; - }; - SelfAdjointEig(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - SelfAdjointEig(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - const SelfAdjointEig::Attrs& attrs); - - static Attrs ComputeV(bool x) { - return Attrs().ComputeV(x); - } - - Operation operation; - ::tensorflow::Output e; - ::tensorflow::Output v; -}; - -/// Computes the singular value decompositions of one or more matrices. -/// -/// Computes the SVD of each inner matrix in `input` such that -/// `input[..., :, :] = u[..., :, :] * diag(s[..., :, :]) * transpose(v[..., :, :])` -/// -/// ```python -/// # a is a tensor containing a batch of matrices. -/// # s is a tensor of singular values for each matrix. -/// # u is the tensor containing of left singular vectors for each matrix. -/// # v is the tensor containing of right singular vectors for each matrix. -/// s, u, v = svd(a) -/// s, _, _ = svd(a, compute_uv=False) -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * input: A tensor of shape `[..., M, N]` whose inner-most 2 dimensions -/// form matrices of size `[M, N]`. Let `P` be the minimum of `M` and `N`. -/// -/// Optional attributes (see `Attrs`): -/// * compute_uv: If true, left and right singular vectors will be -/// computed and returned in `u` and `v`, respectively. -/// If false, `u` and `v` are not set and should never referenced. -/// * full_matrices: If true, compute full-sized `u` and `v`. If false -/// (the default), compute only the leading `P` singular vectors. -/// Ignored if `compute_uv` is `False`. -/// -/// Returns: -/// * `Output` s: Singular values. Shape is `[..., P]`. -/// * `Output` u: Left singular vectors. If `full_matrices` is `False` then shape is -/// `[..., M, P]`; if `full_matrices` is `True` then shape is -/// `[..., M, M]`. Undefined if `compute_uv` is `False`. -/// * `Output` v: Left singular vectors. If `full_matrices` is `False` then shape is -/// `[..., N, P]`. If `full_matrices` is `True` then shape is `[..., N, N]`. -/// Undefined if `compute_uv` is false. -class Svd { - public: - /// Optional attribute setters for Svd - struct Attrs { - /// If true, left and right singular vectors will be - /// computed and returned in `u` and `v`, respectively. - /// If false, `u` and `v` are not set and should never referenced. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs ComputeUv(bool x) { - Attrs ret = *this; - ret.compute_uv_ = x; - return ret; - } - - /// If true, compute full-sized `u` and `v`. If false - /// (the default), compute only the leading `P` singular vectors. - /// Ignored if `compute_uv` is `False`. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs FullMatrices(bool x) { - Attrs ret = *this; - ret.full_matrices_ = x; - return ret; - } - - bool compute_uv_ = true; - bool full_matrices_ = false; - }; - Svd(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - Svd(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - Svd::Attrs& attrs); - - static Attrs ComputeUv(bool x) { - return Attrs().ComputeUv(x); - } - static Attrs FullMatrices(bool x) { - return Attrs().FullMatrices(x); - } - - Operation operation; - ::tensorflow::Output s; - ::tensorflow::Output u; - ::tensorflow::Output v; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_LINALG_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/linalg_ops_internal.h b/linux/include/tensorflow/cc/ops/linalg_ops_internal.h deleted file mode 100755 index d169f881b..000000000 --- a/linux/include/tensorflow/cc/ops/linalg_ops_internal.h +++ /dev/null @@ -1,67 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_LINALG_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_LINALG_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup linalg_ops_internal Linalg Ops Internal -/// @{ - -/// Computes the matrix logarithm of one or more square matrices: -/// -/// -/// \\(log(exp(A)) = A\\) -/// -/// This op is only defined for complex matrices. If A is positive-definite and -/// real, then casting to a complex matrix, taking the logarithm and casting back -/// to a real matrix will give the correct result. -/// -/// This function computes the matrix logarithm using the Schur-Parlett algorithm. -/// Details of the algorithm can be found in Section 11.6.2 of: -/// Nicholas J. Higham, Functions of Matrices: Theory and Computation, SIAM 2008. -/// ISBN 978-0-898716-46-7. -/// -/// The input is a tensor of shape `[..., M, M]` whose inner-most 2 dimensions -/// form square matrices. The output is a tensor of the same shape as the input -/// containing the exponential for all input submatrices `[..., :, :]`. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Shape is `[..., M, M]`. -/// -/// Returns: -/// * `Output`: Shape is `[..., M, M]`. -/// -/// @compatibility(scipy) -/// Equivalent to scipy.linalg.logm -/// @end_compatibility -class MatrixLogarithm { - public: - MatrixLogarithm(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_LINALG_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/logging_ops.h b/linux/include/tensorflow/cc/ops/logging_ops.h deleted file mode 100755 index 876776506..000000000 --- a/linux/include/tensorflow/cc/ops/logging_ops.h +++ /dev/null @@ -1,530 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_LOGGING_OPS_H_ -#define TENSORFLOW_CC_OPS_LOGGING_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup logging_ops Logging Ops -/// @{ - -/// Asserts that the given condition is true. -/// -/// If `condition` evaluates to false, print the list of tensors in `data`. -/// `summarize` determines how many entries of the tensors to print. -/// -/// Arguments: -/// * scope: A Scope object -/// * condition: The condition to evaluate. -/// * data: The tensors to print out when condition is false. -/// -/// Optional attributes (see `Attrs`): -/// * summarize: Print this many entries of each tensor. -/// -/// Returns: -/// * the created `Operation` -class Assert { - public: - /// Optional attribute setters for Assert - struct Attrs { - /// Print this many entries of each tensor. - /// - /// Defaults to 3 - TF_MUST_USE_RESULT Attrs Summarize(int64 x) { - Attrs ret = *this; - ret.summarize_ = x; - return ret; - } - - int64 summarize_ = 3; - }; - Assert(const ::tensorflow::Scope& scope, ::tensorflow::Input condition, - ::tensorflow::InputList data); - Assert(const ::tensorflow::Scope& scope, ::tensorflow::Input condition, - ::tensorflow::InputList data, const Assert::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs Summarize(int64 x) { - return Attrs().Summarize(x); - } - - Operation operation; -}; - -/// Outputs a `Summary` protocol buffer with audio. -/// -/// The summary has up to `max_outputs` summary values containing audio. The -/// audio is built from `tensor` which must be 3-D with shape `[batch_size, -/// frames, channels]` or 2-D with shape `[batch_size, frames]`. The values are -/// assumed to be in the range of `[-1.0, 1.0]` with a sample rate of `sample_rate`. -/// -/// The `tag` argument is a scalar `Tensor` of type `string`. It is used to -/// build the `tag` of the summary values: -/// -/// * If `max_outputs` is 1, the summary value tag is '*tag*/audio'. -/// * If `max_outputs` is greater than 1, the summary value tags are -/// generated sequentially as '*tag*/audio/0', '*tag*/audio/1', etc. -/// -/// Arguments: -/// * scope: A Scope object -/// * tag: Scalar. Used to build the `tag` attribute of the summary values. -/// * tensor: 2-D of shape `[batch_size, frames]`. -/// * sample_rate: The sample rate of the signal in hertz. -/// -/// Optional attributes (see `Attrs`): -/// * max_outputs: Max number of batch elements to generate audio for. -/// -/// Returns: -/// * `Output`: Scalar. Serialized `Summary` protocol buffer. -class AudioSummary { - public: - /// Optional attribute setters for AudioSummary - struct Attrs { - /// Max number of batch elements to generate audio for. - /// - /// Defaults to 3 - TF_MUST_USE_RESULT Attrs MaxOutputs(int64 x) { - Attrs ret = *this; - ret.max_outputs_ = x; - return ret; - } - - int64 max_outputs_ = 3; - }; - AudioSummary(const ::tensorflow::Scope& scope, ::tensorflow::Input tag, - ::tensorflow::Input tensor, ::tensorflow::Input sample_rate); - AudioSummary(const ::tensorflow::Scope& scope, ::tensorflow::Input tag, - ::tensorflow::Input tensor, ::tensorflow::Input sample_rate, const - AudioSummary::Attrs& attrs); - operator ::tensorflow::Output() const { return summary; } - operator ::tensorflow::Input() const { return summary; } - ::tensorflow::Node* node() const { return summary.node(); } - - static Attrs MaxOutputs(int64 x) { - return Attrs().MaxOutputs(x); - } - - Operation operation; - ::tensorflow::Output summary; -}; - -/// Outputs a `Summary` protocol buffer with a histogram. -/// -/// The generated -/// [`Summary`](https://www.tensorflow.org/code/tensorflow/core/framework/summary.proto) -/// has one summary value containing a histogram for `values`. -/// -/// This op reports an `InvalidArgument` error if any value is not finite. -/// -/// Arguments: -/// * scope: A Scope object -/// * tag: Scalar. Tag to use for the `Summary.Value`. -/// * values: Any shape. Values to use to build the histogram. -/// -/// Returns: -/// * `Output`: Scalar. Serialized `Summary` protocol buffer. -class HistogramSummary { - public: - HistogramSummary(const ::tensorflow::Scope& scope, ::tensorflow::Input tag, - ::tensorflow::Input values); - operator ::tensorflow::Output() const { return summary; } - operator ::tensorflow::Input() const { return summary; } - ::tensorflow::Node* node() const { return summary.node(); } - - Operation operation; - ::tensorflow::Output summary; -}; - -/// Outputs a `Summary` protocol buffer with images. -/// -/// The summary has up to `max_images` summary values containing images. The -/// images are built from `tensor` which must be 4-D with shape `[batch_size, -/// height, width, channels]` and where `channels` can be: -/// -/// * 1: `tensor` is interpreted as Grayscale. -/// * 3: `tensor` is interpreted as RGB. -/// * 4: `tensor` is interpreted as RGBA. -/// -/// The images have the same number of channels as the input tensor. For float -/// input, the values are normalized one image at a time to fit in the range -/// `[0, 255]`. `uint8` values are unchanged. The op uses two different -/// normalization algorithms: -/// -/// * If the input values are all positive, they are rescaled so the largest one -/// is 255. -/// -/// * If any input value is negative, the values are shifted so input value 0.0 -/// is at 127. They are then rescaled so that either the smallest value is 0, -/// or the largest one is 255. -/// -/// The `tag` argument is a scalar `Tensor` of type `string`. It is used to -/// build the `tag` of the summary values: -/// -/// * If `max_images` is 1, the summary value tag is '*tag*/image'. -/// * If `max_images` is greater than 1, the summary value tags are -/// generated sequentially as '*tag*/image/0', '*tag*/image/1', etc. -/// -/// The `bad_color` argument is the color to use in the generated images for -/// non-finite input values. It is a `uint8` 1-D tensor of length `channels`. -/// Each element must be in the range `[0, 255]` (It represents the value of a -/// pixel in the output image). Non-finite values in the input tensor are -/// replaced by this tensor in the output image. The default value is the color -/// red. -/// -/// Arguments: -/// * scope: A Scope object -/// * tag: Scalar. Used to build the `tag` attribute of the summary values. -/// * tensor: 4-D of shape `[batch_size, height, width, channels]` where -/// `channels` is 1, 3, or 4. -/// -/// Optional attributes (see `Attrs`): -/// * max_images: Max number of batch elements to generate images for. -/// * bad_color: Color to use for pixels with non-finite values. -/// -/// Returns: -/// * `Output`: Scalar. Serialized `Summary` protocol buffer. -class ImageSummary { - public: - /// Optional attribute setters for ImageSummary - struct Attrs { - /// Max number of batch elements to generate images for. - /// - /// Defaults to 3 - TF_MUST_USE_RESULT Attrs MaxImages(int64 x) { - Attrs ret = *this; - ret.max_images_ = x; - return ret; - } - - /// Color to use for pixels with non-finite values. - /// - /// Defaults to Tensor - TF_MUST_USE_RESULT Attrs BadColor(const TensorProto& x) { - Attrs ret = *this; - ret.bad_color_ = x; - return ret; - } - - int64 max_images_ = 3; - TensorProto bad_color_ = Input::Initializer({255, 0, 0, 255}, {4}).AsTensorProto(); - }; - ImageSummary(const ::tensorflow::Scope& scope, ::tensorflow::Input tag, - ::tensorflow::Input tensor); - ImageSummary(const ::tensorflow::Scope& scope, ::tensorflow::Input tag, - ::tensorflow::Input tensor, const ImageSummary::Attrs& attrs); - operator ::tensorflow::Output() const { return summary; } - operator ::tensorflow::Input() const { return summary; } - ::tensorflow::Node* node() const { return summary.node(); } - - static Attrs MaxImages(int64 x) { - return Attrs().MaxImages(x); - } - static Attrs BadColor(const TensorProto& x) { - return Attrs().BadColor(x); - } - - Operation operation; - ::tensorflow::Output summary; -}; - -/// Merges summaries. -/// -/// This op creates a -/// [`Summary`](https://www.tensorflow.org/code/tensorflow/core/framework/summary.proto) -/// protocol buffer that contains the union of all the values in the input -/// summaries. -/// -/// When the Op is run, it reports an `InvalidArgument` error if multiple values -/// in the summaries to merge use the same tag. -/// -/// Arguments: -/// * scope: A Scope object -/// * inputs: Can be of any shape. Each must contain serialized `Summary` protocol -/// buffers. -/// -/// Returns: -/// * `Output`: Scalar. Serialized `Summary` protocol buffer. -class MergeSummary { - public: - MergeSummary(const ::tensorflow::Scope& scope, ::tensorflow::InputList inputs); - operator ::tensorflow::Output() const { return summary; } - operator ::tensorflow::Input() const { return summary; } - ::tensorflow::Node* node() const { return summary.node(); } - - Operation operation; - ::tensorflow::Output summary; -}; - -/// Prints a list of tensors. -/// -/// Passes `input` through to `output` and prints `data` when evaluating. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The tensor passed to `output` -/// * data: A list of tensors to print out when op is evaluated. -/// -/// Optional attributes (see `Attrs`): -/// * message: A string, prefix of the error message. -/// * first_n: Only log `first_n` number of times. -1 disables logging. -/// * summarize: Only print this many entries of each tensor. -/// -/// Returns: -/// * `Output`: = The unmodified `input` tensor -class Print { - public: - /// Optional attribute setters for Print - struct Attrs { - /// A string, prefix of the error message. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Message(StringPiece x) { - Attrs ret = *this; - ret.message_ = x; - return ret; - } - - /// Only log `first_n` number of times. -1 disables logging. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs FirstN(int64 x) { - Attrs ret = *this; - ret.first_n_ = x; - return ret; - } - - /// Only print this many entries of each tensor. - /// - /// Defaults to 3 - TF_MUST_USE_RESULT Attrs Summarize(int64 x) { - Attrs ret = *this; - ret.summarize_ = x; - return ret; - } - - StringPiece message_ = ""; - int64 first_n_ = -1; - int64 summarize_ = 3; - }; - Print(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::InputList data); - Print(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::InputList data, const Print::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Message(StringPiece x) { - return Attrs().Message(x); - } - static Attrs FirstN(int64 x) { - return Attrs().FirstN(x); - } - static Attrs Summarize(int64 x) { - return Attrs().Summarize(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Prints a string scalar. -/// -/// Prints a string scalar to the desired output_stream. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The string scalar to print. -/// -/// Optional attributes (see `Attrs`): -/// * output_stream: A string specifying the output stream or logging level to print to. -/// -/// Returns: -/// * the created `Operation` -class PrintV2 { - public: - /// Optional attribute setters for PrintV2 - struct Attrs { - /// A string specifying the output stream or logging level to print to. - /// - /// Defaults to "stderr" - TF_MUST_USE_RESULT Attrs OutputStream(StringPiece x) { - Attrs ret = *this; - ret.output_stream_ = x; - return ret; - } - - StringPiece output_stream_ = "stderr"; - }; - PrintV2(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - PrintV2(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - PrintV2::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs OutputStream(StringPiece x) { - return Attrs().OutputStream(x); - } - - Operation operation; -}; - -/// Outputs a `Summary` protocol buffer with scalar values. -/// -/// The input `tags` and `values` must have the same shape. The generated summary -/// has a summary value for each tag-value pair in `tags` and `values`. -/// -/// Arguments: -/// * scope: A Scope object -/// * tags: Tags for the summary. -/// * values: Same shape as `tags. Values for the summary. -/// -/// Returns: -/// * `Output`: Scalar. Serialized `Summary` protocol buffer. -class ScalarSummary { - public: - ScalarSummary(const ::tensorflow::Scope& scope, ::tensorflow::Input tags, - ::tensorflow::Input values); - operator ::tensorflow::Output() const { return summary; } - operator ::tensorflow::Input() const { return summary; } - ::tensorflow::Node* node() const { return summary.node(); } - - Operation operation; - ::tensorflow::Output summary; -}; - -/// Outputs a `Summary` protocol buffer with a tensor. -/// -/// This op is being phased out in favor of TensorSummaryV2, which lets callers pass -/// a tag as well as a serialized SummaryMetadata proto string that contains -/// plugin-specific data. We will keep this op to maintain backwards compatibility. -/// -/// Arguments: -/// * scope: A Scope object -/// * tensor: A tensor to serialize. -/// -/// Optional attributes (see `Attrs`): -/// * description: A json-encoded SummaryDescription proto. -/// * labels: An unused list of strings. -/// * display_name: An unused string. -/// -/// Returns: -/// * `Output`: The summary tensor. -class TensorSummary { - public: - /// Optional attribute setters for TensorSummary - struct Attrs { - /// A json-encoded SummaryDescription proto. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Description(StringPiece x) { - Attrs ret = *this; - ret.description_ = x; - return ret; - } - - /// An unused list of strings. - /// - /// Defaults to [] - TF_MUST_USE_RESULT Attrs Labels(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.labels_ = x; - return ret; - } - - /// An unused string. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs DisplayName(StringPiece x) { - Attrs ret = *this; - ret.display_name_ = x; - return ret; - } - - StringPiece description_ = ""; - gtl::ArraySlice labels_ = {}; - StringPiece display_name_ = ""; - }; - TensorSummary(const ::tensorflow::Scope& scope, ::tensorflow::Input tensor); - TensorSummary(const ::tensorflow::Scope& scope, ::tensorflow::Input tensor, - const TensorSummary::Attrs& attrs); - operator ::tensorflow::Output() const { return summary; } - operator ::tensorflow::Input() const { return summary; } - ::tensorflow::Node* node() const { return summary.node(); } - - static Attrs Description(StringPiece x) { - return Attrs().Description(x); - } - static Attrs Labels(const gtl::ArraySlice& x) { - return Attrs().Labels(x); - } - static Attrs DisplayName(StringPiece x) { - return Attrs().DisplayName(x); - } - - Operation operation; - ::tensorflow::Output summary; -}; - -/// Outputs a `Summary` protocol buffer with a tensor and per-plugin data. -/// -/// Arguments: -/// * scope: A Scope object -/// * tag: A string attached to this summary. Used for organization in TensorBoard. -/// * tensor: A tensor to serialize. -/// * serialized_summary_metadata: A serialized SummaryMetadata proto. Contains plugin -/// data. -/// -/// Returns: -/// * `Output`: The summary tensor. -class TensorSummaryV2 { - public: - TensorSummaryV2(const ::tensorflow::Scope& scope, ::tensorflow::Input tag, - ::tensorflow::Input tensor, ::tensorflow::Input - serialized_summary_metadata); - operator ::tensorflow::Output() const { return summary; } - operator ::tensorflow::Input() const { return summary; } - ::tensorflow::Node* node() const { return summary.node(); } - - Operation operation; - ::tensorflow::Output summary; -}; - -/// Provides the time since epoch in seconds. -/// -/// Returns the timestamp as a `float64` for seconds since the Unix epoch. -/// -/// Note: the timestamp is computed when the op is executed, not when it is added -/// to the graph. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The ts tensor. -class Timestamp { - public: - Timestamp(const ::tensorflow::Scope& scope); - operator ::tensorflow::Output() const { return ts; } - operator ::tensorflow::Input() const { return ts; } - ::tensorflow::Node* node() const { return ts.node(); } - - Operation operation; - ::tensorflow::Output ts; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_LOGGING_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/logging_ops_internal.h b/linux/include/tensorflow/cc/ops/logging_ops_internal.h deleted file mode 100755 index d49835bbc..000000000 --- a/linux/include/tensorflow/cc/ops/logging_ops_internal.h +++ /dev/null @@ -1,28 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_LOGGING_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_LOGGING_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup logging_ops_internal Logging Ops Internal -/// @{ - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_LOGGING_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/lookup_ops.h b/linux/include/tensorflow/cc/ops/lookup_ops.h deleted file mode 100755 index 8d60704fa..000000000 --- a/linux/include/tensorflow/cc/ops/lookup_ops.h +++ /dev/null @@ -1,610 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_LOOKUP_OPS_H_ -#define TENSORFLOW_CC_OPS_LOOKUP_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup lookup_ops Lookup Ops -/// @{ - -/// Creates a non-initialized hash table. -/// -/// This op creates a hash table, specifying the type of its keys and values. -/// Before using the table you will have to initialize it. After initialization the -/// table will be immutable. -/// -/// Arguments: -/// * scope: A Scope object -/// * key_dtype: Type of the table keys. -/// * value_dtype: Type of the table values. -/// -/// Optional attributes (see `Attrs`): -/// * container: If non-empty, this table is placed in the given container. -/// Otherwise, a default container is used. -/// * shared_name: If non-empty, this table is shared under the given name across -/// multiple sessions. -/// * use_node_name_sharing: If true and shared_name is empty, the table is shared -/// using the node name. -/// -/// Returns: -/// * `Output`: Handle to a table. -class HashTable { - public: - /// Optional attribute setters for HashTable - struct Attrs { - /// If non-empty, this table is placed in the given container. - /// Otherwise, a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// If non-empty, this table is shared under the given name across - /// multiple sessions. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - /// If true and shared_name is empty, the table is shared - /// using the node name. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseNodeNameSharing(bool x) { - Attrs ret = *this; - ret.use_node_name_sharing_ = x; - return ret; - } - - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - bool use_node_name_sharing_ = false; - }; - HashTable(const ::tensorflow::Scope& scope, DataType key_dtype, DataType - value_dtype); - HashTable(const ::tensorflow::Scope& scope, DataType key_dtype, DataType - value_dtype, const HashTable::Attrs& attrs); - operator ::tensorflow::Output() const { return table_handle; } - operator ::tensorflow::Input() const { return table_handle; } - ::tensorflow::Node* node() const { return table_handle.node(); } - - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - static Attrs UseNodeNameSharing(bool x) { - return Attrs().UseNodeNameSharing(x); - } - - Operation operation; - ::tensorflow::Output table_handle; -}; - -/// Initializes a table from a text file. -/// -/// It inserts one key-value pair into the table for each line of the file. -/// The key and value is extracted from the whole line content, elements from the -/// split line based on `delimiter` or the line number (starting from zero). -/// Where to extract the key and value from a line is specified by `key_index` and -/// `value_index`. -/// -/// - A value of -1 means use the line number(starting from zero), expects `int64`. -/// - A value of -2 means use the whole line content, expects `string`. -/// - A value >= 0 means use the index (starting at zero) of the split line based -/// on `delimiter`. -/// -/// Arguments: -/// * scope: A Scope object -/// * table_handle: Handle to a table which will be initialized. -/// * filename: Filename of a vocabulary text file. -/// * key_index: Column index in a line to get the table `key` values from. -/// * value_index: Column index that represents information of a line to get the table -/// `value` values from. -/// -/// Optional attributes (see `Attrs`): -/// * vocab_size: Number of elements of the file, use -1 if unknown. -/// * delimiter: Delimiter to separate fields in a line. -/// -/// Returns: -/// * the created `Operation` -class InitializeTableFromTextFile { - public: - /// Optional attribute setters for InitializeTableFromTextFile - struct Attrs { - /// Number of elements of the file, use -1 if unknown. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs VocabSize(int64 x) { - Attrs ret = *this; - ret.vocab_size_ = x; - return ret; - } - - /// Delimiter to separate fields in a line. - /// - /// Defaults to "\t" - TF_MUST_USE_RESULT Attrs Delimiter(StringPiece x) { - Attrs ret = *this; - ret.delimiter_ = x; - return ret; - } - - int64 vocab_size_ = -1; - StringPiece delimiter_ = "\t"; - }; - InitializeTableFromTextFile(const ::tensorflow::Scope& scope, - ::tensorflow::Input table_handle, - ::tensorflow::Input filename, int64 key_index, - int64 value_index); - InitializeTableFromTextFile(const ::tensorflow::Scope& scope, - ::tensorflow::Input table_handle, - ::tensorflow::Input filename, int64 key_index, - int64 value_index, const - InitializeTableFromTextFile::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs VocabSize(int64 x) { - return Attrs().VocabSize(x); - } - static Attrs Delimiter(StringPiece x) { - return Attrs().Delimiter(x); - } - - Operation operation; -}; - -/// Table initializer that takes two tensors for keys and values respectively. -/// -/// Arguments: -/// * scope: A Scope object -/// * table_handle: Handle to a table which will be initialized. -/// * keys: Keys of type Tkey. -/// * values: Values of type Tval. -/// -/// Returns: -/// * the created `Operation` -class InitializeTable { - public: - InitializeTable(const ::tensorflow::Scope& scope, ::tensorflow::Input - table_handle, ::tensorflow::Input keys, ::tensorflow::Input - values); - operator ::tensorflow::Operation() const { return operation; } - - Operation operation; -}; - -/// Outputs all keys and values in the table. -/// -/// Arguments: -/// * scope: A Scope object -/// * table_handle: Handle to the table. -/// -/// Returns: -/// * `Output` keys: Vector of all keys present in the table. -/// * `Output` values: Tensor of all values in the table. Indexed in parallel with `keys`. -class LookupTableExport { - public: - LookupTableExport(const ::tensorflow::Scope& scope, ::tensorflow::Input - table_handle, DataType Tkeys, DataType Tvalues); - - Operation operation; - ::tensorflow::Output keys; - ::tensorflow::Output values; -}; - -/// Looks up keys in a table, outputs the corresponding values. -/// -/// The tensor `keys` must of the same type as the keys of the table. -/// The output `values` is of the type of the table values. -/// -/// The scalar `default_value` is the value output for keys not present in the -/// table. It must also be of the same type as the table values. -/// -/// Arguments: -/// * scope: A Scope object -/// * table_handle: Handle to the table. -/// * keys: Any shape. Keys to look up. -/// -/// Returns: -/// * `Output`: Same shape as `keys`. Values found in the table, or `default_values` -/// for missing keys. -class LookupTableFind { - public: - LookupTableFind(const ::tensorflow::Scope& scope, ::tensorflow::Input - table_handle, ::tensorflow::Input keys, ::tensorflow::Input - default_value); - operator ::tensorflow::Output() const { return values; } - operator ::tensorflow::Input() const { return values; } - ::tensorflow::Node* node() const { return values.node(); } - - Operation operation; - ::tensorflow::Output values; -}; - -/// Replaces the contents of the table with the specified keys and values. -/// -/// The tensor `keys` must be of the same type as the keys of the table. -/// The tensor `values` must be of the type of the table values. -/// -/// Arguments: -/// * scope: A Scope object -/// * table_handle: Handle to the table. -/// * keys: Any shape. Keys to look up. -/// * values: Values to associate with keys. -/// -/// Returns: -/// * the created `Operation` -class LookupTableImport { - public: - LookupTableImport(const ::tensorflow::Scope& scope, ::tensorflow::Input - table_handle, ::tensorflow::Input keys, ::tensorflow::Input - values); - operator ::tensorflow::Operation() const { return operation; } - - Operation operation; -}; - -/// Updates the table to associates keys with values. -/// -/// The tensor `keys` must be of the same type as the keys of the table. -/// The tensor `values` must be of the type of the table values. -/// -/// Arguments: -/// * scope: A Scope object -/// * table_handle: Handle to the table. -/// * keys: Any shape. Keys to look up. -/// * values: Values to associate with keys. -/// -/// Returns: -/// * the created `Operation` -class LookupTableInsert { - public: - LookupTableInsert(const ::tensorflow::Scope& scope, ::tensorflow::Input - table_handle, ::tensorflow::Input keys, ::tensorflow::Input - values); - operator ::tensorflow::Operation() const { return operation; } - - Operation operation; -}; - -/// Computes the number of elements in the given table. -/// -/// Arguments: -/// * scope: A Scope object -/// * table_handle: Handle to the table. -/// -/// Returns: -/// * `Output`: Scalar that contains number of elements in the table. -class LookupTableSize { - public: - LookupTableSize(const ::tensorflow::Scope& scope, ::tensorflow::Input - table_handle); - operator ::tensorflow::Output() const { return size; } - operator ::tensorflow::Input() const { return size; } - ::tensorflow::Node* node() const { return size.node(); } - - Operation operation; - ::tensorflow::Output size; -}; - -/// Creates an empty hash table that uses tensors as the backing store. -/// -/// It uses "open addressing" with quadratic reprobing to resolve -/// collisions. -/// -/// This op creates a mutable hash table, specifying the type of its keys and -/// values. Each value must be a scalar. Data can be inserted into the table using -/// the insert operations. It does not support the initialization operation. -/// -/// Arguments: -/// * scope: A Scope object -/// * empty_key: The key used to represent empty key buckets internally. Must not -/// be used in insert or lookup operations. -/// * value_dtype: Type of the table values. -/// -/// Optional attributes (see `Attrs`): -/// * container: If non-empty, this table is placed in the given container. -/// Otherwise, a default container is used. -/// * shared_name: If non-empty, this table is shared under the given name across -/// multiple sessions. -/// * value_shape: The shape of each value. -/// * initial_num_buckets: The initial number of hash table buckets. Must be a power -/// to 2. -/// * max_load_factor: The maximum ratio between number of entries and number of -/// buckets before growing the table. Must be between 0 and 1. -/// -/// Returns: -/// * `Output`: Handle to a table. -class MutableDenseHashTable { - public: - /// Optional attribute setters for MutableDenseHashTable - struct Attrs { - /// If non-empty, this table is placed in the given container. - /// Otherwise, a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// If non-empty, this table is shared under the given name across - /// multiple sessions. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseNodeNameSharing(bool x) { - Attrs ret = *this; - ret.use_node_name_sharing_ = x; - return ret; - } - - /// The shape of each value. - /// - /// Defaults to [] - TF_MUST_USE_RESULT Attrs ValueShape(PartialTensorShape x) { - Attrs ret = *this; - ret.value_shape_ = x; - return ret; - } - - /// The initial number of hash table buckets. Must be a power - /// to 2. - /// - /// Defaults to 131072 - TF_MUST_USE_RESULT Attrs InitialNumBuckets(int64 x) { - Attrs ret = *this; - ret.initial_num_buckets_ = x; - return ret; - } - - /// The maximum ratio between number of entries and number of - /// buckets before growing the table. Must be between 0 and 1. - /// - /// Defaults to 0.8 - TF_MUST_USE_RESULT Attrs MaxLoadFactor(float x) { - Attrs ret = *this; - ret.max_load_factor_ = x; - return ret; - } - - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - bool use_node_name_sharing_ = false; - PartialTensorShape value_shape_ = {}; - int64 initial_num_buckets_ = 131072; - float max_load_factor_ = 0.8f; - }; - MutableDenseHashTable(const ::tensorflow::Scope& scope, ::tensorflow::Input - empty_key, DataType value_dtype); - MutableDenseHashTable(const ::tensorflow::Scope& scope, ::tensorflow::Input - empty_key, DataType value_dtype, const - MutableDenseHashTable::Attrs& attrs); - operator ::tensorflow::Output() const { return table_handle; } - operator ::tensorflow::Input() const { return table_handle; } - ::tensorflow::Node* node() const { return table_handle.node(); } - - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - static Attrs UseNodeNameSharing(bool x) { - return Attrs().UseNodeNameSharing(x); - } - static Attrs ValueShape(PartialTensorShape x) { - return Attrs().ValueShape(x); - } - static Attrs InitialNumBuckets(int64 x) { - return Attrs().InitialNumBuckets(x); - } - static Attrs MaxLoadFactor(float x) { - return Attrs().MaxLoadFactor(x); - } - - Operation operation; - ::tensorflow::Output table_handle; -}; - -/// Creates an empty hash table. -/// -/// This op creates a mutable hash table, specifying the type of its keys and -/// values. Each value must be a vector. Data can be inserted into the table using -/// the insert operations. It does not support the initialization operation. -/// -/// Arguments: -/// * scope: A Scope object -/// * key_dtype: Type of the table keys. -/// * value_dtype: Type of the table values. -/// -/// Optional attributes (see `Attrs`): -/// * container: If non-empty, this table is placed in the given container. -/// Otherwise, a default container is used. -/// * shared_name: If non-empty, this table is shared under the given name across -/// multiple sessions. -/// -/// Returns: -/// * `Output`: Handle to a table. -class MutableHashTableOfTensors { - public: - /// Optional attribute setters for MutableHashTableOfTensors - struct Attrs { - /// If non-empty, this table is placed in the given container. - /// Otherwise, a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// If non-empty, this table is shared under the given name across - /// multiple sessions. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseNodeNameSharing(bool x) { - Attrs ret = *this; - ret.use_node_name_sharing_ = x; - return ret; - } - - /// Defaults to [] - TF_MUST_USE_RESULT Attrs ValueShape(PartialTensorShape x) { - Attrs ret = *this; - ret.value_shape_ = x; - return ret; - } - - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - bool use_node_name_sharing_ = false; - PartialTensorShape value_shape_ = {}; - }; - MutableHashTableOfTensors(const ::tensorflow::Scope& scope, DataType key_dtype, - DataType value_dtype); - MutableHashTableOfTensors(const ::tensorflow::Scope& scope, DataType key_dtype, - DataType value_dtype, const - MutableHashTableOfTensors::Attrs& attrs); - operator ::tensorflow::Output() const { return table_handle; } - operator ::tensorflow::Input() const { return table_handle; } - ::tensorflow::Node* node() const { return table_handle.node(); } - - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - static Attrs UseNodeNameSharing(bool x) { - return Attrs().UseNodeNameSharing(x); - } - static Attrs ValueShape(PartialTensorShape x) { - return Attrs().ValueShape(x); - } - - Operation operation; - ::tensorflow::Output table_handle; -}; - -/// Creates an empty hash table. -/// -/// This op creates a mutable hash table, specifying the type of its keys and -/// values. Each value must be a scalar. Data can be inserted into the table using -/// the insert operations. It does not support the initialization operation. -/// -/// Arguments: -/// * scope: A Scope object -/// * key_dtype: Type of the table keys. -/// * value_dtype: Type of the table values. -/// -/// Optional attributes (see `Attrs`): -/// * container: If non-empty, this table is placed in the given container. -/// Otherwise, a default container is used. -/// * shared_name: If non-empty, this table is shared under the given name across -/// multiple sessions. -/// * use_node_name_sharing: If true and shared_name is empty, the table is shared -/// using the node name. -/// -/// Returns: -/// * `Output`: Handle to a table. -class MutableHashTable { - public: - /// Optional attribute setters for MutableHashTable - struct Attrs { - /// If non-empty, this table is placed in the given container. - /// Otherwise, a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// If non-empty, this table is shared under the given name across - /// multiple sessions. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - /// If true and shared_name is empty, the table is shared - /// using the node name. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseNodeNameSharing(bool x) { - Attrs ret = *this; - ret.use_node_name_sharing_ = x; - return ret; - } - - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - bool use_node_name_sharing_ = false; - }; - MutableHashTable(const ::tensorflow::Scope& scope, DataType key_dtype, DataType - value_dtype); - MutableHashTable(const ::tensorflow::Scope& scope, DataType key_dtype, DataType - value_dtype, const MutableHashTable::Attrs& attrs); - operator ::tensorflow::Output() const { return table_handle; } - operator ::tensorflow::Input() const { return table_handle; } - ::tensorflow::Node* node() const { return table_handle.node(); } - - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - static Attrs UseNodeNameSharing(bool x) { - return Attrs().UseNodeNameSharing(x); - } - - Operation operation; - ::tensorflow::Output table_handle; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_LOOKUP_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/lookup_ops_internal.h b/linux/include/tensorflow/cc/ops/lookup_ops_internal.h deleted file mode 100755 index c83c91431..000000000 --- a/linux/include/tensorflow/cc/ops/lookup_ops_internal.h +++ /dev/null @@ -1,28 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_LOOKUP_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_LOOKUP_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup lookup_ops_internal Lookup Ops Internal -/// @{ - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_LOOKUP_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/manip_ops.h b/linux/include/tensorflow/cc/ops/manip_ops.h deleted file mode 100755 index 564d5c0f7..000000000 --- a/linux/include/tensorflow/cc/ops/manip_ops.h +++ /dev/null @@ -1,76 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_MANIP_OPS_H_ -#define TENSORFLOW_CC_OPS_MANIP_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup manip_ops Manip Ops -/// @{ - -/// Rolls the elements of a tensor along an axis. -/// -/// The elements are shifted positively (towards larger indices) by the offset of -/// `shift` along the dimension of `axis`. Negative `shift` values will shift -/// elements in the opposite direction. Elements that roll passed the last position -/// will wrap around to the first and vice versa. Multiple shifts along multiple -/// axes may be specified. -/// -/// For example: -/// -/// ``` -/// # 't' is [0, 1, 2, 3, 4] -/// roll(t, shift=2, axis=0) ==> [3, 4, 0, 1, 2] -/// -/// # shifting along multiple dimensions -/// # 't' is [[0, 1, 2, 3, 4], [5, 6, 7, 8, 9]] -/// roll(t, shift=[1, -2], axis=[0, 1]) ==> [[7, 8, 9, 5, 6], [2, 3, 4, 0, 1]] -/// -/// # shifting along the same axis multiple times -/// # 't' is [[0, 1, 2, 3, 4], [5, 6, 7, 8, 9]] -/// roll(t, shift=[2, -3], axis=[1, 1]) ==> [[1, 2, 3, 4, 0], [6, 7, 8, 9, 5]] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * shift: Dimension must be 0-D or 1-D. `shift[i]` specifies the number of places by which -/// elements are shifted positively (towards larger indices) along the dimension -/// specified by `axis[i]`. Negative shifts will roll the elements in the opposite -/// direction. -/// * axis: Dimension must be 0-D or 1-D. `axis[i]` specifies the dimension that the shift -/// `shift[i]` should occur. If the same axis is referenced more than once, the -/// total shift for that axis will be the sum of all the shifts that belong to that -/// axis. -/// -/// Returns: -/// * `Output`: Has the same shape and size as the input. The elements are shifted -/// positively (towards larger indices) by the offsets of `shift` along the -/// dimensions of `axis`. -class Roll { - public: - Roll(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input shift, ::tensorflow::Input axis); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_MANIP_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/manip_ops_internal.h b/linux/include/tensorflow/cc/ops/manip_ops_internal.h deleted file mode 100755 index cdf273e5c..000000000 --- a/linux/include/tensorflow/cc/ops/manip_ops_internal.h +++ /dev/null @@ -1,28 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_MANIP_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_MANIP_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup manip_ops_internal Manip Ops Internal -/// @{ - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_MANIP_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/math_ops.h b/linux/include/tensorflow/cc/ops/math_ops.h deleted file mode 100755 index e78f10c29..000000000 --- a/linux/include/tensorflow/cc/ops/math_ops.h +++ /dev/null @@ -1,4102 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_MATH_OPS_H_ -#define TENSORFLOW_CC_OPS_MATH_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup math_ops Math Ops -/// @{ - -/// Computes the absolute value of a tensor. -/// -/// Given a tensor `x`, this operation returns a tensor containing the absolute -/// value of each element in `x`. For example, if x is an input element and y is -/// an output element, this operation computes \\(y = |x|\\). -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Abs { - public: - Abs(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Returns the element-wise sum of a list of tensors. -/// -/// `tf.accumulate_n_v2` performs the same operation as `tf.add_n`, but does not -/// wait for all of its inputs to be ready before beginning to sum. This can -/// save memory if inputs are ready at different times, since minimum temporary -/// storage is proportional to the output size rather than the inputs size. -/// -/// Unlike the original `accumulate_n`, `accumulate_n_v2` is differentiable. -/// -/// Returns a `Tensor` of same shape and type as the elements of `inputs`. -/// -/// Arguments: -/// * scope: A Scope object -/// * inputs: A list of `Tensor` objects, each with same shape and type. -/// * shape: Shape of elements of `inputs`. -/// -/// Returns: -/// * `Output`: The sum tensor. -class AccumulateNV2 { - public: - AccumulateNV2(const ::tensorflow::Scope& scope, ::tensorflow::InputList inputs, - PartialTensorShape shape); - operator ::tensorflow::Output() const { return sum; } - operator ::tensorflow::Input() const { return sum; } - ::tensorflow::Node* node() const { return sum.node(); } - - Operation operation; - ::tensorflow::Output sum; -}; - -/// Computes acos of x element-wise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Acos { - public: - Acos(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes inverse hyperbolic cosine of x element-wise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Acosh { - public: - Acosh(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Returns x + y element-wise. -/// -/// *NOTE*: `Add` supports broadcasting. `AddN` does not. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class Add { - public: - Add(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Add all input tensors element wise. -/// -/// Arguments: -/// * scope: A Scope object -/// * inputs: Must all be the same size and shape. -/// -/// Returns: -/// * `Output`: The sum tensor. -class AddN { - public: - AddN(const ::tensorflow::Scope& scope, ::tensorflow::InputList inputs); - operator ::tensorflow::Output() const { return sum; } - operator ::tensorflow::Input() const { return sum; } - ::tensorflow::Node* node() const { return sum.node(); } - - Operation operation; - ::tensorflow::Output sum; -}; - -/// Returns x + y element-wise. -/// -/// *NOTE*: `Add` supports broadcasting. `AddN` does not. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class AddV2 { - public: - AddV2(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Computes the "logical and" of elements across dimensions of a tensor. -/// -/// Reduces `input` along the dimensions given in `axis`. Unless -/// `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in -/// `axis`. If `keep_dims` is true, the reduced dimensions are -/// retained with length 1. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The tensor to reduce. -/// * axis: The dimensions to reduce. Must be in the range -/// `[-rank(input), rank(input))`. -/// -/// Optional attributes (see `Attrs`): -/// * keep_dims: If true, retain reduced dimensions with length 1. -/// -/// Returns: -/// * `Output`: The reduced tensor. -/// -/// Aliases: -/// * ReduceAll -class All { - public: - /// Optional attribute setters for All - struct Attrs { - /// If true, retain reduced dimensions with length 1. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs KeepDims(bool x) { - Attrs ret = *this; - ret.keep_dims_ = x; - return ret; - } - - bool keep_dims_ = false; - }; - All(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input axis); - All(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input axis, const All::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs KeepDims(bool x) { - return Attrs().KeepDims(x); - } - - Operation operation; - ::tensorflow::Output output; -}; -typedef All ReduceAll; - -/// Returns the argument of a complex number. -/// -/// Given a tensor `input` of complex numbers, this operation returns a tensor of -/// type `float` that is the argument of each element in `input`. All elements in -/// `input` must be complex numbers of the form \\(a + bj\\), where *a* -/// is the real part and *b* is the imaginary part. -/// -/// The argument returned by this operation is of the form \\(atan2(b, a)\\). -/// -/// For example: -/// -/// ``` -/// # tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j] -/// tf.angle(input) ==> [2.0132, 1.056] -/// ``` -/// -/// @compatibility(numpy) -/// Equivalent to np.angle. -/// @end_compatibility -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class Angle { - public: - /// Optional attribute setters for Angle - struct Attrs { - /// Defaults to DT_FLOAT - TF_MUST_USE_RESULT Attrs Tout(DataType x) { - Attrs ret = *this; - ret.Tout_ = x; - return ret; - } - - DataType Tout_ = DT_FLOAT; - }; - Angle(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - Angle(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - Angle::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Tout(DataType x) { - return Attrs().Tout(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the "logical or" of elements across dimensions of a tensor. -/// -/// Reduces `input` along the dimensions given in `axis`. Unless -/// `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in -/// `axis`. If `keep_dims` is true, the reduced dimensions are -/// retained with length 1. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The tensor to reduce. -/// * axis: The dimensions to reduce. Must be in the range -/// `[-rank(input), rank(input))`. -/// -/// Optional attributes (see `Attrs`): -/// * keep_dims: If true, retain reduced dimensions with length 1. -/// -/// Returns: -/// * `Output`: The reduced tensor. -/// -/// Aliases: -/// * ReduceAny -class Any { - public: - /// Optional attribute setters for Any - struct Attrs { - /// If true, retain reduced dimensions with length 1. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs KeepDims(bool x) { - Attrs ret = *this; - ret.keep_dims_ = x; - return ret; - } - - bool keep_dims_ = false; - }; - Any(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input axis); - Any(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input axis, const Any::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs KeepDims(bool x) { - return Attrs().KeepDims(x); - } - - Operation operation; - ::tensorflow::Output output; -}; -typedef Any ReduceAny; - -/// Returns the truth value of abs(x-y) < tolerance element-wise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class ApproximateEqual { - public: - /// Optional attribute setters for ApproximateEqual - struct Attrs { - /// Defaults to 1e-05 - TF_MUST_USE_RESULT Attrs Tolerance(float x) { - Attrs ret = *this; - ret.tolerance_ = x; - return ret; - } - - float tolerance_ = 1e-05f; - }; - ApproximateEqual(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - ApproximateEqual(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y, const ApproximateEqual::Attrs& attrs); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - static Attrs Tolerance(float x) { - return Attrs().Tolerance(x); - } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Returns the index with the largest value across dimensions of a tensor. -/// -/// Note that in case of ties the identity of the return value is not guaranteed. -/// -/// Arguments: -/// * scope: A Scope object -/// * dimension: int32 or int64, must be in the range `[-rank(input), rank(input))`. -/// Describes which dimension of the input Tensor to reduce across. For vectors, -/// use dimension = 0. -/// -/// Returns: -/// * `Output`: The output tensor. -class ArgMax { - public: - /// Optional attribute setters for ArgMax - struct Attrs { - /// Defaults to DT_INT64 - TF_MUST_USE_RESULT Attrs OutputType(DataType x) { - Attrs ret = *this; - ret.output_type_ = x; - return ret; - } - - DataType output_type_ = DT_INT64; - }; - ArgMax(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input dimension); - ArgMax(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input dimension, const ArgMax::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs OutputType(DataType x) { - return Attrs().OutputType(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Returns the index with the smallest value across dimensions of a tensor. -/// -/// Note that in case of ties the identity of the return value is not guaranteed. -/// -/// Arguments: -/// * scope: A Scope object -/// * dimension: int32 or int64, must be in the range `[-rank(input), rank(input))`. -/// Describes which dimension of the input Tensor to reduce across. For vectors, -/// use dimension = 0. -/// -/// Returns: -/// * `Output`: The output tensor. -class ArgMin { - public: - /// Optional attribute setters for ArgMin - struct Attrs { - /// Defaults to DT_INT64 - TF_MUST_USE_RESULT Attrs OutputType(DataType x) { - Attrs ret = *this; - ret.output_type_ = x; - return ret; - } - - DataType output_type_ = DT_INT64; - }; - ArgMin(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input dimension); - ArgMin(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input dimension, const ArgMin::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs OutputType(DataType x) { - return Attrs().OutputType(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes asin of x element-wise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Asin { - public: - Asin(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes inverse hyperbolic sine of x element-wise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Asinh { - public: - Asinh(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes atan of x element-wise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Atan { - public: - Atan(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes arctangent of `y/x` element-wise, respecting signs of the arguments. -/// -/// This is the angle \( \theta \in [-\pi, \pi] \) such that -/// \[ x = r \cos(\theta) \] -/// and -/// \[ y = r \sin(\theta) \] -/// where \(r = \sqrt(x^2 + y^2) \). -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class Atan2 { - public: - Atan2(const ::tensorflow::Scope& scope, ::tensorflow::Input y, - ::tensorflow::Input x); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Computes inverse hyperbolic tangent of x element-wise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Atanh { - public: - Atanh(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Multiplies slices of two tensors in batches. -/// -/// Multiplies all slices of `Tensor` `x` and `y` (each slice can be -/// viewed as an element of a batch), and arranges the individual results -/// in a single output tensor of the same batch size. Each of the -/// individual slices can optionally be adjointed (to adjoint a matrix -/// means to transpose and conjugate it) before multiplication by setting -/// the `adj_x` or `adj_y` flag to `True`, which are by default `False`. -/// -/// The input tensors `x` and `y` are 2-D or higher with shape `[..., r_x, c_x]` -/// and `[..., r_y, c_y]`. -/// -/// The output tensor is 2-D or higher with shape `[..., r_o, c_o]`, where: -/// -/// r_o = c_x if adj_x else r_x -/// c_o = r_y if adj_y else c_y -/// -/// It is computed as: -/// -/// output[..., :, :] = matrix(x[..., :, :]) * matrix(y[..., :, :]) -/// -/// Arguments: -/// * scope: A Scope object -/// * x: 2-D or higher with shape `[..., r_x, c_x]`. -/// * y: 2-D or higher with shape `[..., r_y, c_y]`. -/// -/// Optional attributes (see `Attrs`): -/// * adj_x: If `True`, adjoint the slices of `x`. Defaults to `False`. -/// * adj_y: If `True`, adjoint the slices of `y`. Defaults to `False`. -/// -/// Returns: -/// * `Output`: 3-D or higher with shape `[..., r_o, c_o]` -class BatchMatMul { - public: - /// Optional attribute setters for BatchMatMul - struct Attrs { - /// If `True`, adjoint the slices of `x`. Defaults to `False`. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs AdjX(bool x) { - Attrs ret = *this; - ret.adj_x_ = x; - return ret; - } - - /// If `True`, adjoint the slices of `y`. Defaults to `False`. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs AdjY(bool x) { - Attrs ret = *this; - ret.adj_y_ = x; - return ret; - } - - bool adj_x_ = false; - bool adj_y_ = false; - }; - BatchMatMul(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - BatchMatMul(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y, const BatchMatMul::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs AdjX(bool x) { - return Attrs().AdjX(x); - } - static Attrs AdjY(bool x) { - return Attrs().AdjY(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the Bessel i0e function of `x` element-wise. -/// -/// Exponentially scaled modified Bessel function of order 0 defined as -/// `bessel_i0e(x) = exp(-abs(x)) bessel_i0(x)`. -/// -/// This function is faster and numerically stabler than `bessel_i0(x)`. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class BesselI0e { - public: - BesselI0e(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes the Bessel i1e function of `x` element-wise. -/// -/// Exponentially scaled modified Bessel function of order 0 defined as -/// `bessel_i1e(x) = exp(-abs(x)) bessel_i1(x)`. -/// -/// This function is faster and numerically stabler than `bessel_i1(x)`. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class BesselI1e { - public: - BesselI1e(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Compute the regularized incomplete beta integral \\(I_x(a, b)\\). -/// -/// The regularized incomplete beta integral is defined as: -/// -/// -/// \\(I_x(a, b) = \frac{B(x; a, b)}{B(a, b)}\\) -/// -/// where -/// -/// -/// \\(B(x; a, b) = \int_0^x t^{a-1} (1 - t)^{b-1} dt\\) -/// -/// -/// is the incomplete beta function and \\(B(a, b)\\) is the *complete* -/// beta function. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class Betainc { - public: - Betainc(const ::tensorflow::Scope& scope, ::tensorflow::Input a, - ::tensorflow::Input b, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Counts the number of occurrences of each value in an integer array. -/// -/// Outputs a vector with length `size` and the same dtype as `weights`. If -/// `weights` are empty, then index `i` stores the number of times the value `i` is -/// counted in `arr`. If `weights` are non-empty, then index `i` stores the sum of -/// the value in `weights` at each index where the corresponding value in `arr` is -/// `i`. -/// -/// Values in `arr` outside of the range [0, size) are ignored. -/// -/// Arguments: -/// * scope: A Scope object -/// * arr: int32 `Tensor`. -/// * size: non-negative int32 scalar `Tensor`. -/// * weights: is an int32, int64, float32, or float64 `Tensor` with the same -/// shape as `arr`, or a length-0 `Tensor`, in which case it acts as all weights -/// equal to 1. -/// -/// Returns: -/// * `Output`: 1D `Tensor` with length equal to `size`. The counts or summed weights for -/// each value in the range [0, size). -class Bincount { - public: - Bincount(const ::tensorflow::Scope& scope, ::tensorflow::Input arr, - ::tensorflow::Input size, ::tensorflow::Input weights); - operator ::tensorflow::Output() const { return bins; } - operator ::tensorflow::Input() const { return bins; } - ::tensorflow::Node* node() const { return bins.node(); } - - Operation operation; - ::tensorflow::Output bins; -}; - -/// Bucketizes 'input' based on 'boundaries'. -/// -/// For example, if the inputs are -/// boundaries = [0, 10, 100] -/// input = [[-5, 10000] -/// [150, 10] -/// [5, 100]] -/// -/// then the output will be -/// output = [[0, 3] -/// [3, 2] -/// [1, 3]] -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Any shape of Tensor contains with int or float type. -/// * boundaries: A sorted list of floats gives the boundary of the buckets. -/// -/// Returns: -/// * `Output`: Same shape with 'input', each value of input replaced with bucket index. -/// -/// @compatibility(numpy) -/// Equivalent to np.digitize. -/// @end_compatibility -class Bucketize { - public: - Bucketize(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - gtl::ArraySlice& boundaries); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Cast x of type SrcT to y of DstT. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Cast { - public: - /// Optional attribute setters for Cast - struct Attrs { - /// Defaults to false - TF_MUST_USE_RESULT Attrs Truncate(bool x) { - Attrs ret = *this; - ret.Truncate_ = x; - return ret; - } - - bool Truncate_ = false; - }; - Cast(const ::tensorflow::Scope& scope, ::tensorflow::Input x, DataType DstT); - Cast(const ::tensorflow::Scope& scope, ::tensorflow::Input x, DataType DstT, - const Cast::Attrs& attrs); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - static Attrs Truncate(bool x) { - return Attrs().Truncate(x); - } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Returns element-wise smallest integer not less than x. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Ceil { - public: - Ceil(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Clips tensor values to a specified min and max. -/// -/// Given a tensor `t`, this operation returns a tensor of the same type and -/// shape as `t` with its values clipped to `clip_value_min` and `clip_value_max`. -/// Any values less than `clip_value_min` are set to `clip_value_min`. Any values -/// greater than `clip_value_max` are set to `clip_value_max`. -/// -/// Arguments: -/// * scope: A Scope object -/// * t: A `Tensor`. -/// * clip_value_min: A 0-D (scalar) `Tensor`, or a `Tensor` with the same shape -/// as `t`. The minimum value to clip by. -/// * clip_value_max: A 0-D (scalar) `Tensor`, or a `Tensor` with the same shape -/// as `t`. The maximum value to clip by. -/// -/// Returns: -/// * `Output`: A clipped `Tensor` with the same shape as input 't'. -class ClipByValue { - public: - ClipByValue(const ::tensorflow::Scope& scope, ::tensorflow::Input t, - ::tensorflow::Input clip_value_min, ::tensorflow::Input - clip_value_max); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Compare values of `input` to `threshold` and pack resulting bits into a `uint8`. -/// -/// Each comparison returns a boolean `true` (if `input_value > threshold`) -/// or and `false` otherwise. -/// -/// This operation is useful for Locality-Sensitive-Hashing (LSH) and other -/// algorithms that use hashing approximations of cosine and `L2` distances; -/// codes can be generated from an input via: -/// -/// ```python -/// codebook_size = 50 -/// codebook_bits = codebook_size * 32 -/// codebook = tf.get_variable('codebook', [x.shape[-1].value, codebook_bits], -/// dtype=x.dtype, -/// initializer=tf.orthogonal_initializer()) -/// codes = compare_and_threshold(tf.matmul(x, codebook), threshold=0.) -/// codes = tf.bitcast(codes, tf.int32) # go from uint8 to int32 -/// # now codes has shape x.shape[:-1] + [codebook_size] -/// ``` -/// -/// **NOTE**: Currently, the innermost dimension of the tensor must be divisible -/// by 8. -/// -/// Given an `input` shaped `[s0, s1, ..., s_n]`, the output is -/// a `uint8` tensor shaped `[s0, s1, ..., s_n / 8]`. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Values to compare against `threshold` and bitpack. -/// * threshold: Threshold to compare against. -/// -/// Returns: -/// * `Output`: The bitpacked comparisons. -class CompareAndBitpack { - public: - CompareAndBitpack(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input threshold); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Converts two real numbers to a complex number. -/// -/// Given a tensor `real` representing the real part of a complex number, and a -/// tensor `imag` representing the imaginary part of a complex number, this -/// operation returns complex numbers elementwise of the form \\(a + bj\\), where -/// *a* represents the `real` part and *b* represents the `imag` part. -/// -/// The input tensors `real` and `imag` must have the same shape. -/// -/// For example: -/// -/// ``` -/// # tensor 'real' is [2.25, 3.25] -/// # tensor `imag` is [4.75, 5.75] -/// tf.complex(real, imag) ==> [[2.25 + 4.75j], [3.25 + 5.75j]] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The out tensor. -class Complex { - public: - /// Optional attribute setters for Complex - struct Attrs { - /// Defaults to DT_COMPLEX64 - TF_MUST_USE_RESULT Attrs Tout(DataType x) { - Attrs ret = *this; - ret.Tout_ = x; - return ret; - } - - DataType Tout_ = DT_COMPLEX64; - }; - Complex(const ::tensorflow::Scope& scope, ::tensorflow::Input real, - ::tensorflow::Input imag); - Complex(const ::tensorflow::Scope& scope, ::tensorflow::Input real, - ::tensorflow::Input imag, const Complex::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs Tout(DataType x) { - return Attrs().Tout(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Computes the complex absolute value of a tensor. -/// -/// Given a tensor `x` of complex numbers, this operation returns a tensor of type -/// `float` or `double` that is the absolute value of each element in `x`. All -/// elements in `x` must be complex numbers of the form \\(a + bj\\). The absolute -/// value is computed as \\( \sqrt{a^2 + b^2}\\). -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class ComplexAbs { - public: - /// Optional attribute setters for ComplexAbs - struct Attrs { - /// Defaults to DT_FLOAT - TF_MUST_USE_RESULT Attrs Tout(DataType x) { - Attrs ret = *this; - ret.Tout_ = x; - return ret; - } - - DataType Tout_ = DT_FLOAT; - }; - ComplexAbs(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - ComplexAbs(const ::tensorflow::Scope& scope, ::tensorflow::Input x, const - ComplexAbs::Attrs& attrs); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - static Attrs Tout(DataType x) { - return Attrs().Tout(x); - } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Returns the complex conjugate of a complex number. -/// -/// Given a tensor `input` of complex numbers, this operation returns a tensor of -/// complex numbers that are the complex conjugate of each element in `input`. The -/// complex numbers in `input` must be of the form \\(a + bj\\), where *a* is the -/// real part and *b* is the imaginary part. -/// -/// The complex conjugate returned by this operation is of the form \\(a - bj\\). -/// -/// For example: -/// -/// ``` -/// # tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j] -/// tf.conj(input) ==> [-2.25 - 4.75j, 3.25 - 5.75j] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class Conj { - public: - Conj(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes cos of x element-wise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Cos { - public: - Cos(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes hyperbolic cosine of x element-wise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Cosh { - public: - Cosh(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Compute the pairwise cross product. -/// -/// `a` and `b` must be the same shape; they can either be simple 3-element vectors, -/// or any shape where the innermost dimension is 3. In the latter case, each pair -/// of corresponding 3-element vectors is cross-multiplied independently. -/// -/// Arguments: -/// * scope: A Scope object -/// * a: A tensor containing 3-element vectors. -/// * b: Another tensor, of same type and shape as `a`. -/// -/// Returns: -/// * `Output`: Pairwise cross product of the vectors in `a` and `b`. -class Cross { - public: - Cross(const ::tensorflow::Scope& scope, ::tensorflow::Input a, - ::tensorflow::Input b); - operator ::tensorflow::Output() const { return product; } - operator ::tensorflow::Input() const { return product; } - ::tensorflow::Node* node() const { return product.node(); } - - Operation operation; - ::tensorflow::Output product; -}; - -/// Compute the cumulative product of the tensor `x` along `axis`. -/// -/// By default, this op performs an inclusive cumprod, which means that the first -/// element of the input is identical to the first element of the output: -/// -/// ```python -/// tf.cumprod([a, b, c]) # => [a, a * b, a * b * c] -/// ``` -/// -/// By setting the `exclusive` kwarg to `True`, an exclusive cumprod is -/// performed instead: -/// -/// ```python -/// tf.cumprod([a, b, c], exclusive=True) # => [1, a, a * b] -/// ``` -/// -/// By setting the `reverse` kwarg to `True`, the cumprod is performed in the -/// opposite direction: -/// -/// ```python -/// tf.cumprod([a, b, c], reverse=True) # => [a * b * c, b * c, c] -/// ``` -/// -/// This is more efficient than using separate `tf.reverse` ops. -/// -/// The `reverse` and `exclusive` kwargs can also be combined: -/// -/// ```python -/// tf.cumprod([a, b, c], exclusive=True, reverse=True) # => [b * c, c, 1] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * x: A `Tensor`. Must be one of the following types: `float32`, `float64`, -/// `int64`, `int32`, `uint8`, `uint16`, `int16`, `int8`, `complex64`, -/// `complex128`, `qint8`, `quint8`, `qint32`, `half`. -/// * axis: A `Tensor` of type `int32` (default: 0). Must be in the range -/// `[-rank(x), rank(x))`. -/// -/// Optional attributes (see `Attrs`): -/// * exclusive: If `True`, perform exclusive cumprod. -/// * reverse: A `bool` (default: False). -/// -/// Returns: -/// * `Output`: The out tensor. -class Cumprod { - public: - /// Optional attribute setters for Cumprod - struct Attrs { - /// If `True`, perform exclusive cumprod. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs Exclusive(bool x) { - Attrs ret = *this; - ret.exclusive_ = x; - return ret; - } - - /// A `bool` (default: False). - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs Reverse(bool x) { - Attrs ret = *this; - ret.reverse_ = x; - return ret; - } - - bool exclusive_ = false; - bool reverse_ = false; - }; - Cumprod(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input axis); - Cumprod(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input axis, const Cumprod::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs Exclusive(bool x) { - return Attrs().Exclusive(x); - } - static Attrs Reverse(bool x) { - return Attrs().Reverse(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Compute the cumulative sum of the tensor `x` along `axis`. -/// -/// By default, this op performs an inclusive cumsum, which means that the first -/// element of the input is identical to the first element of the output: -/// -/// ```python -/// tf.cumsum([a, b, c]) # => [a, a + b, a + b + c] -/// ``` -/// -/// By setting the `exclusive` kwarg to `True`, an exclusive cumsum is -/// performed instead: -/// -/// ```python -/// tf.cumsum([a, b, c], exclusive=True) # => [0, a, a + b] -/// ``` -/// -/// By setting the `reverse` kwarg to `True`, the cumsum is performed in the -/// opposite direction: -/// -/// ```python -/// tf.cumsum([a, b, c], reverse=True) # => [a + b + c, b + c, c] -/// ``` -/// -/// This is more efficient than using separate `tf.reverse` ops. -/// -/// The `reverse` and `exclusive` kwargs can also be combined: -/// -/// ```python -/// tf.cumsum([a, b, c], exclusive=True, reverse=True) # => [b + c, c, 0] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * x: A `Tensor`. Must be one of the following types: `float32`, `float64`, -/// `int64`, `int32`, `uint8`, `uint16`, `int16`, `int8`, `complex64`, -/// `complex128`, `qint8`, `quint8`, `qint32`, `half`. -/// * axis: A `Tensor` of type `int32` (default: 0). Must be in the range -/// `[-rank(x), rank(x))`. -/// -/// Optional attributes (see `Attrs`): -/// * exclusive: If `True`, perform exclusive cumsum. -/// * reverse: A `bool` (default: False). -/// -/// Returns: -/// * `Output`: The out tensor. -class Cumsum { - public: - /// Optional attribute setters for Cumsum - struct Attrs { - /// If `True`, perform exclusive cumsum. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs Exclusive(bool x) { - Attrs ret = *this; - ret.exclusive_ = x; - return ret; - } - - /// A `bool` (default: False). - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs Reverse(bool x) { - Attrs ret = *this; - ret.reverse_ = x; - return ret; - } - - bool exclusive_ = false; - bool reverse_ = false; - }; - Cumsum(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input axis); - Cumsum(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input axis, const Cumsum::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs Exclusive(bool x) { - return Attrs().Exclusive(x); - } - static Attrs Reverse(bool x) { - return Attrs().Reverse(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Computes Psi, the derivative of Lgamma (the log of the absolute value of -/// -/// `Gamma(x)`), element-wise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Digamma { - public: - Digamma(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Returns x / y element-wise. -/// -/// *NOTE*: `Div` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class Div { - public: - Div(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Returns 0 if the denominator is zero. -/// -/// -/// *NOTE*: `DivNoNan` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class DivNoNan { - public: - DivNoNan(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Returns the truth value of (x == y) element-wise. -/// -/// *NOTE*: `Equal` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class Equal { - public: - Equal(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Computes the Gauss error function of `x` element-wise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Erf { - public: - Erf(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes the complementary error function of `x` element-wise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Erfc { - public: - Erfc(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes exponential of x element-wise. \\(y = e^x\\). -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Exp { - public: - Exp(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes exponential of x - 1 element-wise. -/// -/// I.e., \\(y = (\exp x) - 1\\). -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Expm1 { - public: - Expm1(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Returns element-wise largest integer not greater than x. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Floor { - public: - Floor(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Returns x // y element-wise. -/// -/// *NOTE*: `FloorDiv` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class FloorDiv { - public: - FloorDiv(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Returns element-wise remainder of division. When `x < 0` xor `y < 0` is -/// -/// true, this follows Python semantics in that the result here is consistent -/// with a flooring divide. E.g. `floor(x / y) * y + mod(x, y) = x`. -/// -/// *NOTE*: `FloorMod` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class FloorMod { - public: - FloorMod(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Returns the truth value of (x > y) element-wise. -/// -/// *NOTE*: `Greater` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class Greater { - public: - Greater(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Returns the truth value of (x >= y) element-wise. -/// -/// *NOTE*: `GreaterEqual` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class GreaterEqual { - public: - GreaterEqual(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Return histogram of values. -/// -/// Given the tensor `values`, this operation returns a rank 1 histogram counting -/// the number of entries in `values` that fall into every bin. The bins are -/// equal width and determined by the arguments `value_range` and `nbins`. -/// -/// ```python -/// # Bins will be: (-inf, 1), [1, 2), [2, 3), [3, 4), [4, inf) -/// nbins = 5 -/// value_range = [0.0, 5.0] -/// new_values = [-1.0, 0.0, 1.5, 2.0, 5.0, 15] -/// -/// with tf.get_default_session() as sess: -/// hist = tf.histogram_fixed_width(new_values, value_range, nbins=5) -/// variables.global_variables_initializer().run() -/// sess.run(hist) => [2, 1, 1, 0, 2] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * values: Numeric `Tensor`. -/// * value_range: Shape [2] `Tensor` of same `dtype` as `values`. -/// values <= value_range[0] will be mapped to hist[0], -/// values >= value_range[1] will be mapped to hist[-1]. -/// * nbins: Scalar `int32 Tensor`. Number of histogram bins. -/// -/// Returns: -/// * `Output`: A 1-D `Tensor` holding histogram of values. -class HistogramFixedWidth { - public: - /// Optional attribute setters for HistogramFixedWidth - struct Attrs { - /// Defaults to DT_INT32 - TF_MUST_USE_RESULT Attrs Dtype(DataType x) { - Attrs ret = *this; - ret.dtype_ = x; - return ret; - } - - DataType dtype_ = DT_INT32; - }; - HistogramFixedWidth(const ::tensorflow::Scope& scope, ::tensorflow::Input - values, ::tensorflow::Input value_range, - ::tensorflow::Input nbins); - HistogramFixedWidth(const ::tensorflow::Scope& scope, ::tensorflow::Input - values, ::tensorflow::Input value_range, - ::tensorflow::Input nbins, const - HistogramFixedWidth::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs Dtype(DataType x) { - return Attrs().Dtype(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Compute the lower regularized incomplete Gamma function `P(a, x)`. -/// -/// The lower regularized incomplete Gamma function is defined as: -/// -/// -/// \\(P(a, x) = gamma(a, x) / Gamma(a) = 1 - Q(a, x)\\) -/// -/// where -/// -/// \\(gamma(a, x) = \\int_{0}^{x} t^{a-1} exp(-t) dt\\) -/// -/// is the lower incomplete Gamma function. -/// -/// Note, above `Q(a, x)` (`Igammac`) is the upper regularized complete -/// Gamma function. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class Igamma { - public: - Igamma(const ::tensorflow::Scope& scope, ::tensorflow::Input a, - ::tensorflow::Input x); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Compute the upper regularized incomplete Gamma function `Q(a, x)`. -/// -/// The upper regularized incomplete Gamma function is defined as: -/// -/// \\(Q(a, x) = Gamma(a, x) / Gamma(a) = 1 - P(a, x)\\) -/// -/// where -/// -/// \\(Gamma(a, x) = int_{x}^{\infty} t^{a-1} exp(-t) dt\\) -/// -/// is the upper incomplete Gama function. -/// -/// Note, above `P(a, x)` (`Igamma`) is the lower regularized complete -/// Gamma function. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class Igammac { - public: - Igammac(const ::tensorflow::Scope& scope, ::tensorflow::Input a, - ::tensorflow::Input x); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Returns the imaginary part of a complex number. -/// -/// Given a tensor `input` of complex numbers, this operation returns a tensor of -/// type `float` that is the imaginary part of each element in `input`. All -/// elements in `input` must be complex numbers of the form \\(a + bj\\), where *a* -/// is the real part and *b* is the imaginary part returned by this operation. -/// -/// For example: -/// -/// ``` -/// # tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j] -/// tf.imag(input) ==> [4.75, 5.75] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class Imag { - public: - /// Optional attribute setters for Imag - struct Attrs { - /// Defaults to DT_FLOAT - TF_MUST_USE_RESULT Attrs Tout(DataType x) { - Attrs ret = *this; - ret.Tout_ = x; - return ret; - } - - DataType Tout_ = DT_FLOAT; - }; - Imag(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - Imag(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - Imag::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Tout(DataType x) { - return Attrs().Tout(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the reciprocal of x element-wise. -/// -/// I.e., \\(y = 1 / x\\). -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Inv { - public: - Inv(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Returns which elements of x are finite. -/// -/// @compatibility(numpy) -/// Equivalent to np.isfinite -/// @end_compatibility -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class IsFinite { - public: - IsFinite(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Returns which elements of x are Inf. -/// -/// @compatibility(numpy) -/// Equivalent to np.isinf -/// @end_compatibility -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class IsInf { - public: - IsInf(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Returns which elements of x are NaN. -/// -/// @compatibility(numpy) -/// Equivalent to np.isnan -/// @end_compatibility -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class IsNan { - public: - IsNan(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Returns the truth value of (x < y) element-wise. -/// -/// *NOTE*: `Less` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class Less { - public: - Less(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Returns the truth value of (x <= y) element-wise. -/// -/// *NOTE*: `LessEqual` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class LessEqual { - public: - LessEqual(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Computes the log of the absolute value of `Gamma(x)` element-wise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Lgamma { - public: - Lgamma(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Generates values in an interval. -/// -/// A sequence of `num` evenly-spaced values are generated beginning at `start`. -/// If `num > 1`, the values in the sequence increase by `stop - start / num - 1`, -/// so that the last one is exactly `stop`. -/// -/// For example: -/// -/// ``` -/// tf.linspace(10.0, 12.0, 3, name="linspace") => [ 10.0 11.0 12.0] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * start: 0-D tensor. First entry in the range. -/// * stop: 0-D tensor. Last entry in the range. -/// * num: 0-D tensor. Number of values to generate. -/// -/// Returns: -/// * `Output`: 1-D. The generated values. -class LinSpace { - public: - LinSpace(const ::tensorflow::Scope& scope, ::tensorflow::Input start, - ::tensorflow::Input stop, ::tensorflow::Input num); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes natural logarithm of x element-wise. -/// -/// I.e., \\(y = \log_e x\\). -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Log { - public: - Log(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes natural logarithm of (1 + x) element-wise. -/// -/// I.e., \\(y = \log_e (1 + x)\\). -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Log1p { - public: - Log1p(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Returns the truth value of x AND y element-wise. -/// -/// *NOTE*: `LogicalAnd` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class LogicalAnd { - public: - LogicalAnd(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Returns the truth value of NOT x element-wise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class LogicalNot { - public: - LogicalNot(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Returns the truth value of x OR y element-wise. -/// -/// *NOTE*: `LogicalOr` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class LogicalOr { - public: - LogicalOr(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Multiply the matrix "a" by the matrix "b". -/// -/// The inputs must be two-dimensional matrices and the inner dimension of -/// "a" (after being transposed if transpose_a is true) must match the -/// outer dimension of "b" (after being transposed if transposed_b is -/// true). -/// -/// *Note*: The default kernel implementation for MatMul on GPUs uses -/// cublas. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Optional attributes (see `Attrs`): -/// * transpose_a: If true, "a" is transposed before multiplication. -/// * transpose_b: If true, "b" is transposed before multiplication. -/// -/// Returns: -/// * `Output`: The product tensor. -class MatMul { - public: - /// Optional attribute setters for MatMul - struct Attrs { - /// If true, "a" is transposed before multiplication. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs TransposeA(bool x) { - Attrs ret = *this; - ret.transpose_a_ = x; - return ret; - } - - /// If true, "b" is transposed before multiplication. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs TransposeB(bool x) { - Attrs ret = *this; - ret.transpose_b_ = x; - return ret; - } - - bool transpose_a_ = false; - bool transpose_b_ = false; - }; - MatMul(const ::tensorflow::Scope& scope, ::tensorflow::Input a, - ::tensorflow::Input b); - MatMul(const ::tensorflow::Scope& scope, ::tensorflow::Input a, - ::tensorflow::Input b, const MatMul::Attrs& attrs); - operator ::tensorflow::Output() const { return product; } - operator ::tensorflow::Input() const { return product; } - ::tensorflow::Node* node() const { return product.node(); } - - static Attrs TransposeA(bool x) { - return Attrs().TransposeA(x); - } - static Attrs TransposeB(bool x) { - return Attrs().TransposeB(x); - } - - Operation operation; - ::tensorflow::Output product; -}; - -/// Computes the maximum of elements across dimensions of a tensor. -/// -/// Reduces `input` along the dimensions given in `axis`. Unless -/// `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in -/// `axis`. If `keep_dims` is true, the reduced dimensions are -/// retained with length 1. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The tensor to reduce. -/// * axis: The dimensions to reduce. Must be in the range -/// `[-rank(input), rank(input))`. -/// -/// Optional attributes (see `Attrs`): -/// * keep_dims: If true, retain reduced dimensions with length 1. -/// -/// Returns: -/// * `Output`: The reduced tensor. -/// -/// Aliases: -/// * ReduceMax -class Max { - public: - /// Optional attribute setters for Max - struct Attrs { - /// If true, retain reduced dimensions with length 1. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs KeepDims(bool x) { - Attrs ret = *this; - ret.keep_dims_ = x; - return ret; - } - - bool keep_dims_ = false; - }; - Max(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input axis); - Max(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input axis, const Max::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs KeepDims(bool x) { - return Attrs().KeepDims(x); - } - - Operation operation; - ::tensorflow::Output output; -}; -typedef Max ReduceMax; - -/// Returns the max of x and y (i.e. x > y ? x : y) element-wise. -/// -/// *NOTE*: `Maximum` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class Maximum { - public: - Maximum(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Computes the mean of elements across dimensions of a tensor. -/// -/// Reduces `input` along the dimensions given in `axis`. Unless -/// `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in -/// `axis`. If `keep_dims` is true, the reduced dimensions are -/// retained with length 1. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The tensor to reduce. -/// * axis: The dimensions to reduce. Must be in the range -/// `[-rank(input), rank(input))`. -/// -/// Optional attributes (see `Attrs`): -/// * keep_dims: If true, retain reduced dimensions with length 1. -/// -/// Returns: -/// * `Output`: The reduced tensor. -/// -/// Aliases: -/// * ReduceMean -class Mean { - public: - /// Optional attribute setters for Mean - struct Attrs { - /// If true, retain reduced dimensions with length 1. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs KeepDims(bool x) { - Attrs ret = *this; - ret.keep_dims_ = x; - return ret; - } - - bool keep_dims_ = false; - }; - Mean(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input axis); - Mean(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input axis, const Mean::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs KeepDims(bool x) { - return Attrs().KeepDims(x); - } - - Operation operation; - ::tensorflow::Output output; -}; -typedef Mean ReduceMean; - -/// Computes the minimum of elements across dimensions of a tensor. -/// -/// Reduces `input` along the dimensions given in `axis`. Unless -/// `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in -/// `axis`. If `keep_dims` is true, the reduced dimensions are -/// retained with length 1. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The tensor to reduce. -/// * axis: The dimensions to reduce. Must be in the range -/// `[-rank(input), rank(input))`. -/// -/// Optional attributes (see `Attrs`): -/// * keep_dims: If true, retain reduced dimensions with length 1. -/// -/// Returns: -/// * `Output`: The reduced tensor. -/// -/// Aliases: -/// * ReduceMin -class Min { - public: - /// Optional attribute setters for Min - struct Attrs { - /// If true, retain reduced dimensions with length 1. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs KeepDims(bool x) { - Attrs ret = *this; - ret.keep_dims_ = x; - return ret; - } - - bool keep_dims_ = false; - }; - Min(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input axis); - Min(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input axis, const Min::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs KeepDims(bool x) { - return Attrs().KeepDims(x); - } - - Operation operation; - ::tensorflow::Output output; -}; -typedef Min ReduceMin; - -/// Returns the min of x and y (i.e. x < y ? x : y) element-wise. -/// -/// *NOTE*: `Minimum` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class Minimum { - public: - Minimum(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Returns element-wise remainder of division. This emulates C semantics in that -/// -/// the result here is consistent with a truncating divide. E.g. -/// `tf.truncatediv(x, y) * y + truncate_mod(x, y) = x`. -/// -/// *NOTE*: `Mod` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class Mod { - public: - Mod(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Returns x * y element-wise. -/// -/// *NOTE*: `Multiply` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -/// -/// Aliases: -/// * Mul -class Multiply { - public: - Multiply(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; -typedef Multiply Mul; - -/// Computes numerical negative value element-wise. -/// -/// I.e., \\(y = -x\\). -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -/// -/// Aliases: -/// * Neg -class Negate { - public: - Negate(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; -typedef Negate Neg; - -/// Returns the truth value of (x != y) element-wise. -/// -/// *NOTE*: `NotEqual` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class NotEqual { - public: - NotEqual(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Compute the polygamma function \\(\psi^{(n)}(x)\\). -/// -/// The polygamma function is defined as: -/// -/// -/// \\(\psi^{(n)}(x) = \frac{d^n}{dx^n} \psi(x)\\) -/// -/// where \\(\psi(x)\\) is the digamma function. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class Polygamma { - public: - Polygamma(const ::tensorflow::Scope& scope, ::tensorflow::Input a, - ::tensorflow::Input x); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Computes the power of one value to another. -/// -/// Given a tensor `x` and a tensor `y`, this operation computes \\(x^y\\) for -/// corresponding elements in `x` and `y`. For example: -/// -/// ``` -/// # tensor 'x' is [[2, 2]], [3, 3]] -/// # tensor 'y' is [[8, 16], [2, 3]] -/// tf.pow(x, y) ==> [[256, 65536], [9, 27]] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class Pow { - public: - Pow(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Computes the product of elements across dimensions of a tensor. -/// -/// Reduces `input` along the dimensions given in `axis`. Unless -/// `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in -/// `axis`. If `keep_dims` is true, the reduced dimensions are -/// retained with length 1. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The tensor to reduce. -/// * axis: The dimensions to reduce. Must be in the range -/// `[-rank(input), rank(input))`. -/// -/// Optional attributes (see `Attrs`): -/// * keep_dims: If true, retain reduced dimensions with length 1. -/// -/// Returns: -/// * `Output`: The reduced tensor. -/// -/// Aliases: -/// * ReduceProd -class Prod { - public: - /// Optional attribute setters for Prod - struct Attrs { - /// If true, retain reduced dimensions with length 1. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs KeepDims(bool x) { - Attrs ret = *this; - ret.keep_dims_ = x; - return ret; - } - - bool keep_dims_ = false; - }; - Prod(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input axis); - Prod(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input axis, const Prod::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs KeepDims(bool x) { - return Attrs().KeepDims(x); - } - - Operation operation; - ::tensorflow::Output output; -}; -typedef Prod ReduceProd; - -/// Convert the quantized 'input' tensor into a lower-precision 'output', using the -/// -/// actual distribution of the values to maximize the usage of the lower bit depth -/// and adjusting the output min and max ranges accordingly. -/// -/// [input_min, input_max] are scalar floats that specify the range for the float -/// interpretation of the 'input' data. For example, if input_min is -1.0f and -/// input_max is 1.0f, and we are dealing with quint16 quantized data, then a 0 -/// value in the 16-bit data should be interpreted as -1.0f, and a 65535 means 1.0f. -/// -/// This operator tries to squeeze as much precision as possible into an output with -/// a lower bit depth by calculating the actual min and max values found in the -/// data. For example, maybe that quint16 input has no values lower than 16,384 and -/// none higher than 49,152. That means only half the range is actually needed, all -/// the float interpretations are between -0.5f and 0.5f, so if we want to compress -/// the data into a quint8 output, we can use that range rather than the theoretical -/// -1.0f to 1.0f that is suggested by the input min and max. -/// -/// In practice, this is most useful for taking output from operations like -/// QuantizedMatMul that can produce higher bit-depth outputs than their inputs and -/// may have large potential output ranges, but in practice have a distribution of -/// input values that only uses a small fraction of the possible range. By feeding -/// that output into this operator, we can reduce it from 32 bits down to 8 with -/// minimal loss of accuracy. -/// -/// Arguments: -/// * scope: A Scope object -/// * input_min: The float value that the minimum quantized input value represents. -/// * input_max: The float value that the maximum quantized input value represents. -/// * out_type: The type of the output. Should be a lower bit depth than Tinput. -/// -/// Returns: -/// * `Output` output -/// * `Output` output_min: The float value that the minimum quantized output value represents. -/// * `Output` output_max: The float value that the maximum quantized output value represents. -class QuantizeDownAndShrinkRange { - public: - QuantizeDownAndShrinkRange(const ::tensorflow::Scope& scope, - ::tensorflow::Input input, ::tensorflow::Input - input_min, ::tensorflow::Input input_max, DataType - out_type); - - Operation operation; - ::tensorflow::Output output; - ::tensorflow::Output output_min; - ::tensorflow::Output output_max; -}; - -/// Returns x + y element-wise, working on quantized buffers. -/// -/// Arguments: -/// * scope: A Scope object -/// * min_x: The float value that the lowest quantized `x` value represents. -/// * max_x: The float value that the highest quantized `x` value represents. -/// * min_y: The float value that the lowest quantized `y` value represents. -/// * max_y: The float value that the highest quantized `y` value represents. -/// -/// Returns: -/// * `Output` z -/// * `Output` min_z: The float value that the lowest quantized output value represents. -/// * `Output` max_z: The float value that the highest quantized output value represents. -/// -/// *NOTE*: `QuantizedAdd` supports limited forms of broadcasting. More about -/// broadcasting [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -class QuantizedAdd { - public: - /// Optional attribute setters for QuantizedAdd - struct Attrs { - /// Defaults to DT_QINT32 - TF_MUST_USE_RESULT Attrs Toutput(DataType x) { - Attrs ret = *this; - ret.Toutput_ = x; - return ret; - } - - DataType Toutput_ = DT_QINT32; - }; - QuantizedAdd(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y, ::tensorflow::Input min_x, - ::tensorflow::Input max_x, ::tensorflow::Input min_y, - ::tensorflow::Input max_y); - QuantizedAdd(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y, ::tensorflow::Input min_x, - ::tensorflow::Input max_x, ::tensorflow::Input min_y, - ::tensorflow::Input max_y, const QuantizedAdd::Attrs& attrs); - - static Attrs Toutput(DataType x) { - return Attrs().Toutput(x); - } - - Operation operation; - ::tensorflow::Output z; - ::tensorflow::Output min_z; - ::tensorflow::Output max_z; -}; - -/// Perform a quantized matrix multiplication of `a` by the matrix `b`. -/// -/// The inputs must be two-dimensional matrices and the inner dimension of -/// `a` (after being transposed if `transpose_a` is non-zero) must match the -/// outer dimension of `b` (after being transposed if `transposed_b` is -/// non-zero). -/// -/// Arguments: -/// * scope: A Scope object -/// * a: Must be a two-dimensional tensor. -/// * b: Must be a two-dimensional tensor. -/// * min_a: The float value that the lowest quantized `a` value represents. -/// * max_a: The float value that the highest quantized `a` value represents. -/// * min_b: The float value that the lowest quantized `b` value represents. -/// * max_b: The float value that the highest quantized `b` value represents. -/// -/// Optional attributes (see `Attrs`): -/// * transpose_a: If true, `a` is transposed before multiplication. -/// * transpose_b: If true, `b` is transposed before multiplication. -/// * Tactivation: The type of output produced by activation function -/// following this operation. -/// -/// Returns: -/// * `Output` out -/// * `Output` min_out: The float value that the lowest quantized output value represents. -/// * `Output` max_out: The float value that the highest quantized output value represents. -class QuantizedMatMul { - public: - /// Optional attribute setters for QuantizedMatMul - struct Attrs { - /// Defaults to DT_QINT32 - TF_MUST_USE_RESULT Attrs Toutput(DataType x) { - Attrs ret = *this; - ret.Toutput_ = x; - return ret; - } - - /// If true, `a` is transposed before multiplication. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs TransposeA(bool x) { - Attrs ret = *this; - ret.transpose_a_ = x; - return ret; - } - - /// If true, `b` is transposed before multiplication. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs TransposeB(bool x) { - Attrs ret = *this; - ret.transpose_b_ = x; - return ret; - } - - /// The type of output produced by activation function - /// following this operation. - /// - /// Defaults to DT_QUINT8 - TF_MUST_USE_RESULT Attrs Tactivation(DataType x) { - Attrs ret = *this; - ret.Tactivation_ = x; - return ret; - } - - DataType Toutput_ = DT_QINT32; - bool transpose_a_ = false; - bool transpose_b_ = false; - DataType Tactivation_ = DT_QUINT8; - }; - QuantizedMatMul(const ::tensorflow::Scope& scope, ::tensorflow::Input a, - ::tensorflow::Input b, ::tensorflow::Input min_a, - ::tensorflow::Input max_a, ::tensorflow::Input min_b, - ::tensorflow::Input max_b); - QuantizedMatMul(const ::tensorflow::Scope& scope, ::tensorflow::Input a, - ::tensorflow::Input b, ::tensorflow::Input min_a, - ::tensorflow::Input max_a, ::tensorflow::Input min_b, - ::tensorflow::Input max_b, const QuantizedMatMul::Attrs& attrs); - - static Attrs Toutput(DataType x) { - return Attrs().Toutput(x); - } - static Attrs TransposeA(bool x) { - return Attrs().TransposeA(x); - } - static Attrs TransposeB(bool x) { - return Attrs().TransposeB(x); - } - static Attrs Tactivation(DataType x) { - return Attrs().Tactivation(x); - } - - Operation operation; - ::tensorflow::Output out; - ::tensorflow::Output min_out; - ::tensorflow::Output max_out; -}; - -/// Returns x * y element-wise, working on quantized buffers. -/// -/// Arguments: -/// * scope: A Scope object -/// * min_x: The float value that the lowest quantized `x` value represents. -/// * max_x: The float value that the highest quantized `x` value represents. -/// * min_y: The float value that the lowest quantized `y` value represents. -/// * max_y: The float value that the highest quantized `y` value represents. -/// -/// Returns: -/// * `Output` z -/// * `Output` min_z: The float value that the lowest quantized output value represents. -/// * `Output` max_z: The float value that the highest quantized output value represents. -/// -/// *NOTE*: `QuantizedMul` supports limited forms of broadcasting. More about -/// broadcasting [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -class QuantizedMul { - public: - /// Optional attribute setters for QuantizedMul - struct Attrs { - /// Defaults to DT_QINT32 - TF_MUST_USE_RESULT Attrs Toutput(DataType x) { - Attrs ret = *this; - ret.Toutput_ = x; - return ret; - } - - DataType Toutput_ = DT_QINT32; - }; - QuantizedMul(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y, ::tensorflow::Input min_x, - ::tensorflow::Input max_x, ::tensorflow::Input min_y, - ::tensorflow::Input max_y); - QuantizedMul(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y, ::tensorflow::Input min_x, - ::tensorflow::Input max_x, ::tensorflow::Input min_y, - ::tensorflow::Input max_y, const QuantizedMul::Attrs& attrs); - - static Attrs Toutput(DataType x) { - return Attrs().Toutput(x); - } - - Operation operation; - ::tensorflow::Output z; - ::tensorflow::Output min_z; - ::tensorflow::Output max_z; -}; - -/// Creates a sequence of numbers. -/// -/// This operation creates a sequence of numbers that begins at `start` and -/// extends by increments of `delta` up to but not including `limit`. -/// -/// For example: -/// -/// ``` -/// # 'start' is 3 -/// # 'limit' is 18 -/// # 'delta' is 3 -/// tf.range(start, limit, delta) ==> [3, 6, 9, 12, 15] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * start: 0-D (scalar). First entry in the sequence. -/// * limit: 0-D (scalar). Upper limit of sequence, exclusive. -/// * delta: 0-D (scalar). Optional. Default is 1. Number that increments `start`. -/// -/// Returns: -/// * `Output`: 1-D. -class Range { - public: - Range(const ::tensorflow::Scope& scope, ::tensorflow::Input start, - ::tensorflow::Input limit, ::tensorflow::Input delta); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Returns the real part of a complex number. -/// -/// Given a tensor `input` of complex numbers, this operation returns a tensor of -/// type `float` that is the real part of each element in `input`. All elements in -/// `input` must be complex numbers of the form \\(a + bj\\), where *a* is the real -/// part returned by this operation and *b* is the imaginary part. -/// -/// For example: -/// -/// ``` -/// # tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j] -/// tf.real(input) ==> [-2.25, 3.25] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class Real { - public: - /// Optional attribute setters for Real - struct Attrs { - /// Defaults to DT_FLOAT - TF_MUST_USE_RESULT Attrs Tout(DataType x) { - Attrs ret = *this; - ret.Tout_ = x; - return ret; - } - - DataType Tout_ = DT_FLOAT; - }; - Real(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - Real(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - Real::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Tout(DataType x) { - return Attrs().Tout(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Returns x / y element-wise for real types. -/// -/// If `x` and `y` are reals, this will return the floating-point division. -/// -/// *NOTE*: `Div` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class RealDiv { - public: - RealDiv(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Computes the reciprocal of x element-wise. -/// -/// I.e., \\(y = 1 / x\\). -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Reciprocal { - public: - Reciprocal(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Given a quantized tensor described by (input, input_min, input_max), outputs a -/// -/// range that covers the actual values present in that tensor. This op is -/// typically used to produce the requested_output_min and requested_output_max for -/// Requantize. -/// -/// Arguments: -/// * scope: A Scope object -/// * input_min: The float value that the minimum quantized input value represents. -/// * input_max: The float value that the maximum quantized input value represents. -/// -/// Returns: -/// * `Output` output_min: The computed min output. -/// * `Output` output_max: the computed max output. -class RequantizationRange { - public: - RequantizationRange(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, ::tensorflow::Input input_min, ::tensorflow::Input - input_max); - - Operation operation; - ::tensorflow::Output output_min; - ::tensorflow::Output output_max; -}; - -/// Convert the quantized 'input' tensor into a lower-precision 'output', using the -/// -/// output range specified with 'requested_output_min' and 'requested_output_max'. -/// -/// [input_min, input_max] are scalar floats that specify the range for the float -/// interpretation of the 'input' data. For example, if input_min is -1.0f and -/// input_max is 1.0f, and we are dealing with quint16 quantized data, then a 0 -/// value in the 16-bit data should be interpreted as -1.0f, and a 65535 means 1.0f. -/// -/// Arguments: -/// * scope: A Scope object -/// * input_min: The float value that the minimum quantized input value represents. -/// * input_max: The float value that the maximum quantized input value represents. -/// * requested_output_min: The float value that the minimum quantized output value represents. -/// * requested_output_max: The float value that the maximum quantized output value represents. -/// * out_type: The type of the output. Should be a lower bit depth than Tinput. -/// -/// Returns: -/// * `Output` output -/// * `Output` output_min: The requested_output_min value is copied into this output. -/// * `Output` output_max: The requested_output_max value is copied into this output. -class Requantize { - public: - Requantize(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input input_min, ::tensorflow::Input input_max, - ::tensorflow::Input requested_output_min, ::tensorflow::Input - requested_output_max, DataType out_type); - - Operation operation; - ::tensorflow::Output output; - ::tensorflow::Output output_min; - ::tensorflow::Output output_max; -}; - -/// Returns element-wise integer closest to x. -/// -/// If the result is midway between two representable values, -/// the even representable is chosen. -/// For example: -/// -/// ``` -/// rint(-1.5) ==> -2.0 -/// rint(0.5000001) ==> 1.0 -/// rint([-1.7, -1.5, -0.2, 0.2, 1.5, 1.7, 2.0]) ==> [-2., -2., -0., 0., 2., 2., 2.] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Rint { - public: - Rint(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Rounds the values of a tensor to the nearest integer, element-wise. -/// -/// Rounds half to even. Also known as bankers rounding. If you want to round -/// according to the current system rounding mode use std::cint. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Round { - public: - Round(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes reciprocal of square root of x element-wise. -/// -/// I.e., \\(y = 1 / \sqrt{x}\\). -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Rsqrt { - public: - Rsqrt(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes the maximum along segments of a tensor. -/// -/// Read -/// [the section on segmentation](https://tensorflow.org/api_guides/python/math_ops#Segmentation) -/// for an explanation of segments. -/// -/// Computes a tensor such that -/// \\(output_i = \max_j(data_j)\\) where `max` is over `j` such -/// that `segment_ids[j] == i`. -/// -/// If the max is empty for a given segment ID `i`, `output[i] = 0`. -/// -///
-/// -///
-/// -/// Arguments: -/// * scope: A Scope object -/// * segment_ids: A 1-D tensor whose size is equal to the size of `data`'s -/// first dimension. Values should be sorted and can be repeated. -/// -/// Returns: -/// * `Output`: Has same shape as data, except for dimension 0 which -/// has size `k`, the number of segments. -class SegmentMax { - public: - SegmentMax(const ::tensorflow::Scope& scope, ::tensorflow::Input data, - ::tensorflow::Input segment_ids); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the mean along segments of a tensor. -/// -/// Read -/// [the section on segmentation](https://tensorflow.org/api_guides/python/math_ops#Segmentation) -/// for an explanation of segments. -/// -/// Computes a tensor such that -/// \\(output_i = \frac{\sum_j data_j}{N}\\) where `mean` is -/// over `j` such that `segment_ids[j] == i` and `N` is the total number of -/// values summed. -/// -/// If the mean is empty for a given segment ID `i`, `output[i] = 0`. -/// -///
-/// -///
-/// -/// Arguments: -/// * scope: A Scope object -/// * segment_ids: A 1-D tensor whose size is equal to the size of `data`'s -/// first dimension. Values should be sorted and can be repeated. -/// -/// Returns: -/// * `Output`: Has same shape as data, except for dimension 0 which -/// has size `k`, the number of segments. -class SegmentMean { - public: - SegmentMean(const ::tensorflow::Scope& scope, ::tensorflow::Input data, - ::tensorflow::Input segment_ids); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the minimum along segments of a tensor. -/// -/// Read -/// [the section on segmentation](https://tensorflow.org/api_guides/python/math_ops#Segmentation) -/// for an explanation of segments. -/// -/// Computes a tensor such that -/// \\(output_i = \min_j(data_j)\\) where `min` is over `j` such -/// that `segment_ids[j] == i`. -/// -/// If the min is empty for a given segment ID `i`, `output[i] = 0`. -/// -///
-/// -///
-/// -/// Arguments: -/// * scope: A Scope object -/// * segment_ids: A 1-D tensor whose size is equal to the size of `data`'s -/// first dimension. Values should be sorted and can be repeated. -/// -/// Returns: -/// * `Output`: Has same shape as data, except for dimension 0 which -/// has size `k`, the number of segments. -class SegmentMin { - public: - SegmentMin(const ::tensorflow::Scope& scope, ::tensorflow::Input data, - ::tensorflow::Input segment_ids); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the product along segments of a tensor. -/// -/// Read -/// [the section on segmentation](https://tensorflow.org/api_guides/python/math_ops#Segmentation) -/// for an explanation of segments. -/// -/// Computes a tensor such that -/// \\(output_i = \prod_j data_j\\) where the product is over `j` such -/// that `segment_ids[j] == i`. -/// -/// If the product is empty for a given segment ID `i`, `output[i] = 1`. -/// -///
-/// -///
-/// -/// Arguments: -/// * scope: A Scope object -/// * segment_ids: A 1-D tensor whose size is equal to the size of `data`'s -/// first dimension. Values should be sorted and can be repeated. -/// -/// Returns: -/// * `Output`: Has same shape as data, except for dimension 0 which -/// has size `k`, the number of segments. -class SegmentProd { - public: - SegmentProd(const ::tensorflow::Scope& scope, ::tensorflow::Input data, - ::tensorflow::Input segment_ids); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the sum along segments of a tensor. -/// -/// Read -/// [the section on segmentation](https://tensorflow.org/api_guides/python/math_ops#Segmentation) -/// for an explanation of segments. -/// -/// Computes a tensor such that -/// \\(output_i = \sum_j data_j\\) where sum is over `j` such -/// that `segment_ids[j] == i`. -/// -/// If the sum is empty for a given segment ID `i`, `output[i] = 0`. -/// -///
-/// -///
-/// -/// Arguments: -/// * scope: A Scope object -/// * segment_ids: A 1-D tensor whose size is equal to the size of `data`'s -/// first dimension. Values should be sorted and can be repeated. -/// -/// Returns: -/// * `Output`: Has same shape as data, except for dimension 0 which -/// has size `k`, the number of segments. -class SegmentSum { - public: - SegmentSum(const ::tensorflow::Scope& scope, ::tensorflow::Input data, - ::tensorflow::Input segment_ids); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Selects elements from `x` or `y`, depending on `condition`. -/// -/// The `x`, and `y` tensors must all have the same shape, and the -/// output will also have that shape. -/// -/// The `condition` tensor must be a scalar if `x` and `y` are scalars. -/// If `x` and `y` are vectors or higher rank, then `condition` must be either a -/// scalar, a vector with size matching the first dimension of `x`, or must have -/// the same shape as `x`. -/// -/// The `condition` tensor acts as a mask that chooses, based on the value at each -/// element, whether the corresponding element / row in the output should be -/// taken from `x` (if true) or `y` (if false). -/// -/// If `condition` is a vector and `x` and `y` are higher rank matrices, then -/// it chooses which row (outer dimension) to copy from `x` and `y`. -/// If `condition` has the same shape as `x` and `y`, then it chooses which -/// element to copy from `x` and `y`. -/// -/// For example: -/// -/// ```python -/// # 'condition' tensor is [[True, False] -/// # [False, True]] -/// # 't' is [[1, 2], -/// # [3, 4]] -/// # 'e' is [[5, 6], -/// # [7, 8]] -/// select(condition, t, e) # => [[1, 6], [7, 4]] -/// -/// -/// # 'condition' tensor is [True, False] -/// # 't' is [[1, 2], -/// # [3, 4]] -/// # 'e' is [[5, 6], -/// # [7, 8]] -/// select(condition, t, e) ==> [[1, 2], -/// [7, 8]] -/// -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * x: = A `Tensor` which may have the same shape as `condition`. -/// If `condition` is rank 1, `x` may have higher rank, -/// but its first dimension must match the size of `condition`. -/// * y: = A `Tensor` with the same type and shape as `x`. -/// -/// Returns: -/// * `Output`: = A `Tensor` with the same type and shape as `x` and `y`. -class Where3 { - public: - Where3(const ::tensorflow::Scope& scope, ::tensorflow::Input condition, - ::tensorflow::Input x, ::tensorflow::Input y); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes sigmoid of `x` element-wise. -/// -/// Specifically, `y = 1 / (1 + exp(-x))`. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Sigmoid { - public: - Sigmoid(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Returns an element-wise indication of the sign of a number. -/// -/// `y = sign(x) = -1` if `x < 0`; 0 if `x == 0`; 1 if `x > 0`. -/// -/// For complex numbers, `y = sign(x) = x / |x|` if `x != 0`, otherwise `y = 0`. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Sign { - public: - Sign(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes sin of x element-wise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Sin { - public: - Sin(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes hyperbolic sine of x element-wise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Sinh { - public: - Sinh(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Multiply matrix "a" by matrix "b". -/// -/// The inputs must be two-dimensional matrices and the inner dimension of "a" must -/// match the outer dimension of "b". Both "a" and "b" must be `Tensor`s not -/// `SparseTensor`s. This op is optimized for the case where at least one of "a" or -/// "b" is sparse, in the sense that they have a large proportion of zero values. -/// The breakeven for using this versus a dense matrix multiply on one platform was -/// 30% zero values in the sparse matrix. -/// -/// The gradient computation of this operation will only take advantage of sparsity -/// in the input gradient when that gradient comes from a Relu. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The product tensor. -class SparseMatMul { - public: - /// Optional attribute setters for SparseMatMul - struct Attrs { - /// Defaults to false - TF_MUST_USE_RESULT Attrs TransposeA(bool x) { - Attrs ret = *this; - ret.transpose_a_ = x; - return ret; - } - - /// Defaults to false - TF_MUST_USE_RESULT Attrs TransposeB(bool x) { - Attrs ret = *this; - ret.transpose_b_ = x; - return ret; - } - - /// Defaults to false - TF_MUST_USE_RESULT Attrs AIsSparse(bool x) { - Attrs ret = *this; - ret.a_is_sparse_ = x; - return ret; - } - - /// Defaults to false - TF_MUST_USE_RESULT Attrs BIsSparse(bool x) { - Attrs ret = *this; - ret.b_is_sparse_ = x; - return ret; - } - - bool transpose_a_ = false; - bool transpose_b_ = false; - bool a_is_sparse_ = false; - bool b_is_sparse_ = false; - }; - SparseMatMul(const ::tensorflow::Scope& scope, ::tensorflow::Input a, - ::tensorflow::Input b); - SparseMatMul(const ::tensorflow::Scope& scope, ::tensorflow::Input a, - ::tensorflow::Input b, const SparseMatMul::Attrs& attrs); - operator ::tensorflow::Output() const { return product; } - operator ::tensorflow::Input() const { return product; } - ::tensorflow::Node* node() const { return product.node(); } - - static Attrs TransposeA(bool x) { - return Attrs().TransposeA(x); - } - static Attrs TransposeB(bool x) { - return Attrs().TransposeB(x); - } - static Attrs AIsSparse(bool x) { - return Attrs().AIsSparse(x); - } - static Attrs BIsSparse(bool x) { - return Attrs().BIsSparse(x); - } - - Operation operation; - ::tensorflow::Output product; -}; - -/// Computes the mean along sparse segments of a tensor. -/// -/// Read -/// [the section on segmentation](https://tensorflow.org/api_guides/python/math_ops#Segmentation) -/// for an explanation of segments. -/// -/// Like `SegmentMean`, but `segment_ids` can have rank less than `data`'s first -/// dimension, selecting a subset of dimension 0, specified by `indices`. -/// -/// Arguments: -/// * scope: A Scope object -/// * indices: A 1-D tensor. Has same rank as `segment_ids`. -/// * segment_ids: A 1-D tensor. Values should be sorted and can be repeated. -/// -/// Returns: -/// * `Output`: Has same shape as data, except for dimension 0 which -/// has size `k`, the number of segments. -class SparseSegmentMean { - public: - SparseSegmentMean(const ::tensorflow::Scope& scope, ::tensorflow::Input data, - ::tensorflow::Input indices, ::tensorflow::Input segment_ids); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes gradients for SparseSegmentMean. -/// -/// Returns tensor "output" with same shape as grad, except for dimension 0 whose -/// value is output_dim0. -/// -/// Arguments: -/// * scope: A Scope object -/// * grad: gradient propagated to the SparseSegmentMean op. -/// * indices: indices passed to the corresponding SparseSegmentMean op. -/// * segment_ids: segment_ids passed to the corresponding SparseSegmentMean op. -/// * output_dim0: dimension 0 of "data" passed to SparseSegmentMean op. -/// -/// Returns: -/// * `Output`: The output tensor. -class SparseSegmentMeanGrad { - public: - SparseSegmentMeanGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - grad, ::tensorflow::Input indices, ::tensorflow::Input - segment_ids, ::tensorflow::Input output_dim0); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the mean along sparse segments of a tensor. -/// -/// Like `SparseSegmentMean`, but allows missing ids in `segment_ids`. If an id is -/// misisng, the `output` tensor at that position will be zeroed. -/// -/// Read -/// [the section on segmentation](https://tensorflow.org/api_guides/python/math_ops#Segmentation) -/// for an explanation of segments. -/// -/// Arguments: -/// * scope: A Scope object -/// * indices: A 1-D tensor. Has same rank as `segment_ids`. -/// * segment_ids: A 1-D tensor. Values should be sorted and can be repeated. -/// * num_segments: Should equal the number of distinct segment IDs. -/// -/// Returns: -/// * `Output`: Has same shape as data, except for dimension 0 which has size -/// `num_segments`. -class SparseSegmentMeanWithNumSegments { - public: - SparseSegmentMeanWithNumSegments(const ::tensorflow::Scope& scope, - ::tensorflow::Input data, ::tensorflow::Input - indices, ::tensorflow::Input segment_ids, - ::tensorflow::Input num_segments); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the sum along sparse segments of a tensor divided by the sqrt of N. -/// -/// N is the size of the segment being reduced. -/// -/// Read -/// [the section on segmentation](https://tensorflow.org/api_guides/python/math_ops#Segmentation) -/// for an explanation of segments. -/// -/// Arguments: -/// * scope: A Scope object -/// * indices: A 1-D tensor. Has same rank as `segment_ids`. -/// * segment_ids: A 1-D tensor. Values should be sorted and can be repeated. -/// -/// Returns: -/// * `Output`: Has same shape as data, except for dimension 0 which -/// has size `k`, the number of segments. -class SparseSegmentSqrtN { - public: - SparseSegmentSqrtN(const ::tensorflow::Scope& scope, ::tensorflow::Input data, - ::tensorflow::Input indices, ::tensorflow::Input - segment_ids); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes gradients for SparseSegmentSqrtN. -/// -/// Returns tensor "output" with same shape as grad, except for dimension 0 whose -/// value is output_dim0. -/// -/// Arguments: -/// * scope: A Scope object -/// * grad: gradient propagated to the SparseSegmentSqrtN op. -/// * indices: indices passed to the corresponding SparseSegmentSqrtN op. -/// * segment_ids: segment_ids passed to the corresponding SparseSegmentSqrtN op. -/// * output_dim0: dimension 0 of "data" passed to SparseSegmentSqrtN op. -/// -/// Returns: -/// * `Output`: The output tensor. -class SparseSegmentSqrtNGrad { - public: - SparseSegmentSqrtNGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - grad, ::tensorflow::Input indices, ::tensorflow::Input - segment_ids, ::tensorflow::Input output_dim0); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the sum along sparse segments of a tensor divided by the sqrt of N. -/// -/// N is the size of the segment being reduced. -/// -/// Like `SparseSegmentSqrtN`, but allows missing ids in `segment_ids`. If an id is -/// misisng, the `output` tensor at that position will be zeroed. -/// -/// Read -/// [the section on segmentation](https://tensorflow.org/api_guides/python/math_ops#Segmentation) -/// for an explanation of segments. -/// -/// Arguments: -/// * scope: A Scope object -/// * indices: A 1-D tensor. Has same rank as `segment_ids`. -/// * segment_ids: A 1-D tensor. Values should be sorted and can be repeated. -/// * num_segments: Should equal the number of distinct segment IDs. -/// -/// Returns: -/// * `Output`: Has same shape as data, except for dimension 0 which -/// has size `k`, the number of segments. -class SparseSegmentSqrtNWithNumSegments { - public: - SparseSegmentSqrtNWithNumSegments(const ::tensorflow::Scope& scope, - ::tensorflow::Input data, ::tensorflow::Input - indices, ::tensorflow::Input segment_ids, - ::tensorflow::Input num_segments); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the sum along sparse segments of a tensor. -/// -/// Read -/// [the section on segmentation](https://tensorflow.org/api_guides/python/math_ops#Segmentation) -/// for an explanation of segments. -/// -/// Like `SegmentSum`, but `segment_ids` can have rank less than `data`'s first -/// dimension, selecting a subset of dimension 0, specified by `indices`. -/// -/// For example: -/// -/// ```python -/// c = tf.constant([[1,2,3,4], [-1,-2,-3,-4], [5,6,7,8]]) -/// -/// # Select two rows, one segment. -/// tf.sparse_segment_sum(c, tf.constant([0, 1]), tf.constant([0, 0])) -/// # => [[0 0 0 0]] -/// -/// # Select two rows, two segment. -/// tf.sparse_segment_sum(c, tf.constant([0, 1]), tf.constant([0, 1])) -/// # => [[ 1 2 3 4] -/// # [-1 -2 -3 -4]] -/// -/// # Select all rows, two segments. -/// tf.sparse_segment_sum(c, tf.constant([0, 1, 2]), tf.constant([0, 0, 1])) -/// # => [[0 0 0 0] -/// # [5 6 7 8]] -/// -/// # Which is equivalent to: -/// tf.segment_sum(c, tf.constant([0, 0, 1])) -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * indices: A 1-D tensor. Has same rank as `segment_ids`. -/// * segment_ids: A 1-D tensor. Values should be sorted and can be repeated. -/// -/// Returns: -/// * `Output`: Has same shape as data, except for dimension 0 which -/// has size `k`, the number of segments. -class SparseSegmentSum { - public: - SparseSegmentSum(const ::tensorflow::Scope& scope, ::tensorflow::Input data, - ::tensorflow::Input indices, ::tensorflow::Input segment_ids); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the sum along sparse segments of a tensor. -/// -/// Like `SparseSegmentSum`, but allows missing ids in `segment_ids`. If an id is -/// misisng, the `output` tensor at that position will be zeroed. -/// -/// Read -/// [the section on segmentation](https://tensorflow.org/api_guides/python/math_ops#Segmentation) -/// for an explanation of segments. -/// -/// For example: -/// -/// ```python -/// c = tf.constant([[1,2,3,4], [-1,-2,-3,-4], [5,6,7,8]]) -/// -/// tf.sparse_segment_sum_with_num_segments( -/// c, tf.constant([0, 1]), tf.constant([0, 0]), num_segments=3) -/// # => [[0 0 0 0] -/// # [0 0 0 0] -/// # [0 0 0 0]] -/// -/// tf.sparse_segment_sum_with_num_segments(c, -/// tf.constant([0, 1]), -/// tf.constant([0, 2], -/// num_segments=4)) -/// # => [[ 1 2 3 4] -/// # [ 0 0 0 0] -/// # [-1 -2 -3 -4] -/// # [ 0 0 0 0]] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * indices: A 1-D tensor. Has same rank as `segment_ids`. -/// * segment_ids: A 1-D tensor. Values should be sorted and can be repeated. -/// * num_segments: Should equal the number of distinct segment IDs. -/// -/// Returns: -/// * `Output`: Has same shape as data, except for dimension 0 which -/// has size `num_segments`. -class SparseSegmentSumWithNumSegments { - public: - SparseSegmentSumWithNumSegments(const ::tensorflow::Scope& scope, - ::tensorflow::Input data, ::tensorflow::Input - indices, ::tensorflow::Input segment_ids, - ::tensorflow::Input num_segments); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes square root of x element-wise. -/// -/// I.e., \\(y = \sqrt{x} = x^{1/2}\\). -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Sqrt { - public: - Sqrt(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes square of x element-wise. -/// -/// I.e., \\(y = x * x = x^2\\). -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Square { - public: - Square(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Returns (x - y)(x - y) element-wise. -/// -/// *NOTE*: `SquaredDifference` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class SquaredDifference { - public: - SquaredDifference(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Returns x - y element-wise. -/// -/// *NOTE*: `Subtract` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -/// -/// Aliases: -/// * Sub -class Subtract { - public: - Subtract(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; -typedef Subtract Sub; - -/// Computes the sum of elements across dimensions of a tensor. -/// -/// Reduces `input` along the dimensions given in `axis`. Unless -/// `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in -/// `axis`. If `keep_dims` is true, the reduced dimensions are -/// retained with length 1. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The tensor to reduce. -/// * axis: The dimensions to reduce. Must be in the range -/// `[-rank(input), rank(input))`. -/// -/// Optional attributes (see `Attrs`): -/// * keep_dims: If true, retain reduced dimensions with length 1. -/// -/// Returns: -/// * `Output`: The reduced tensor. -/// -/// Aliases: -/// * ReduceSum -class Sum { - public: - /// Optional attribute setters for Sum - struct Attrs { - /// If true, retain reduced dimensions with length 1. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs KeepDims(bool x) { - Attrs ret = *this; - ret.keep_dims_ = x; - return ret; - } - - bool keep_dims_ = false; - }; - Sum(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input axis); - Sum(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input axis, const Sum::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs KeepDims(bool x) { - return Attrs().KeepDims(x); - } - - Operation operation; - ::tensorflow::Output output; -}; -typedef Sum ReduceSum; - -/// Computes tan of x element-wise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Tan { - public: - Tan(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes hyperbolic tangent of `x` element-wise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The y tensor. -class Tanh { - public: - Tanh(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Returns x / y element-wise for integer types. -/// -/// Truncation designates that negative numbers will round fractional quantities -/// toward zero. I.e. -7 / 5 = -1. This matches C semantics but it is different -/// than Python semantics. See `FloorDiv` for a division function that matches -/// Python Semantics. -/// -/// *NOTE*: `TruncateDiv` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class TruncateDiv { - public: - TruncateDiv(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Returns element-wise remainder of division. This emulates C semantics in that -/// -/// the result here is consistent with a truncating divide. E.g. `truncate(x / y) * -/// y + truncate_mod(x, y) = x`. -/// -/// *NOTE*: `TruncateMod` supports broadcasting. More about broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class TruncateMod { - public: - TruncateMod(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Computes the maximum along segments of a tensor. -/// -/// Read -/// [the section on segmentation](https://tensorflow.org/api_guides/python/math_ops#Segmentation) -/// for an explanation of segments. -/// -/// This operator is similar to the unsorted segment sum operator found -/// [(here)](../../../api_docs/python/math_ops.md#UnsortedSegmentSum). -/// Instead of computing the sum over segments, it computes the maximum such that: -/// -/// \\(output_i = \max_{j...} data[j...]\\) where max is over tuples `j...` such -/// that `segment_ids[j...] == i`. -/// -/// If the maximum is empty for a given segment ID `i`, it outputs the smallest -/// possible value for the specific numeric type, -/// `output[i] = numeric_limits::lowest()`. -/// -/// If the given segment ID `i` is negative, then the corresponding value is -/// dropped, and will not be included in the result. -/// -///
-/// -///
-/// -/// Arguments: -/// * scope: A Scope object -/// * segment_ids: A tensor whose shape is a prefix of `data.shape`.END -/// } -/// out_arg { -/// name: "output" -/// description: <::max()`. -/// -/// If the given segment ID `i` is negative, then the corresponding value is -/// dropped, and will not be included in the result. -/// -/// Arguments: -/// * scope: A Scope object -/// * segment_ids: A tensor whose shape is a prefix of `data.shape`. -/// -/// Returns: -/// * `Output`: Has same shape as data, except for the first `segment_ids.rank` -/// dimensions, which are replaced with a single dimension which has size -/// `num_segments`. -class UnsortedSegmentMin { - public: - UnsortedSegmentMin(const ::tensorflow::Scope& scope, ::tensorflow::Input data, - ::tensorflow::Input segment_ids, ::tensorflow::Input - num_segments); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the product along segments of a tensor. -/// -/// Read -/// [the section on segmentation](https://tensorflow.org/api_guides/python/math_ops#segmentation) -/// for an explanation of segments. -/// -/// This operator is similar to the unsorted segment sum operator found -/// [(here)](../../../api_docs/python/math_ops.md#UnsortedSegmentSum). -/// Instead of computing the sum over segments, it computes the product of all -/// entries belonging to a segment such that: -/// -/// \\(output_i = \prod_{j...} data[j...]\\) where the product is over tuples -/// `j...` such that `segment_ids[j...] == i`. -/// -/// If there is no entry for a given segment ID `i`, it outputs 1. -/// -/// If the given segment ID `i` is negative, then the corresponding value is -/// dropped, and will not be included in the result. -/// -/// Arguments: -/// * scope: A Scope object -/// * segment_ids: A tensor whose shape is a prefix of `data.shape`. -/// -/// Returns: -/// * `Output`: Has same shape as data, except for the first `segment_ids.rank` -/// dimensions, which are replaced with a single dimension which has size -/// `num_segments`. -class UnsortedSegmentProd { - public: - UnsortedSegmentProd(const ::tensorflow::Scope& scope, ::tensorflow::Input data, - ::tensorflow::Input segment_ids, ::tensorflow::Input - num_segments); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the sum along segments of a tensor. -/// -/// Read -/// [the section on segmentation](https://tensorflow.org/api_guides/python/math_ops#Segmentation) -/// for an explanation of segments. -/// -/// Computes a tensor such that -/// \\(output[i] = \sum_{j...} data[j...]\\) where the sum is over tuples `j...` such -/// that `segment_ids[j...] == i`. Unlike `SegmentSum`, `segment_ids` -/// need not be sorted and need not cover all values in the full -/// range of valid values. -/// -/// If the sum is empty for a given segment ID `i`, `output[i] = 0`. -/// If the given segment ID `i` is negative, the value is dropped and will not be -/// added to the sum of the segment. -/// -/// `num_segments` should equal the number of distinct segment IDs. -/// -///
-/// -///
-/// -/// Arguments: -/// * scope: A Scope object -/// * segment_ids: A tensor whose shape is a prefix of `data.shape`. -/// -/// Returns: -/// * `Output`: Has same shape as data, except for the first `segment_ids.rank` -/// dimensions, which are replaced with a single dimension which has size -/// `num_segments`. -class UnsortedSegmentSum { - public: - UnsortedSegmentSum(const ::tensorflow::Scope& scope, ::tensorflow::Input data, - ::tensorflow::Input segment_ids, ::tensorflow::Input - num_segments); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Returns 0 if x == 0, and x / y otherwise, elementwise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class Xdivy { - public: - Xdivy(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Returns 0 if x == 0, and x * log(y) otherwise, elementwise. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class Xlogy { - public: - Xlogy(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input y); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Compute the Hurwitz zeta function \\(\zeta(x, q)\\). -/// -/// The Hurwitz zeta function is defined as: -/// -/// -/// \\(\zeta(x, q) = \sum_{n=0}^{\infty} (q + n)^{-x}\\) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class Zeta { - public: - Zeta(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input q); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_MATH_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/math_ops_internal.h b/linux/include/tensorflow/cc/ops/math_ops_internal.h deleted file mode 100755 index 939b70ab5..000000000 --- a/linux/include/tensorflow/cc/ops/math_ops_internal.h +++ /dev/null @@ -1,179 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_MATH_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_MATH_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup math_ops_internal Math Ops Internal -/// @{ - -/// Computes the gradient of `igamma(a, x)` wrt `a`. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class IgammaGradA { - public: - IgammaGradA(const ::tensorflow::Scope& scope, ::tensorflow::Input a, - ::tensorflow::Input x); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Computes the gradient for the inverse of `x` wrt its input. -/// -/// Specifically, `grad = -dy * y*y`, where `y = 1/x`, and `dy` -/// is the corresponding input gradient. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class InvGrad { - public: - InvGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input y, - ::tensorflow::Input dy); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Computes the gradient for the inverse of `x` wrt its input. -/// -/// Specifically, `grad = -dy * y*y`, where `y = 1/x`, and `dy` -/// is the corresponding input gradient. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class ReciprocalGrad { - public: - ReciprocalGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input y, - ::tensorflow::Input dy); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Computes the gradient for the rsqrt of `x` wrt its input. -/// -/// Specifically, `grad = dy * -0.5 * y^3`, where `y = rsqrt(x)`, and `dy` -/// is the corresponding input gradient. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class RsqrtGrad { - public: - RsqrtGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input y, - ::tensorflow::Input dy); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Computes the gradient of the sigmoid of `x` wrt its input. -/// -/// Specifically, `grad = dy * y * (1 - y)`, where `y = sigmoid(x)`, and -/// `dy` is the corresponding input gradient. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class SigmoidGrad { - public: - SigmoidGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input y, - ::tensorflow::Input dy); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Computes the gradient for the sqrt of `x` wrt its input. -/// -/// Specifically, `grad = dy * 0.5 / y`, where `y = sqrt(x)`, and `dy` -/// is the corresponding input gradient. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class SqrtGrad { - public: - SqrtGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input y, - ::tensorflow::Input dy); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -/// Computes the gradient for the tanh of `x` wrt its input. -/// -/// Specifically, `grad = dy * (1 - y*y)`, where `y = tanh(x)`, and `dy` -/// is the corresponding input gradient. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The z tensor. -class TanhGrad { - public: - TanhGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input y, - ::tensorflow::Input dy); - operator ::tensorflow::Output() const { return z; } - operator ::tensorflow::Input() const { return z; } - ::tensorflow::Node* node() const { return z.node(); } - - Operation operation; - ::tensorflow::Output z; -}; - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_MATH_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/nn_ops.h b/linux/include/tensorflow/cc/ops/nn_ops.h deleted file mode 100755 index ce6b58f48..000000000 --- a/linux/include/tensorflow/cc/ops/nn_ops.h +++ /dev/null @@ -1,3684 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_NN_OPS_H_ -#define TENSORFLOW_CC_OPS_NN_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup nn_ops Nn Ops -/// @{ - -/// Performs average pooling on the input. -/// -/// Each entry in `output` is the mean of the corresponding size `ksize` -/// window in `value`. -/// -/// Arguments: -/// * scope: A Scope object -/// * value: 4-D with shape `[batch, height, width, channels]`. -/// * ksize: The size of the sliding window for each dimension of `value`. -/// * strides: The stride of the sliding window for each dimension of `value`. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: Specify the data format of the input and output data. With the -/// default format "NHWC", the data is stored in the order of: -/// [batch, in_height, in_width, in_channels]. -/// Alternatively, the format could be "NCHW", the data storage order of: -/// [batch, in_channels, in_height, in_width]. -/// -/// Returns: -/// * `Output`: The average pooled output tensor. -class AvgPool { - public: - /// Optional attribute setters for AvgPool - struct Attrs { - /// Specify the data format of the input and output data. With the - /// default format "NHWC", the data is stored in the order of: - /// [batch, in_height, in_width, in_channels]. - /// Alternatively, the format could be "NCHW", the data storage order of: - /// [batch, in_channels, in_height, in_width]. - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - StringPiece data_format_ = "NHWC"; - }; - AvgPool(const ::tensorflow::Scope& scope, ::tensorflow::Input value, const - gtl::ArraySlice& ksize, const gtl::ArraySlice& strides, - StringPiece padding); - AvgPool(const ::tensorflow::Scope& scope, ::tensorflow::Input value, const - gtl::ArraySlice& ksize, const gtl::ArraySlice& strides, - StringPiece padding, const AvgPool::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Performs 3D average pooling on the input. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Shape `[batch, depth, rows, cols, channels]` tensor to pool over. -/// * ksize: 1-D tensor of length 5. The size of the window for each dimension of -/// the input tensor. Must have `ksize[0] = ksize[4] = 1`. -/// * strides: 1-D tensor of length 5. The stride of the sliding window for each -/// dimension of `input`. Must have `strides[0] = strides[4] = 1`. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: The data format of the input and output data. With the -/// default format "NDHWC", the data is stored in the order of: -/// [batch, in_depth, in_height, in_width, in_channels]. -/// Alternatively, the format could be "NCDHW", the data storage order is: -/// [batch, in_channels, in_depth, in_height, in_width]. -/// -/// Returns: -/// * `Output`: The average pooled output tensor. -class AvgPool3D { - public: - /// Optional attribute setters for AvgPool3D - struct Attrs { - /// The data format of the input and output data. With the - /// default format "NDHWC", the data is stored in the order of: - /// [batch, in_depth, in_height, in_width, in_channels]. - /// Alternatively, the format could be "NCDHW", the data storage order is: - /// [batch, in_channels, in_depth, in_height, in_width]. - /// - /// Defaults to "NDHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - StringPiece data_format_ = "NDHWC"; - }; - AvgPool3D(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - gtl::ArraySlice& ksize, const gtl::ArraySlice& strides, - StringPiece padding); - AvgPool3D(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - gtl::ArraySlice& ksize, const gtl::ArraySlice& strides, - StringPiece padding, const AvgPool3D::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes gradients of average pooling function. -/// -/// Arguments: -/// * scope: A Scope object -/// * orig_input_shape: The original input dimensions. -/// * grad: Output backprop of shape `[batch, depth, rows, cols, channels]`. -/// * ksize: 1-D tensor of length 5. The size of the window for each dimension of -/// the input tensor. Must have `ksize[0] = ksize[4] = 1`. -/// * strides: 1-D tensor of length 5. The stride of the sliding window for each -/// dimension of `input`. Must have `strides[0] = strides[4] = 1`. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: The data format of the input and output data. With the -/// default format "NDHWC", the data is stored in the order of: -/// [batch, in_depth, in_height, in_width, in_channels]. -/// Alternatively, the format could be "NCDHW", the data storage order is: -/// [batch, in_channels, in_depth, in_height, in_width]. -/// -/// Returns: -/// * `Output`: The backprop for input. -class AvgPool3DGrad { - public: - /// Optional attribute setters for AvgPool3DGrad - struct Attrs { - /// The data format of the input and output data. With the - /// default format "NDHWC", the data is stored in the order of: - /// [batch, in_depth, in_height, in_width, in_channels]. - /// Alternatively, the format could be "NCDHW", the data storage order is: - /// [batch, in_channels, in_depth, in_height, in_width]. - /// - /// Defaults to "NDHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - StringPiece data_format_ = "NDHWC"; - }; - AvgPool3DGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - orig_input_shape, ::tensorflow::Input grad, const - gtl::ArraySlice& ksize, const gtl::ArraySlice& strides, - StringPiece padding); - AvgPool3DGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - orig_input_shape, ::tensorflow::Input grad, const - gtl::ArraySlice& ksize, const gtl::ArraySlice& strides, - StringPiece padding, const AvgPool3DGrad::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Adds `bias` to `value`. -/// -/// This is a special case of `tf.add` where `bias` is restricted to be 1-D. -/// Broadcasting is supported, so `value` may have any number of dimensions. -/// -/// Arguments: -/// * scope: A Scope object -/// * value: Any number of dimensions. -/// * bias: 1-D with size the last dimension of `value`. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: Specify the data format of the input and output data. With the -/// default format "NHWC", the bias tensor will be added to the last dimension -/// of the value tensor. -/// Alternatively, the format could be "NCHW", the data storage order of: -/// [batch, in_channels, in_height, in_width]. -/// The tensor will be added to "in_channels", the third-to-the-last -/// dimension. -/// -/// Returns: -/// * `Output`: Broadcasted sum of `value` and `bias`. -class BiasAdd { - public: - /// Optional attribute setters for BiasAdd - struct Attrs { - /// Specify the data format of the input and output data. With the - /// default format "NHWC", the bias tensor will be added to the last dimension - /// of the value tensor. - /// Alternatively, the format could be "NCHW", the data storage order of: - /// [batch, in_channels, in_height, in_width]. - /// The tensor will be added to "in_channels", the third-to-the-last - /// dimension. - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - StringPiece data_format_ = "NHWC"; - }; - BiasAdd(const ::tensorflow::Scope& scope, ::tensorflow::Input value, - ::tensorflow::Input bias); - BiasAdd(const ::tensorflow::Scope& scope, ::tensorflow::Input value, - ::tensorflow::Input bias, const BiasAdd::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// The backward operation for "BiasAdd" on the "bias" tensor. -/// -/// It accumulates all the values from out_backprop into the feature dimension. -/// For NHWC data format, the feature dimension is the last. For NCHW data format, -/// the feature dimension is the third-to-last. -/// -/// Arguments: -/// * scope: A Scope object -/// * out_backprop: Any number of dimensions. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: Specify the data format of the input and output data. With the -/// default format "NHWC", the bias tensor will be added to the last dimension -/// of the value tensor. -/// Alternatively, the format could be "NCHW", the data storage order of: -/// [batch, in_channels, in_height, in_width]. -/// The tensor will be added to "in_channels", the third-to-the-last -/// dimension. -/// -/// Returns: -/// * `Output`: 1-D with size the feature dimension of `out_backprop`. -class BiasAddGrad { - public: - /// Optional attribute setters for BiasAddGrad - struct Attrs { - /// Specify the data format of the input and output data. With the - /// default format "NHWC", the bias tensor will be added to the last dimension - /// of the value tensor. - /// Alternatively, the format could be "NCHW", the data storage order of: - /// [batch, in_channels, in_height, in_width]. - /// The tensor will be added to "in_channels", the third-to-the-last - /// dimension. - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - StringPiece data_format_ = "NHWC"; - }; - BiasAddGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input out_backprop); - BiasAddGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input out_backprop, - const BiasAddGrad::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes a 2-D convolution given 4-D `input` and `filter` tensors. -/// -/// Given an input tensor of shape `[batch, in_height, in_width, in_channels]` -/// and a filter / kernel tensor of shape -/// `[filter_height, filter_width, in_channels, out_channels]`, this op -/// performs the following: -/// -/// 1. Flattens the filter to a 2-D matrix with shape -/// `[filter_height * filter_width * in_channels, output_channels]`. -/// 2. Extracts image patches from the input tensor to form a *virtual* -/// tensor of shape `[batch, out_height, out_width, -/// filter_height * filter_width * in_channels]`. -/// 3. For each patch, right-multiplies the filter matrix and the image patch -/// vector. -/// -/// In detail, with the default NHWC format, -/// -/// output[b, i, j, k] = -/// sum_{di, dj, q} input[b, strides[1] * i + di, strides[2] * j + dj, q] * -/// filter[di, dj, q, k] -/// -/// Must have `strides[0] = strides[3] = 1`. For the most common case of the same -/// horizontal and vertices strides, `strides = [1, stride, stride, 1]`. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: A 4-D tensor. The dimension order is interpreted according to the value -/// of `data_format`, see below for details. -/// * filter: A 4-D tensor of shape -/// `[filter_height, filter_width, in_channels, out_channels]` -/// * strides: 1-D tensor of length 4. The stride of the sliding window for each -/// dimension of `input`. The dimension order is determined by the value of -/// `data_format`, see below for details. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: Specify the data format of the input and output data. With the -/// default format "NHWC", the data is stored in the order of: -/// [batch, height, width, channels]. -/// Alternatively, the format could be "NCHW", the data storage order of: -/// [batch, channels, height, width]. -/// * dilations: 1-D tensor of length 4. The dilation factor for each dimension of -/// `input`. If set to k > 1, there will be k-1 skipped cells between each -/// filter element on that dimension. The dimension order is determined by the -/// value of `data_format`, see above for details. Dilations in the batch and -/// depth dimensions must be 1. -/// -/// Returns: -/// * `Output`: A 4-D tensor. The dimension order is determined by the value of -/// `data_format`, see below for details. -class Conv2D { - public: - /// Optional attribute setters for Conv2D - struct Attrs { - /// Defaults to true - TF_MUST_USE_RESULT Attrs UseCudnnOnGpu(bool x) { - Attrs ret = *this; - ret.use_cudnn_on_gpu_ = x; - return ret; - } - - /// Specify the data format of the input and output data. With the - /// default format "NHWC", the data is stored in the order of: - /// [batch, height, width, channels]. - /// Alternatively, the format could be "NCHW", the data storage order of: - /// [batch, channels, height, width]. - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - /// 1-D tensor of length 4. The dilation factor for each dimension of - /// `input`. If set to k > 1, there will be k-1 skipped cells between each - /// filter element on that dimension. The dimension order is determined by the - /// value of `data_format`, see above for details. Dilations in the batch and - /// depth dimensions must be 1. - /// - /// Defaults to [1, 1, 1, 1] - TF_MUST_USE_RESULT Attrs Dilations(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.dilations_ = x; - return ret; - } - - bool use_cudnn_on_gpu_ = true; - StringPiece data_format_ = "NHWC"; - gtl::ArraySlice dilations_ = Default_dilations(); - private: - static gtl::ArraySlice Default_dilations() { - static const int kStorage[] = {1, 1, 1, 1}; - return gtl::ArraySlice(kStorage); - } - }; - Conv2D(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input filter, const gtl::ArraySlice& strides, - StringPiece padding); - Conv2D(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input filter, const gtl::ArraySlice& strides, - StringPiece padding, const Conv2D::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs UseCudnnOnGpu(bool x) { - return Attrs().UseCudnnOnGpu(x); - } - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - static Attrs Dilations(const gtl::ArraySlice& x) { - return Attrs().Dilations(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the gradients of convolution with respect to the filter. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 4-D with shape `[batch, in_height, in_width, in_channels]`. -/// * filter_sizes: An integer vector representing the tensor shape of `filter`, -/// where `filter` is a 4-D -/// `[filter_height, filter_width, in_channels, out_channels]` tensor. -/// * out_backprop: 4-D with shape `[batch, out_height, out_width, out_channels]`. -/// Gradients w.r.t. the output of the convolution. -/// * strides: The stride of the sliding window for each dimension of the input -/// of the convolution. Must be in the same order as the dimension specified with -/// format. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: Specify the data format of the input and output data. With the -/// default format "NHWC", the data is stored in the order of: -/// [batch, in_height, in_width, in_channels]. -/// Alternatively, the format could be "NCHW", the data storage order of: -/// [batch, in_channels, in_height, in_width]. -/// * dilations: 1-D tensor of length 4. The dilation factor for each dimension of -/// `input`. If set to k > 1, there will be k-1 skipped cells between each filter -/// element on that dimension. The dimension order is determined by the value of -/// `data_format`, see above for details. Dilations in the batch and depth -/// dimensions must be 1. -/// -/// Returns: -/// * `Output`: 4-D with shape -/// `[filter_height, filter_width, in_channels, out_channels]`. Gradient w.r.t. -/// the `filter` input of the convolution. -class Conv2DBackpropFilter { - public: - /// Optional attribute setters for Conv2DBackpropFilter - struct Attrs { - /// Defaults to true - TF_MUST_USE_RESULT Attrs UseCudnnOnGpu(bool x) { - Attrs ret = *this; - ret.use_cudnn_on_gpu_ = x; - return ret; - } - - /// Specify the data format of the input and output data. With the - /// default format "NHWC", the data is stored in the order of: - /// [batch, in_height, in_width, in_channels]. - /// Alternatively, the format could be "NCHW", the data storage order of: - /// [batch, in_channels, in_height, in_width]. - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - /// 1-D tensor of length 4. The dilation factor for each dimension of - /// `input`. If set to k > 1, there will be k-1 skipped cells between each filter - /// element on that dimension. The dimension order is determined by the value of - /// `data_format`, see above for details. Dilations in the batch and depth - /// dimensions must be 1. - /// - /// Defaults to [1, 1, 1, 1] - TF_MUST_USE_RESULT Attrs Dilations(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.dilations_ = x; - return ret; - } - - bool use_cudnn_on_gpu_ = true; - StringPiece data_format_ = "NHWC"; - gtl::ArraySlice dilations_ = Default_dilations(); - private: - static gtl::ArraySlice Default_dilations() { - static const int kStorage[] = {1, 1, 1, 1}; - return gtl::ArraySlice(kStorage); - } - }; - Conv2DBackpropFilter(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, ::tensorflow::Input filter_sizes, - ::tensorflow::Input out_backprop, const - gtl::ArraySlice& strides, StringPiece padding); - Conv2DBackpropFilter(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, ::tensorflow::Input filter_sizes, - ::tensorflow::Input out_backprop, const - gtl::ArraySlice& strides, StringPiece padding, const - Conv2DBackpropFilter::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs UseCudnnOnGpu(bool x) { - return Attrs().UseCudnnOnGpu(x); - } - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - static Attrs Dilations(const gtl::ArraySlice& x) { - return Attrs().Dilations(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the gradients of convolution with respect to the input. -/// -/// Arguments: -/// * scope: A Scope object -/// * input_sizes: An integer vector representing the shape of `input`, -/// where `input` is a 4-D `[batch, height, width, channels]` tensor. -/// * filter: 4-D with shape -/// `[filter_height, filter_width, in_channels, out_channels]`. -/// * out_backprop: 4-D with shape `[batch, out_height, out_width, out_channels]`. -/// Gradients w.r.t. the output of the convolution. -/// * strides: The stride of the sliding window for each dimension of the input -/// of the convolution. Must be in the same order as the dimension specified with -/// format. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: Specify the data format of the input and output data. With the -/// default format "NHWC", the data is stored in the order of: -/// [batch, in_height, in_width, in_channels]. -/// Alternatively, the format could be "NCHW", the data storage order of: -/// [batch, in_channels, in_height, in_width]. -/// * dilations: 1-D tensor of length 4. The dilation factor for each dimension of -/// `input`. If set to k > 1, there will be k-1 skipped cells between each filter -/// element on that dimension. The dimension order is determined by the value of -/// `data_format`, see above for details. Dilations in the batch and depth -/// dimensions must be 1. -/// -/// Returns: -/// * `Output`: 4-D with shape `[batch, in_height, in_width, in_channels]`. Gradient -/// w.r.t. the input of the convolution. -class Conv2DBackpropInput { - public: - /// Optional attribute setters for Conv2DBackpropInput - struct Attrs { - /// Defaults to true - TF_MUST_USE_RESULT Attrs UseCudnnOnGpu(bool x) { - Attrs ret = *this; - ret.use_cudnn_on_gpu_ = x; - return ret; - } - - /// Specify the data format of the input and output data. With the - /// default format "NHWC", the data is stored in the order of: - /// [batch, in_height, in_width, in_channels]. - /// Alternatively, the format could be "NCHW", the data storage order of: - /// [batch, in_channels, in_height, in_width]. - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - /// 1-D tensor of length 4. The dilation factor for each dimension of - /// `input`. If set to k > 1, there will be k-1 skipped cells between each filter - /// element on that dimension. The dimension order is determined by the value of - /// `data_format`, see above for details. Dilations in the batch and depth - /// dimensions must be 1. - /// - /// Defaults to [1, 1, 1, 1] - TF_MUST_USE_RESULT Attrs Dilations(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.dilations_ = x; - return ret; - } - - bool use_cudnn_on_gpu_ = true; - StringPiece data_format_ = "NHWC"; - gtl::ArraySlice dilations_ = Default_dilations(); - private: - static gtl::ArraySlice Default_dilations() { - static const int kStorage[] = {1, 1, 1, 1}; - return gtl::ArraySlice(kStorage); - } - }; - Conv2DBackpropInput(const ::tensorflow::Scope& scope, ::tensorflow::Input - input_sizes, ::tensorflow::Input filter, - ::tensorflow::Input out_backprop, const - gtl::ArraySlice& strides, StringPiece padding); - Conv2DBackpropInput(const ::tensorflow::Scope& scope, ::tensorflow::Input - input_sizes, ::tensorflow::Input filter, - ::tensorflow::Input out_backprop, const - gtl::ArraySlice& strides, StringPiece padding, const - Conv2DBackpropInput::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs UseCudnnOnGpu(bool x) { - return Attrs().UseCudnnOnGpu(x); - } - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - static Attrs Dilations(const gtl::ArraySlice& x) { - return Attrs().Dilations(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes a 3-D convolution given 5-D `input` and `filter` tensors. -/// -/// In signal processing, cross-correlation is a measure of similarity of -/// two waveforms as a function of a time-lag applied to one of them. This -/// is also known as a sliding dot product or sliding inner-product. -/// -/// Our Conv3D implements a form of cross-correlation. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Shape `[batch, in_depth, in_height, in_width, in_channels]`. -/// * filter: Shape `[filter_depth, filter_height, filter_width, in_channels, -/// out_channels]`. `in_channels` must match between `input` and `filter`. -/// * strides: 1-D tensor of length 5. The stride of the sliding window for each -/// dimension of `input`. Must have `strides[0] = strides[4] = 1`. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: The data format of the input and output data. With the -/// default format "NDHWC", the data is stored in the order of: -/// [batch, in_depth, in_height, in_width, in_channels]. -/// Alternatively, the format could be "NCDHW", the data storage order is: -/// [batch, in_channels, in_depth, in_height, in_width]. -/// * dilations: 1-D tensor of length 5. The dilation factor for each dimension of -/// `input`. If set to k > 1, there will be k-1 skipped cells between each -/// filter element on that dimension. The dimension order is determined by the -/// value of `data_format`, see above for details. Dilations in the batch and -/// depth dimensions must be 1. -/// -/// Returns: -/// * `Output`: The output tensor. -class Conv3D { - public: - /// Optional attribute setters for Conv3D - struct Attrs { - /// The data format of the input and output data. With the - /// default format "NDHWC", the data is stored in the order of: - /// [batch, in_depth, in_height, in_width, in_channels]. - /// Alternatively, the format could be "NCDHW", the data storage order is: - /// [batch, in_channels, in_depth, in_height, in_width]. - /// - /// Defaults to "NDHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - /// 1-D tensor of length 5. The dilation factor for each dimension of - /// `input`. If set to k > 1, there will be k-1 skipped cells between each - /// filter element on that dimension. The dimension order is determined by the - /// value of `data_format`, see above for details. Dilations in the batch and - /// depth dimensions must be 1. - /// - /// Defaults to [1, 1, 1, 1, 1] - TF_MUST_USE_RESULT Attrs Dilations(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.dilations_ = x; - return ret; - } - - StringPiece data_format_ = "NDHWC"; - gtl::ArraySlice dilations_ = Default_dilations(); - private: - static gtl::ArraySlice Default_dilations() { - static const int kStorage[] = {1, 1, 1, 1, 1}; - return gtl::ArraySlice(kStorage); - } - }; - Conv3D(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input filter, const gtl::ArraySlice& strides, - StringPiece padding); - Conv3D(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input filter, const gtl::ArraySlice& strides, - StringPiece padding, const Conv3D::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - static Attrs Dilations(const gtl::ArraySlice& x) { - return Attrs().Dilations(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the gradients of 3-D convolution with respect to the filter. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Shape `[batch, depth, rows, cols, in_channels]`. -/// * filter_sizes: An integer vector representing the tensor shape of `filter`, -/// where `filter` is a 5-D -/// `[filter_depth, filter_height, filter_width, in_channels, out_channels]` -/// tensor. -/// * out_backprop: Backprop signal of shape `[batch, out_depth, out_rows, out_cols, -/// out_channels]`. -/// * strides: 1-D tensor of length 5. The stride of the sliding window for each -/// dimension of `input`. Must have `strides[0] = strides[4] = 1`. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: The data format of the input and output data. With the -/// default format "NDHWC", the data is stored in the order of: -/// [batch, in_depth, in_height, in_width, in_channels]. -/// Alternatively, the format could be "NCDHW", the data storage order is: -/// [batch, in_channels, in_depth, in_height, in_width]. -/// * dilations: 1-D tensor of length 5. The dilation factor for each dimension of -/// `input`. If set to k > 1, there will be k-1 skipped cells between each -/// filter element on that dimension. The dimension order is determined by the -/// value of `data_format`, see above for details. Dilations in the batch and -/// depth dimensions must be 1. -/// -/// Returns: -/// * `Output`: The output tensor. -class Conv3DBackpropFilterV2 { - public: - /// Optional attribute setters for Conv3DBackpropFilterV2 - struct Attrs { - /// The data format of the input and output data. With the - /// default format "NDHWC", the data is stored in the order of: - /// [batch, in_depth, in_height, in_width, in_channels]. - /// Alternatively, the format could be "NCDHW", the data storage order is: - /// [batch, in_channels, in_depth, in_height, in_width]. - /// - /// Defaults to "NDHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - /// 1-D tensor of length 5. The dilation factor for each dimension of - /// `input`. If set to k > 1, there will be k-1 skipped cells between each - /// filter element on that dimension. The dimension order is determined by the - /// value of `data_format`, see above for details. Dilations in the batch and - /// depth dimensions must be 1. - /// - /// Defaults to [1, 1, 1, 1, 1] - TF_MUST_USE_RESULT Attrs Dilations(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.dilations_ = x; - return ret; - } - - StringPiece data_format_ = "NDHWC"; - gtl::ArraySlice dilations_ = Default_dilations(); - private: - static gtl::ArraySlice Default_dilations() { - static const int kStorage[] = {1, 1, 1, 1, 1}; - return gtl::ArraySlice(kStorage); - } - }; - Conv3DBackpropFilterV2(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, ::tensorflow::Input filter_sizes, - ::tensorflow::Input out_backprop, const - gtl::ArraySlice& strides, StringPiece padding); - Conv3DBackpropFilterV2(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, ::tensorflow::Input filter_sizes, - ::tensorflow::Input out_backprop, const - gtl::ArraySlice& strides, StringPiece padding, - const Conv3DBackpropFilterV2::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - static Attrs Dilations(const gtl::ArraySlice& x) { - return Attrs().Dilations(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the gradients of 3-D convolution with respect to the input. -/// -/// Arguments: -/// * scope: A Scope object -/// * input_sizes: An integer vector representing the tensor shape of `input`, -/// where `input` is a 5-D -/// `[batch, depth, rows, cols, in_channels]` tensor. -/// * filter: Shape `[depth, rows, cols, in_channels, out_channels]`. -/// `in_channels` must match between `input` and `filter`. -/// * out_backprop: Backprop signal of shape `[batch, out_depth, out_rows, out_cols, -/// out_channels]`. -/// * strides: 1-D tensor of length 5. The stride of the sliding window for each -/// dimension of `input`. Must have `strides[0] = strides[4] = 1`. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: The data format of the input and output data. With the -/// default format "NDHWC", the data is stored in the order of: -/// [batch, in_depth, in_height, in_width, in_channels]. -/// Alternatively, the format could be "NCDHW", the data storage order is: -/// [batch, in_channels, in_depth, in_height, in_width]. -/// * dilations: 1-D tensor of length 5. The dilation factor for each dimension of -/// `input`. If set to k > 1, there will be k-1 skipped cells between each -/// filter element on that dimension. The dimension order is determined by the -/// value of `data_format`, see above for details. Dilations in the batch and -/// depth dimensions must be 1. -/// -/// Returns: -/// * `Output`: The output tensor. -class Conv3DBackpropInputV2 { - public: - /// Optional attribute setters for Conv3DBackpropInputV2 - struct Attrs { - /// The data format of the input and output data. With the - /// default format "NDHWC", the data is stored in the order of: - /// [batch, in_depth, in_height, in_width, in_channels]. - /// Alternatively, the format could be "NCDHW", the data storage order is: - /// [batch, in_channels, in_depth, in_height, in_width]. - /// - /// Defaults to "NDHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - /// 1-D tensor of length 5. The dilation factor for each dimension of - /// `input`. If set to k > 1, there will be k-1 skipped cells between each - /// filter element on that dimension. The dimension order is determined by the - /// value of `data_format`, see above for details. Dilations in the batch and - /// depth dimensions must be 1. - /// - /// Defaults to [1, 1, 1, 1, 1] - TF_MUST_USE_RESULT Attrs Dilations(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.dilations_ = x; - return ret; - } - - StringPiece data_format_ = "NDHWC"; - gtl::ArraySlice dilations_ = Default_dilations(); - private: - static gtl::ArraySlice Default_dilations() { - static const int kStorage[] = {1, 1, 1, 1, 1}; - return gtl::ArraySlice(kStorage); - } - }; - Conv3DBackpropInputV2(const ::tensorflow::Scope& scope, ::tensorflow::Input - input_sizes, ::tensorflow::Input filter, - ::tensorflow::Input out_backprop, const - gtl::ArraySlice& strides, StringPiece padding); - Conv3DBackpropInputV2(const ::tensorflow::Scope& scope, ::tensorflow::Input - input_sizes, ::tensorflow::Input filter, - ::tensorflow::Input out_backprop, const - gtl::ArraySlice& strides, StringPiece padding, const - Conv3DBackpropInputV2::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - static Attrs Dilations(const gtl::ArraySlice& x) { - return Attrs().Dilations(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Returns the dimension index in the destination data format given the one in -/// -/// the source data format. -/// -/// Arguments: -/// * scope: A Scope object -/// * x: A Tensor with each element as a dimension index in source data format. -/// Must be in the range [-4, 4). -/// -/// Optional attributes (see `Attrs`): -/// * src_format: source data format. -/// * dst_format: destination data format. -/// -/// Returns: -/// * `Output`: A Tensor with each element as a dimension index in destination data format. -class DataFormatDimMap { - public: - /// Optional attribute setters for DataFormatDimMap - struct Attrs { - /// source data format. - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs SrcFormat(StringPiece x) { - Attrs ret = *this; - ret.src_format_ = x; - return ret; - } - - /// destination data format. - /// - /// Defaults to "NCHW" - TF_MUST_USE_RESULT Attrs DstFormat(StringPiece x) { - Attrs ret = *this; - ret.dst_format_ = x; - return ret; - } - - StringPiece src_format_ = "NHWC"; - StringPiece dst_format_ = "NCHW"; - }; - DataFormatDimMap(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - DataFormatDimMap(const ::tensorflow::Scope& scope, ::tensorflow::Input x, const - DataFormatDimMap::Attrs& attrs); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - static Attrs SrcFormat(StringPiece x) { - return Attrs().SrcFormat(x); - } - static Attrs DstFormat(StringPiece x) { - return Attrs().DstFormat(x); - } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Returns the permuted vector/tensor in the destination data format given the -/// -/// one in the source data format. -/// -/// Arguments: -/// * scope: A Scope object -/// * x: Vector of size 4 or Tensor of shape (4, 2) in source data format. -/// -/// Optional attributes (see `Attrs`): -/// * src_format: source data format. -/// * dst_format: destination data format. -/// -/// Returns: -/// * `Output`: Vector of size 4 or Tensor of shape (4, 2) in destination data format. -class DataFormatVecPermute { - public: - /// Optional attribute setters for DataFormatVecPermute - struct Attrs { - /// source data format. - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs SrcFormat(StringPiece x) { - Attrs ret = *this; - ret.src_format_ = x; - return ret; - } - - /// destination data format. - /// - /// Defaults to "NCHW" - TF_MUST_USE_RESULT Attrs DstFormat(StringPiece x) { - Attrs ret = *this; - ret.dst_format_ = x; - return ret; - } - - StringPiece src_format_ = "NHWC"; - StringPiece dst_format_ = "NCHW"; - }; - DataFormatVecPermute(const ::tensorflow::Scope& scope, ::tensorflow::Input x); - DataFormatVecPermute(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - const DataFormatVecPermute::Attrs& attrs); - operator ::tensorflow::Output() const { return y; } - operator ::tensorflow::Input() const { return y; } - ::tensorflow::Node* node() const { return y.node(); } - - static Attrs SrcFormat(StringPiece x) { - return Attrs().SrcFormat(x); - } - static Attrs DstFormat(StringPiece x) { - return Attrs().DstFormat(x); - } - - Operation operation; - ::tensorflow::Output y; -}; - -/// Computes a 2-D depthwise convolution given 4-D `input` and `filter` tensors. -/// -/// Given an input tensor of shape `[batch, in_height, in_width, in_channels]` -/// and a filter / kernel tensor of shape -/// `[filter_height, filter_width, in_channels, channel_multiplier]`, containing -/// `in_channels` convolutional filters of depth 1, `depthwise_conv2d` applies -/// a different filter to each input channel (expanding from 1 channel to -/// `channel_multiplier` channels for each), then concatenates the results -/// together. Thus, the output has `in_channels * channel_multiplier` channels. -/// -/// ``` -/// for k in 0..in_channels-1 -/// for q in 0..channel_multiplier-1 -/// output[b, i, j, k * channel_multiplier + q] = -/// sum_{di, dj} input[b, strides[1] * i + di, strides[2] * j + dj, k] * -/// filter[di, dj, k, q] -/// ``` -/// -/// Must have `strides[0] = strides[3] = 1`. For the most common case of the same -/// horizontal and vertices strides, `strides = [1, stride, stride, 1]`. -/// -/// Arguments: -/// * scope: A Scope object -/// * strides: 1-D of length 4. The stride of the sliding window for each dimension -/// of `input`. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: Specify the data format of the input and output data. With the -/// default format "NHWC", the data is stored in the order of: -/// [batch, height, width, channels]. -/// Alternatively, the format could be "NCHW", the data storage order of: -/// [batch, channels, height, width]. -/// * dilations: 1-D tensor of length 4. The dilation factor for each dimension of -/// `input`. If set to k > 1, there will be k-1 skipped cells between each filter -/// element on that dimension. The dimension order is determined by the value of -/// `data_format`, see above for details. Dilations in the batch and depth -/// dimensions must be 1. -/// -/// Returns: -/// * `Output`: The output tensor. -class DepthwiseConv2dNative { - public: - /// Optional attribute setters for DepthwiseConv2dNative - struct Attrs { - /// Specify the data format of the input and output data. With the - /// default format "NHWC", the data is stored in the order of: - /// [batch, height, width, channels]. - /// Alternatively, the format could be "NCHW", the data storage order of: - /// [batch, channels, height, width]. - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - /// 1-D tensor of length 4. The dilation factor for each dimension of - /// `input`. If set to k > 1, there will be k-1 skipped cells between each filter - /// element on that dimension. The dimension order is determined by the value of - /// `data_format`, see above for details. Dilations in the batch and depth - /// dimensions must be 1. - /// - /// Defaults to [1, 1, 1, 1] - TF_MUST_USE_RESULT Attrs Dilations(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.dilations_ = x; - return ret; - } - - StringPiece data_format_ = "NHWC"; - gtl::ArraySlice dilations_ = Default_dilations(); - private: - static gtl::ArraySlice Default_dilations() { - static const int kStorage[] = {1, 1, 1, 1}; - return gtl::ArraySlice(kStorage); - } - }; - DepthwiseConv2dNative(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, ::tensorflow::Input filter, const - gtl::ArraySlice& strides, StringPiece padding); - DepthwiseConv2dNative(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, ::tensorflow::Input filter, const - gtl::ArraySlice& strides, StringPiece padding, const - DepthwiseConv2dNative::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - static Attrs Dilations(const gtl::ArraySlice& x) { - return Attrs().Dilations(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the gradients of depthwise convolution with respect to the filter. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 4-D with shape based on `data_format`. For example, if -/// `data_format` is 'NHWC' then `input` is a 4-D `[batch, in_height, -/// in_width, in_channels]` tensor. -/// * filter_sizes: An integer vector representing the tensor shape of `filter`, -/// where `filter` is a 4-D -/// `[filter_height, filter_width, in_channels, depthwise_multiplier]` tensor. -/// * out_backprop: 4-D with shape based on `data_format`. -/// For example, if `data_format` is 'NHWC' then -/// out_backprop shape is `[batch, out_height, out_width, out_channels]`. -/// Gradients w.r.t. the output of the convolution. -/// * strides: The stride of the sliding window for each dimension of the input -/// of the convolution. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: Specify the data format of the input and output data. With the -/// default format "NHWC", the data is stored in the order of: -/// [batch, height, width, channels]. -/// Alternatively, the format could be "NCHW", the data storage order of: -/// [batch, channels, height, width]. -/// * dilations: 1-D tensor of length 4. The dilation factor for each dimension of -/// `input`. If set to k > 1, there will be k-1 skipped cells between each filter -/// element on that dimension. The dimension order is determined by the value of -/// `data_format`, see above for details. Dilations in the batch and depth -/// dimensions must be 1. -/// -/// Returns: -/// * `Output`: 4-D with shape -/// `[filter_height, filter_width, in_channels, out_channels]`. Gradient w.r.t. -/// the `filter` input of the convolution. -class DepthwiseConv2dNativeBackpropFilter { - public: - /// Optional attribute setters for DepthwiseConv2dNativeBackpropFilter - struct Attrs { - /// Specify the data format of the input and output data. With the - /// default format "NHWC", the data is stored in the order of: - /// [batch, height, width, channels]. - /// Alternatively, the format could be "NCHW", the data storage order of: - /// [batch, channels, height, width]. - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - /// 1-D tensor of length 4. The dilation factor for each dimension of - /// `input`. If set to k > 1, there will be k-1 skipped cells between each filter - /// element on that dimension. The dimension order is determined by the value of - /// `data_format`, see above for details. Dilations in the batch and depth - /// dimensions must be 1. - /// - /// Defaults to [1, 1, 1, 1] - TF_MUST_USE_RESULT Attrs Dilations(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.dilations_ = x; - return ret; - } - - StringPiece data_format_ = "NHWC"; - gtl::ArraySlice dilations_ = Default_dilations(); - private: - static gtl::ArraySlice Default_dilations() { - static const int kStorage[] = {1, 1, 1, 1}; - return gtl::ArraySlice(kStorage); - } - }; - DepthwiseConv2dNativeBackpropFilter(const ::tensorflow::Scope& scope, - ::tensorflow::Input input, - ::tensorflow::Input filter_sizes, - ::tensorflow::Input out_backprop, const - gtl::ArraySlice& strides, StringPiece - padding); - DepthwiseConv2dNativeBackpropFilter(const ::tensorflow::Scope& scope, - ::tensorflow::Input input, - ::tensorflow::Input filter_sizes, - ::tensorflow::Input out_backprop, const - gtl::ArraySlice& strides, StringPiece - padding, const - DepthwiseConv2dNativeBackpropFilter::Attrs& - attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - static Attrs Dilations(const gtl::ArraySlice& x) { - return Attrs().Dilations(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the gradients of depthwise convolution with respect to the input. -/// -/// Arguments: -/// * scope: A Scope object -/// * input_sizes: An integer vector representing the shape of `input`, based -/// on `data_format`. For example, if `data_format` is 'NHWC' then -/// `input` is a 4-D `[batch, height, width, channels]` tensor. -/// * filter: 4-D with shape -/// `[filter_height, filter_width, in_channels, depthwise_multiplier]`. -/// * out_backprop: 4-D with shape based on `data_format`. -/// For example, if `data_format` is 'NHWC' then -/// out_backprop shape is `[batch, out_height, out_width, out_channels]`. -/// Gradients w.r.t. the output of the convolution. -/// * strides: The stride of the sliding window for each dimension of the input -/// of the convolution. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: Specify the data format of the input and output data. With the -/// default format "NHWC", the data is stored in the order of: -/// [batch, height, width, channels]. -/// Alternatively, the format could be "NCHW", the data storage order of: -/// [batch, channels, height, width]. -/// * dilations: 1-D tensor of length 4. The dilation factor for each dimension of -/// `input`. If set to k > 1, there will be k-1 skipped cells between each filter -/// element on that dimension. The dimension order is determined by the value of -/// `data_format`, see above for details. Dilations in the batch and depth -/// dimensions must be 1. -/// -/// Returns: -/// * `Output`: 4-D with shape according to `data_format`. For example, if -/// `data_format` is 'NHWC', output shape is `[batch, in_height, -/// in_width, in_channels]`. Gradient w.r.t. the input of the -/// convolution. -class DepthwiseConv2dNativeBackpropInput { - public: - /// Optional attribute setters for DepthwiseConv2dNativeBackpropInput - struct Attrs { - /// Specify the data format of the input and output data. With the - /// default format "NHWC", the data is stored in the order of: - /// [batch, height, width, channels]. - /// Alternatively, the format could be "NCHW", the data storage order of: - /// [batch, channels, height, width]. - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - /// 1-D tensor of length 4. The dilation factor for each dimension of - /// `input`. If set to k > 1, there will be k-1 skipped cells between each filter - /// element on that dimension. The dimension order is determined by the value of - /// `data_format`, see above for details. Dilations in the batch and depth - /// dimensions must be 1. - /// - /// Defaults to [1, 1, 1, 1] - TF_MUST_USE_RESULT Attrs Dilations(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.dilations_ = x; - return ret; - } - - StringPiece data_format_ = "NHWC"; - gtl::ArraySlice dilations_ = Default_dilations(); - private: - static gtl::ArraySlice Default_dilations() { - static const int kStorage[] = {1, 1, 1, 1}; - return gtl::ArraySlice(kStorage); - } - }; - DepthwiseConv2dNativeBackpropInput(const ::tensorflow::Scope& scope, - ::tensorflow::Input input_sizes, - ::tensorflow::Input filter, - ::tensorflow::Input out_backprop, const - gtl::ArraySlice& strides, StringPiece - padding); - DepthwiseConv2dNativeBackpropInput(const ::tensorflow::Scope& scope, - ::tensorflow::Input input_sizes, - ::tensorflow::Input filter, - ::tensorflow::Input out_backprop, const - gtl::ArraySlice& strides, StringPiece - padding, const - DepthwiseConv2dNativeBackpropInput::Attrs& - attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - static Attrs Dilations(const gtl::ArraySlice& x) { - return Attrs().Dilations(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the grayscale dilation of 4-D `input` and 3-D `filter` tensors. -/// -/// The `input` tensor has shape `[batch, in_height, in_width, depth]` and the -/// `filter` tensor has shape `[filter_height, filter_width, depth]`, i.e., each -/// input channel is processed independently of the others with its own structuring -/// function. The `output` tensor has shape -/// `[batch, out_height, out_width, depth]`. The spatial dimensions of the output -/// tensor depend on the `padding` algorithm. We currently only support the default -/// "NHWC" `data_format`. -/// -/// In detail, the grayscale morphological 2-D dilation is the max-sum correlation -/// (for consistency with `conv2d`, we use unmirrored filters): -/// -/// output[b, y, x, c] = -/// max_{dy, dx} input[b, -/// strides[1] * y + rates[1] * dy, -/// strides[2] * x + rates[2] * dx, -/// c] + -/// filter[dy, dx, c] -/// -/// Max-pooling is a special case when the filter has size equal to the pooling -/// kernel size and contains all zeros. -/// -/// Note on duality: The dilation of `input` by the `filter` is equal to the -/// negation of the erosion of `-input` by the reflected `filter`. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 4-D with shape `[batch, in_height, in_width, depth]`. -/// * filter: 3-D with shape `[filter_height, filter_width, depth]`. -/// * strides: The stride of the sliding window for each dimension of the input -/// tensor. Must be: `[1, stride_height, stride_width, 1]`. -/// * rates: The input stride for atrous morphological dilation. Must be: -/// `[1, rate_height, rate_width, 1]`. -/// * padding: The type of padding algorithm to use. -/// -/// Returns: -/// * `Output`: 4-D with shape `[batch, out_height, out_width, depth]`. -class Dilation2D { - public: - Dilation2D(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input filter, const gtl::ArraySlice& strides, - const gtl::ArraySlice& rates, StringPiece padding); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the gradient of morphological 2-D dilation with respect to the filter. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 4-D with shape `[batch, in_height, in_width, depth]`. -/// * filter: 3-D with shape `[filter_height, filter_width, depth]`. -/// * out_backprop: 4-D with shape `[batch, out_height, out_width, depth]`. -/// * strides: 1-D of length 4. The stride of the sliding window for each dimension of -/// the input tensor. Must be: `[1, stride_height, stride_width, 1]`. -/// * rates: 1-D of length 4. The input stride for atrous morphological dilation. -/// Must be: `[1, rate_height, rate_width, 1]`. -/// * padding: The type of padding algorithm to use. -/// -/// Returns: -/// * `Output`: 3-D with shape `[filter_height, filter_width, depth]`. -class Dilation2DBackpropFilter { - public: - Dilation2DBackpropFilter(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, ::tensorflow::Input filter, ::tensorflow::Input - out_backprop, const gtl::ArraySlice& strides, - const gtl::ArraySlice& rates, StringPiece - padding); - operator ::tensorflow::Output() const { return filter_backprop; } - operator ::tensorflow::Input() const { return filter_backprop; } - ::tensorflow::Node* node() const { return filter_backprop.node(); } - - Operation operation; - ::tensorflow::Output filter_backprop; -}; - -/// Computes the gradient of morphological 2-D dilation with respect to the input. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 4-D with shape `[batch, in_height, in_width, depth]`. -/// * filter: 3-D with shape `[filter_height, filter_width, depth]`. -/// * out_backprop: 4-D with shape `[batch, out_height, out_width, depth]`. -/// * strides: 1-D of length 4. The stride of the sliding window for each dimension of -/// the input tensor. Must be: `[1, stride_height, stride_width, 1]`. -/// * rates: 1-D of length 4. The input stride for atrous morphological dilation. -/// Must be: `[1, rate_height, rate_width, 1]`. -/// * padding: The type of padding algorithm to use. -/// -/// Returns: -/// * `Output`: 4-D with shape `[batch, in_height, in_width, depth]`. -class Dilation2DBackpropInput { - public: - Dilation2DBackpropInput(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, ::tensorflow::Input filter, ::tensorflow::Input - out_backprop, const gtl::ArraySlice& strides, - const gtl::ArraySlice& rates, StringPiece padding); - operator ::tensorflow::Output() const { return in_backprop; } - operator ::tensorflow::Input() const { return in_backprop; } - ::tensorflow::Node* node() const { return in_backprop.node(); } - - Operation operation; - ::tensorflow::Output in_backprop; -}; - -/// Computes exponential linear: `exp(features) - 1` if < 0, `features` otherwise. -/// -/// See [Fast and Accurate Deep Network Learning by Exponential Linear Units (ELUs) -/// ](http://arxiv.org/abs/1511.07289) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The activations tensor. -class Elu { - public: - Elu(const ::tensorflow::Scope& scope, ::tensorflow::Input features); - operator ::tensorflow::Output() const { return activations; } - operator ::tensorflow::Input() const { return activations; } - ::tensorflow::Node* node() const { return activations.node(); } - - Operation operation; - ::tensorflow::Output activations; -}; - -/// Performs fractional average pooling on the input. -/// -/// Fractional average pooling is similar to Fractional max pooling in the pooling -/// region generation step. The only difference is that after pooling regions are -/// generated, a mean operation is performed instead of a max operation in each -/// pooling region. -/// -/// Arguments: -/// * scope: A Scope object -/// * value: 4-D with shape `[batch, height, width, channels]`. -/// * pooling_ratio: Pooling ratio for each dimension of `value`, currently only -/// supports row and col dimension and should be >= 1.0. For example, a valid -/// pooling ratio looks like [1.0, 1.44, 1.73, 1.0]. The first and last elements -/// must be 1.0 because we don't allow pooling on batch and channels -/// dimensions. 1.44 and 1.73 are pooling ratio on height and width dimensions -/// respectively. -/// -/// Optional attributes (see `Attrs`): -/// * pseudo_random: When set to True, generates the pooling sequence in a -/// pseudorandom fashion, otherwise, in a random fashion. Check paper [Benjamin -/// Graham, Fractional Max-Pooling](http://arxiv.org/abs/1412.6071) for -/// difference between pseudorandom and random. -/// * overlapping: When set to True, it means when pooling, the values at the boundary -/// of adjacent pooling cells are used by both cells. For example: -/// -/// `index 0 1 2 3 4` -/// -/// `value 20 5 16 3 7` -/// -/// If the pooling sequence is [0, 2, 4], then 16, at index 2 will be used twice. -/// The result would be [41/3, 26/3] for fractional avg pooling. -/// * deterministic: When set to True, a fixed pooling region will be used when -/// iterating over a FractionalAvgPool node in the computation graph. Mainly used -/// in unit test to make FractionalAvgPool deterministic. -/// * seed: If either seed or seed2 are set to be non-zero, the random number -/// generator is seeded by the given seed. Otherwise, it is seeded by a -/// random seed. -/// * seed2: An second seed to avoid seed collision. -/// -/// Returns: -/// * `Output` output: output tensor after fractional avg pooling. -/// * `Output` row_pooling_sequence: row pooling sequence, needed to calculate gradient. -/// * `Output` col_pooling_sequence: column pooling sequence, needed to calculate gradient. -class FractionalAvgPool { - public: - /// Optional attribute setters for FractionalAvgPool - struct Attrs { - /// When set to True, generates the pooling sequence in a - /// pseudorandom fashion, otherwise, in a random fashion. Check paper [Benjamin - /// Graham, Fractional Max-Pooling](http://arxiv.org/abs/1412.6071) for - /// difference between pseudorandom and random. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs PseudoRandom(bool x) { - Attrs ret = *this; - ret.pseudo_random_ = x; - return ret; - } - - /// When set to True, it means when pooling, the values at the boundary - /// of adjacent pooling cells are used by both cells. For example: - /// - /// `index 0 1 2 3 4` - /// - /// `value 20 5 16 3 7` - /// - /// If the pooling sequence is [0, 2, 4], then 16, at index 2 will be used twice. - /// The result would be [41/3, 26/3] for fractional avg pooling. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs Overlapping(bool x) { - Attrs ret = *this; - ret.overlapping_ = x; - return ret; - } - - /// When set to True, a fixed pooling region will be used when - /// iterating over a FractionalAvgPool node in the computation graph. Mainly used - /// in unit test to make FractionalAvgPool deterministic. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs Deterministic(bool x) { - Attrs ret = *this; - ret.deterministic_ = x; - return ret; - } - - /// If either seed or seed2 are set to be non-zero, the random number - /// generator is seeded by the given seed. Otherwise, it is seeded by a - /// random seed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// An second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - bool pseudo_random_ = false; - bool overlapping_ = false; - bool deterministic_ = false; - int64 seed_ = 0; - int64 seed2_ = 0; - }; - FractionalAvgPool(const ::tensorflow::Scope& scope, ::tensorflow::Input value, - const gtl::ArraySlice& pooling_ratio); - FractionalAvgPool(const ::tensorflow::Scope& scope, ::tensorflow::Input value, - const gtl::ArraySlice& pooling_ratio, const - FractionalAvgPool::Attrs& attrs); - - static Attrs PseudoRandom(bool x) { - return Attrs().PseudoRandom(x); - } - static Attrs Overlapping(bool x) { - return Attrs().Overlapping(x); - } - static Attrs Deterministic(bool x) { - return Attrs().Deterministic(x); - } - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - - Operation operation; - ::tensorflow::Output output; - ::tensorflow::Output row_pooling_sequence; - ::tensorflow::Output col_pooling_sequence; -}; - -/// Performs fractional max pooling on the input. -/// -/// Fractional max pooling is slightly different than regular max pooling. In -/// regular max pooling, you downsize an input set by taking the maximum value of -/// smaller N x N subsections of the set (often 2x2), and try to reduce the set by -/// a factor of N, where N is an integer. Fractional max pooling, as you might -/// expect from the word "fractional", means that the overall reduction ratio N -/// does not have to be an integer. -/// -/// The sizes of the pooling regions are generated randomly but are fairly uniform. -/// For example, let's look at the height dimension, and the constraints on the -/// list of rows that will be pool boundaries. -/// -/// First we define the following: -/// -/// 1. input_row_length : the number of rows from the input set -/// 2. output_row_length : which will be smaller than the input -/// 3. alpha = input_row_length / output_row_length : our reduction ratio -/// 4. K = floor(alpha) -/// 5. row_pooling_sequence : this is the result list of pool boundary rows -/// -/// Then, row_pooling_sequence should satisfy: -/// -/// 1. a[0] = 0 : the first value of the sequence is 0 -/// 2. a[end] = input_row_length : the last value of the sequence is the size -/// 3. K <= (a[i+1] - a[i]) <= K+1 : all intervals are K or K+1 size -/// 4. length(row_pooling_sequence) = output_row_length+1 -/// -/// For more details on fractional max pooling, see this paper: -/// [Benjamin Graham, Fractional Max-Pooling](http://arxiv.org/abs/1412.6071) -/// -/// Arguments: -/// * scope: A Scope object -/// * value: 4-D with shape `[batch, height, width, channels]`. -/// * pooling_ratio: Pooling ratio for each dimension of `value`, currently only -/// supports row and col dimension and should be >= 1.0. For example, a valid -/// pooling ratio looks like [1.0, 1.44, 1.73, 1.0]. The first and last elements -/// must be 1.0 because we don't allow pooling on batch and channels -/// dimensions. 1.44 and 1.73 are pooling ratio on height and width dimensions -/// respectively. -/// -/// Optional attributes (see `Attrs`): -/// * pseudo_random: When set to True, generates the pooling sequence in a -/// pseudorandom fashion, otherwise, in a random fashion. Check paper [Benjamin -/// Graham, Fractional Max-Pooling](http://arxiv.org/abs/1412.6071) for -/// difference between pseudorandom and random. -/// * overlapping: When set to True, it means when pooling, the values at the boundary -/// of adjacent pooling cells are used by both cells. For example: -/// -/// `index 0 1 2 3 4` -/// -/// `value 20 5 16 3 7` -/// -/// If the pooling sequence is [0, 2, 4], then 16, at index 2 will be used twice. -/// The result would be [20, 16] for fractional max pooling. -/// * deterministic: When set to True, a fixed pooling region will be used when -/// iterating over a FractionalMaxPool node in the computation graph. Mainly used -/// in unit test to make FractionalMaxPool deterministic. -/// * seed: If either seed or seed2 are set to be non-zero, the random number -/// generator is seeded by the given seed. Otherwise, it is seeded by a -/// random seed. -/// * seed2: An second seed to avoid seed collision. -/// -/// Returns: -/// * `Output` output: output tensor after fractional max pooling. -/// * `Output` row_pooling_sequence: row pooling sequence, needed to calculate gradient. -/// * `Output` col_pooling_sequence: column pooling sequence, needed to calculate gradient. -class FractionalMaxPool { - public: - /// Optional attribute setters for FractionalMaxPool - struct Attrs { - /// When set to True, generates the pooling sequence in a - /// pseudorandom fashion, otherwise, in a random fashion. Check paper [Benjamin - /// Graham, Fractional Max-Pooling](http://arxiv.org/abs/1412.6071) for - /// difference between pseudorandom and random. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs PseudoRandom(bool x) { - Attrs ret = *this; - ret.pseudo_random_ = x; - return ret; - } - - /// When set to True, it means when pooling, the values at the boundary - /// of adjacent pooling cells are used by both cells. For example: - /// - /// `index 0 1 2 3 4` - /// - /// `value 20 5 16 3 7` - /// - /// If the pooling sequence is [0, 2, 4], then 16, at index 2 will be used twice. - /// The result would be [20, 16] for fractional max pooling. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs Overlapping(bool x) { - Attrs ret = *this; - ret.overlapping_ = x; - return ret; - } - - /// When set to True, a fixed pooling region will be used when - /// iterating over a FractionalMaxPool node in the computation graph. Mainly used - /// in unit test to make FractionalMaxPool deterministic. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs Deterministic(bool x) { - Attrs ret = *this; - ret.deterministic_ = x; - return ret; - } - - /// If either seed or seed2 are set to be non-zero, the random number - /// generator is seeded by the given seed. Otherwise, it is seeded by a - /// random seed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// An second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - bool pseudo_random_ = false; - bool overlapping_ = false; - bool deterministic_ = false; - int64 seed_ = 0; - int64 seed2_ = 0; - }; - FractionalMaxPool(const ::tensorflow::Scope& scope, ::tensorflow::Input value, - const gtl::ArraySlice& pooling_ratio); - FractionalMaxPool(const ::tensorflow::Scope& scope, ::tensorflow::Input value, - const gtl::ArraySlice& pooling_ratio, const - FractionalMaxPool::Attrs& attrs); - - static Attrs PseudoRandom(bool x) { - return Attrs().PseudoRandom(x); - } - static Attrs Overlapping(bool x) { - return Attrs().Overlapping(x); - } - static Attrs Deterministic(bool x) { - return Attrs().Deterministic(x); - } - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - - Operation operation; - ::tensorflow::Output output; - ::tensorflow::Output row_pooling_sequence; - ::tensorflow::Output col_pooling_sequence; -}; - -/// Batch normalization. -/// -/// Note that the size of 4D Tensors are defined by either "NHWC" or "NCHW". -/// The size of 1D Tensors matches the dimension C of the 4D Tensors. -/// -/// Arguments: -/// * scope: A Scope object -/// * x: A 4D Tensor for input data. -/// * scale: A 1D Tensor for scaling factor, to scale the normalized x. -/// * offset: A 1D Tensor for offset, to shift to the normalized x. -/// * mean: A 1D Tensor for population mean. Used for inference only; -/// must be empty for training. -/// * variance: A 1D Tensor for population variance. Used for inference only; -/// must be empty for training. -/// -/// Optional attributes (see `Attrs`): -/// * epsilon: A small float number added to the variance of x. -/// * data_format: The data format for x and y. Either "NHWC" (default) or "NCHW". -/// * is_training: A bool value to indicate the operation is for training (default) -/// or inference. -/// -/// Returns: -/// * `Output` y: A 4D Tensor for output data. -/// * `Output` batch_mean: A 1D Tensor for the computed batch mean, to be used by TensorFlow -/// to compute the running mean. -/// * `Output` batch_variance: A 1D Tensor for the computed batch variance, to be used by -/// TensorFlow to compute the running variance. -/// * `Output` reserve_space_1: A 1D Tensor for the computed batch mean, to be reused -/// in the gradient computation. -/// * `Output` reserve_space_2: A 1D Tensor for the computed batch variance (inverted variance -/// in the cuDNN case), to be reused in the gradient computation. -class FusedBatchNorm { - public: - /// Optional attribute setters for FusedBatchNorm - struct Attrs { - /// A small float number added to the variance of x. - /// - /// Defaults to 0.0001 - TF_MUST_USE_RESULT Attrs Epsilon(float x) { - Attrs ret = *this; - ret.epsilon_ = x; - return ret; - } - - /// The data format for x and y. Either "NHWC" (default) or "NCHW". - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - /// A bool value to indicate the operation is for training (default) - /// or inference. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs IsTraining(bool x) { - Attrs ret = *this; - ret.is_training_ = x; - return ret; - } - - float epsilon_ = 0.0001f; - StringPiece data_format_ = "NHWC"; - bool is_training_ = true; - }; - FusedBatchNorm(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input scale, ::tensorflow::Input offset, - ::tensorflow::Input mean, ::tensorflow::Input variance); - FusedBatchNorm(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input scale, ::tensorflow::Input offset, - ::tensorflow::Input mean, ::tensorflow::Input variance, const - FusedBatchNorm::Attrs& attrs); - - static Attrs Epsilon(float x) { - return Attrs().Epsilon(x); - } - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - static Attrs IsTraining(bool x) { - return Attrs().IsTraining(x); - } - - Operation operation; - ::tensorflow::Output y; - ::tensorflow::Output batch_mean; - ::tensorflow::Output batch_variance; - ::tensorflow::Output reserve_space_1; - ::tensorflow::Output reserve_space_2; -}; - -/// Gradient for batch normalization. -/// -/// Note that the size of 4D Tensors are defined by either "NHWC" or "NCHW". -/// The size of 1D Tensors matches the dimension C of the 4D Tensors. -/// -/// Arguments: -/// * scope: A Scope object -/// * y_backprop: A 4D Tensor for the gradient with respect to y. -/// * x: A 4D Tensor for input data. -/// * scale: A 1D Tensor for scaling factor, to scale the normalized x. -/// * reserve_space_1: When is_training is True, a 1D Tensor for the computed batch -/// mean to be reused in gradient computation. When is_training is -/// False, a 1D Tensor for the population mean to be reused in both -/// 1st and 2nd order gradient computation. -/// * reserve_space_2: When is_training is True, a 1D Tensor for the computed batch -/// variance (inverted variance in the cuDNN case) to be reused in -/// gradient computation. When is_training is False, a 1D Tensor -/// for the population variance to be reused in both 1st and 2nd -/// order gradient computation. -/// -/// Optional attributes (see `Attrs`): -/// * epsilon: A small float number added to the variance of x. -/// * data_format: The data format for y_backprop, x, x_backprop. -/// Either "NHWC" (default) or "NCHW". -/// * is_training: A bool value to indicate the operation is for training (default) -/// or inference. -/// -/// Returns: -/// * `Output` x_backprop: A 4D Tensor for the gradient with respect to x. -/// * `Output` scale_backprop: A 1D Tensor for the gradient with respect to scale. -/// * `Output` offset_backprop: A 1D Tensor for the gradient with respect to offset. -/// * `Output` reserve_space_3: Unused placeholder to match the mean input in FusedBatchNorm. -/// * `Output` reserve_space_4: Unused placeholder to match the variance input -/// in FusedBatchNorm. -class FusedBatchNormGrad { - public: - /// Optional attribute setters for FusedBatchNormGrad - struct Attrs { - /// A small float number added to the variance of x. - /// - /// Defaults to 0.0001 - TF_MUST_USE_RESULT Attrs Epsilon(float x) { - Attrs ret = *this; - ret.epsilon_ = x; - return ret; - } - - /// The data format for y_backprop, x, x_backprop. - /// Either "NHWC" (default) or "NCHW". - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - /// A bool value to indicate the operation is for training (default) - /// or inference. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs IsTraining(bool x) { - Attrs ret = *this; - ret.is_training_ = x; - return ret; - } - - float epsilon_ = 0.0001f; - StringPiece data_format_ = "NHWC"; - bool is_training_ = true; - }; - FusedBatchNormGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - y_backprop, ::tensorflow::Input x, ::tensorflow::Input - scale, ::tensorflow::Input reserve_space_1, - ::tensorflow::Input reserve_space_2); - FusedBatchNormGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - y_backprop, ::tensorflow::Input x, ::tensorflow::Input - scale, ::tensorflow::Input reserve_space_1, - ::tensorflow::Input reserve_space_2, const - FusedBatchNormGrad::Attrs& attrs); - - static Attrs Epsilon(float x) { - return Attrs().Epsilon(x); - } - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - static Attrs IsTraining(bool x) { - return Attrs().IsTraining(x); - } - - Operation operation; - ::tensorflow::Output x_backprop; - ::tensorflow::Output scale_backprop; - ::tensorflow::Output offset_backprop; - ::tensorflow::Output reserve_space_3; - ::tensorflow::Output reserve_space_4; -}; - -/// Gradient for batch normalization. -/// -/// Note that the size of 4D Tensors are defined by either "NHWC" or "NCHW". -/// The size of 1D Tensors matches the dimension C of the 4D Tensors. -/// -/// Arguments: -/// * scope: A Scope object -/// * y_backprop: A 4D Tensor for the gradient with respect to y. -/// * x: A 4D Tensor for input data. -/// * scale: A 1D Tensor for scaling factor, to scale the normalized x. -/// * reserve_space_1: When is_training is True, a 1D Tensor for the computed batch -/// mean to be reused in gradient computation. When is_training is -/// False, a 1D Tensor for the population mean to be reused in both -/// 1st and 2nd order gradient computation. -/// * reserve_space_2: When is_training is True, a 1D Tensor for the computed batch -/// variance (inverted variance in the cuDNN case) to be reused in -/// gradient computation. When is_training is False, a 1D Tensor -/// for the population variance to be reused in both 1st and 2nd -/// order gradient computation. -/// -/// Optional attributes (see `Attrs`): -/// * epsilon: A small float number added to the variance of x. -/// * data_format: The data format for y_backprop, x, x_backprop. -/// Either "NHWC" (default) or "NCHW". -/// * is_training: A bool value to indicate the operation is for training (default) -/// or inference. -/// -/// Returns: -/// * `Output` x_backprop: A 4D Tensor for the gradient with respect to x. -/// * `Output` scale_backprop: A 1D Tensor for the gradient with respect to scale. -/// * `Output` offset_backprop: A 1D Tensor for the gradient with respect to offset. -/// * `Output` reserve_space_3: Unused placeholder to match the mean input in FusedBatchNorm. -/// * `Output` reserve_space_4: Unused placeholder to match the variance input -/// in FusedBatchNorm. -class FusedBatchNormGradV2 { - public: - /// Optional attribute setters for FusedBatchNormGradV2 - struct Attrs { - /// A small float number added to the variance of x. - /// - /// Defaults to 0.0001 - TF_MUST_USE_RESULT Attrs Epsilon(float x) { - Attrs ret = *this; - ret.epsilon_ = x; - return ret; - } - - /// The data format for y_backprop, x, x_backprop. - /// Either "NHWC" (default) or "NCHW". - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - /// A bool value to indicate the operation is for training (default) - /// or inference. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs IsTraining(bool x) { - Attrs ret = *this; - ret.is_training_ = x; - return ret; - } - - float epsilon_ = 0.0001f; - StringPiece data_format_ = "NHWC"; - bool is_training_ = true; - }; - FusedBatchNormGradV2(const ::tensorflow::Scope& scope, ::tensorflow::Input - y_backprop, ::tensorflow::Input x, ::tensorflow::Input - scale, ::tensorflow::Input reserve_space_1, - ::tensorflow::Input reserve_space_2); - FusedBatchNormGradV2(const ::tensorflow::Scope& scope, ::tensorflow::Input - y_backprop, ::tensorflow::Input x, ::tensorflow::Input - scale, ::tensorflow::Input reserve_space_1, - ::tensorflow::Input reserve_space_2, const - FusedBatchNormGradV2::Attrs& attrs); - - static Attrs Epsilon(float x) { - return Attrs().Epsilon(x); - } - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - static Attrs IsTraining(bool x) { - return Attrs().IsTraining(x); - } - - Operation operation; - ::tensorflow::Output x_backprop; - ::tensorflow::Output scale_backprop; - ::tensorflow::Output offset_backprop; - ::tensorflow::Output reserve_space_3; - ::tensorflow::Output reserve_space_4; -}; - -/// Batch normalization. -/// -/// Note that the size of 4D Tensors are defined by either "NHWC" or "NCHW". -/// The size of 1D Tensors matches the dimension C of the 4D Tensors. -/// -/// Arguments: -/// * scope: A Scope object -/// * x: A 4D Tensor for input data. -/// * scale: A 1D Tensor for scaling factor, to scale the normalized x. -/// * offset: A 1D Tensor for offset, to shift to the normalized x. -/// * mean: A 1D Tensor for population mean. Used for inference only; -/// must be empty for training. -/// * variance: A 1D Tensor for population variance. Used for inference only; -/// must be empty for training. -/// -/// Optional attributes (see `Attrs`): -/// * epsilon: A small float number added to the variance of x. -/// * data_format: The data format for x and y. Either "NHWC" (default) or "NCHW". -/// * is_training: A bool value to indicate the operation is for training (default) -/// or inference. -/// -/// Returns: -/// * `Output` y: A 4D Tensor for output data. -/// * `Output` batch_mean: A 1D Tensor for the computed batch mean, to be used by TensorFlow -/// to compute the running mean. -/// * `Output` batch_variance: A 1D Tensor for the computed batch variance, to be used by -/// TensorFlow to compute the running variance. -/// * `Output` reserve_space_1: A 1D Tensor for the computed batch mean, to be reused -/// in the gradient computation. -/// * `Output` reserve_space_2: A 1D Tensor for the computed batch variance (inverted variance -/// in the cuDNN case), to be reused in the gradient computation. -class FusedBatchNormV2 { - public: - /// Optional attribute setters for FusedBatchNormV2 - struct Attrs { - /// A small float number added to the variance of x. - /// - /// Defaults to 0.0001 - TF_MUST_USE_RESULT Attrs Epsilon(float x) { - Attrs ret = *this; - ret.epsilon_ = x; - return ret; - } - - /// The data format for x and y. Either "NHWC" (default) or "NCHW". - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - /// A bool value to indicate the operation is for training (default) - /// or inference. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs IsTraining(bool x) { - Attrs ret = *this; - ret.is_training_ = x; - return ret; - } - - float epsilon_ = 0.0001f; - StringPiece data_format_ = "NHWC"; - bool is_training_ = true; - }; - FusedBatchNormV2(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input scale, ::tensorflow::Input offset, - ::tensorflow::Input mean, ::tensorflow::Input variance); - FusedBatchNormV2(const ::tensorflow::Scope& scope, ::tensorflow::Input x, - ::tensorflow::Input scale, ::tensorflow::Input offset, - ::tensorflow::Input mean, ::tensorflow::Input variance, const - FusedBatchNormV2::Attrs& attrs); - - static Attrs Epsilon(float x) { - return Attrs().Epsilon(x); - } - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - static Attrs IsTraining(bool x) { - return Attrs().IsTraining(x); - } - - Operation operation; - ::tensorflow::Output y; - ::tensorflow::Output batch_mean; - ::tensorflow::Output batch_variance; - ::tensorflow::Output reserve_space_1; - ::tensorflow::Output reserve_space_2; -}; - -/// Performs a padding as a preprocess during a convolution. -/// -/// Similar to FusedResizeAndPadConv2d, this op allows for an optimized -/// implementation where the spatial padding transformation stage is fused with the -/// im2col lookup, but in this case without the bilinear filtering required for -/// resizing. Fusing the padding prevents the need to write out the intermediate -/// results as whole tensors, reducing memory pressure, and we can get some latency -/// gains by merging the transformation calculations. -/// The data_format attribute for Conv2D isn't supported by this op, and 'NHWC' -/// order is used instead. -/// Internally this op uses a single per-graph scratch buffer, which means that it -/// will block if multiple versions are being run in parallel. This is because this -/// operator is primarily an optimization to minimize memory usage. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 4-D with shape `[batch, in_height, in_width, in_channels]`. -/// * paddings: A two-column matrix specifying the padding sizes. The number of -/// rows must be the same as the rank of `input`. -/// * filter: 4-D with shape -/// `[filter_height, filter_width, in_channels, out_channels]`. -/// * strides: 1-D of length 4. The stride of the sliding window for each dimension -/// of `input`. Must be in the same order as the dimension specified with format. -/// * padding: The type of padding algorithm to use. -/// -/// Returns: -/// * `Output`: The output tensor. -class FusedPadConv2D { - public: - FusedPadConv2D(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input paddings, ::tensorflow::Input filter, - StringPiece mode, const gtl::ArraySlice& strides, - StringPiece padding); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Performs a resize and padding as a preprocess during a convolution. -/// -/// It's often possible to do spatial transformations more efficiently as part of -/// the packing stage of a convolution, so this op allows for an optimized -/// implementation where these stages are fused together. This prevents the need to -/// write out the intermediate results as whole tensors, reducing memory pressure, -/// and we can get some latency gains by merging the transformation calculations. -/// The data_format attribute for Conv2D isn't supported by this op, and defaults to -/// 'NHWC' order. -/// Internally this op uses a single per-graph scratch buffer, which means that it -/// will block if multiple versions are being run in parallel. This is because this -/// operator is primarily an optimization to minimize memory usage. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 4-D with shape `[batch, in_height, in_width, in_channels]`. -/// * size: A 1-D int32 Tensor of 2 elements: `new_height, new_width`. The -/// new size for the images. -/// * paddings: A two-column matrix specifying the padding sizes. The number of -/// rows must be the same as the rank of `input`. -/// * filter: 4-D with shape -/// `[filter_height, filter_width, in_channels, out_channels]`. -/// * strides: 1-D of length 4. The stride of the sliding window for each dimension -/// of `input`. Must be in the same order as the dimension specified with format. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * resize_align_corners: If true, the centers of the 4 corner pixels of the input and output tensors are -/// aligned, preserving the values at the corner pixels. Defaults to false. -/// -/// Returns: -/// * `Output`: The output tensor. -class FusedResizeAndPadConv2D { - public: - /// Optional attribute setters for FusedResizeAndPadConv2D - struct Attrs { - /// If true, the centers of the 4 corner pixels of the input and output tensors are - /// aligned, preserving the values at the corner pixels. Defaults to false. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs ResizeAlignCorners(bool x) { - Attrs ret = *this; - ret.resize_align_corners_ = x; - return ret; - } - - bool resize_align_corners_ = false; - }; - FusedResizeAndPadConv2D(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, ::tensorflow::Input size, ::tensorflow::Input - paddings, ::tensorflow::Input filter, StringPiece mode, - const gtl::ArraySlice& strides, StringPiece - padding); - FusedResizeAndPadConv2D(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, ::tensorflow::Input size, ::tensorflow::Input - paddings, ::tensorflow::Input filter, StringPiece mode, - const gtl::ArraySlice& strides, StringPiece - padding, const FusedResizeAndPadConv2D::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs ResizeAlignCorners(bool x) { - return Attrs().ResizeAlignCorners(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Says whether the targets are in the top `K` predictions. -/// -/// This outputs a `batch_size` bool array, an entry `out[i]` is `true` if the -/// prediction for the target class is among the top `k` predictions among -/// all predictions for example `i`. Note that the behavior of `InTopK` differs -/// from the `TopK` op in its handling of ties; if multiple classes have the -/// same prediction value and straddle the top-`k` boundary, all of those -/// classes are considered to be in the top `k`. -/// -/// More formally, let -/// -/// \\(predictions_i\\) be the predictions for all classes for example `i`, -/// \\(targets_i\\) be the target class for example `i`, -/// \\(out_i\\) be the output for example `i`, -/// -/// $$out_i = predictions_{i, targets_i} \in TopKIncludingTies(predictions_i)$$ -/// -/// Arguments: -/// * scope: A Scope object -/// * predictions: A `batch_size` x `classes` tensor. -/// * targets: A `batch_size` vector of class ids. -/// * k: Number of top elements to look at for computing precision. -/// -/// Returns: -/// * `Output`: Computed Precision at `k` as a `bool Tensor`. -class InTopK { - public: - InTopK(const ::tensorflow::Scope& scope, ::tensorflow::Input predictions, - ::tensorflow::Input targets, int64 k); - operator ::tensorflow::Output() const { return precision; } - operator ::tensorflow::Input() const { return precision; } - ::tensorflow::Node* node() const { return precision.node(); } - - Operation operation; - ::tensorflow::Output precision; -}; - -/// Says whether the targets are in the top `K` predictions. -/// -/// This outputs a `batch_size` bool array, an entry `out[i]` is `true` if the -/// prediction for the target class is among the top `k` predictions among -/// all predictions for example `i`. Note that the behavior of `InTopK` differs -/// from the `TopK` op in its handling of ties; if multiple classes have the -/// same prediction value and straddle the top-`k` boundary, all of those -/// classes are considered to be in the top `k`. -/// -/// More formally, let -/// -/// \\(predictions_i\\) be the predictions for all classes for example `i`, -/// \\(targets_i\\) be the target class for example `i`, -/// \\(out_i\\) be the output for example `i`, -/// -/// $$out_i = predictions_{i, targets_i} \in TopKIncludingTies(predictions_i)$$ -/// -/// Arguments: -/// * scope: A Scope object -/// * predictions: A `batch_size` x `classes` tensor. -/// * targets: A `batch_size` vector of class ids. -/// * k: Number of top elements to look at for computing precision. -/// -/// Returns: -/// * `Output`: Computed precision at `k` as a `bool Tensor`. -class InTopKV2 { - public: - InTopKV2(const ::tensorflow::Scope& scope, ::tensorflow::Input predictions, - ::tensorflow::Input targets, ::tensorflow::Input k); - operator ::tensorflow::Output() const { return precision; } - operator ::tensorflow::Input() const { return precision; } - ::tensorflow::Node* node() const { return precision.node(); } - - Operation operation; - ::tensorflow::Output precision; -}; - -/// L2 Loss. -/// -/// Computes half the L2 norm of a tensor without the `sqrt`: -/// -/// output = sum(t ** 2) / 2 -/// -/// Arguments: -/// * scope: A Scope object -/// * t: Typically 2-D, but may have any dimensions. -/// -/// Returns: -/// * `Output`: 0-D. -class L2Loss { - public: - L2Loss(const ::tensorflow::Scope& scope, ::tensorflow::Input t); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Local Response Normalization. -/// -/// The 4-D `input` tensor is treated as a 3-D array of 1-D vectors (along the last -/// dimension), and each vector is normalized independently. Within a given vector, -/// each component is divided by the weighted, squared sum of inputs within -/// `depth_radius`. In detail, -/// -/// sqr_sum[a, b, c, d] = -/// sum(input[a, b, c, d - depth_radius : d + depth_radius + 1] ** 2) -/// output = input / (bias + alpha * sqr_sum) ** beta -/// -/// For details, see [Krizhevsky et al., ImageNet classification with deep -/// convolutional neural networks (NIPS 2012)](http://papers.nips.cc/paper/4824-imagenet-classification-with-deep-convolutional-neural-networks). -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 4-D. -/// -/// Optional attributes (see `Attrs`): -/// * depth_radius: 0-D. Half-width of the 1-D normalization window. -/// * bias: An offset (usually positive to avoid dividing by 0). -/// * alpha: A scale factor, usually positive. -/// * beta: An exponent. -/// -/// Returns: -/// * `Output`: The output tensor. -class LRN { - public: - /// Optional attribute setters for LRN - struct Attrs { - /// 0-D. Half-width of the 1-D normalization window. - /// - /// Defaults to 5 - TF_MUST_USE_RESULT Attrs DepthRadius(int64 x) { - Attrs ret = *this; - ret.depth_radius_ = x; - return ret; - } - - /// An offset (usually positive to avoid dividing by 0). - /// - /// Defaults to 1 - TF_MUST_USE_RESULT Attrs Bias(float x) { - Attrs ret = *this; - ret.bias_ = x; - return ret; - } - - /// A scale factor, usually positive. - /// - /// Defaults to 1 - TF_MUST_USE_RESULT Attrs Alpha(float x) { - Attrs ret = *this; - ret.alpha_ = x; - return ret; - } - - /// An exponent. - /// - /// Defaults to 0.5 - TF_MUST_USE_RESULT Attrs Beta(float x) { - Attrs ret = *this; - ret.beta_ = x; - return ret; - } - - int64 depth_radius_ = 5; - float bias_ = 1.0f; - float alpha_ = 1.0f; - float beta_ = 0.5f; - }; - LRN(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - LRN(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - LRN::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DepthRadius(int64 x) { - return Attrs().DepthRadius(x); - } - static Attrs Bias(float x) { - return Attrs().Bias(x); - } - static Attrs Alpha(float x) { - return Attrs().Alpha(x); - } - static Attrs Beta(float x) { - return Attrs().Beta(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes log softmax activations. -/// -/// For each batch `i` and class `j` we have -/// -/// logsoftmax[i, j] = logits[i, j] - log(sum(exp(logits[i]))) -/// -/// Arguments: -/// * scope: A Scope object -/// * logits: 2-D with shape `[batch_size, num_classes]`. -/// -/// Returns: -/// * `Output`: Same shape as `logits`. -class LogSoftmax { - public: - LogSoftmax(const ::tensorflow::Scope& scope, ::tensorflow::Input logits); - operator ::tensorflow::Output() const { return logsoftmax; } - operator ::tensorflow::Input() const { return logsoftmax; } - ::tensorflow::Node* node() const { return logsoftmax.node(); } - - Operation operation; - ::tensorflow::Output logsoftmax; -}; - -/// Performs max pooling on the input. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 4-D input to pool over. -/// * ksize: The size of the window for each dimension of the input tensor. -/// * strides: The stride of the sliding window for each dimension of the -/// input tensor. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: Specify the data format of the input and output data. With the -/// default format "NHWC", the data is stored in the order of: -/// [batch, in_height, in_width, in_channels]. -/// Alternatively, the format could be "NCHW", the data storage order of: -/// [batch, in_channels, in_height, in_width]. -/// -/// Returns: -/// * `Output`: The max pooled output tensor. -class MaxPool { - public: - /// Optional attribute setters for MaxPool - struct Attrs { - /// Specify the data format of the input and output data. With the - /// default format "NHWC", the data is stored in the order of: - /// [batch, in_height, in_width, in_channels]. - /// Alternatively, the format could be "NCHW", the data storage order of: - /// [batch, in_channels, in_height, in_width]. - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - StringPiece data_format_ = "NHWC"; - }; - MaxPool(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - gtl::ArraySlice& ksize, const gtl::ArraySlice& strides, - StringPiece padding); - MaxPool(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - gtl::ArraySlice& ksize, const gtl::ArraySlice& strides, - StringPiece padding, const MaxPool::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Performs 3D max pooling on the input. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Shape `[batch, depth, rows, cols, channels]` tensor to pool over. -/// * ksize: 1-D tensor of length 5. The size of the window for each dimension of -/// the input tensor. Must have `ksize[0] = ksize[4] = 1`. -/// * strides: 1-D tensor of length 5. The stride of the sliding window for each -/// dimension of `input`. Must have `strides[0] = strides[4] = 1`. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: The data format of the input and output data. With the -/// default format "NDHWC", the data is stored in the order of: -/// [batch, in_depth, in_height, in_width, in_channels]. -/// Alternatively, the format could be "NCDHW", the data storage order is: -/// [batch, in_channels, in_depth, in_height, in_width]. -/// -/// Returns: -/// * `Output`: The max pooled output tensor. -class MaxPool3D { - public: - /// Optional attribute setters for MaxPool3D - struct Attrs { - /// The data format of the input and output data. With the - /// default format "NDHWC", the data is stored in the order of: - /// [batch, in_depth, in_height, in_width, in_channels]. - /// Alternatively, the format could be "NCDHW", the data storage order is: - /// [batch, in_channels, in_depth, in_height, in_width]. - /// - /// Defaults to "NDHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - StringPiece data_format_ = "NDHWC"; - }; - MaxPool3D(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - gtl::ArraySlice& ksize, const gtl::ArraySlice& strides, - StringPiece padding); - MaxPool3D(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - gtl::ArraySlice& ksize, const gtl::ArraySlice& strides, - StringPiece padding, const MaxPool3D::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes gradients of max pooling function. -/// -/// Arguments: -/// * scope: A Scope object -/// * orig_input: The original input tensor. -/// * orig_output: The original output tensor. -/// * grad: Output backprop of shape `[batch, depth, rows, cols, channels]`. -/// * ksize: 1-D tensor of length 5. The size of the window for each dimension of -/// the input tensor. Must have `ksize[0] = ksize[4] = 1`. -/// * strides: 1-D tensor of length 5. The stride of the sliding window for each -/// dimension of `input`. Must have `strides[0] = strides[4] = 1`. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: The data format of the input and output data. With the -/// default format "NDHWC", the data is stored in the order of: -/// [batch, in_depth, in_height, in_width, in_channels]. -/// Alternatively, the format could be "NCDHW", the data storage order is: -/// [batch, in_channels, in_depth, in_height, in_width]. -/// -/// Returns: -/// * `Output`: The output tensor. -class MaxPool3DGrad { - public: - /// Optional attribute setters for MaxPool3DGrad - struct Attrs { - /// The data format of the input and output data. With the - /// default format "NDHWC", the data is stored in the order of: - /// [batch, in_depth, in_height, in_width, in_channels]. - /// Alternatively, the format could be "NCDHW", the data storage order is: - /// [batch, in_channels, in_depth, in_height, in_width]. - /// - /// Defaults to "NDHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - StringPiece data_format_ = "NDHWC"; - }; - MaxPool3DGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input orig_input, - ::tensorflow::Input orig_output, ::tensorflow::Input grad, const - gtl::ArraySlice& ksize, const gtl::ArraySlice& strides, - StringPiece padding); - MaxPool3DGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input orig_input, - ::tensorflow::Input orig_output, ::tensorflow::Input grad, const - gtl::ArraySlice& ksize, const gtl::ArraySlice& strides, - StringPiece padding, const MaxPool3DGrad::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes second-order gradients of the maxpooling function. -/// -/// Arguments: -/// * scope: A Scope object -/// * orig_input: The original input tensor. -/// * orig_output: The original output tensor. -/// * grad: Output backprop of shape `[batch, depth, rows, cols, channels]`. -/// * ksize: 1-D tensor of length 5. The size of the window for each dimension of -/// the input tensor. Must have `ksize[0] = ksize[4] = 1`. -/// * strides: 1-D tensor of length 5. The stride of the sliding window for each -/// dimension of `input`. Must have `strides[0] = strides[4] = 1`. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: The data format of the input and output data. With the -/// default format "NDHWC", the data is stored in the order of: -/// [batch, in_depth, in_height, in_width, in_channels]. -/// Alternatively, the format could be "NCDHW", the data storage order is: -/// [batch, in_channels, in_depth, in_height, in_width]. -/// -/// Returns: -/// * `Output`: Gradients of gradients w.r.t. the input to `max_pool`. -class MaxPool3DGradGrad { - public: - /// Optional attribute setters for MaxPool3DGradGrad - struct Attrs { - /// The data format of the input and output data. With the - /// default format "NDHWC", the data is stored in the order of: - /// [batch, in_depth, in_height, in_width, in_channels]. - /// Alternatively, the format could be "NCDHW", the data storage order is: - /// [batch, in_channels, in_depth, in_height, in_width]. - /// - /// Defaults to "NDHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - StringPiece data_format_ = "NDHWC"; - }; - MaxPool3DGradGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - orig_input, ::tensorflow::Input orig_output, - ::tensorflow::Input grad, const gtl::ArraySlice& ksize, - const gtl::ArraySlice& strides, StringPiece padding); - MaxPool3DGradGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - orig_input, ::tensorflow::Input orig_output, - ::tensorflow::Input grad, const gtl::ArraySlice& ksize, - const gtl::ArraySlice& strides, StringPiece padding, - const MaxPool3DGradGrad::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes second-order gradients of the maxpooling function. -/// -/// Arguments: -/// * scope: A Scope object -/// * orig_input: The original input tensor. -/// * orig_output: The original output tensor. -/// * grad: 4-D. Gradients of gradients w.r.t. the input of `max_pool`. -/// * ksize: The size of the window for each dimension of the input tensor. -/// * strides: The stride of the sliding window for each dimension of the -/// input tensor. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: Specify the data format of the input and output data. With the -/// default format "NHWC", the data is stored in the order of: -/// [batch, in_height, in_width, in_channels]. -/// Alternatively, the format could be "NCHW", the data storage order of: -/// [batch, in_channels, in_height, in_width]. -/// -/// Returns: -/// * `Output`: Gradients of gradients w.r.t. the input to `max_pool`. -class MaxPoolGradGrad { - public: - /// Optional attribute setters for MaxPoolGradGrad - struct Attrs { - /// Specify the data format of the input and output data. With the - /// default format "NHWC", the data is stored in the order of: - /// [batch, in_height, in_width, in_channels]. - /// Alternatively, the format could be "NCHW", the data storage order of: - /// [batch, in_channels, in_height, in_width]. - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - StringPiece data_format_ = "NHWC"; - }; - MaxPoolGradGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - orig_input, ::tensorflow::Input orig_output, - ::tensorflow::Input grad, const gtl::ArraySlice& ksize, - const gtl::ArraySlice& strides, StringPiece padding); - MaxPoolGradGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - orig_input, ::tensorflow::Input orig_output, - ::tensorflow::Input grad, const gtl::ArraySlice& ksize, - const gtl::ArraySlice& strides, StringPiece padding, const - MaxPoolGradGrad::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes second-order gradients of the maxpooling function. -/// -/// Arguments: -/// * scope: A Scope object -/// * orig_input: The original input tensor. -/// * orig_output: The original output tensor. -/// * grad: 4-D. Gradients of gradients w.r.t. the input of `max_pool`. -/// * ksize: The size of the window for each dimension of the input tensor. -/// * strides: The stride of the sliding window for each dimension of the -/// input tensor. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: Specify the data format of the input and output data. With the -/// default format "NHWC", the data is stored in the order of: -/// [batch, in_height, in_width, in_channels]. -/// Alternatively, the format could be "NCHW", the data storage order of: -/// [batch, in_channels, in_height, in_width]. -/// -/// Returns: -/// * `Output`: Gradients of gradients w.r.t. the input to `max_pool`. -class MaxPoolGradGradV2 { - public: - /// Optional attribute setters for MaxPoolGradGradV2 - struct Attrs { - /// Specify the data format of the input and output data. With the - /// default format "NHWC", the data is stored in the order of: - /// [batch, in_height, in_width, in_channels]. - /// Alternatively, the format could be "NCHW", the data storage order of: - /// [batch, in_channels, in_height, in_width]. - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - StringPiece data_format_ = "NHWC"; - }; - MaxPoolGradGradV2(const ::tensorflow::Scope& scope, ::tensorflow::Input - orig_input, ::tensorflow::Input orig_output, - ::tensorflow::Input grad, ::tensorflow::Input ksize, - ::tensorflow::Input strides, StringPiece padding); - MaxPoolGradGradV2(const ::tensorflow::Scope& scope, ::tensorflow::Input - orig_input, ::tensorflow::Input orig_output, - ::tensorflow::Input grad, ::tensorflow::Input ksize, - ::tensorflow::Input strides, StringPiece padding, const - MaxPoolGradGradV2::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes second-order gradients of the maxpooling function. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The original input. -/// * grad: 4-D with shape `[batch, height, width, channels]`. Gradients w.r.t. the -/// input of `max_pool`. -/// * argmax: The indices of the maximum values chosen for each output of `max_pool`. -/// * ksize: The size of the window for each dimension of the input tensor. -/// * strides: The stride of the sliding window for each dimension of the -/// input tensor. -/// * padding: The type of padding algorithm to use. -/// -/// Returns: -/// * `Output`: Gradients of gradients w.r.t. the input of `max_pool`. -class MaxPoolGradGradWithArgmax { - public: - MaxPoolGradGradWithArgmax(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, ::tensorflow::Input grad, ::tensorflow::Input - argmax, const gtl::ArraySlice& ksize, const - gtl::ArraySlice& strides, StringPiece padding); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes gradients of the maxpooling function. -/// -/// Arguments: -/// * scope: A Scope object -/// * orig_input: The original input tensor. -/// * orig_output: The original output tensor. -/// * grad: 4-D. Gradients w.r.t. the output of `max_pool`. -/// * ksize: The size of the window for each dimension of the input tensor. -/// * strides: The stride of the sliding window for each dimension of the -/// input tensor. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: Specify the data format of the input and output data. With the -/// default format "NHWC", the data is stored in the order of: -/// [batch, in_height, in_width, in_channels]. -/// Alternatively, the format could be "NCHW", the data storage order of: -/// [batch, in_channels, in_height, in_width]. -/// -/// Returns: -/// * `Output`: Gradients w.r.t. the input to `max_pool`. -class MaxPoolGradV2 { - public: - /// Optional attribute setters for MaxPoolGradV2 - struct Attrs { - /// Specify the data format of the input and output data. With the - /// default format "NHWC", the data is stored in the order of: - /// [batch, in_height, in_width, in_channels]. - /// Alternatively, the format could be "NCHW", the data storage order of: - /// [batch, in_channels, in_height, in_width]. - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - StringPiece data_format_ = "NHWC"; - }; - MaxPoolGradV2(const ::tensorflow::Scope& scope, ::tensorflow::Input orig_input, - ::tensorflow::Input orig_output, ::tensorflow::Input grad, - ::tensorflow::Input ksize, ::tensorflow::Input strides, - StringPiece padding); - MaxPoolGradV2(const ::tensorflow::Scope& scope, ::tensorflow::Input orig_input, - ::tensorflow::Input orig_output, ::tensorflow::Input grad, - ::tensorflow::Input ksize, ::tensorflow::Input strides, - StringPiece padding, const MaxPoolGradV2::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Performs max pooling on the input. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 4-D input to pool over. -/// * ksize: The size of the window for each dimension of the input tensor. -/// * strides: The stride of the sliding window for each dimension of the -/// input tensor. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: Specify the data format of the input and output data. With the -/// default format "NHWC", the data is stored in the order of: -/// [batch, in_height, in_width, in_channels]. -/// Alternatively, the format could be "NCHW", the data storage order of: -/// [batch, in_channels, in_height, in_width]. -/// -/// Returns: -/// * `Output`: The max pooled output tensor. -class MaxPoolV2 { - public: - /// Optional attribute setters for MaxPoolV2 - struct Attrs { - /// Specify the data format of the input and output data. With the - /// default format "NHWC", the data is stored in the order of: - /// [batch, in_height, in_width, in_channels]. - /// Alternatively, the format could be "NCHW", the data storage order of: - /// [batch, in_channels, in_height, in_width]. - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - StringPiece data_format_ = "NHWC"; - }; - MaxPoolV2(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input ksize, ::tensorflow::Input strides, StringPiece - padding); - MaxPoolV2(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input ksize, ::tensorflow::Input strides, StringPiece - padding, const MaxPoolV2::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Performs max pooling on the input and outputs both max values and indices. -/// -/// The indices in `argmax` are flattened, so that a maximum value at position -/// `[b, y, x, c]` becomes flattened index -/// `((b * height + y) * width + x) * channels + c`. -/// -/// The indices returned are always in `[0, height) x [0, width)` before flattening, -/// even if padding is involved and the mathematically correct answer is outside -/// (either negative or too large). This is a bug, but fixing it is difficult to do -/// in a safe backwards compatible way, especially due to flattening. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 4-D with shape `[batch, height, width, channels]`. Input to pool over. -/// * ksize: The size of the window for each dimension of the input tensor. -/// * strides: The stride of the sliding window for each dimension of the -/// input tensor. -/// * padding: The type of padding algorithm to use. -/// -/// Returns: -/// * `Output` output: The max pooled output tensor. -/// * `Output` argmax: 4-D. The flattened indices of the max values chosen for each output. -class MaxPoolWithArgmax { - public: - /// Optional attribute setters for MaxPoolWithArgmax - struct Attrs { - /// Defaults to DT_INT64 - TF_MUST_USE_RESULT Attrs Targmax(DataType x) { - Attrs ret = *this; - ret.Targmax_ = x; - return ret; - } - - DataType Targmax_ = DT_INT64; - }; - MaxPoolWithArgmax(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - const gtl::ArraySlice& ksize, const - gtl::ArraySlice& strides, StringPiece padding); - MaxPoolWithArgmax(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - const gtl::ArraySlice& ksize, const - gtl::ArraySlice& strides, StringPiece padding, const - MaxPoolWithArgmax::Attrs& attrs); - - static Attrs Targmax(DataType x) { - return Attrs().Targmax(x); - } - - Operation operation; - ::tensorflow::Output output; - ::tensorflow::Output argmax; -}; - -/// Finds values of the `n`-th order statistic for the last dimension. -/// -/// If the input is a vector (rank-1), finds the entries which is the nth-smallest -/// value in the vector and outputs their values as scalar tensor. -/// -/// For matrices (resp. higher rank input), computes the entries which is the -/// nth-smallest value in each row (resp. vector along the last dimension). Thus, -/// -/// values.shape = input.shape[:-1] -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 1-D or higher with last dimension at least `n+1`. -/// * n: 0-D. Position of sorted vector to select along the last dimension (along -/// each row for matrices). Valid range of n is `[0, input.shape[:-1])` -/// -/// Optional attributes (see `Attrs`): -/// * reverse: When set to True, find the nth-largest value in the vector and vice -/// versa. -/// -/// Returns: -/// * `Output`: The `n`-th order statistic along each last dimensional slice. -class NthElement { - public: - /// Optional attribute setters for NthElement - struct Attrs { - /// When set to True, find the nth-largest value in the vector and vice - /// versa. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs Reverse(bool x) { - Attrs ret = *this; - ret.reverse_ = x; - return ret; - } - - bool reverse_ = false; - }; - NthElement(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input n); - NthElement(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input n, const NthElement::Attrs& attrs); - operator ::tensorflow::Output() const { return values; } - operator ::tensorflow::Input() const { return values; } - ::tensorflow::Node* node() const { return values.node(); } - - static Attrs Reverse(bool x) { - return Attrs().Reverse(x); - } - - Operation operation; - ::tensorflow::Output values; -}; - -/// Produces the average pool of the input tensor for quantized types. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 4-D with shape `[batch, height, width, channels]`. -/// * min_input: The float value that the lowest quantized input value represents. -/// * max_input: The float value that the highest quantized input value represents. -/// * ksize: The size of the window for each dimension of the input tensor. -/// The length must be 4 to match the number of dimensions of the input. -/// * strides: The stride of the sliding window for each dimension of the input -/// tensor. The length must be 4 to match the number of dimensions of the input. -/// * padding: The type of padding algorithm to use. -/// -/// Returns: -/// * `Output` output -/// * `Output` min_output: The float value that the lowest quantized output value represents. -/// * `Output` max_output: The float value that the highest quantized output value represents. -class QuantizedAvgPool { - public: - QuantizedAvgPool(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input min_input, ::tensorflow::Input max_input, - const gtl::ArraySlice& ksize, const gtl::ArraySlice& - strides, StringPiece padding); - - Operation operation; - ::tensorflow::Output output; - ::tensorflow::Output min_output; - ::tensorflow::Output max_output; -}; - -/// Quantized Batch normalization. -/// -/// This op is deprecated and will be removed in the future. Prefer -/// `tf.nn.batch_normalization`. -/// -/// Arguments: -/// * scope: A Scope object -/// * t: A 4D input Tensor. -/// * t_min: The value represented by the lowest quantized input. -/// * t_max: The value represented by the highest quantized input. -/// * m: A 1D mean Tensor with size matching the last dimension of t. -/// This is the first output from tf.nn.moments, -/// or a saved moving average thereof. -/// * m_min: The value represented by the lowest quantized mean. -/// * m_max: The value represented by the highest quantized mean. -/// * v: A 1D variance Tensor with size matching the last dimension of t. -/// This is the second output from tf.nn.moments, -/// or a saved moving average thereof. -/// * v_min: The value represented by the lowest quantized variance. -/// * v_max: The value represented by the highest quantized variance. -/// * beta: A 1D beta Tensor with size matching the last dimension of t. -/// An offset to be added to the normalized tensor. -/// * beta_min: The value represented by the lowest quantized offset. -/// * beta_max: The value represented by the highest quantized offset. -/// * gamma: A 1D gamma Tensor with size matching the last dimension of t. -/// If "scale_after_normalization" is true, this tensor will be multiplied -/// with the normalized tensor. -/// * gamma_min: The value represented by the lowest quantized gamma. -/// * gamma_max: The value represented by the highest quantized gamma. -/// * variance_epsilon: A small float number to avoid dividing by 0. -/// * scale_after_normalization: A bool indicating whether the resulted tensor -/// needs to be multiplied with gamma. -/// -/// Returns: -/// * `Output` result -/// * `Output` result_min -/// * `Output` result_max -class QuantizedBatchNormWithGlobalNormalization { - public: - QuantizedBatchNormWithGlobalNormalization(const ::tensorflow::Scope& scope, - ::tensorflow::Input t, - ::tensorflow::Input t_min, - ::tensorflow::Input t_max, - ::tensorflow::Input m, - ::tensorflow::Input m_min, - ::tensorflow::Input m_max, - ::tensorflow::Input v, - ::tensorflow::Input v_min, - ::tensorflow::Input v_max, - ::tensorflow::Input beta, - ::tensorflow::Input beta_min, - ::tensorflow::Input beta_max, - ::tensorflow::Input gamma, - ::tensorflow::Input gamma_min, - ::tensorflow::Input gamma_max, - DataType out_type, float - variance_epsilon, bool - scale_after_normalization); - - Operation operation; - ::tensorflow::Output result; - ::tensorflow::Output result_min; - ::tensorflow::Output result_max; -}; - -/// Adds Tensor 'bias' to Tensor 'input' for Quantized types. -/// -/// Broadcasts the values of bias on dimensions 0..N-2 of 'input'. -/// -/// Arguments: -/// * scope: A Scope object -/// * bias: A 1D bias Tensor with size matching the last dimension of 'input'. -/// * min_input: The float value that the lowest quantized input value represents. -/// * max_input: The float value that the highest quantized input value represents. -/// * min_bias: The float value that the lowest quantized bias value represents. -/// * max_bias: The float value that the highest quantized bias value represents. -/// -/// Returns: -/// * `Output` output -/// * `Output` min_out: The float value that the lowest quantized output value represents. -/// * `Output` max_out: The float value that the highest quantized output value represents. -class QuantizedBiasAdd { - public: - QuantizedBiasAdd(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input bias, ::tensorflow::Input min_input, - ::tensorflow::Input max_input, ::tensorflow::Input min_bias, - ::tensorflow::Input max_bias, DataType out_type); - - Operation operation; - ::tensorflow::Output output; - ::tensorflow::Output min_out; - ::tensorflow::Output max_out; -}; - -/// Computes a 2D convolution given quantized 4D input and filter tensors. -/// -/// The inputs are quantized tensors where the lowest value represents the real -/// number of the associated minimum, and the highest represents the maximum. -/// This means that you can only interpret the quantized output in the same way, by -/// taking the returned minimum and maximum values into account. -/// -/// Arguments: -/// * scope: A Scope object -/// * filter: filter's input_depth dimension must match input's depth dimensions. -/// * min_input: The float value that the lowest quantized input value represents. -/// * max_input: The float value that the highest quantized input value represents. -/// * min_filter: The float value that the lowest quantized filter value represents. -/// * max_filter: The float value that the highest quantized filter value represents. -/// * strides: The stride of the sliding window for each dimension of the input -/// tensor. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * dilations: 1-D tensor of length 4. The dilation factor for each dimension of -/// `input`. If set to k > 1, there will be k-1 skipped cells between each -/// filter element on that dimension. The dimension order is determined by the -/// value of `data_format`, see above for details. Dilations in the batch and -/// depth dimensions must be 1. -/// -/// Returns: -/// * `Output` output -/// * `Output` min_output: The float value that the lowest quantized output value represents. -/// * `Output` max_output: The float value that the highest quantized output value represents. -class QuantizedConv2D { - public: - /// Optional attribute setters for QuantizedConv2D - struct Attrs { - /// Defaults to DT_QINT32 - TF_MUST_USE_RESULT Attrs OutType(DataType x) { - Attrs ret = *this; - ret.out_type_ = x; - return ret; - } - - /// 1-D tensor of length 4. The dilation factor for each dimension of - /// `input`. If set to k > 1, there will be k-1 skipped cells between each - /// filter element on that dimension. The dimension order is determined by the - /// value of `data_format`, see above for details. Dilations in the batch and - /// depth dimensions must be 1. - /// - /// Defaults to [1, 1, 1, 1] - TF_MUST_USE_RESULT Attrs Dilations(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.dilations_ = x; - return ret; - } - - DataType out_type_ = DT_QINT32; - gtl::ArraySlice dilations_ = Default_dilations(); - private: - static gtl::ArraySlice Default_dilations() { - static const int kStorage[] = {1, 1, 1, 1}; - return gtl::ArraySlice(kStorage); - } - }; - QuantizedConv2D(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input filter, ::tensorflow::Input min_input, - ::tensorflow::Input max_input, ::tensorflow::Input min_filter, - ::tensorflow::Input max_filter, const gtl::ArraySlice& - strides, StringPiece padding); - QuantizedConv2D(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input filter, ::tensorflow::Input min_input, - ::tensorflow::Input max_input, ::tensorflow::Input min_filter, - ::tensorflow::Input max_filter, const gtl::ArraySlice& - strides, StringPiece padding, const QuantizedConv2D::Attrs& - attrs); - - static Attrs OutType(DataType x) { - return Attrs().OutType(x); - } - static Attrs Dilations(const gtl::ArraySlice& x) { - return Attrs().Dilations(x); - } - - Operation operation; - ::tensorflow::Output output; - ::tensorflow::Output min_output; - ::tensorflow::Output max_output; -}; - -/// Produces the max pool of the input tensor for quantized types. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The 4D (batch x rows x cols x depth) Tensor to MaxReduce over. -/// * min_input: The float value that the lowest quantized input value represents. -/// * max_input: The float value that the highest quantized input value represents. -/// * ksize: The size of the window for each dimension of the input tensor. -/// The length must be 4 to match the number of dimensions of the input. -/// * strides: The stride of the sliding window for each dimension of the input -/// tensor. The length must be 4 to match the number of dimensions of the input. -/// * padding: The type of padding algorithm to use. -/// -/// Returns: -/// * `Output` output -/// * `Output` min_output: The float value that the lowest quantized output value represents. -/// * `Output` max_output: The float value that the highest quantized output value represents. -class QuantizedMaxPool { - public: - QuantizedMaxPool(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input min_input, ::tensorflow::Input max_input, - const gtl::ArraySlice& ksize, const gtl::ArraySlice& - strides, StringPiece padding); - - Operation operation; - ::tensorflow::Output output; - ::tensorflow::Output min_output; - ::tensorflow::Output max_output; -}; - -/// Computes Quantized Rectified Linear: `max(features, 0)` -/// -/// Arguments: -/// * scope: A Scope object -/// * min_features: The float value that the lowest quantized value represents. -/// * max_features: The float value that the highest quantized value represents. -/// -/// Returns: -/// * `Output` activations: Has the same output shape as "features". -/// * `Output` min_activations: The float value that the lowest quantized value represents. -/// * `Output` max_activations: The float value that the highest quantized value represents. -class QuantizedRelu { - public: - /// Optional attribute setters for QuantizedRelu - struct Attrs { - /// Defaults to DT_QUINT8 - TF_MUST_USE_RESULT Attrs OutType(DataType x) { - Attrs ret = *this; - ret.out_type_ = x; - return ret; - } - - DataType out_type_ = DT_QUINT8; - }; - QuantizedRelu(const ::tensorflow::Scope& scope, ::tensorflow::Input features, - ::tensorflow::Input min_features, ::tensorflow::Input - max_features); - QuantizedRelu(const ::tensorflow::Scope& scope, ::tensorflow::Input features, - ::tensorflow::Input min_features, ::tensorflow::Input - max_features, const QuantizedRelu::Attrs& attrs); - - static Attrs OutType(DataType x) { - return Attrs().OutType(x); - } - - Operation operation; - ::tensorflow::Output activations; - ::tensorflow::Output min_activations; - ::tensorflow::Output max_activations; -}; - -/// Computes Quantized Rectified Linear 6: `min(max(features, 0), 6)` -/// -/// Arguments: -/// * scope: A Scope object -/// * min_features: The float value that the lowest quantized value represents. -/// * max_features: The float value that the highest quantized value represents. -/// -/// Returns: -/// * `Output` activations: Has the same output shape as "features". -/// * `Output` min_activations: The float value that the lowest quantized value represents. -/// * `Output` max_activations: The float value that the highest quantized value represents. -class QuantizedRelu6 { - public: - /// Optional attribute setters for QuantizedRelu6 - struct Attrs { - /// Defaults to DT_QUINT8 - TF_MUST_USE_RESULT Attrs OutType(DataType x) { - Attrs ret = *this; - ret.out_type_ = x; - return ret; - } - - DataType out_type_ = DT_QUINT8; - }; - QuantizedRelu6(const ::tensorflow::Scope& scope, ::tensorflow::Input features, - ::tensorflow::Input min_features, ::tensorflow::Input - max_features); - QuantizedRelu6(const ::tensorflow::Scope& scope, ::tensorflow::Input features, - ::tensorflow::Input min_features, ::tensorflow::Input - max_features, const QuantizedRelu6::Attrs& attrs); - - static Attrs OutType(DataType x) { - return Attrs().OutType(x); - } - - Operation operation; - ::tensorflow::Output activations; - ::tensorflow::Output min_activations; - ::tensorflow::Output max_activations; -}; - -/// Computes Quantized Rectified Linear X: `min(max(features, 0), max_value)` -/// -/// Arguments: -/// * scope: A Scope object -/// * min_features: The float value that the lowest quantized value represents. -/// * max_features: The float value that the highest quantized value represents. -/// -/// Returns: -/// * `Output` activations: Has the same output shape as "features". -/// * `Output` min_activations: The float value that the lowest quantized value represents. -/// * `Output` max_activations: The float value that the highest quantized value represents. -class QuantizedReluX { - public: - /// Optional attribute setters for QuantizedReluX - struct Attrs { - /// Defaults to DT_QUINT8 - TF_MUST_USE_RESULT Attrs OutType(DataType x) { - Attrs ret = *this; - ret.out_type_ = x; - return ret; - } - - DataType out_type_ = DT_QUINT8; - }; - QuantizedReluX(const ::tensorflow::Scope& scope, ::tensorflow::Input features, - ::tensorflow::Input max_value, ::tensorflow::Input min_features, - ::tensorflow::Input max_features); - QuantizedReluX(const ::tensorflow::Scope& scope, ::tensorflow::Input features, - ::tensorflow::Input max_value, ::tensorflow::Input min_features, - ::tensorflow::Input max_features, const QuantizedReluX::Attrs& - attrs); - - static Attrs OutType(DataType x) { - return Attrs().OutType(x); - } - - Operation operation; - ::tensorflow::Output activations; - ::tensorflow::Output min_activations; - ::tensorflow::Output max_activations; -}; - -/// Computes rectified linear: `max(features, 0)`. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The activations tensor. -class Relu { - public: - Relu(const ::tensorflow::Scope& scope, ::tensorflow::Input features); - operator ::tensorflow::Output() const { return activations; } - operator ::tensorflow::Input() const { return activations; } - ::tensorflow::Node* node() const { return activations.node(); } - - Operation operation; - ::tensorflow::Output activations; -}; - -/// Computes rectified linear 6: `min(max(features, 0), 6)`. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The activations tensor. -class Relu6 { - public: - Relu6(const ::tensorflow::Scope& scope, ::tensorflow::Input features); - operator ::tensorflow::Output() const { return activations; } - operator ::tensorflow::Input() const { return activations; } - ::tensorflow::Node* node() const { return activations.node(); } - - Operation operation; - ::tensorflow::Output activations; -}; - -/// Computes scaled exponential linear: `scale * alpha * (exp(features) - 1)` -/// -/// if < 0, `scale * features` otherwise. -/// -/// To be used together with -/// `initializer = tf.variance_scaling_initializer(factor=1.0, mode='FAN_IN')`. -/// For correct dropout, use `tf.contrib.nn.alpha_dropout`. -/// -/// See [Self-Normalizing Neural Networks](https://arxiv.org/abs/1706.02515) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The activations tensor. -class Selu { - public: - Selu(const ::tensorflow::Scope& scope, ::tensorflow::Input features); - operator ::tensorflow::Output() const { return activations; } - operator ::tensorflow::Input() const { return activations; } - ::tensorflow::Node* node() const { return activations.node(); } - - Operation operation; - ::tensorflow::Output activations; -}; - -/// Computes softmax activations. -/// -/// For each batch `i` and class `j` we have -/// -/// $$softmax[i, j] = exp(logits[i, j]) / sum_j(exp(logits[i, j]))$$ -/// -/// Arguments: -/// * scope: A Scope object -/// * logits: 2-D with shape `[batch_size, num_classes]`. -/// -/// Returns: -/// * `Output`: Same shape as `logits`. -class Softmax { - public: - Softmax(const ::tensorflow::Scope& scope, ::tensorflow::Input logits); - operator ::tensorflow::Output() const { return softmax; } - operator ::tensorflow::Input() const { return softmax; } - ::tensorflow::Node* node() const { return softmax.node(); } - - Operation operation; - ::tensorflow::Output softmax; -}; - -/// Computes softmax cross entropy cost and gradients to backpropagate. -/// -/// Inputs are the logits, not probabilities. -/// -/// Arguments: -/// * scope: A Scope object -/// * features: batch_size x num_classes matrix -/// * labels: batch_size x num_classes matrix -/// The caller must ensure that each batch of labels represents a valid -/// probability distribution. -/// -/// Returns: -/// * `Output` loss: Per example loss (batch_size vector). -/// * `Output` backprop: backpropagated gradients (batch_size x num_classes matrix). -class SoftmaxCrossEntropyWithLogits { - public: - SoftmaxCrossEntropyWithLogits(const ::tensorflow::Scope& scope, - ::tensorflow::Input features, ::tensorflow::Input - labels); - - Operation operation; - ::tensorflow::Output loss; - ::tensorflow::Output backprop; -}; - -/// Computes softplus: `log(exp(features) + 1)`. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The activations tensor. -class Softplus { - public: - Softplus(const ::tensorflow::Scope& scope, ::tensorflow::Input features); - operator ::tensorflow::Output() const { return activations; } - operator ::tensorflow::Input() const { return activations; } - ::tensorflow::Node* node() const { return activations.node(); } - - Operation operation; - ::tensorflow::Output activations; -}; - -/// Computes softsign: `features / (abs(features) + 1)`. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The activations tensor. -class Softsign { - public: - Softsign(const ::tensorflow::Scope& scope, ::tensorflow::Input features); - operator ::tensorflow::Output() const { return activations; } - operator ::tensorflow::Input() const { return activations; } - ::tensorflow::Node* node() const { return activations.node(); } - - Operation operation; - ::tensorflow::Output activations; -}; - -/// Computes softmax cross entropy cost and gradients to backpropagate. -/// -/// Unlike `SoftmaxCrossEntropyWithLogits`, this operation does not accept -/// a matrix of label probabilities, but rather a single label per row -/// of features. This label is considered to have probability 1.0 for the -/// given row. -/// -/// Inputs are the logits, not probabilities. -/// -/// Arguments: -/// * scope: A Scope object -/// * features: batch_size x num_classes matrix -/// * labels: batch_size vector with values in [0, num_classes). -/// This is the label for the given minibatch entry. -/// -/// Returns: -/// * `Output` loss: Per example loss (batch_size vector). -/// * `Output` backprop: backpropagated gradients (batch_size x num_classes matrix). -class SparseSoftmaxCrossEntropyWithLogits { - public: - SparseSoftmaxCrossEntropyWithLogits(const ::tensorflow::Scope& scope, - ::tensorflow::Input features, - ::tensorflow::Input labels); - - Operation operation; - ::tensorflow::Output loss; - ::tensorflow::Output backprop; -}; - -/// Finds values and indices of the `k` largest elements for the last dimension. -/// -/// If the input is a vector (rank-1), finds the `k` largest entries in the vector -/// and outputs their values and indices as vectors. Thus `values[j]` is the -/// `j`-th largest entry in `input`, and its index is `indices[j]`. -/// -/// For matrices (resp. higher rank input), computes the top `k` entries in each -/// row (resp. vector along the last dimension). Thus, -/// -/// values.shape = indices.shape = input.shape[:-1] + [k] -/// -/// If two elements are equal, the lower-index element appears first. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 1-D or higher with last dimension at least `k`. -/// * k: 0-D. Number of top elements to look for along the last dimension (along each -/// row for matrices). -/// -/// Optional attributes (see `Attrs`): -/// * sorted: If true the resulting `k` elements will be sorted by the values in -/// descending order. -/// -/// Returns: -/// * `Output` values: The `k` largest elements along each last dimensional slice. -/// * `Output` indices: The indices of `values` within the last dimension of `input`. -class TopK { - public: - /// Optional attribute setters for TopK - struct Attrs { - /// If true the resulting `k` elements will be sorted by the values in - /// descending order. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs Sorted(bool x) { - Attrs ret = *this; - ret.sorted_ = x; - return ret; - } - - bool sorted_ = true; - }; - TopK(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input k); - TopK(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input k, const TopK::Attrs& attrs); - - static Attrs Sorted(bool x) { - return Attrs().Sorted(x); - } - - Operation operation; - ::tensorflow::Output values; - ::tensorflow::Output indices; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_NN_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/nn_ops_internal.h b/linux/include/tensorflow/cc/ops/nn_ops_internal.h deleted file mode 100755 index 7f7d87ca6..000000000 --- a/linux/include/tensorflow/cc/ops/nn_ops_internal.h +++ /dev/null @@ -1,541 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_NN_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_NN_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup nn_ops_internal Nn Ops Internal -/// @{ - -/// Computes gradients of the average pooling function. -/// -/// Arguments: -/// * scope: A Scope object -/// * orig_input_shape: 1-D. Shape of the original input to `avg_pool`. -/// * grad: 4-D with shape `[batch, height, width, channels]`. Gradients w.r.t. -/// the output of `avg_pool`. -/// * ksize: The size of the sliding window for each dimension of the input. -/// * strides: The stride of the sliding window for each dimension of the input. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: Specify the data format of the input and output data. With the -/// default format "NHWC", the data is stored in the order of: -/// [batch, in_height, in_width, in_channels]. -/// Alternatively, the format could be "NCHW", the data storage order of: -/// [batch, in_channels, in_height, in_width]. -/// -/// Returns: -/// * `Output`: 4-D. Gradients w.r.t. the input of `avg_pool`. -class AvgPoolGrad { - public: - /// Optional attribute setters for AvgPoolGrad - struct Attrs { - /// Specify the data format of the input and output data. With the - /// default format "NHWC", the data is stored in the order of: - /// [batch, in_height, in_width, in_channels]. - /// Alternatively, the format could be "NCHW", the data storage order of: - /// [batch, in_channels, in_height, in_width]. - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - StringPiece data_format_ = "NHWC"; - }; - AvgPoolGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - orig_input_shape, ::tensorflow::Input grad, const - gtl::ArraySlice& ksize, const gtl::ArraySlice& strides, - StringPiece padding); - AvgPoolGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - orig_input_shape, ::tensorflow::Input grad, const - gtl::ArraySlice& ksize, const gtl::ArraySlice& strides, - StringPiece padding, const AvgPoolGrad::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes gradients for the exponential linear (Elu) operation. -/// -/// Arguments: -/// * scope: A Scope object -/// * gradients: The backpropagated gradients to the corresponding Elu operation. -/// * outputs: The outputs of the corresponding Elu operation. -/// -/// Returns: -/// * `Output`: The gradients: `gradients * (outputs + 1)` if outputs < 0, -/// `gradients` otherwise. -class EluGrad { - public: - EluGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input gradients, - ::tensorflow::Input outputs); - operator ::tensorflow::Output() const { return backprops; } - operator ::tensorflow::Input() const { return backprops; } - ::tensorflow::Node* node() const { return backprops.node(); } - - Operation operation; - ::tensorflow::Output backprops; -}; - -/// Computes gradient of the FractionalAvgPool function. -/// -/// Unlike FractionalMaxPoolGrad, we don't need to find arg_max for -/// FractionalAvgPoolGrad, we just need to evenly back-propagate each element of -/// out_backprop to those indices that form the same pooling cell. Therefore, we -/// just need to know the shape of original input tensor, instead of the whole -/// tensor. -/// -/// Arguments: -/// * scope: A Scope object -/// * orig_input_tensor_shape: Original input tensor shape for `fractional_avg_pool` -/// * out_backprop: 4-D with shape `[batch, height, width, channels]`. Gradients -/// w.r.t. the output of `fractional_avg_pool`. -/// * row_pooling_sequence: row pooling sequence, form pooling region with -/// col_pooling_sequence. -/// * col_pooling_sequence: column pooling sequence, form pooling region with -/// row_pooling sequence. -/// -/// Optional attributes (see `Attrs`): -/// * overlapping: When set to True, it means when pooling, the values at the boundary -/// of adjacent pooling cells are used by both cells. For example: -/// -/// `index 0 1 2 3 4` -/// -/// `value 20 5 16 3 7` -/// -/// If the pooling sequence is [0, 2, 4], then 16, at index 2 will be used twice. -/// The result would be [41/3, 26/3] for fractional avg pooling. -/// -/// Returns: -/// * `Output`: 4-D. Gradients w.r.t. the input of `fractional_avg_pool`. -class FractionalAvgPoolGrad { - public: - /// Optional attribute setters for FractionalAvgPoolGrad - struct Attrs { - /// When set to True, it means when pooling, the values at the boundary - /// of adjacent pooling cells are used by both cells. For example: - /// - /// `index 0 1 2 3 4` - /// - /// `value 20 5 16 3 7` - /// - /// If the pooling sequence is [0, 2, 4], then 16, at index 2 will be used twice. - /// The result would be [41/3, 26/3] for fractional avg pooling. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs Overlapping(bool x) { - Attrs ret = *this; - ret.overlapping_ = x; - return ret; - } - - bool overlapping_ = false; - }; - FractionalAvgPoolGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - orig_input_tensor_shape, ::tensorflow::Input - out_backprop, ::tensorflow::Input row_pooling_sequence, - ::tensorflow::Input col_pooling_sequence); - FractionalAvgPoolGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - orig_input_tensor_shape, ::tensorflow::Input - out_backprop, ::tensorflow::Input row_pooling_sequence, - ::tensorflow::Input col_pooling_sequence, const - FractionalAvgPoolGrad::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Overlapping(bool x) { - return Attrs().Overlapping(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes gradient of the FractionalMaxPool function. -/// -/// Arguments: -/// * scope: A Scope object -/// * orig_input: Original input for `fractional_max_pool` -/// * orig_output: Original output for `fractional_max_pool` -/// * out_backprop: 4-D with shape `[batch, height, width, channels]`. Gradients -/// w.r.t. the output of `fractional_max_pool`. -/// * row_pooling_sequence: row pooling sequence, form pooling region with -/// col_pooling_sequence. -/// * col_pooling_sequence: column pooling sequence, form pooling region with -/// row_pooling sequence. -/// -/// Optional attributes (see `Attrs`): -/// * overlapping: When set to True, it means when pooling, the values at the boundary -/// of adjacent pooling cells are used by both cells. For example: -/// -/// `index 0 1 2 3 4` -/// -/// `value 20 5 16 3 7` -/// -/// If the pooling sequence is [0, 2, 4], then 16, at index 2 will be used twice. -/// The result would be [20, 16] for fractional max pooling. -/// -/// Returns: -/// * `Output`: 4-D. Gradients w.r.t. the input of `fractional_max_pool`. -class FractionalMaxPoolGrad { - public: - /// Optional attribute setters for FractionalMaxPoolGrad - struct Attrs { - /// When set to True, it means when pooling, the values at the boundary - /// of adjacent pooling cells are used by both cells. For example: - /// - /// `index 0 1 2 3 4` - /// - /// `value 20 5 16 3 7` - /// - /// If the pooling sequence is [0, 2, 4], then 16, at index 2 will be used twice. - /// The result would be [20, 16] for fractional max pooling. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs Overlapping(bool x) { - Attrs ret = *this; - ret.overlapping_ = x; - return ret; - } - - bool overlapping_ = false; - }; - FractionalMaxPoolGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - orig_input, ::tensorflow::Input orig_output, - ::tensorflow::Input out_backprop, ::tensorflow::Input - row_pooling_sequence, ::tensorflow::Input - col_pooling_sequence); - FractionalMaxPoolGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - orig_input, ::tensorflow::Input orig_output, - ::tensorflow::Input out_backprop, ::tensorflow::Input - row_pooling_sequence, ::tensorflow::Input - col_pooling_sequence, const FractionalMaxPoolGrad::Attrs& - attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Overlapping(bool x) { - return Attrs().Overlapping(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Gradients for Local Response Normalization. -/// -/// Arguments: -/// * scope: A Scope object -/// * input_grads: 4-D with shape `[batch, height, width, channels]`. -/// * input_image: 4-D with shape `[batch, height, width, channels]`. -/// * output_image: 4-D with shape `[batch, height, width, channels]`. -/// -/// Optional attributes (see `Attrs`): -/// * depth_radius: A depth radius. -/// * bias: An offset (usually > 0 to avoid dividing by 0). -/// * alpha: A scale factor, usually positive. -/// * beta: An exponent. -/// -/// Returns: -/// * `Output`: The gradients for LRN. -class LRNGrad { - public: - /// Optional attribute setters for LRNGrad - struct Attrs { - /// A depth radius. - /// - /// Defaults to 5 - TF_MUST_USE_RESULT Attrs DepthRadius(int64 x) { - Attrs ret = *this; - ret.depth_radius_ = x; - return ret; - } - - /// An offset (usually > 0 to avoid dividing by 0). - /// - /// Defaults to 1 - TF_MUST_USE_RESULT Attrs Bias(float x) { - Attrs ret = *this; - ret.bias_ = x; - return ret; - } - - /// A scale factor, usually positive. - /// - /// Defaults to 1 - TF_MUST_USE_RESULT Attrs Alpha(float x) { - Attrs ret = *this; - ret.alpha_ = x; - return ret; - } - - /// An exponent. - /// - /// Defaults to 0.5 - TF_MUST_USE_RESULT Attrs Beta(float x) { - Attrs ret = *this; - ret.beta_ = x; - return ret; - } - - int64 depth_radius_ = 5; - float bias_ = 1.0f; - float alpha_ = 1.0f; - float beta_ = 0.5f; - }; - LRNGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input input_grads, - ::tensorflow::Input input_image, ::tensorflow::Input output_image); - LRNGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input input_grads, - ::tensorflow::Input input_image, ::tensorflow::Input output_image, - const LRNGrad::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DepthRadius(int64 x) { - return Attrs().DepthRadius(x); - } - static Attrs Bias(float x) { - return Attrs().Bias(x); - } - static Attrs Alpha(float x) { - return Attrs().Alpha(x); - } - static Attrs Beta(float x) { - return Attrs().Beta(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes gradients of the maxpooling function. -/// -/// Arguments: -/// * scope: A Scope object -/// * orig_input: The original input tensor. -/// * orig_output: The original output tensor. -/// * grad: 4-D. Gradients w.r.t. the output of `max_pool`. -/// * ksize: The size of the window for each dimension of the input tensor. -/// * strides: The stride of the sliding window for each dimension of the -/// input tensor. -/// * padding: The type of padding algorithm to use. -/// -/// Optional attributes (see `Attrs`): -/// * data_format: Specify the data format of the input and output data. With the -/// default format "NHWC", the data is stored in the order of: -/// [batch, in_height, in_width, in_channels]. -/// Alternatively, the format could be "NCHW", the data storage order of: -/// [batch, in_channels, in_height, in_width]. -/// -/// Returns: -/// * `Output`: Gradients w.r.t. the input to `max_pool`. -class MaxPoolGrad { - public: - /// Optional attribute setters for MaxPoolGrad - struct Attrs { - /// Specify the data format of the input and output data. With the - /// default format "NHWC", the data is stored in the order of: - /// [batch, in_height, in_width, in_channels]. - /// Alternatively, the format could be "NCHW", the data storage order of: - /// [batch, in_channels, in_height, in_width]. - /// - /// Defaults to "NHWC" - TF_MUST_USE_RESULT Attrs DataFormat(StringPiece x) { - Attrs ret = *this; - ret.data_format_ = x; - return ret; - } - - StringPiece data_format_ = "NHWC"; - }; - MaxPoolGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input orig_input, - ::tensorflow::Input orig_output, ::tensorflow::Input grad, const - gtl::ArraySlice& ksize, const gtl::ArraySlice& strides, - StringPiece padding); - MaxPoolGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input orig_input, - ::tensorflow::Input orig_output, ::tensorflow::Input grad, const - gtl::ArraySlice& ksize, const gtl::ArraySlice& strides, - StringPiece padding, const MaxPoolGrad::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs DataFormat(StringPiece x) { - return Attrs().DataFormat(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes gradients of the maxpooling function. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The original input. -/// * grad: 4-D with shape `[batch, height, width, channels]`. Gradients w.r.t. the -/// output of `max_pool`. -/// * argmax: The indices of the maximum values chosen for each output of `max_pool`. -/// * ksize: The size of the window for each dimension of the input tensor. -/// * strides: The stride of the sliding window for each dimension of the -/// input tensor. -/// * padding: The type of padding algorithm to use. -/// -/// Returns: -/// * `Output`: Gradients w.r.t. the input of `max_pool`. -class MaxPoolGradWithArgmax { - public: - MaxPoolGradWithArgmax(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, ::tensorflow::Input grad, ::tensorflow::Input - argmax, const gtl::ArraySlice& ksize, const - gtl::ArraySlice& strides, StringPiece padding); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes rectified linear 6 gradients for a Relu6 operation. -/// -/// Arguments: -/// * scope: A Scope object -/// * gradients: The backpropagated gradients to the corresponding Relu6 operation. -/// * features: The features passed as input to the corresponding Relu6 operation, or -/// its output; using either one produces the same result. -/// -/// Returns: -/// * `Output`: The gradients: -/// `gradients * (features > 0) * (features < 6)`. -class Relu6Grad { - public: - Relu6Grad(const ::tensorflow::Scope& scope, ::tensorflow::Input gradients, - ::tensorflow::Input features); - operator ::tensorflow::Output() const { return backprops; } - operator ::tensorflow::Input() const { return backprops; } - ::tensorflow::Node* node() const { return backprops.node(); } - - Operation operation; - ::tensorflow::Output backprops; -}; - -/// Computes rectified linear gradients for a Relu operation. -/// -/// Arguments: -/// * scope: A Scope object -/// * gradients: The backpropagated gradients to the corresponding Relu operation. -/// * features: The features passed as input to the corresponding Relu operation, OR -/// the outputs of that operation (both work equivalently). -/// -/// Returns: -/// * `Output`: `gradients * (features > 0)`. -class ReluGrad { - public: - ReluGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input gradients, - ::tensorflow::Input features); - operator ::tensorflow::Output() const { return backprops; } - operator ::tensorflow::Input() const { return backprops; } - ::tensorflow::Node* node() const { return backprops.node(); } - - Operation operation; - ::tensorflow::Output backprops; -}; - -/// Computes gradients for the scaled exponential linear (Selu) operation. -/// -/// Arguments: -/// * scope: A Scope object -/// * gradients: The backpropagated gradients to the corresponding Selu operation. -/// * outputs: The outputs of the corresponding Selu operation. -/// -/// Returns: -/// * `Output`: The gradients: `gradients * (outputs + scale * alpha)` -/// if outputs < 0, `scale * gradients` otherwise. -class SeluGrad { - public: - SeluGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input gradients, - ::tensorflow::Input outputs); - operator ::tensorflow::Output() const { return backprops; } - operator ::tensorflow::Input() const { return backprops; } - ::tensorflow::Node* node() const { return backprops.node(); } - - Operation operation; - ::tensorflow::Output backprops; -}; - -/// Computes softplus gradients for a softplus operation. -/// -/// Arguments: -/// * scope: A Scope object -/// * gradients: The backpropagated gradients to the corresponding softplus operation. -/// * features: The features passed as input to the corresponding softplus operation. -/// -/// Returns: -/// * `Output`: The gradients: `gradients / (1 + exp(-features))`. -class SoftplusGrad { - public: - SoftplusGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input gradients, - ::tensorflow::Input features); - operator ::tensorflow::Output() const { return backprops; } - operator ::tensorflow::Input() const { return backprops; } - ::tensorflow::Node* node() const { return backprops.node(); } - - Operation operation; - ::tensorflow::Output backprops; -}; - -/// Computes softsign gradients for a softsign operation. -/// -/// Arguments: -/// * scope: A Scope object -/// * gradients: The backpropagated gradients to the corresponding softsign operation. -/// * features: The features passed as input to the corresponding softsign operation. -/// -/// Returns: -/// * `Output`: The gradients: `gradients / (1 + abs(features)) ** 2`. -class SoftsignGrad { - public: - SoftsignGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input gradients, - ::tensorflow::Input features); - operator ::tensorflow::Output() const { return backprops; } - operator ::tensorflow::Input() const { return backprops; } - ::tensorflow::Node* node() const { return backprops.node(); } - - Operation operation; - ::tensorflow::Output backprops; -}; - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_NN_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/no_op.h b/linux/include/tensorflow/cc/ops/no_op.h deleted file mode 100755 index 99298ee4b..000000000 --- a/linux/include/tensorflow/cc/ops/no_op.h +++ /dev/null @@ -1,41 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_NO_OP_H_ -#define TENSORFLOW_CC_OPS_NO_OP_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup no_op No Op -/// @{ - -/// Does nothing. Only useful as a placeholder for control edges. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * the created `Operation` -class NoOp { - public: - NoOp(const ::tensorflow::Scope& scope); - operator ::tensorflow::Operation() const { return operation; } - - Operation operation; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_NO_OP_H_ diff --git a/linux/include/tensorflow/cc/ops/no_op_internal.h b/linux/include/tensorflow/cc/ops/no_op_internal.h deleted file mode 100755 index 1a3a6854e..000000000 --- a/linux/include/tensorflow/cc/ops/no_op_internal.h +++ /dev/null @@ -1,28 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_NO_OP_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_NO_OP_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup no_op_internal No Op Internal -/// @{ - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_NO_OP_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/parsing_ops.h b/linux/include/tensorflow/cc/ops/parsing_ops.h deleted file mode 100755 index b6d3b831b..000000000 --- a/linux/include/tensorflow/cc/ops/parsing_ops.h +++ /dev/null @@ -1,854 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_PARSING_OPS_H_ -#define TENSORFLOW_CC_OPS_PARSING_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup parsing_ops Parsing Ops -/// @{ - -/// Convert CSV records to tensors. Each column maps to one tensor. -/// -/// RFC 4180 format is expected for the CSV records. -/// (https://tools.ietf.org/html/rfc4180) -/// Note that we allow leading and trailing spaces with int or float field. -/// -/// Arguments: -/// * scope: A Scope object -/// * records: Each string is a record/row in the csv and all records should have -/// the same format. -/// * record_defaults: One tensor per column of the input record, with either a -/// scalar default value for that column or an empty vector if the column is -/// required. -/// -/// Optional attributes (see `Attrs`): -/// * field_delim: char delimiter to separate fields in a record. -/// * use_quote_delim: If false, treats double quotation marks as regular -/// characters inside of the string fields (ignoring RFC 4180, Section 2, -/// Bullet 5). -/// * na_value: Additional string to recognize as NA/NaN. -/// -/// Returns: -/// * `OutputList`: Each tensor will have the same shape as records. -class DecodeCSV { - public: - /// Optional attribute setters for DecodeCSV - struct Attrs { - /// char delimiter to separate fields in a record. - /// - /// Defaults to "," - TF_MUST_USE_RESULT Attrs FieldDelim(StringPiece x) { - Attrs ret = *this; - ret.field_delim_ = x; - return ret; - } - - /// If false, treats double quotation marks as regular - /// characters inside of the string fields (ignoring RFC 4180, Section 2, - /// Bullet 5). - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs UseQuoteDelim(bool x) { - Attrs ret = *this; - ret.use_quote_delim_ = x; - return ret; - } - - /// Additional string to recognize as NA/NaN. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs NaValue(StringPiece x) { - Attrs ret = *this; - ret.na_value_ = x; - return ret; - } - - /// Defaults to [] - TF_MUST_USE_RESULT Attrs SelectCols(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.select_cols_ = x; - return ret; - } - - StringPiece field_delim_ = ","; - bool use_quote_delim_ = true; - StringPiece na_value_ = ""; - gtl::ArraySlice select_cols_ = {}; - }; - DecodeCSV(const ::tensorflow::Scope& scope, ::tensorflow::Input records, - ::tensorflow::InputList record_defaults); - DecodeCSV(const ::tensorflow::Scope& scope, ::tensorflow::Input records, - ::tensorflow::InputList record_defaults, const DecodeCSV::Attrs& - attrs); - ::tensorflow::Output operator[](size_t index) const { return output[index]; } - - - static Attrs FieldDelim(StringPiece x) { - return Attrs().FieldDelim(x); - } - static Attrs UseQuoteDelim(bool x) { - return Attrs().UseQuoteDelim(x); - } - static Attrs NaValue(StringPiece x) { - return Attrs().NaValue(x); - } - static Attrs SelectCols(const gtl::ArraySlice& x) { - return Attrs().SelectCols(x); - } - - Operation operation; - ::tensorflow::OutputList output; -}; - -/// Decompress strings. -/// -/// This op decompresses each element of the `bytes` input `Tensor`, which -/// is assumed to be compressed using the given `compression_type`. -/// -/// The `output` is a string `Tensor` of the same shape as `bytes`, -/// each element containing the decompressed data from the corresponding -/// element in `bytes`. -/// -/// Arguments: -/// * scope: A Scope object -/// * bytes: A Tensor of string which is compressed. -/// -/// Optional attributes (see `Attrs`): -/// * compression_type: A scalar containing either (i) the empty string (no -/// compression), (ii) "ZLIB", or (iii) "GZIP". -/// -/// Returns: -/// * `Output`: A Tensor with the same shape as input `bytes`, uncompressed -/// from bytes. -class DecodeCompressed { - public: - /// Optional attribute setters for DecodeCompressed - struct Attrs { - /// A scalar containing either (i) the empty string (no - /// compression), (ii) "ZLIB", or (iii) "GZIP". - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs CompressionType(StringPiece x) { - Attrs ret = *this; - ret.compression_type_ = x; - return ret; - } - - StringPiece compression_type_ = ""; - }; - DecodeCompressed(const ::tensorflow::Scope& scope, ::tensorflow::Input bytes); - DecodeCompressed(const ::tensorflow::Scope& scope, ::tensorflow::Input bytes, - const DecodeCompressed::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs CompressionType(StringPiece x) { - return Attrs().CompressionType(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Convert JSON-encoded Example records to binary protocol buffer strings. -/// -/// This op translates a tensor containing Example records, encoded using -/// the [standard JSON -/// mapping](https://developers.google.com/protocol-buffers/docs/proto3#json), -/// into a tensor containing the same records encoded as binary protocol -/// buffers. The resulting tensor can then be fed to any of the other -/// Example-parsing ops. -/// -/// Arguments: -/// * scope: A Scope object -/// * json_examples: Each string is a JSON object serialized according to the JSON -/// mapping of the Example proto. -/// -/// Returns: -/// * `Output`: Each string is a binary Example protocol buffer corresponding -/// to the respective element of `json_examples`. -class DecodeJSONExample { - public: - DecodeJSONExample(const ::tensorflow::Scope& scope, ::tensorflow::Input - json_examples); - operator ::tensorflow::Output() const { return binary_examples; } - operator ::tensorflow::Input() const { return binary_examples; } - ::tensorflow::Node* node() const { return binary_examples.node(); } - - Operation operation; - ::tensorflow::Output binary_examples; -}; - -/// Reinterpret the bytes of a string as a vector of numbers. -/// -/// Arguments: -/// * scope: A Scope object -/// * bytes: All the elements must have the same length. -/// -/// Optional attributes (see `Attrs`): -/// * little_endian: Whether the input `bytes` are in little-endian order. -/// Ignored for `out_type` values that are stored in a single byte like -/// `uint8`. -/// -/// Returns: -/// * `Output`: A Tensor with one more dimension than the input `bytes`. The -/// added dimension will have size equal to the length of the elements -/// of `bytes` divided by the number of bytes to represent `out_type`. -class DecodeRaw { - public: - /// Optional attribute setters for DecodeRaw - struct Attrs { - /// Whether the input `bytes` are in little-endian order. - /// Ignored for `out_type` values that are stored in a single byte like - /// `uint8`. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs LittleEndian(bool x) { - Attrs ret = *this; - ret.little_endian_ = x; - return ret; - } - - bool little_endian_ = true; - }; - DecodeRaw(const ::tensorflow::Scope& scope, ::tensorflow::Input bytes, DataType - out_type); - DecodeRaw(const ::tensorflow::Scope& scope, ::tensorflow::Input bytes, DataType - out_type, const DecodeRaw::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs LittleEndian(bool x) { - return Attrs().LittleEndian(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Transforms a vector of brain.Example protos (as strings) into typed tensors. -/// -/// Arguments: -/// * scope: A Scope object -/// * serialized: A vector containing a batch of binary serialized Example protos. -/// * names: A vector containing the names of the serialized protos. -/// May contain, for example, table key (descriptive) names for the -/// corresponding serialized protos. These are purely useful for debugging -/// purposes, and the presence of values here has no effect on the output. -/// May also be an empty vector if no names are available. -/// If non-empty, this vector must be the same length as "serialized". -/// * sparse_keys: A list of Nsparse string Tensors (scalars). -/// The keys expected in the Examples' features associated with sparse values. -/// * dense_keys: A list of Ndense string Tensors (scalars). -/// The keys expected in the Examples' features associated with dense values. -/// * dense_defaults: A list of Ndense Tensors (some may be empty). -/// dense_defaults[j] provides default values -/// when the example's feature_map lacks dense_key[j]. If an empty Tensor is -/// provided for dense_defaults[j], then the Feature dense_keys[j] is required. -/// The input type is inferred from dense_defaults[j], even when it's empty. -/// If dense_defaults[j] is not empty, and dense_shapes[j] is fully defined, -/// then the shape of dense_defaults[j] must match that of dense_shapes[j]. -/// If dense_shapes[j] has an undefined major dimension (variable strides dense -/// feature), dense_defaults[j] must contain a single element: -/// the padding element. -/// * sparse_types: A list of Nsparse types; the data types of data in each Feature -/// given in sparse_keys. -/// Currently the ParseExample supports DT_FLOAT (FloatList), -/// DT_INT64 (Int64List), and DT_STRING (BytesList). -/// * dense_shapes: A list of Ndense shapes; the shapes of data in each Feature -/// given in dense_keys. -/// The number of elements in the Feature corresponding to dense_key[j] -/// must always equal dense_shapes[j].NumEntries(). -/// If dense_shapes[j] == (D0, D1, ..., DN) then the shape of output -/// Tensor dense_values[j] will be (|serialized|, D0, D1, ..., DN): -/// The dense outputs are just the inputs row-stacked by batch. -/// This works for dense_shapes[j] = (-1, D1, ..., DN). In this case -/// the shape of the output Tensor dense_values[j] will be -/// (|serialized|, M, D1, .., DN), where M is the maximum number of blocks -/// of elements of length D1 * .... * DN, across all minibatch entries -/// in the input. Any minibatch entry with less than M blocks of elements of -/// length D1 * ... * DN will be padded with the corresponding default_value -/// scalar element along the second dimension. -/// -/// Returns: -/// * `OutputList` sparse_indices -/// * `OutputList` sparse_values -/// * `OutputList` sparse_shapes -/// * `OutputList` dense_values -class ParseExample { - public: - ParseExample(const ::tensorflow::Scope& scope, ::tensorflow::Input serialized, - ::tensorflow::Input names, ::tensorflow::InputList sparse_keys, - ::tensorflow::InputList dense_keys, ::tensorflow::InputList - dense_defaults, const DataTypeSlice& sparse_types, const - gtl::ArraySlice& dense_shapes); - - Operation operation; - ::tensorflow::OutputList sparse_indices; - ::tensorflow::OutputList sparse_values; - ::tensorflow::OutputList sparse_shapes; - ::tensorflow::OutputList dense_values; -}; - -/// Transforms a vector of brain.SequenceExample protos (as strings) into typed tensors. -/// -/// Arguments: -/// * scope: A Scope object -/// * serialized: A vector containing binary serialized SequenceExample protos. -/// * debug_name: A vector containing the names of the serialized protos. -/// May contain, for example, table key (descriptive) name for the -/// corresponding serialized proto. This is purely useful for debugging -/// purposes, and the presence of values here has no effect on the output. -/// May also be an empty vector if no name is available. -/// * context_dense_defaults: A list of Ncontext_dense Tensors (some may be empty). -/// context_dense_defaults[j] provides default values -/// when the SequenceExample's context map lacks context_dense_key[j]. -/// If an empty Tensor is provided for context_dense_defaults[j], -/// then the Feature context_dense_keys[j] is required. -/// The input type is inferred from context_dense_defaults[j], even when it's -/// empty. If context_dense_defaults[j] is not empty, its shape must match -/// context_dense_shapes[j]. -/// * feature_list_dense_missing_assumed_empty: A vector listing the -/// FeatureList keys which may be missing from the SequenceExamples. If the -/// associated FeatureList is missing, it is treated as empty. By default, -/// any FeatureList not listed in this vector must exist in the SequenceExamples. -/// * context_sparse_keys: A list of Ncontext_sparse string Tensors (scalars). -/// The keys expected in the Examples' features associated with context_sparse -/// values. -/// * context_dense_keys: A list of Ncontext_dense string Tensors (scalars). -/// The keys expected in the SequenceExamples' context features associated with -/// dense values. -/// * feature_list_sparse_keys: A list of Nfeature_list_sparse string Tensors -/// (scalars). The keys expected in the FeatureLists associated with sparse -/// values. -/// * feature_list_dense_keys: A list of Nfeature_list_dense string Tensors (scalars). -/// The keys expected in the SequenceExamples' feature_lists associated -/// with lists of dense values. -/// -/// Optional attributes (see `Attrs`): -/// * context_sparse_types: A list of Ncontext_sparse types; the data types of data in -/// each context Feature given in context_sparse_keys. -/// Currently the ParseSingleSequenceExample supports DT_FLOAT (FloatList), -/// DT_INT64 (Int64List), and DT_STRING (BytesList). -/// * context_dense_shapes: A list of Ncontext_dense shapes; the shapes of data in -/// each context Feature given in context_dense_keys. -/// The number of elements in the Feature corresponding to context_dense_key[j] -/// must always equal context_dense_shapes[j].NumEntries(). -/// The shape of context_dense_values[j] will match context_dense_shapes[j]. -/// * feature_list_sparse_types: A list of Nfeature_list_sparse types; the data types -/// of data in each FeatureList given in feature_list_sparse_keys. -/// Currently the ParseSingleSequenceExample supports DT_FLOAT (FloatList), -/// DT_INT64 (Int64List), and DT_STRING (BytesList). -/// * feature_list_dense_shapes: A list of Nfeature_list_dense shapes; the shapes of -/// data in each FeatureList given in feature_list_dense_keys. -/// The shape of each Feature in the FeatureList corresponding to -/// feature_list_dense_key[j] must always equal -/// feature_list_dense_shapes[j].NumEntries(). -/// -/// Returns: -/// * `OutputList` context_sparse_indices -/// * `OutputList` context_sparse_values -/// * `OutputList` context_sparse_shapes -/// * `OutputList` context_dense_values -/// * `OutputList` feature_list_sparse_indices -/// * `OutputList` feature_list_sparse_values -/// * `OutputList` feature_list_sparse_shapes -/// * `OutputList` feature_list_dense_values -/// * `OutputList` feature_list_dense_lengths -class ParseSequenceExample { - public: - /// Optional attribute setters for ParseSequenceExample - struct Attrs { - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs NcontextSparse(int64 x) { - Attrs ret = *this; - ret.Ncontext_sparse_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs NcontextDense(int64 x) { - Attrs ret = *this; - ret.Ncontext_dense_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs NfeatureListSparse(int64 x) { - Attrs ret = *this; - ret.Nfeature_list_sparse_ = x; - return ret; - } - - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs NfeatureListDense(int64 x) { - Attrs ret = *this; - ret.Nfeature_list_dense_ = x; - return ret; - } - - /// A list of Ncontext_sparse types; the data types of data in - /// each context Feature given in context_sparse_keys. - /// Currently the ParseSingleSequenceExample supports DT_FLOAT (FloatList), - /// DT_INT64 (Int64List), and DT_STRING (BytesList). - /// - /// Defaults to [] - TF_MUST_USE_RESULT Attrs ContextSparseTypes(const DataTypeSlice& x) { - Attrs ret = *this; - ret.context_sparse_types_ = x; - return ret; - } - - /// Defaults to [] - TF_MUST_USE_RESULT Attrs FeatureListDenseTypes(const DataTypeSlice& x) { - Attrs ret = *this; - ret.feature_list_dense_types_ = x; - return ret; - } - - /// A list of Ncontext_dense shapes; the shapes of data in - /// each context Feature given in context_dense_keys. - /// The number of elements in the Feature corresponding to context_dense_key[j] - /// must always equal context_dense_shapes[j].NumEntries(). - /// The shape of context_dense_values[j] will match context_dense_shapes[j]. - /// - /// Defaults to [] - TF_MUST_USE_RESULT Attrs ContextDenseShapes(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.context_dense_shapes_ = x; - return ret; - } - - /// A list of Nfeature_list_sparse types; the data types - /// of data in each FeatureList given in feature_list_sparse_keys. - /// Currently the ParseSingleSequenceExample supports DT_FLOAT (FloatList), - /// DT_INT64 (Int64List), and DT_STRING (BytesList). - /// - /// Defaults to [] - TF_MUST_USE_RESULT Attrs FeatureListSparseTypes(const DataTypeSlice& x) { - Attrs ret = *this; - ret.feature_list_sparse_types_ = x; - return ret; - } - - /// A list of Nfeature_list_dense shapes; the shapes of - /// data in each FeatureList given in feature_list_dense_keys. - /// The shape of each Feature in the FeatureList corresponding to - /// feature_list_dense_key[j] must always equal - /// feature_list_dense_shapes[j].NumEntries(). - /// - /// Defaults to [] - TF_MUST_USE_RESULT Attrs FeatureListDenseShapes(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.feature_list_dense_shapes_ = x; - return ret; - } - - int64 Ncontext_sparse_ = 0; - int64 Ncontext_dense_ = 0; - int64 Nfeature_list_sparse_ = 0; - int64 Nfeature_list_dense_ = 0; - DataTypeSlice context_sparse_types_ = {}; - DataTypeSlice feature_list_dense_types_ = {}; - gtl::ArraySlice context_dense_shapes_ = {}; - DataTypeSlice feature_list_sparse_types_ = {}; - gtl::ArraySlice feature_list_dense_shapes_ = {}; - }; - ParseSequenceExample(const ::tensorflow::Scope& scope, ::tensorflow::Input - serialized, ::tensorflow::Input debug_name, - ::tensorflow::InputList context_dense_defaults, const - gtl::ArraySlice& - feature_list_dense_missing_assumed_empty, const - gtl::ArraySlice& context_sparse_keys, const - gtl::ArraySlice& context_dense_keys, const - gtl::ArraySlice& feature_list_sparse_keys, const - gtl::ArraySlice& feature_list_dense_keys); - ParseSequenceExample(const ::tensorflow::Scope& scope, ::tensorflow::Input - serialized, ::tensorflow::Input debug_name, - ::tensorflow::InputList context_dense_defaults, const - gtl::ArraySlice& - feature_list_dense_missing_assumed_empty, const - gtl::ArraySlice& context_sparse_keys, const - gtl::ArraySlice& context_dense_keys, const - gtl::ArraySlice& feature_list_sparse_keys, const - gtl::ArraySlice& feature_list_dense_keys, const - ParseSequenceExample::Attrs& attrs); - - static Attrs NcontextSparse(int64 x) { - return Attrs().NcontextSparse(x); - } - static Attrs NcontextDense(int64 x) { - return Attrs().NcontextDense(x); - } - static Attrs NfeatureListSparse(int64 x) { - return Attrs().NfeatureListSparse(x); - } - static Attrs NfeatureListDense(int64 x) { - return Attrs().NfeatureListDense(x); - } - static Attrs ContextSparseTypes(const DataTypeSlice& x) { - return Attrs().ContextSparseTypes(x); - } - static Attrs FeatureListDenseTypes(const DataTypeSlice& x) { - return Attrs().FeatureListDenseTypes(x); - } - static Attrs ContextDenseShapes(const gtl::ArraySlice& x) { - return Attrs().ContextDenseShapes(x); - } - static Attrs FeatureListSparseTypes(const DataTypeSlice& x) { - return Attrs().FeatureListSparseTypes(x); - } - static Attrs FeatureListDenseShapes(const gtl::ArraySlice& x) { - return Attrs().FeatureListDenseShapes(x); - } - - Operation operation; - ::tensorflow::OutputList context_sparse_indices; - ::tensorflow::OutputList context_sparse_values; - ::tensorflow::OutputList context_sparse_shapes; - ::tensorflow::OutputList context_dense_values; - ::tensorflow::OutputList feature_list_sparse_indices; - ::tensorflow::OutputList feature_list_sparse_values; - ::tensorflow::OutputList feature_list_sparse_shapes; - ::tensorflow::OutputList feature_list_dense_values; - ::tensorflow::OutputList feature_list_dense_lengths; -}; - -/// Transforms a tf.Example proto (as a string) into typed tensors. -/// -/// Arguments: -/// * scope: A Scope object -/// * serialized: A vector containing a batch of binary serialized Example protos. -/// * dense_defaults: A list of Tensors (some may be empty), whose length matches -/// the length of `dense_keys`. dense_defaults[j] provides default values -/// when the example's feature_map lacks dense_key[j]. If an empty Tensor is -/// provided for dense_defaults[j], then the Feature dense_keys[j] is required. -/// The input type is inferred from dense_defaults[j], even when it's empty. -/// If dense_defaults[j] is not empty, and dense_shapes[j] is fully defined, -/// then the shape of dense_defaults[j] must match that of dense_shapes[j]. -/// If dense_shapes[j] has an undefined major dimension (variable strides dense -/// feature), dense_defaults[j] must contain a single element: -/// the padding element. -/// * num_sparse: The number of sparse features to be parsed from the example. This -/// must match the lengths of `sparse_keys` and `sparse_types`. -/// * sparse_keys: A list of `num_sparse` strings. -/// The keys expected in the Examples' features associated with sparse values. -/// * dense_keys: The keys expected in the Examples' features associated with dense -/// values. -/// * sparse_types: A list of `num_sparse` types; the data types of data in each -/// Feature given in sparse_keys. -/// Currently the ParseSingleExample op supports DT_FLOAT (FloatList), -/// DT_INT64 (Int64List), and DT_STRING (BytesList). -/// * dense_shapes: The shapes of data in each Feature given in dense_keys. -/// The length of this list must match the length of `dense_keys`. The -/// number of elements in the Feature corresponding to dense_key[j] must -/// always equal dense_shapes[j].NumEntries(). If dense_shapes[j] == -/// (D0, D1, ..., DN) then the shape of output Tensor dense_values[j] -/// will be (D0, D1, ..., DN): In the case dense_shapes[j] = (-1, D1, -/// ..., DN), the shape of the output Tensor dense_values[j] will be (M, -/// D1, .., DN), where M is the number of blocks of elements of length -/// D1 * .... * DN, in the input. -/// -/// Returns: -/// * `OutputList` sparse_indices -/// * `OutputList` sparse_values -/// * `OutputList` sparse_shapes -/// * `OutputList` dense_values -class ParseSingleExample { - public: - ParseSingleExample(const ::tensorflow::Scope& scope, ::tensorflow::Input - serialized, ::tensorflow::InputList dense_defaults, int64 - num_sparse, const gtl::ArraySlice& sparse_keys, - const gtl::ArraySlice& dense_keys, const - DataTypeSlice& sparse_types, const - gtl::ArraySlice& dense_shapes); - - Operation operation; - ::tensorflow::OutputList sparse_indices; - ::tensorflow::OutputList sparse_values; - ::tensorflow::OutputList sparse_shapes; - ::tensorflow::OutputList dense_values; -}; - -/// Transforms a scalar brain.SequenceExample proto (as strings) into typed tensors. -/// -/// Arguments: -/// * scope: A Scope object -/// * serialized: A scalar containing a binary serialized SequenceExample proto. -/// * feature_list_dense_missing_assumed_empty: A vector listing the -/// FeatureList keys which may be missing from the SequenceExample. If the -/// associated FeatureList is missing, it is treated as empty. By default, -/// any FeatureList not listed in this vector must exist in the SequenceExample. -/// * context_sparse_keys: A list of Ncontext_sparse string Tensors (scalars). -/// The keys expected in the Examples' features associated with context_sparse -/// values. -/// * context_dense_keys: A list of Ncontext_dense string Tensors (scalars). -/// The keys expected in the SequenceExamples' context features associated with -/// dense values. -/// * feature_list_sparse_keys: A list of Nfeature_list_sparse string Tensors -/// (scalars). The keys expected in the FeatureLists associated with sparse -/// values. -/// * feature_list_dense_keys: A list of Nfeature_list_dense string Tensors (scalars). -/// The keys expected in the SequenceExamples' feature_lists associated -/// with lists of dense values. -/// * context_dense_defaults: A list of Ncontext_dense Tensors (some may be empty). -/// context_dense_defaults[j] provides default values -/// when the SequenceExample's context map lacks context_dense_key[j]. -/// If an empty Tensor is provided for context_dense_defaults[j], -/// then the Feature context_dense_keys[j] is required. -/// The input type is inferred from context_dense_defaults[j], even when it's -/// empty. If context_dense_defaults[j] is not empty, its shape must match -/// context_dense_shapes[j]. -/// * debug_name: A scalar containing the name of the serialized proto. -/// May contain, for example, table key (descriptive) name for the -/// corresponding serialized proto. This is purely useful for debugging -/// purposes, and the presence of values here has no effect on the output. -/// May also be an empty scalar if no name is available. -/// -/// Optional attributes (see `Attrs`): -/// * context_sparse_types: A list of Ncontext_sparse types; the data types of data in -/// each context Feature given in context_sparse_keys. -/// Currently the ParseSingleSequenceExample supports DT_FLOAT (FloatList), -/// DT_INT64 (Int64List), and DT_STRING (BytesList). -/// * context_dense_shapes: A list of Ncontext_dense shapes; the shapes of data in -/// each context Feature given in context_dense_keys. -/// The number of elements in the Feature corresponding to context_dense_key[j] -/// must always equal context_dense_shapes[j].NumEntries(). -/// The shape of context_dense_values[j] will match context_dense_shapes[j]. -/// * feature_list_sparse_types: A list of Nfeature_list_sparse types; the data types -/// of data in each FeatureList given in feature_list_sparse_keys. -/// Currently the ParseSingleSequenceExample supports DT_FLOAT (FloatList), -/// DT_INT64 (Int64List), and DT_STRING (BytesList). -/// * feature_list_dense_shapes: A list of Nfeature_list_dense shapes; the shapes of -/// data in each FeatureList given in feature_list_dense_keys. -/// The shape of each Feature in the FeatureList corresponding to -/// feature_list_dense_key[j] must always equal -/// feature_list_dense_shapes[j].NumEntries(). -/// -/// Returns: -/// * `OutputList` context_sparse_indices -/// * `OutputList` context_sparse_values -/// * `OutputList` context_sparse_shapes -/// * `OutputList` context_dense_values -/// * `OutputList` feature_list_sparse_indices -/// * `OutputList` feature_list_sparse_values -/// * `OutputList` feature_list_sparse_shapes -/// * `OutputList` feature_list_dense_values -class ParseSingleSequenceExample { - public: - /// Optional attribute setters for ParseSingleSequenceExample - struct Attrs { - /// A list of Ncontext_sparse types; the data types of data in - /// each context Feature given in context_sparse_keys. - /// Currently the ParseSingleSequenceExample supports DT_FLOAT (FloatList), - /// DT_INT64 (Int64List), and DT_STRING (BytesList). - /// - /// Defaults to [] - TF_MUST_USE_RESULT Attrs ContextSparseTypes(const DataTypeSlice& x) { - Attrs ret = *this; - ret.context_sparse_types_ = x; - return ret; - } - - /// Defaults to [] - TF_MUST_USE_RESULT Attrs FeatureListDenseTypes(const DataTypeSlice& x) { - Attrs ret = *this; - ret.feature_list_dense_types_ = x; - return ret; - } - - /// A list of Ncontext_dense shapes; the shapes of data in - /// each context Feature given in context_dense_keys. - /// The number of elements in the Feature corresponding to context_dense_key[j] - /// must always equal context_dense_shapes[j].NumEntries(). - /// The shape of context_dense_values[j] will match context_dense_shapes[j]. - /// - /// Defaults to [] - TF_MUST_USE_RESULT Attrs ContextDenseShapes(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.context_dense_shapes_ = x; - return ret; - } - - /// A list of Nfeature_list_sparse types; the data types - /// of data in each FeatureList given in feature_list_sparse_keys. - /// Currently the ParseSingleSequenceExample supports DT_FLOAT (FloatList), - /// DT_INT64 (Int64List), and DT_STRING (BytesList). - /// - /// Defaults to [] - TF_MUST_USE_RESULT Attrs FeatureListSparseTypes(const DataTypeSlice& x) { - Attrs ret = *this; - ret.feature_list_sparse_types_ = x; - return ret; - } - - /// A list of Nfeature_list_dense shapes; the shapes of - /// data in each FeatureList given in feature_list_dense_keys. - /// The shape of each Feature in the FeatureList corresponding to - /// feature_list_dense_key[j] must always equal - /// feature_list_dense_shapes[j].NumEntries(). - /// - /// Defaults to [] - TF_MUST_USE_RESULT Attrs FeatureListDenseShapes(const gtl::ArraySlice& x) { - Attrs ret = *this; - ret.feature_list_dense_shapes_ = x; - return ret; - } - - DataTypeSlice context_sparse_types_ = {}; - DataTypeSlice feature_list_dense_types_ = {}; - gtl::ArraySlice context_dense_shapes_ = {}; - DataTypeSlice feature_list_sparse_types_ = {}; - gtl::ArraySlice feature_list_dense_shapes_ = {}; - }; - ParseSingleSequenceExample(const ::tensorflow::Scope& scope, - ::tensorflow::Input serialized, ::tensorflow::Input - feature_list_dense_missing_assumed_empty, - ::tensorflow::InputList context_sparse_keys, - ::tensorflow::InputList context_dense_keys, - ::tensorflow::InputList feature_list_sparse_keys, - ::tensorflow::InputList feature_list_dense_keys, - ::tensorflow::InputList context_dense_defaults, - ::tensorflow::Input debug_name); - ParseSingleSequenceExample(const ::tensorflow::Scope& scope, - ::tensorflow::Input serialized, ::tensorflow::Input - feature_list_dense_missing_assumed_empty, - ::tensorflow::InputList context_sparse_keys, - ::tensorflow::InputList context_dense_keys, - ::tensorflow::InputList feature_list_sparse_keys, - ::tensorflow::InputList feature_list_dense_keys, - ::tensorflow::InputList context_dense_defaults, - ::tensorflow::Input debug_name, const - ParseSingleSequenceExample::Attrs& attrs); - - static Attrs ContextSparseTypes(const DataTypeSlice& x) { - return Attrs().ContextSparseTypes(x); - } - static Attrs FeatureListDenseTypes(const DataTypeSlice& x) { - return Attrs().FeatureListDenseTypes(x); - } - static Attrs ContextDenseShapes(const gtl::ArraySlice& x) { - return Attrs().ContextDenseShapes(x); - } - static Attrs FeatureListSparseTypes(const DataTypeSlice& x) { - return Attrs().FeatureListSparseTypes(x); - } - static Attrs FeatureListDenseShapes(const gtl::ArraySlice& x) { - return Attrs().FeatureListDenseShapes(x); - } - - Operation operation; - ::tensorflow::OutputList context_sparse_indices; - ::tensorflow::OutputList context_sparse_values; - ::tensorflow::OutputList context_sparse_shapes; - ::tensorflow::OutputList context_dense_values; - ::tensorflow::OutputList feature_list_sparse_indices; - ::tensorflow::OutputList feature_list_sparse_values; - ::tensorflow::OutputList feature_list_sparse_shapes; - ::tensorflow::OutputList feature_list_dense_values; -}; - -/// Transforms a serialized tensorflow.TensorProto proto into a Tensor. -/// -/// Arguments: -/// * scope: A Scope object -/// * serialized: A scalar string containing a serialized TensorProto proto. -/// * out_type: The type of the serialized tensor. The provided type must match the -/// type of the serialized tensor and no implicit conversion will take place. -/// -/// Returns: -/// * `Output`: A Tensor of type `out_type`. -class ParseTensor { - public: - ParseTensor(const ::tensorflow::Scope& scope, ::tensorflow::Input serialized, - DataType out_type); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Transforms a Tensor into a serialized TensorProto proto. -/// -/// Arguments: -/// * scope: A Scope object -/// * tensor: A Tensor of type `T`. -/// -/// Returns: -/// * `Output`: A serialized TensorProto proto of the input tensor. -class SerializeTensor { - public: - SerializeTensor(const ::tensorflow::Scope& scope, ::tensorflow::Input tensor); - operator ::tensorflow::Output() const { return serialized; } - operator ::tensorflow::Input() const { return serialized; } - ::tensorflow::Node* node() const { return serialized.node(); } - - Operation operation; - ::tensorflow::Output serialized; -}; - -/// Converts each string in the input Tensor to the specified numeric type. -/// -/// (Note that int32 overflow results in an error while float overflow -/// results in a rounded value.) -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Optional attributes (see `Attrs`): -/// * out_type: The numeric type to interpret each string in `string_tensor` as. -/// -/// Returns: -/// * `Output`: A Tensor of the same shape as the input `string_tensor`. -class StringToNumber { - public: - /// Optional attribute setters for StringToNumber - struct Attrs { - /// The numeric type to interpret each string in `string_tensor` as. - /// - /// Defaults to DT_FLOAT - TF_MUST_USE_RESULT Attrs OutType(DataType x) { - Attrs ret = *this; - ret.out_type_ = x; - return ret; - } - - DataType out_type_ = DT_FLOAT; - }; - StringToNumber(const ::tensorflow::Scope& scope, ::tensorflow::Input - string_tensor); - StringToNumber(const ::tensorflow::Scope& scope, ::tensorflow::Input - string_tensor, const StringToNumber::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs OutType(DataType x) { - return Attrs().OutType(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_PARSING_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/parsing_ops_internal.h b/linux/include/tensorflow/cc/ops/parsing_ops_internal.h deleted file mode 100755 index c400b81c5..000000000 --- a/linux/include/tensorflow/cc/ops/parsing_ops_internal.h +++ /dev/null @@ -1,28 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_PARSING_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_PARSING_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup parsing_ops_internal Parsing Ops Internal -/// @{ - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_PARSING_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/random_ops.h b/linux/include/tensorflow/cc/ops/random_ops.h deleted file mode 100755 index 3e0f62119..000000000 --- a/linux/include/tensorflow/cc/ops/random_ops.h +++ /dev/null @@ -1,663 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_RANDOM_OPS_H_ -#define TENSORFLOW_CC_OPS_RANDOM_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup random_ops Random Ops -/// @{ - -/// Draws samples from a multinomial distribution. -/// -/// Arguments: -/// * scope: A Scope object -/// * logits: 2-D Tensor with shape `[batch_size, num_classes]`. Each slice `[i, :]` -/// represents the unnormalized log probabilities for all classes. -/// * num_samples: 0-D. Number of independent samples to draw for each row slice. -/// -/// Optional attributes (see `Attrs`): -/// * seed: If either seed or seed2 is set to be non-zero, the internal random number -/// generator is seeded by the given seed. Otherwise, a random seed is used. -/// * seed2: A second seed to avoid seed collision. -/// -/// Returns: -/// * `Output`: 2-D Tensor with shape `[batch_size, num_samples]`. Each slice `[i, :]` -/// contains the drawn class labels with range `[0, num_classes)`. -class Multinomial { - public: - /// Optional attribute setters for Multinomial - struct Attrs { - /// If either seed or seed2 is set to be non-zero, the internal random number - /// generator is seeded by the given seed. Otherwise, a random seed is used. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// A second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - /// Defaults to DT_INT64 - TF_MUST_USE_RESULT Attrs OutputDtype(DataType x) { - Attrs ret = *this; - ret.output_dtype_ = x; - return ret; - } - - int64 seed_ = 0; - int64 seed2_ = 0; - DataType output_dtype_ = DT_INT64; - }; - Multinomial(const ::tensorflow::Scope& scope, ::tensorflow::Input logits, - ::tensorflow::Input num_samples); - Multinomial(const ::tensorflow::Scope& scope, ::tensorflow::Input logits, - ::tensorflow::Input num_samples, const Multinomial::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - static Attrs OutputDtype(DataType x) { - return Attrs().OutputDtype(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Outputs random values from a normal distribution. The parameters may each be a -/// -/// scalar which applies to the entire output, or a vector of length shape[0] which -/// stores the parameters for each batch. -/// -/// Arguments: -/// * scope: A Scope object -/// * shape: The shape of the output tensor. Batches are indexed by the 0th dimension. -/// * means: The mean parameter of each batch. -/// * stdevs: The standard deviation parameter of each batch. Must be greater than 0. -/// * minvals: The minimum cutoff. May be -infinity. -/// * maxvals: The maximum cutoff. May be +infinity, and must be more than the minval -/// for each batch. -/// -/// Optional attributes (see `Attrs`): -/// * seed: If either `seed` or `seed2` are set to be non-zero, the random number -/// generator is seeded by the given seed. Otherwise, it is seeded by a -/// random seed. -/// * seed2: A second seed to avoid seed collision. -/// -/// Returns: -/// * `Output`: A matrix of shape num_batches x samples_per_batch, filled with random -/// truncated normal values using the parameters for each row. -class ParameterizedTruncatedNormal { - public: - /// Optional attribute setters for ParameterizedTruncatedNormal - struct Attrs { - /// If either `seed` or `seed2` are set to be non-zero, the random number - /// generator is seeded by the given seed. Otherwise, it is seeded by a - /// random seed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// A second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - int64 seed_ = 0; - int64 seed2_ = 0; - }; - ParameterizedTruncatedNormal(const ::tensorflow::Scope& scope, - ::tensorflow::Input shape, ::tensorflow::Input - means, ::tensorflow::Input stdevs, - ::tensorflow::Input minvals, ::tensorflow::Input - maxvals); - ParameterizedTruncatedNormal(const ::tensorflow::Scope& scope, - ::tensorflow::Input shape, ::tensorflow::Input - means, ::tensorflow::Input stdevs, - ::tensorflow::Input minvals, ::tensorflow::Input - maxvals, const - ParameterizedTruncatedNormal::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Outputs random values from the Gamma distribution(s) described by alpha. -/// -/// This op uses the algorithm by Marsaglia et al. to acquire samples via -/// transformation-rejection from pairs of uniform and normal random variables. -/// See http://dl.acm.org/citation.cfm?id=358414 -/// -/// Arguments: -/// * scope: A Scope object -/// * shape: 1-D integer tensor. Shape of independent samples to draw from each -/// distribution described by the shape parameters given in alpha. -/// * alpha: A tensor in which each scalar is a "shape" parameter describing the -/// associated gamma distribution. -/// -/// Optional attributes (see `Attrs`): -/// * seed: If either `seed` or `seed2` are set to be non-zero, the random number -/// generator is seeded by the given seed. Otherwise, it is seeded by a -/// random seed. -/// * seed2: A second seed to avoid seed collision. -/// -/// Returns: -/// * `Output`: A tensor with shape `shape + shape(alpha)`. Each slice -/// `[:, ..., :, i0, i1, ...iN]` contains the samples drawn for -/// `alpha[i0, i1, ...iN]`. The dtype of the output matches the dtype of alpha. -class RandomGamma { - public: - /// Optional attribute setters for RandomGamma - struct Attrs { - /// If either `seed` or `seed2` are set to be non-zero, the random number - /// generator is seeded by the given seed. Otherwise, it is seeded by a - /// random seed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// A second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - int64 seed_ = 0; - int64 seed2_ = 0; - }; - RandomGamma(const ::tensorflow::Scope& scope, ::tensorflow::Input shape, - ::tensorflow::Input alpha); - RandomGamma(const ::tensorflow::Scope& scope, ::tensorflow::Input shape, - ::tensorflow::Input alpha, const RandomGamma::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Outputs random values from the Poisson distribution(s) described by rate. -/// -/// This op uses two algorithms, depending on rate. If rate >= 10, then -/// the algorithm by Hormann is used to acquire samples via -/// transformation-rejection. -/// See http://www.sciencedirect.com/science/article/pii/0167668793909974. -/// -/// Otherwise, Knuth's algorithm is used to acquire samples via multiplying uniform -/// random variables. -/// See Donald E. Knuth (1969). Seminumerical Algorithms. The Art of Computer -/// Programming, Volume 2. Addison Wesley -/// -/// Arguments: -/// * scope: A Scope object -/// * shape: 1-D integer tensor. Shape of independent samples to draw from each -/// distribution described by the shape parameters given in rate. -/// * rate: A tensor in which each scalar is a "rate" parameter describing the -/// associated poisson distribution. -/// -/// Optional attributes (see `Attrs`): -/// * seed: If either `seed` or `seed2` are set to be non-zero, the random number -/// generator is seeded by the given seed. Otherwise, it is seeded by a -/// random seed. -/// * seed2: A second seed to avoid seed collision. -/// -/// Returns: -/// * `Output`: A tensor with shape `shape + shape(rate)`. Each slice -/// `[:, ..., :, i0, i1, ...iN]` contains the samples drawn for -/// `rate[i0, i1, ...iN]`. -class RandomPoissonV2 { - public: - /// Optional attribute setters for RandomPoissonV2 - struct Attrs { - /// If either `seed` or `seed2` are set to be non-zero, the random number - /// generator is seeded by the given seed. Otherwise, it is seeded by a - /// random seed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// A second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - /// Defaults to DT_INT64 - TF_MUST_USE_RESULT Attrs Dtype(DataType x) { - Attrs ret = *this; - ret.dtype_ = x; - return ret; - } - - int64 seed_ = 0; - int64 seed2_ = 0; - DataType dtype_ = DT_INT64; - }; - RandomPoissonV2(const ::tensorflow::Scope& scope, ::tensorflow::Input shape, - ::tensorflow::Input rate); - RandomPoissonV2(const ::tensorflow::Scope& scope, ::tensorflow::Input shape, - ::tensorflow::Input rate, const RandomPoissonV2::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - static Attrs Dtype(DataType x) { - return Attrs().Dtype(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Randomly shuffles a tensor along its first dimension. -/// -/// The tensor is shuffled along dimension 0, such that each `value[j]` is mapped -/// to one and only one `output[i]`. For example, a mapping that might occur for a -/// 3x2 tensor is: -/// -/// ``` -/// [[1, 2], [[5, 6], -/// [3, 4], ==> [1, 2], -/// [5, 6]] [3, 4]] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * value: The tensor to be shuffled. -/// -/// Optional attributes (see `Attrs`): -/// * seed: If either `seed` or `seed2` are set to be non-zero, the random number -/// generator is seeded by the given seed. Otherwise, it is seeded by a -/// random seed. -/// * seed2: A second seed to avoid seed collision. -/// -/// Returns: -/// * `Output`: A tensor of same shape and type as `value`, shuffled along its first -/// dimension. -class RandomShuffle { - public: - /// Optional attribute setters for RandomShuffle - struct Attrs { - /// If either `seed` or `seed2` are set to be non-zero, the random number - /// generator is seeded by the given seed. Otherwise, it is seeded by a - /// random seed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// A second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - int64 seed_ = 0; - int64 seed2_ = 0; - }; - RandomShuffle(const ::tensorflow::Scope& scope, ::tensorflow::Input value); - RandomShuffle(const ::tensorflow::Scope& scope, ::tensorflow::Input value, - const RandomShuffle::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Outputs random values from a normal distribution. -/// -/// The generated values will have mean 0 and standard deviation 1. -/// -/// Arguments: -/// * scope: A Scope object -/// * shape: The shape of the output tensor. -/// * dtype: The type of the output. -/// -/// Optional attributes (see `Attrs`): -/// * seed: If either `seed` or `seed2` are set to be non-zero, the random number -/// generator is seeded by the given seed. Otherwise, it is seeded by a -/// random seed. -/// * seed2: A second seed to avoid seed collision. -/// -/// Returns: -/// * `Output`: A tensor of the specified shape filled with random normal values. -class RandomNormal { - public: - /// Optional attribute setters for RandomNormal - struct Attrs { - /// If either `seed` or `seed2` are set to be non-zero, the random number - /// generator is seeded by the given seed. Otherwise, it is seeded by a - /// random seed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// A second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - int64 seed_ = 0; - int64 seed2_ = 0; - }; - RandomNormal(const ::tensorflow::Scope& scope, ::tensorflow::Input shape, - DataType dtype); - RandomNormal(const ::tensorflow::Scope& scope, ::tensorflow::Input shape, - DataType dtype, const RandomNormal::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Outputs random values from a uniform distribution. -/// -/// The generated values follow a uniform distribution in the range `[0, 1)`. The -/// lower bound 0 is included in the range, while the upper bound 1 is excluded. -/// -/// Arguments: -/// * scope: A Scope object -/// * shape: The shape of the output tensor. -/// * dtype: The type of the output. -/// -/// Optional attributes (see `Attrs`): -/// * seed: If either `seed` or `seed2` are set to be non-zero, the random number -/// generator is seeded by the given seed. Otherwise, it is seeded by a -/// random seed. -/// * seed2: A second seed to avoid seed collision. -/// -/// Returns: -/// * `Output`: A tensor of the specified shape filled with uniform random values. -class RandomUniform { - public: - /// Optional attribute setters for RandomUniform - struct Attrs { - /// If either `seed` or `seed2` are set to be non-zero, the random number - /// generator is seeded by the given seed. Otherwise, it is seeded by a - /// random seed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// A second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - int64 seed_ = 0; - int64 seed2_ = 0; - }; - RandomUniform(const ::tensorflow::Scope& scope, ::tensorflow::Input shape, - DataType dtype); - RandomUniform(const ::tensorflow::Scope& scope, ::tensorflow::Input shape, - DataType dtype, const RandomUniform::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Outputs random integers from a uniform distribution. -/// -/// The generated values are uniform integers in the range `[minval, maxval)`. -/// The lower bound `minval` is included in the range, while the upper bound -/// `maxval` is excluded. -/// -/// The random integers are slightly biased unless `maxval - minval` is an exact -/// power of two. The bias is small for values of `maxval - minval` significantly -/// smaller than the range of the output (either `2^32` or `2^64`). -/// -/// Arguments: -/// * scope: A Scope object -/// * shape: The shape of the output tensor. -/// * minval: 0-D. Inclusive lower bound on the generated integers. -/// * maxval: 0-D. Exclusive upper bound on the generated integers. -/// -/// Optional attributes (see `Attrs`): -/// * seed: If either `seed` or `seed2` are set to be non-zero, the random number -/// generator is seeded by the given seed. Otherwise, it is seeded by a -/// random seed. -/// * seed2: A second seed to avoid seed collision. -/// -/// Returns: -/// * `Output`: A tensor of the specified shape filled with uniform random integers. -class RandomUniformInt { - public: - /// Optional attribute setters for RandomUniformInt - struct Attrs { - /// If either `seed` or `seed2` are set to be non-zero, the random number - /// generator is seeded by the given seed. Otherwise, it is seeded by a - /// random seed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// A second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - int64 seed_ = 0; - int64 seed2_ = 0; - }; - RandomUniformInt(const ::tensorflow::Scope& scope, ::tensorflow::Input shape, - ::tensorflow::Input minval, ::tensorflow::Input maxval); - RandomUniformInt(const ::tensorflow::Scope& scope, ::tensorflow::Input shape, - ::tensorflow::Input minval, ::tensorflow::Input maxval, const - RandomUniformInt::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Outputs random values from a truncated normal distribution. -/// -/// The generated values follow a normal distribution with mean 0 and standard -/// deviation 1, except that values whose magnitude is more than 2 standard -/// deviations from the mean are dropped and re-picked. -/// -/// Arguments: -/// * scope: A Scope object -/// * shape: The shape of the output tensor. -/// * dtype: The type of the output. -/// -/// Optional attributes (see `Attrs`): -/// * seed: If either `seed` or `seed2` are set to be non-zero, the random number -/// generator is seeded by the given seed. Otherwise, it is seeded by a -/// random seed. -/// * seed2: A second seed to avoid seed collision. -/// -/// Returns: -/// * `Output`: A tensor of the specified shape filled with random truncated normal -/// values. -class TruncatedNormal { - public: - /// Optional attribute setters for TruncatedNormal - struct Attrs { - /// If either `seed` or `seed2` are set to be non-zero, the random number - /// generator is seeded by the given seed. Otherwise, it is seeded by a - /// random seed. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed(int64 x) { - Attrs ret = *this; - ret.seed_ = x; - return ret; - } - - /// A second seed to avoid seed collision. - /// - /// Defaults to 0 - TF_MUST_USE_RESULT Attrs Seed2(int64 x) { - Attrs ret = *this; - ret.seed2_ = x; - return ret; - } - - int64 seed_ = 0; - int64 seed2_ = 0; - }; - TruncatedNormal(const ::tensorflow::Scope& scope, ::tensorflow::Input shape, - DataType dtype); - TruncatedNormal(const ::tensorflow::Scope& scope, ::tensorflow::Input shape, - DataType dtype, const TruncatedNormal::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Seed(int64 x) { - return Attrs().Seed(x); - } - static Attrs Seed2(int64 x) { - return Attrs().Seed2(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_RANDOM_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/random_ops_internal.h b/linux/include/tensorflow/cc/ops/random_ops_internal.h deleted file mode 100755 index 31a15e64d..000000000 --- a/linux/include/tensorflow/cc/ops/random_ops_internal.h +++ /dev/null @@ -1,47 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_RANDOM_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_RANDOM_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup random_ops_internal Random Ops Internal -/// @{ - -/// Computes the derivative of a Gamma random sample w.r.t. `alpha`. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The output tensor. -class RandomGammaGrad { - public: - RandomGammaGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input alpha, - ::tensorflow::Input sample); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_RANDOM_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/remote_fused_graph_ops.h b/linux/include/tensorflow/cc/ops/remote_fused_graph_ops.h deleted file mode 100755 index b38b9a765..000000000 --- a/linux/include/tensorflow/cc/ops/remote_fused_graph_ops.h +++ /dev/null @@ -1,46 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_REMOTE_FUSED_GRAPH_OPS_H_ -#define TENSORFLOW_CC_OPS_REMOTE_FUSED_GRAPH_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup remote_fused_graph_ops Remote Fused Graph Ops -/// @{ - -/// TODO: add doc. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `OutputList`: The outputs tensor. -class RemoteFusedGraphExecute { - public: - RemoteFusedGraphExecute(const ::tensorflow::Scope& scope, - ::tensorflow::InputList inputs, const DataTypeSlice& - Toutputs, StringPiece - serialized_remote_fused_graph_execute_info); - ::tensorflow::Output operator[](size_t index) const { return outputs[index]; } - - - Operation operation; - ::tensorflow::OutputList outputs; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_REMOTE_FUSED_GRAPH_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/sparse_ops.h b/linux/include/tensorflow/cc/ops/sparse_ops.h deleted file mode 100755 index 5e0c749d2..000000000 --- a/linux/include/tensorflow/cc/ops/sparse_ops.h +++ /dev/null @@ -1,1680 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_SPARSE_OPS_H_ -#define TENSORFLOW_CC_OPS_SPARSE_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup sparse_ops Sparse Ops -/// @{ - -/// Add an `N`-minibatch `SparseTensor` to a `SparseTensorsMap`, return `N` handles. -/// -/// A `SparseTensor` of rank `R` is represented by three tensors: `sparse_indices`, -/// `sparse_values`, and `sparse_shape`, where -/// -/// ```sparse_indices.shape[1] == sparse_shape.shape[0] == R``` -/// -/// An `N`-minibatch of `SparseTensor` objects is represented as a `SparseTensor` -/// having a first `sparse_indices` column taking values between `[0, N)`, where -/// the minibatch size `N == sparse_shape[0]`. -/// -/// The input `SparseTensor` must have rank `R` greater than 1, and the first -/// dimension is treated as the minibatch dimension. Elements of the `SparseTensor` -/// must be sorted in increasing order of this first dimension. The stored -/// `SparseTensor` objects pointed to by each row of the output `sparse_handles` -/// will have rank `R-1`. -/// -/// The `SparseTensor` values can then be read out as part of a minibatch by passing -/// the given keys as vector elements to `TakeManySparseFromTensorsMap`. To ensure -/// the correct `SparseTensorsMap` is accessed, ensure that the same -/// `container` and `shared_name` are passed to that Op. If no `shared_name` -/// is provided here, instead use the *name* of the Operation created by calling -/// `AddManySparseToTensorsMap` as the `shared_name` passed to -/// `TakeManySparseFromTensorsMap`. Ensure the Operations are colocated. -/// -/// Arguments: -/// * scope: A Scope object -/// * sparse_indices: 2-D. The `indices` of the minibatch `SparseTensor`. -/// `sparse_indices[:, 0]` must be ordered values in `[0, N)`. -/// * sparse_values: 1-D. The `values` of the minibatch `SparseTensor`. -/// * sparse_shape: 1-D. The `shape` of the minibatch `SparseTensor`. -/// The minibatch size `N == sparse_shape[0]`. -/// -/// Optional attributes (see `Attrs`): -/// * container: The container name for the `SparseTensorsMap` created by this op. -/// * shared_name: The shared name for the `SparseTensorsMap` created by this op. -/// If blank, the new Operation's unique name is used. -/// -/// Returns: -/// * `Output`: 1-D. The handles of the `SparseTensor` now stored in the -/// `SparseTensorsMap`. Shape: `[N]`. -class AddManySparseToTensorsMap { - public: - /// Optional attribute setters for AddManySparseToTensorsMap - struct Attrs { - /// The container name for the `SparseTensorsMap` created by this op. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// The shared name for the `SparseTensorsMap` created by this op. - /// If blank, the new Operation's unique name is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - AddManySparseToTensorsMap(const ::tensorflow::Scope& scope, ::tensorflow::Input - sparse_indices, ::tensorflow::Input sparse_values, - ::tensorflow::Input sparse_shape); - AddManySparseToTensorsMap(const ::tensorflow::Scope& scope, ::tensorflow::Input - sparse_indices, ::tensorflow::Input sparse_values, - ::tensorflow::Input sparse_shape, const - AddManySparseToTensorsMap::Attrs& attrs); - operator ::tensorflow::Output() const { return sparse_handles; } - operator ::tensorflow::Input() const { return sparse_handles; } - ::tensorflow::Node* node() const { return sparse_handles.node(); } - - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output sparse_handles; -}; - -/// Add a `SparseTensor` to a `SparseTensorsMap` return its handle. -/// -/// A `SparseTensor` is represented by three tensors: `sparse_indices`, -/// `sparse_values`, and `sparse_shape`. -/// -/// This operator takes the given `SparseTensor` and adds it to a container -/// object (a `SparseTensorsMap`). A unique key within this container is generated -/// in the form of an `int64`, and this is the value that is returned. -/// -/// The `SparseTensor` can then be read out as part of a minibatch by passing -/// the key as a vector element to `TakeManySparseFromTensorsMap`. To ensure -/// the correct `SparseTensorsMap` is accessed, ensure that the same -/// `container` and `shared_name` are passed to that Op. If no `shared_name` -/// is provided here, instead use the *name* of the Operation created by calling -/// `AddSparseToTensorsMap` as the `shared_name` passed to -/// `TakeManySparseFromTensorsMap`. Ensure the Operations are colocated. -/// -/// Arguments: -/// * scope: A Scope object -/// * sparse_indices: 2-D. The `indices` of the `SparseTensor`. -/// * sparse_values: 1-D. The `values` of the `SparseTensor`. -/// * sparse_shape: 1-D. The `shape` of the `SparseTensor`. -/// -/// Optional attributes (see `Attrs`): -/// * container: The container name for the `SparseTensorsMap` created by this op. -/// * shared_name: The shared name for the `SparseTensorsMap` created by this op. -/// If blank, the new Operation's unique name is used. -/// -/// Returns: -/// * `Output`: 0-D. The handle of the `SparseTensor` now stored in the -/// `SparseTensorsMap`. -class AddSparseToTensorsMap { - public: - /// Optional attribute setters for AddSparseToTensorsMap - struct Attrs { - /// The container name for the `SparseTensorsMap` created by this op. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// The shared name for the `SparseTensorsMap` created by this op. - /// If blank, the new Operation's unique name is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - AddSparseToTensorsMap(const ::tensorflow::Scope& scope, ::tensorflow::Input - sparse_indices, ::tensorflow::Input sparse_values, - ::tensorflow::Input sparse_shape); - AddSparseToTensorsMap(const ::tensorflow::Scope& scope, ::tensorflow::Input - sparse_indices, ::tensorflow::Input sparse_values, - ::tensorflow::Input sparse_shape, const - AddSparseToTensorsMap::Attrs& attrs); - operator ::tensorflow::Output() const { return sparse_handle; } - operator ::tensorflow::Input() const { return sparse_handle; } - ::tensorflow::Node* node() const { return sparse_handle.node(); } - - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output sparse_handle; -}; - -/// Deserialize and concatenate `SparseTensors` from a serialized minibatch. -/// -/// The input `serialized_sparse` must be a string matrix of shape `[N x 3]` where -/// `N` is the minibatch size and the rows correspond to packed outputs of -/// `SerializeSparse`. The ranks of the original `SparseTensor` objects -/// must all match. When the final `SparseTensor` is created, it has rank one -/// higher than the ranks of the incoming `SparseTensor` objects -/// (they have been concatenated along a new row dimension). -/// -/// The output `SparseTensor` object's shape values for all dimensions but the -/// first are the max across the input `SparseTensor` objects' shape values -/// for the corresponding dimensions. Its first shape value is `N`, the minibatch -/// size. -/// -/// The input `SparseTensor` objects' indices are assumed ordered in -/// standard lexicographic order. If this is not the case, after this -/// step run `SparseReorder` to restore index ordering. -/// -/// For example, if the serialized input is a `[2 x 3]` matrix representing two -/// original `SparseTensor` objects: -/// -/// index = [ 0] -/// [10] -/// [20] -/// values = [1, 2, 3] -/// shape = [50] -/// -/// and -/// -/// index = [ 2] -/// [10] -/// values = [4, 5] -/// shape = [30] -/// -/// then the final deserialized `SparseTensor` will be: -/// -/// index = [0 0] -/// [0 10] -/// [0 20] -/// [1 2] -/// [1 10] -/// values = [1, 2, 3, 4, 5] -/// shape = [2 50] -/// -/// Arguments: -/// * scope: A Scope object -/// * serialized_sparse: 2-D, The `N` serialized `SparseTensor` objects. -/// Must have 3 columns. -/// * dtype: The `dtype` of the serialized `SparseTensor` objects. -/// -/// Returns: -/// * `Output` sparse_indices -/// * `Output` sparse_values -/// * `Output` sparse_shape -class DeserializeManySparse { - public: - DeserializeManySparse(const ::tensorflow::Scope& scope, ::tensorflow::Input - serialized_sparse, DataType dtype); - - Operation operation; - ::tensorflow::Output sparse_indices; - ::tensorflow::Output sparse_values; - ::tensorflow::Output sparse_shape; -}; - -/// Deserialize `SparseTensor` objects. -/// -/// The input `serialized_sparse` must have the shape `[?, ?, ..., ?, 3]` where -/// the last dimension stores serialized `SparseTensor` objects and the other N -/// dimensions (N >= 0) correspond to a batch. The ranks of the original -/// `SparseTensor` objects must all match. When the final `SparseTensor` is -/// created, its rank is the rank of the incoming `SparseTensor` objects plus N; -/// the sparse tensors have been concatenated along new dimensions, one for each -/// batch. -/// -/// The output `SparseTensor` object's shape values for the original dimensions -/// are the max across the input `SparseTensor` objects' shape values for the -/// corresponding dimensions. The new dimensions match the size of the batch. -/// -/// The input `SparseTensor` objects' indices are assumed ordered in -/// standard lexicographic order. If this is not the case, after this -/// step run `SparseReorder` to restore index ordering. -/// -/// For example, if the serialized input is a `[2 x 3]` matrix representing two -/// original `SparseTensor` objects: -/// -/// index = [ 0] -/// [10] -/// [20] -/// values = [1, 2, 3] -/// shape = [50] -/// -/// and -/// -/// index = [ 2] -/// [10] -/// values = [4, 5] -/// shape = [30] -/// -/// then the final deserialized `SparseTensor` will be: -/// -/// index = [0 0] -/// [0 10] -/// [0 20] -/// [1 2] -/// [1 10] -/// values = [1, 2, 3, 4, 5] -/// shape = [2 50] -/// -/// Arguments: -/// * scope: A Scope object -/// * serialized_sparse: The serialized `SparseTensor` objects. The last dimension -/// must have 3 columns. -/// * dtype: The `dtype` of the serialized `SparseTensor` objects. -/// -/// Returns: -/// * `Output` sparse_indices -/// * `Output` sparse_values -/// * `Output` sparse_shape -class DeserializeSparse { - public: - DeserializeSparse(const ::tensorflow::Scope& scope, ::tensorflow::Input - serialized_sparse, DataType dtype); - - Operation operation; - ::tensorflow::Output sparse_indices; - ::tensorflow::Output sparse_values; - ::tensorflow::Output sparse_shape; -}; - -/// Serialize an `N`-minibatch `SparseTensor` into an `[N, 3]` `Tensor` object. -/// -/// The `SparseTensor` must have rank `R` greater than 1, and the first dimension -/// is treated as the minibatch dimension. Elements of the `SparseTensor` -/// must be sorted in increasing order of this first dimension. The serialized -/// `SparseTensor` objects going into each row of `serialized_sparse` will have -/// rank `R-1`. -/// -/// The minibatch size `N` is extracted from `sparse_shape[0]`. -/// -/// Arguments: -/// * scope: A Scope object -/// * sparse_indices: 2-D. The `indices` of the minibatch `SparseTensor`. -/// * sparse_values: 1-D. The `values` of the minibatch `SparseTensor`. -/// * sparse_shape: 1-D. The `shape` of the minibatch `SparseTensor`. -/// -/// Optional attributes (see `Attrs`): -/// * out_type: The `dtype` to use for serialization; the supported types are `string` -/// (default) and `variant`. -/// -/// Returns: -/// * `Output`: The serialized_sparse tensor. -class SerializeManySparse { - public: - /// Optional attribute setters for SerializeManySparse - struct Attrs { - /// The `dtype` to use for serialization; the supported types are `string` - /// (default) and `variant`. - /// - /// Defaults to DT_STRING - TF_MUST_USE_RESULT Attrs OutType(DataType x) { - Attrs ret = *this; - ret.out_type_ = x; - return ret; - } - - DataType out_type_ = DT_STRING; - }; - SerializeManySparse(const ::tensorflow::Scope& scope, ::tensorflow::Input - sparse_indices, ::tensorflow::Input sparse_values, - ::tensorflow::Input sparse_shape); - SerializeManySparse(const ::tensorflow::Scope& scope, ::tensorflow::Input - sparse_indices, ::tensorflow::Input sparse_values, - ::tensorflow::Input sparse_shape, const - SerializeManySparse::Attrs& attrs); - operator ::tensorflow::Output() const { return serialized_sparse; } - operator ::tensorflow::Input() const { return serialized_sparse; } - ::tensorflow::Node* node() const { return serialized_sparse.node(); } - - static Attrs OutType(DataType x) { - return Attrs().OutType(x); - } - - Operation operation; - ::tensorflow::Output serialized_sparse; -}; - -/// Serialize a `SparseTensor` into a `[3]` `Tensor` object. -/// -/// Arguments: -/// * scope: A Scope object -/// * sparse_indices: 2-D. The `indices` of the `SparseTensor`. -/// * sparse_values: 1-D. The `values` of the `SparseTensor`. -/// * sparse_shape: 1-D. The `shape` of the `SparseTensor`. -/// -/// Optional attributes (see `Attrs`): -/// * out_type: The `dtype` to use for serialization; the supported types are `string` -/// (default) and `variant`. -/// -/// Returns: -/// * `Output`: The serialized_sparse tensor. -class SerializeSparse { - public: - /// Optional attribute setters for SerializeSparse - struct Attrs { - /// The `dtype` to use for serialization; the supported types are `string` - /// (default) and `variant`. - /// - /// Defaults to DT_STRING - TF_MUST_USE_RESULT Attrs OutType(DataType x) { - Attrs ret = *this; - ret.out_type_ = x; - return ret; - } - - DataType out_type_ = DT_STRING; - }; - SerializeSparse(const ::tensorflow::Scope& scope, ::tensorflow::Input - sparse_indices, ::tensorflow::Input sparse_values, - ::tensorflow::Input sparse_shape); - SerializeSparse(const ::tensorflow::Scope& scope, ::tensorflow::Input - sparse_indices, ::tensorflow::Input sparse_values, - ::tensorflow::Input sparse_shape, const SerializeSparse::Attrs& - attrs); - operator ::tensorflow::Output() const { return serialized_sparse; } - operator ::tensorflow::Input() const { return serialized_sparse; } - ::tensorflow::Node* node() const { return serialized_sparse.node(); } - - static Attrs OutType(DataType x) { - return Attrs().OutType(x); - } - - Operation operation; - ::tensorflow::Output serialized_sparse; -}; - -/// Adds two `SparseTensor` objects to produce another `SparseTensor`. -/// -/// The input `SparseTensor` objects' indices are assumed ordered in standard -/// lexicographic order. If this is not the case, before this step run -/// `SparseReorder` to restore index ordering. -/// -/// By default, if two values sum to zero at some index, the output `SparseTensor` -/// would still include that particular location in its index, storing a zero in the -/// corresponding value slot. To override this, callers can specify `thresh`, -/// indicating that if the sum has a magnitude strictly smaller than `thresh`, its -/// corresponding value and index would then not be included. In particular, -/// `thresh == 0` (default) means everything is kept and actual thresholding happens -/// only for a positive value. -/// -/// In the following shapes, `nnz` is the count after taking `thresh` into account. -/// -/// Arguments: -/// * scope: A Scope object -/// * a_indices: 2-D. The `indices` of the first `SparseTensor`, size `[nnz, ndims]` Matrix. -/// * a_values: 1-D. The `values` of the first `SparseTensor`, size `[nnz]` Vector. -/// * a_shape: 1-D. The `shape` of the first `SparseTensor`, size `[ndims]` Vector. -/// * b_indices: 2-D. The `indices` of the second `SparseTensor`, size `[nnz, ndims]` Matrix. -/// * b_values: 1-D. The `values` of the second `SparseTensor`, size `[nnz]` Vector. -/// * b_shape: 1-D. The `shape` of the second `SparseTensor`, size `[ndims]` Vector. -/// * thresh: 0-D. The magnitude threshold that determines if an output value/index -/// pair takes space. -/// -/// Returns: -/// * `Output` sum_indices -/// * `Output` sum_values -/// * `Output` sum_shape -class SparseAdd { - public: - SparseAdd(const ::tensorflow::Scope& scope, ::tensorflow::Input a_indices, - ::tensorflow::Input a_values, ::tensorflow::Input a_shape, - ::tensorflow::Input b_indices, ::tensorflow::Input b_values, - ::tensorflow::Input b_shape, ::tensorflow::Input thresh); - - Operation operation; - ::tensorflow::Output sum_indices; - ::tensorflow::Output sum_values; - ::tensorflow::Output sum_shape; -}; - -/// The gradient operator for the SparseAdd op. -/// -/// The SparseAdd op calculates A + B, where A, B, and the sum are all represented -/// as `SparseTensor` objects. This op takes in the upstream gradient w.r.t. -/// non-empty values of the sum, and outputs the gradients w.r.t. the non-empty -/// values of A and B. -/// -/// Arguments: -/// * scope: A Scope object -/// * backprop_val_grad: 1-D with shape `[nnz(sum)]`. The gradient with respect to -/// the non-empty values of the sum. -/// * a_indices: 2-D. The `indices` of the `SparseTensor` A, size `[nnz(A), ndims]`. -/// * b_indices: 2-D. The `indices` of the `SparseTensor` B, size `[nnz(B), ndims]`. -/// * sum_indices: 2-D. The `indices` of the sum `SparseTensor`, size -/// `[nnz(sum), ndims]`. -/// -/// Returns: -/// * `Output` a_val_grad: 1-D with shape `[nnz(A)]`. The gradient with respect to the -/// non-empty values of A. -/// * `Output` b_val_grad: 1-D with shape `[nnz(B)]`. The gradient with respect to the -/// non-empty values of B. -class SparseAddGrad { - public: - SparseAddGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - backprop_val_grad, ::tensorflow::Input a_indices, - ::tensorflow::Input b_indices, ::tensorflow::Input sum_indices); - - Operation operation; - ::tensorflow::Output a_val_grad; - ::tensorflow::Output b_val_grad; -}; - -/// Concatenates a list of `SparseTensor` along the specified dimension. -/// -/// Concatenation is with respect to the dense versions of these sparse tensors. -/// It is assumed that each input is a `SparseTensor` whose elements are ordered -/// along increasing dimension number. -/// -/// All inputs' shapes must match, except for the concat dimension. The -/// `indices`, `values`, and `shapes` lists must have the same length. -/// -/// The output shape is identical to the inputs', except along the concat -/// dimension, where it is the sum of the inputs' sizes along that dimension. -/// -/// The output elements will be resorted to preserve the sort order along -/// increasing dimension number. -/// -/// This op runs in `O(M log M)` time, where `M` is the total number of non-empty -/// values across all inputs. This is due to the need for an internal sort in -/// order to concatenate efficiently across an arbitrary dimension. -/// -/// For example, if `concat_dim = 1` and the inputs are -/// -/// sp_inputs[0]: shape = [2, 3] -/// [0, 2]: "a" -/// [1, 0]: "b" -/// [1, 1]: "c" -/// -/// sp_inputs[1]: shape = [2, 4] -/// [0, 1]: "d" -/// [0, 2]: "e" -/// -/// then the output will be -/// -/// shape = [2, 7] -/// [0, 2]: "a" -/// [0, 4]: "d" -/// [0, 5]: "e" -/// [1, 0]: "b" -/// [1, 1]: "c" -/// -/// Graphically this is equivalent to doing -/// -/// [ a] concat [ d e ] = [ a d e ] -/// [b c ] [ ] [b c ] -/// -/// Arguments: -/// * scope: A Scope object -/// * indices: 2-D. Indices of each input `SparseTensor`. -/// * values: 1-D. Non-empty values of each `SparseTensor`. -/// * shapes: 1-D. Shapes of each `SparseTensor`. -/// * concat_dim: Dimension to concatenate along. Must be in range [-rank, rank), -/// where rank is the number of dimensions in each input `SparseTensor`. -/// -/// Returns: -/// * `Output` output_indices: 2-D. Indices of the concatenated `SparseTensor`. -/// * `Output` output_values: 1-D. Non-empty values of the concatenated `SparseTensor`. -/// * `Output` output_shape: 1-D. Shape of the concatenated `SparseTensor`. -class SparseConcat { - public: - SparseConcat(const ::tensorflow::Scope& scope, ::tensorflow::InputList indices, - ::tensorflow::InputList values, ::tensorflow::InputList shapes, - int64 concat_dim); - - Operation operation; - ::tensorflow::Output output_indices; - ::tensorflow::Output output_values; - ::tensorflow::Output output_shape; -}; - -/// Generates sparse cross from a list of sparse and dense tensors. -/// -/// The op takes two lists, one of 2D `SparseTensor` and one of 2D `Tensor`, each -/// representing features of one feature column. It outputs a 2D `SparseTensor` with -/// the batchwise crosses of these features. -/// -/// For example, if the inputs are -/// -/// inputs[0]: SparseTensor with shape = [2, 2] -/// [0, 0]: "a" -/// [1, 0]: "b" -/// [1, 1]: "c" -/// -/// inputs[1]: SparseTensor with shape = [2, 1] -/// [0, 0]: "d" -/// [1, 0]: "e" -/// -/// inputs[2]: Tensor [["f"], ["g"]] -/// -/// then the output will be -/// -/// shape = [2, 2] -/// [0, 0]: "a_X_d_X_f" -/// [1, 0]: "b_X_e_X_g" -/// [1, 1]: "c_X_e_X_g" -/// -/// if hashed_output=true then the output will be -/// -/// shape = [2, 2] -/// [0, 0]: FingerprintCat64( -/// Fingerprint64("f"), FingerprintCat64( -/// Fingerprint64("d"), Fingerprint64("a"))) -/// [1, 0]: FingerprintCat64( -/// Fingerprint64("g"), FingerprintCat64( -/// Fingerprint64("e"), Fingerprint64("b"))) -/// [1, 1]: FingerprintCat64( -/// Fingerprint64("g"), FingerprintCat64( -/// Fingerprint64("e"), Fingerprint64("c"))) -/// -/// Arguments: -/// * scope: A Scope object -/// * indices: 2-D. Indices of each input `SparseTensor`. -/// * values: 1-D. values of each `SparseTensor`. -/// * shapes: 1-D. Shapes of each `SparseTensor`. -/// * dense_inputs: 2-D. Columns represented by dense `Tensor`. -/// * hashed_output: If true, returns the hash of the cross instead of the string. -/// This will allow us avoiding string manipulations. -/// * num_buckets: It is used if hashed_output is true. -/// output = hashed_value%num_buckets if num_buckets > 0 else hashed_value. -/// * hash_key: Specify the hash_key that will be used by the `FingerprintCat64` -/// function to combine the crosses fingerprints. -/// -/// Returns: -/// * `Output` output_indices: 2-D. Indices of the concatenated `SparseTensor`. -/// * `Output` output_values: 1-D. Non-empty values of the concatenated or hashed -/// `SparseTensor`. -/// * `Output` output_shape: 1-D. Shape of the concatenated `SparseTensor`. -class SparseCross { - public: - SparseCross(const ::tensorflow::Scope& scope, ::tensorflow::InputList indices, - ::tensorflow::InputList values, ::tensorflow::InputList shapes, - ::tensorflow::InputList dense_inputs, bool hashed_output, int64 - num_buckets, int64 hash_key, DataType out_type, DataType - internal_type); - - Operation operation; - ::tensorflow::Output output_indices; - ::tensorflow::Output output_values; - ::tensorflow::Output output_shape; -}; - -/// Adds up a SparseTensor and a dense Tensor, using these special rules: -/// -/// (1) Broadcasts the dense side to have the same shape as the sparse side, if -/// eligible; -/// (2) Then, only the dense values pointed to by the indices of the SparseTensor -/// participate in the cwise addition. -/// -/// By these rules, the result is a logical SparseTensor with exactly the same -/// indices and shape, but possibly with different non-zero values. The output of -/// this Op is the resultant non-zero values. -/// -/// Arguments: -/// * scope: A Scope object -/// * sp_indices: 2-D. `N x R` matrix with the indices of non-empty values in a -/// SparseTensor, possibly not in canonical ordering. -/// * sp_values: 1-D. `N` non-empty values corresponding to `sp_indices`. -/// * sp_shape: 1-D. Shape of the input SparseTensor. -/// * dense: `R`-D. The dense Tensor operand. -/// -/// Returns: -/// * `Output`: 1-D. The `N` values that are operated on. -class SparseDenseCwiseAdd { - public: - SparseDenseCwiseAdd(const ::tensorflow::Scope& scope, ::tensorflow::Input - sp_indices, ::tensorflow::Input sp_values, - ::tensorflow::Input sp_shape, ::tensorflow::Input dense); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Component-wise divides a SparseTensor by a dense Tensor. -/// -/// *Limitation*: this Op only broadcasts the dense side to the sparse side, but not -/// the other direction. -/// -/// Arguments: -/// * scope: A Scope object -/// * sp_indices: 2-D. `N x R` matrix with the indices of non-empty values in a -/// SparseTensor, possibly not in canonical ordering. -/// * sp_values: 1-D. `N` non-empty values corresponding to `sp_indices`. -/// * sp_shape: 1-D. Shape of the input SparseTensor. -/// * dense: `R`-D. The dense Tensor operand. -/// -/// Returns: -/// * `Output`: 1-D. The `N` values that are operated on. -class SparseDenseCwiseDiv { - public: - SparseDenseCwiseDiv(const ::tensorflow::Scope& scope, ::tensorflow::Input - sp_indices, ::tensorflow::Input sp_values, - ::tensorflow::Input sp_shape, ::tensorflow::Input dense); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Component-wise multiplies a SparseTensor by a dense Tensor. -/// -/// The output locations corresponding to the implicitly zero elements in the sparse -/// tensor will be zero (i.e., will not take up storage space), regardless of the -/// contents of the dense tensor (even if it's +/-INF and that INF*0 == NaN). -/// -/// *Limitation*: this Op only broadcasts the dense side to the sparse side, but not -/// the other direction. -/// -/// Arguments: -/// * scope: A Scope object -/// * sp_indices: 2-D. `N x R` matrix with the indices of non-empty values in a -/// SparseTensor, possibly not in canonical ordering. -/// * sp_values: 1-D. `N` non-empty values corresponding to `sp_indices`. -/// * sp_shape: 1-D. Shape of the input SparseTensor. -/// * dense: `R`-D. The dense Tensor operand. -/// -/// Returns: -/// * `Output`: 1-D. The `N` values that are operated on. -class SparseDenseCwiseMul { - public: - SparseDenseCwiseMul(const ::tensorflow::Scope& scope, ::tensorflow::Input - sp_indices, ::tensorflow::Input sp_values, - ::tensorflow::Input sp_shape, ::tensorflow::Input dense); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Fills empty rows in the input 2-D `SparseTensor` with a default value. -/// -/// The input `SparseTensor` is represented via the tuple of inputs -/// (`indices`, `values`, `dense_shape`). The output `SparseTensor` has the -/// same `dense_shape` but with indices `output_indices` and values -/// `output_values`. -/// -/// This op inserts a single entry for every row that doesn't have any values. -/// The index is created as `[row, 0, ..., 0]` and the inserted value -/// is `default_value`. -/// -/// For example, suppose `sp_input` has shape `[5, 6]` and non-empty values: -/// -/// [0, 1]: a -/// [0, 3]: b -/// [2, 0]: c -/// [3, 1]: d -/// -/// Rows 1 and 4 are empty, so the output will be of shape `[5, 6]` with values: -/// -/// [0, 1]: a -/// [0, 3]: b -/// [1, 0]: default_value -/// [2, 0]: c -/// [3, 1]: d -/// [4, 0]: default_value -/// -/// The output `SparseTensor` will be in row-major order and will have the -/// same shape as the input. -/// -/// This op also returns an indicator vector shaped `[dense_shape[0]]` such that -/// -/// empty_row_indicator[i] = True iff row i was an empty row. -/// -/// And a reverse index map vector shaped `[indices.shape[0]]` that is used during -/// backpropagation, -/// -/// reverse_index_map[j] = out_j s.t. indices[j, :] == output_indices[out_j, :] -/// -/// Arguments: -/// * scope: A Scope object -/// * indices: 2-D. the indices of the sparse tensor. -/// * values: 1-D. the values of the sparse tensor. -/// * dense_shape: 1-D. the shape of the sparse tensor. -/// * default_value: 0-D. default value to insert into location `[row, 0, ..., 0]` -/// for rows missing from the input sparse tensor. -/// output indices: 2-D. the indices of the filled sparse tensor. -/// -/// Returns: -/// * `Output` output_indices -/// * `Output` output_values: 1-D. the values of the filled sparse tensor. -/// * `Output` empty_row_indicator: 1-D. whether the dense row was missing in the -/// input sparse tensor. -/// * `Output` reverse_index_map: 1-D. a map from the input indices to the output indices. -class SparseFillEmptyRows { - public: - SparseFillEmptyRows(const ::tensorflow::Scope& scope, ::tensorflow::Input - indices, ::tensorflow::Input values, ::tensorflow::Input - dense_shape, ::tensorflow::Input default_value); - - Operation operation; - ::tensorflow::Output output_indices; - ::tensorflow::Output output_values; - ::tensorflow::Output empty_row_indicator; - ::tensorflow::Output reverse_index_map; -}; - -/// The gradient of SparseFillEmptyRows. -/// -/// Takes vectors reverse_index_map, shaped `[N]`, and grad_values, -/// shaped `[N_full]`, where `N_full >= N` and copies data into either -/// `d_values` or `d_default_value`. Here `d_values` is shaped `[N]` and -/// `d_default_value` is a scalar. -/// -/// d_values[j] = grad_values[reverse_index_map[j]] -/// d_default_value = sum_{k : 0 .. N_full - 1} ( -/// grad_values[k] * 1{k not in reverse_index_map}) -/// -/// Arguments: -/// * scope: A Scope object -/// * reverse_index_map: 1-D. The reverse index map from SparseFillEmptyRows. -/// * grad_values: 1-D. The gradients from backprop. -/// -/// Returns: -/// * `Output` d_values: 1-D. The backprop into values. -/// * `Output` d_default_value: 0-D. The backprop into default_value. -class SparseFillEmptyRowsGrad { - public: - SparseFillEmptyRowsGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - reverse_index_map, ::tensorflow::Input grad_values); - - Operation operation; - ::tensorflow::Output d_values; - ::tensorflow::Output d_default_value; -}; - -/// Computes the max of elements across dimensions of a SparseTensor. -/// -/// This Op takes a SparseTensor and is the sparse counterpart to -/// `tf.reduce_max()`. In particular, this Op also returns a dense `Tensor` -/// instead of a sparse one. -/// -/// Reduces `sp_input` along the dimensions given in `reduction_axes`. Unless -/// `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in -/// `reduction_axes`. If `keep_dims` is true, the reduced dimensions are retained -/// with length 1. -/// -/// If `reduction_axes` has no entries, all dimensions are reduced, and a tensor -/// with a single element is returned. Additionally, the axes can be negative, -/// which are interpreted according to the indexing rules in Python. -/// -/// Arguments: -/// * scope: A Scope object -/// * input_indices: 2-D. `N x R` matrix with the indices of non-empty values in a -/// SparseTensor, possibly not in canonical ordering. -/// * input_values: 1-D. `N` non-empty values corresponding to `input_indices`. -/// * input_shape: 1-D. Shape of the input SparseTensor. -/// * reduction_axes: 1-D. Length-`K` vector containing the reduction axes. -/// -/// Optional attributes (see `Attrs`): -/// * keep_dims: If true, retain reduced dimensions with length 1. -/// -/// Returns: -/// * `Output`: `R-K`-D. The reduced Tensor. -class SparseReduceMax { - public: - /// Optional attribute setters for SparseReduceMax - struct Attrs { - /// If true, retain reduced dimensions with length 1. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs KeepDims(bool x) { - Attrs ret = *this; - ret.keep_dims_ = x; - return ret; - } - - bool keep_dims_ = false; - }; - SparseReduceMax(const ::tensorflow::Scope& scope, ::tensorflow::Input - input_indices, ::tensorflow::Input input_values, - ::tensorflow::Input input_shape, ::tensorflow::Input - reduction_axes); - SparseReduceMax(const ::tensorflow::Scope& scope, ::tensorflow::Input - input_indices, ::tensorflow::Input input_values, - ::tensorflow::Input input_shape, ::tensorflow::Input - reduction_axes, const SparseReduceMax::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs KeepDims(bool x) { - return Attrs().KeepDims(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the max of elements across dimensions of a SparseTensor. -/// -/// This Op takes a SparseTensor and is the sparse counterpart to -/// `tf.reduce_max()`. In contrast to SparseReduceMax, this Op returns a -/// SparseTensor. -/// -/// Reduces `sp_input` along the dimensions given in `reduction_axes`. Unless -/// `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in -/// `reduction_axes`. If `keep_dims` is true, the reduced dimensions are retained -/// with length 1. -/// -/// If `reduction_axes` has no entries, all dimensions are reduced, and a tensor -/// with a single element is returned. Additionally, the axes can be negative, -/// which are interpreted according to the indexing rules in Python. -/// -/// Arguments: -/// * scope: A Scope object -/// * input_indices: 2-D. `N x R` matrix with the indices of non-empty values in a -/// SparseTensor, possibly not in canonical ordering. -/// * input_values: 1-D. `N` non-empty values corresponding to `input_indices`. -/// * input_shape: 1-D. Shape of the input SparseTensor. -/// * reduction_axes: 1-D. Length-`K` vector containing the reduction axes. -/// -/// Optional attributes (see `Attrs`): -/// * keep_dims: If true, retain reduced dimensions with length 1. -/// -/// Returns: -/// * `Output` output_indices -/// * `Output` output_values -/// * `Output` output_shape -class SparseReduceMaxSparse { - public: - /// Optional attribute setters for SparseReduceMaxSparse - struct Attrs { - /// If true, retain reduced dimensions with length 1. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs KeepDims(bool x) { - Attrs ret = *this; - ret.keep_dims_ = x; - return ret; - } - - bool keep_dims_ = false; - }; - SparseReduceMaxSparse(const ::tensorflow::Scope& scope, ::tensorflow::Input - input_indices, ::tensorflow::Input input_values, - ::tensorflow::Input input_shape, ::tensorflow::Input - reduction_axes); - SparseReduceMaxSparse(const ::tensorflow::Scope& scope, ::tensorflow::Input - input_indices, ::tensorflow::Input input_values, - ::tensorflow::Input input_shape, ::tensorflow::Input - reduction_axes, const SparseReduceMaxSparse::Attrs& - attrs); - - static Attrs KeepDims(bool x) { - return Attrs().KeepDims(x); - } - - Operation operation; - ::tensorflow::Output output_indices; - ::tensorflow::Output output_values; - ::tensorflow::Output output_shape; -}; - -/// Computes the sum of elements across dimensions of a SparseTensor. -/// -/// This Op takes a SparseTensor and is the sparse counterpart to -/// `tf.reduce_sum()`. In particular, this Op also returns a dense `Tensor` -/// instead of a sparse one. -/// -/// Reduces `sp_input` along the dimensions given in `reduction_axes`. Unless -/// `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in -/// `reduction_axes`. If `keep_dims` is true, the reduced dimensions are retained -/// with length 1. -/// -/// If `reduction_axes` has no entries, all dimensions are reduced, and a tensor -/// with a single element is returned. Additionally, the axes can be negative, -/// which are interpreted according to the indexing rules in Python. -/// -/// Arguments: -/// * scope: A Scope object -/// * input_indices: 2-D. `N x R` matrix with the indices of non-empty values in a -/// SparseTensor, possibly not in canonical ordering. -/// * input_values: 1-D. `N` non-empty values corresponding to `input_indices`. -/// * input_shape: 1-D. Shape of the input SparseTensor. -/// * reduction_axes: 1-D. Length-`K` vector containing the reduction axes. -/// -/// Optional attributes (see `Attrs`): -/// * keep_dims: If true, retain reduced dimensions with length 1. -/// -/// Returns: -/// * `Output`: `R-K`-D. The reduced Tensor. -class SparseReduceSum { - public: - /// Optional attribute setters for SparseReduceSum - struct Attrs { - /// If true, retain reduced dimensions with length 1. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs KeepDims(bool x) { - Attrs ret = *this; - ret.keep_dims_ = x; - return ret; - } - - bool keep_dims_ = false; - }; - SparseReduceSum(const ::tensorflow::Scope& scope, ::tensorflow::Input - input_indices, ::tensorflow::Input input_values, - ::tensorflow::Input input_shape, ::tensorflow::Input - reduction_axes); - SparseReduceSum(const ::tensorflow::Scope& scope, ::tensorflow::Input - input_indices, ::tensorflow::Input input_values, - ::tensorflow::Input input_shape, ::tensorflow::Input - reduction_axes, const SparseReduceSum::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs KeepDims(bool x) { - return Attrs().KeepDims(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Computes the sum of elements across dimensions of a SparseTensor. -/// -/// This Op takes a SparseTensor and is the sparse counterpart to -/// `tf.reduce_sum()`. In contrast to SparseReduceSum, this Op returns a -/// SparseTensor. -/// -/// Reduces `sp_input` along the dimensions given in `reduction_axes`. Unless -/// `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in -/// `reduction_axes`. If `keep_dims` is true, the reduced dimensions are retained -/// with length 1. -/// -/// If `reduction_axes` has no entries, all dimensions are reduced, and a tensor -/// with a single element is returned. Additionally, the axes can be negative, -/// which are interpreted according to the indexing rules in Python. -/// -/// Arguments: -/// * scope: A Scope object -/// * input_indices: 2-D. `N x R` matrix with the indices of non-empty values in a -/// SparseTensor, possibly not in canonical ordering. -/// * input_values: 1-D. `N` non-empty values corresponding to `input_indices`. -/// * input_shape: 1-D. Shape of the input SparseTensor. -/// * reduction_axes: 1-D. Length-`K` vector containing the reduction axes. -/// -/// Optional attributes (see `Attrs`): -/// * keep_dims: If true, retain reduced dimensions with length 1. -/// -/// Returns: -/// * `Output` output_indices -/// * `Output` output_values -/// * `Output` output_shape -class SparseReduceSumSparse { - public: - /// Optional attribute setters for SparseReduceSumSparse - struct Attrs { - /// If true, retain reduced dimensions with length 1. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs KeepDims(bool x) { - Attrs ret = *this; - ret.keep_dims_ = x; - return ret; - } - - bool keep_dims_ = false; - }; - SparseReduceSumSparse(const ::tensorflow::Scope& scope, ::tensorflow::Input - input_indices, ::tensorflow::Input input_values, - ::tensorflow::Input input_shape, ::tensorflow::Input - reduction_axes); - SparseReduceSumSparse(const ::tensorflow::Scope& scope, ::tensorflow::Input - input_indices, ::tensorflow::Input input_values, - ::tensorflow::Input input_shape, ::tensorflow::Input - reduction_axes, const SparseReduceSumSparse::Attrs& - attrs); - - static Attrs KeepDims(bool x) { - return Attrs().KeepDims(x); - } - - Operation operation; - ::tensorflow::Output output_indices; - ::tensorflow::Output output_values; - ::tensorflow::Output output_shape; -}; - -/// Reorders a SparseTensor into the canonical, row-major ordering. -/// -/// Note that by convention, all sparse ops preserve the canonical ordering along -/// increasing dimension number. The only time ordering can be violated is during -/// manual manipulation of the indices and values vectors to add entries. -/// -/// Reordering does not affect the shape of the SparseTensor. -/// -/// If the tensor has rank `R` and `N` non-empty values, `input_indices` has -/// shape `[N, R]`, input_values has length `N`, and input_shape has length `R`. -/// -/// Arguments: -/// * scope: A Scope object -/// * input_indices: 2-D. `N x R` matrix with the indices of non-empty values in a -/// SparseTensor, possibly not in canonical ordering. -/// * input_values: 1-D. `N` non-empty values corresponding to `input_indices`. -/// * input_shape: 1-D. Shape of the input SparseTensor. -/// -/// Returns: -/// * `Output` output_indices: 2-D. `N x R` matrix with the same indices as input_indices, but -/// in canonical row-major ordering. -/// * `Output` output_values: 1-D. `N` non-empty values corresponding to `output_indices`. -class SparseReorder { - public: - SparseReorder(const ::tensorflow::Scope& scope, ::tensorflow::Input - input_indices, ::tensorflow::Input input_values, - ::tensorflow::Input input_shape); - - Operation operation; - ::tensorflow::Output output_indices; - ::tensorflow::Output output_values; -}; - -/// Reshapes a SparseTensor to represent values in a new dense shape. -/// -/// This operation has the same semantics as reshape on the represented dense -/// tensor. The `input_indices` are recomputed based on the requested `new_shape`. -/// -/// If one component of `new_shape` is the special value -1, the size of that -/// dimension is computed so that the total dense size remains constant. At -/// most one component of `new_shape` can be -1. The number of dense elements -/// implied by `new_shape` must be the same as the number of dense elements -/// originally implied by `input_shape`. -/// -/// Reshaping does not affect the order of values in the SparseTensor. -/// -/// If the input tensor has rank `R_in` and `N` non-empty values, and `new_shape` -/// has length `R_out`, then `input_indices` has shape `[N, R_in]`, -/// `input_shape` has length `R_in`, `output_indices` has shape `[N, R_out]`, and -/// `output_shape` has length `R_out`. -/// -/// Arguments: -/// * scope: A Scope object -/// * input_indices: 2-D. `N x R_in` matrix with the indices of non-empty values in a -/// SparseTensor. -/// * input_shape: 1-D. `R_in` vector with the input SparseTensor's dense shape. -/// * new_shape: 1-D. `R_out` vector with the requested new dense shape. -/// -/// Returns: -/// * `Output` output_indices: 2-D. `N x R_out` matrix with the updated indices of non-empty -/// values in the output SparseTensor. -/// * `Output` output_shape: 1-D. `R_out` vector with the full dense shape of the output -/// SparseTensor. This is the same as `new_shape` but with any -1 dimensions -/// filled in. -class SparseReshape { - public: - SparseReshape(const ::tensorflow::Scope& scope, ::tensorflow::Input - input_indices, ::tensorflow::Input input_shape, - ::tensorflow::Input new_shape); - - Operation operation; - ::tensorflow::Output output_indices; - ::tensorflow::Output output_shape; -}; - -/// Slice a `SparseTensor` based on the `start` and `size`. -/// -/// For example, if the input is -/// -/// input_tensor = shape = [2, 7] -/// [ a d e ] -/// [b c ] -/// -/// Graphically the output tensors are: -/// -/// sparse_slice([0, 0], [2, 4]) = shape = [2, 4] -/// [ a ] -/// [b c ] -/// -/// sparse_slice([0, 4], [2, 3]) = shape = [2, 3] -/// [ d e ] -/// [ ] -/// -/// Arguments: -/// * scope: A Scope object -/// * indices: 2-D tensor represents the indices of the sparse tensor. -/// * values: 1-D tensor represents the values of the sparse tensor. -/// * shape: 1-D. tensor represents the shape of the sparse tensor. -/// * start: 1-D. tensor represents the start of the slice. -/// * size: 1-D. tensor represents the size of the slice. -/// output indices: A list of 1-D tensors represents the indices of the output -/// sparse tensors. -/// -/// Returns: -/// * `Output` output_indices -/// * `Output` output_values: A list of 1-D tensors represents the values of the output sparse -/// tensors. -/// * `Output` output_shape: A list of 1-D tensors represents the shape of the output sparse -/// tensors. -class SparseSlice { - public: - SparseSlice(const ::tensorflow::Scope& scope, ::tensorflow::Input indices, - ::tensorflow::Input values, ::tensorflow::Input shape, - ::tensorflow::Input start, ::tensorflow::Input size); - - Operation operation; - ::tensorflow::Output output_indices; - ::tensorflow::Output output_values; - ::tensorflow::Output output_shape; -}; - -/// The gradient operator for the SparseSlice op. -/// -/// This op takes in the upstream gradient w.r.t. non-empty values of -/// the sliced `SparseTensor`, and outputs the gradients w.r.t. -/// the non-empty values of input `SparseTensor`. -/// -/// Arguments: -/// * scope: A Scope object -/// * backprop_val_grad: 1-D. The gradient with respect to -/// the non-empty values of the sliced `SparseTensor`. -/// * input_indices: 2-D. The `indices` of the input `SparseTensor`. -/// * input_start: 1-D. tensor represents the start of the slice. -/// * output_indices: 2-D. The `indices` of the sliced `SparseTensor`. -/// -/// Returns: -/// * `Output`: 1-D. The gradient with respect to the non-empty values of input `SparseTensor`. -class SparseSliceGrad { - public: - SparseSliceGrad(const ::tensorflow::Scope& scope, ::tensorflow::Input - backprop_val_grad, ::tensorflow::Input input_indices, - ::tensorflow::Input input_start, ::tensorflow::Input - output_indices); - operator ::tensorflow::Output() const { return val_grad; } - operator ::tensorflow::Input() const { return val_grad; } - ::tensorflow::Node* node() const { return val_grad.node(); } - - Operation operation; - ::tensorflow::Output val_grad; -}; - -/// Applies softmax to a batched N-D `SparseTensor`. -/// -/// The inputs represent an N-D SparseTensor with logical shape `[..., B, C]` -/// (where `N >= 2`), and with indices sorted in the canonical lexicographic order. -/// -/// This op is equivalent to applying the normal `tf.nn.softmax()` to each innermost -/// logical submatrix with shape `[B, C]`, but with the catch that *the implicitly -/// zero elements do not participate*. Specifically, the algorithm is equivalent -/// to the following: -/// -/// (1) Applies `tf.nn.softmax()` to a densified view of each innermost submatrix -/// with shape `[B, C]`, along the size-C dimension; -/// (2) Masks out the original implicitly-zero locations; -/// (3) Renormalizes the remaining elements. -/// -/// Hence, the `SparseTensor` result has exactly the same non-zero indices and -/// shape. -/// -/// Arguments: -/// * scope: A Scope object -/// * sp_indices: 2-D. `NNZ x R` matrix with the indices of non-empty values in a -/// SparseTensor, in canonical ordering. -/// * sp_values: 1-D. `NNZ` non-empty values corresponding to `sp_indices`. -/// * sp_shape: 1-D. Shape of the input SparseTensor. -/// -/// Returns: -/// * `Output`: 1-D. The `NNZ` values for the result `SparseTensor`. -class SparseSoftmax { - public: - SparseSoftmax(const ::tensorflow::Scope& scope, ::tensorflow::Input sp_indices, - ::tensorflow::Input sp_values, ::tensorflow::Input sp_shape); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Returns the element-wise max of two SparseTensors. -/// -/// Assumes the two SparseTensors have the same shape, i.e., no broadcasting. -/// -/// Arguments: -/// * scope: A Scope object -/// * a_indices: 2-D. `N x R` matrix with the indices of non-empty values in a -/// SparseTensor, in the canonical lexicographic ordering. -/// * a_values: 1-D. `N` non-empty values corresponding to `a_indices`. -/// * a_shape: 1-D. Shape of the input SparseTensor. -/// * b_indices: counterpart to `a_indices` for the other operand. -/// * b_values: counterpart to `a_values` for the other operand; must be of the same dtype. -/// * b_shape: counterpart to `a_shape` for the other operand; the two shapes must be equal. -/// -/// Returns: -/// * `Output` output_indices: 2-D. The indices of the output SparseTensor. -/// * `Output` output_values: 1-D. The values of the output SparseTensor. -class SparseSparseMaximum { - public: - SparseSparseMaximum(const ::tensorflow::Scope& scope, ::tensorflow::Input - a_indices, ::tensorflow::Input a_values, - ::tensorflow::Input a_shape, ::tensorflow::Input b_indices, - ::tensorflow::Input b_values, ::tensorflow::Input b_shape); - - Operation operation; - ::tensorflow::Output output_indices; - ::tensorflow::Output output_values; -}; - -/// Returns the element-wise min of two SparseTensors. -/// -/// Assumes the two SparseTensors have the same shape, i.e., no broadcasting. -/// -/// Arguments: -/// * scope: A Scope object -/// * a_indices: 2-D. `N x R` matrix with the indices of non-empty values in a -/// SparseTensor, in the canonical lexicographic ordering. -/// * a_values: 1-D. `N` non-empty values corresponding to `a_indices`. -/// * a_shape: 1-D. Shape of the input SparseTensor. -/// * b_indices: counterpart to `a_indices` for the other operand. -/// * b_values: counterpart to `a_values` for the other operand; must be of the same dtype. -/// * b_shape: counterpart to `a_shape` for the other operand; the two shapes must be equal. -/// -/// Returns: -/// * `Output` output_indices: 2-D. The indices of the output SparseTensor. -/// * `Output` output_values: 1-D. The values of the output SparseTensor. -class SparseSparseMinimum { - public: - SparseSparseMinimum(const ::tensorflow::Scope& scope, ::tensorflow::Input - a_indices, ::tensorflow::Input a_values, - ::tensorflow::Input a_shape, ::tensorflow::Input b_indices, - ::tensorflow::Input b_values, ::tensorflow::Input b_shape); - - Operation operation; - ::tensorflow::Output output_indices; - ::tensorflow::Output output_values; -}; - -/// Split a `SparseTensor` into `num_split` tensors along one dimension. -/// -/// If the `shape[split_dim]` is not an integer multiple of `num_split`. Slices -/// `[0 : shape[split_dim] % num_split]` gets one extra dimension. -/// For example, if `split_dim = 1` and `num_split = 2` and the input is -/// -/// input_tensor = shape = [2, 7] -/// [ a d e ] -/// [b c ] -/// -/// Graphically the output tensors are: -/// -/// output_tensor[0] = shape = [2, 4] -/// [ a ] -/// [b c ] -/// -/// output_tensor[1] = shape = [2, 3] -/// [ d e ] -/// [ ] -/// -/// Arguments: -/// * scope: A Scope object -/// * split_dim: 0-D. The dimension along which to split. Must be in the range -/// `[0, rank(shape))`. -/// * indices: 2-D tensor represents the indices of the sparse tensor. -/// * values: 1-D tensor represents the values of the sparse tensor. -/// * shape: 1-D. tensor represents the shape of the sparse tensor. -/// output indices: A list of 1-D tensors represents the indices of the output -/// sparse tensors. -/// * num_split: The number of ways to split. -/// -/// Returns: -/// * `OutputList` output_indices -/// * `OutputList` output_values: A list of 1-D tensors represents the values of the output sparse -/// tensors. -/// * `OutputList` output_shape: A list of 1-D tensors represents the shape of the output sparse -/// tensors. -class SparseSplit { - public: - SparseSplit(const ::tensorflow::Scope& scope, ::tensorflow::Input split_dim, - ::tensorflow::Input indices, ::tensorflow::Input values, - ::tensorflow::Input shape, int64 num_split); - - Operation operation; - ::tensorflow::OutputList output_indices; - ::tensorflow::OutputList output_values; - ::tensorflow::OutputList output_shape; -}; - -/// Adds up a `SparseTensor` and a dense `Tensor`, producing a dense `Tensor`. -/// -/// This Op does not require `a_indices` be sorted in standard lexicographic order. -/// -/// Arguments: -/// * scope: A Scope object -/// * a_indices: 2-D. The `indices` of the `SparseTensor`, with shape `[nnz, ndims]`. -/// * a_values: 1-D. The `values` of the `SparseTensor`, with shape `[nnz]`. -/// * a_shape: 1-D. The `shape` of the `SparseTensor`, with shape `[ndims]`. -/// * b: `ndims`-D Tensor. With shape `a_shape`. -/// -/// Returns: -/// * `Output`: The output tensor. -class SparseTensorDenseAdd { - public: - SparseTensorDenseAdd(const ::tensorflow::Scope& scope, ::tensorflow::Input - a_indices, ::tensorflow::Input a_values, - ::tensorflow::Input a_shape, ::tensorflow::Input b); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Multiply SparseTensor (of rank 2) "A" by dense matrix "B". -/// -/// No validity checking is performed on the indices of A. However, the following -/// input format is recommended for optimal behavior: -/// -/// if adjoint_a == false: -/// A should be sorted in lexicographically increasing order. Use SparseReorder -/// if you're not sure. -/// if adjoint_a == true: -/// A should be sorted in order of increasing dimension 1 (i.e., "column major" -/// order instead of "row major" order). -/// -/// Arguments: -/// * scope: A Scope object -/// * a_indices: 2-D. The `indices` of the `SparseTensor`, size `[nnz, 2]` Matrix. -/// * a_values: 1-D. The `values` of the `SparseTensor`, size `[nnz]` Vector. -/// * a_shape: 1-D. The `shape` of the `SparseTensor`, size `[2]` Vector. -/// * b: 2-D. A dense Matrix. -/// -/// Optional attributes (see `Attrs`): -/// * adjoint_a: Use the adjoint of A in the matrix multiply. If A is complex, this -/// is transpose(conj(A)). Otherwise it's transpose(A). -/// * adjoint_b: Use the adjoint of B in the matrix multiply. If B is complex, this -/// is transpose(conj(B)). Otherwise it's transpose(B). -/// -/// Returns: -/// * `Output`: The product tensor. -class SparseTensorDenseMatMul { - public: - /// Optional attribute setters for SparseTensorDenseMatMul - struct Attrs { - /// Use the adjoint of A in the matrix multiply. If A is complex, this - /// is transpose(conj(A)). Otherwise it's transpose(A). - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs AdjointA(bool x) { - Attrs ret = *this; - ret.adjoint_a_ = x; - return ret; - } - - /// Use the adjoint of B in the matrix multiply. If B is complex, this - /// is transpose(conj(B)). Otherwise it's transpose(B). - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs AdjointB(bool x) { - Attrs ret = *this; - ret.adjoint_b_ = x; - return ret; - } - - bool adjoint_a_ = false; - bool adjoint_b_ = false; - }; - SparseTensorDenseMatMul(const ::tensorflow::Scope& scope, ::tensorflow::Input - a_indices, ::tensorflow::Input a_values, - ::tensorflow::Input a_shape, ::tensorflow::Input b); - SparseTensorDenseMatMul(const ::tensorflow::Scope& scope, ::tensorflow::Input - a_indices, ::tensorflow::Input a_values, - ::tensorflow::Input a_shape, ::tensorflow::Input b, - const SparseTensorDenseMatMul::Attrs& attrs); - operator ::tensorflow::Output() const { return product; } - operator ::tensorflow::Input() const { return product; } - ::tensorflow::Node* node() const { return product.node(); } - - static Attrs AdjointA(bool x) { - return Attrs().AdjointA(x); - } - static Attrs AdjointB(bool x) { - return Attrs().AdjointB(x); - } - - Operation operation; - ::tensorflow::Output product; -}; - -/// Converts a sparse representation into a dense tensor. -/// -/// Builds an array `dense` with shape `output_shape` such that -/// -/// ``` -/// # If sparse_indices is scalar -/// dense[i] = (i == sparse_indices ? sparse_values : default_value) -/// -/// # If sparse_indices is a vector, then for each i -/// dense[sparse_indices[i]] = sparse_values[i] -/// -/// # If sparse_indices is an n by d matrix, then for each i in [0, n) -/// dense[sparse_indices[i][0], ..., sparse_indices[i][d-1]] = sparse_values[i] -/// ``` -/// -/// All other values in `dense` are set to `default_value`. If `sparse_values` is a -/// scalar, all sparse indices are set to this single value. -/// -/// Indices should be sorted in lexicographic order, and indices must not -/// contain any repeats. If `validate_indices` is true, these properties -/// are checked during execution. -/// -/// Arguments: -/// * scope: A Scope object -/// * sparse_indices: 0-D, 1-D, or 2-D. `sparse_indices[i]` contains the complete -/// index where `sparse_values[i]` will be placed. -/// * output_shape: 1-D. Shape of the dense output tensor. -/// * sparse_values: 1-D. Values corresponding to each row of `sparse_indices`, -/// or a scalar value to be used for all sparse indices. -/// * default_value: Scalar value to set for indices not specified in -/// `sparse_indices`. -/// -/// Optional attributes (see `Attrs`): -/// * validate_indices: If true, indices are checked to make sure they are sorted in -/// lexicographic order and that there are no repeats. -/// -/// Returns: -/// * `Output`: Dense output tensor of shape `output_shape`. -class SparseToDense { - public: - /// Optional attribute setters for SparseToDense - struct Attrs { - /// If true, indices are checked to make sure they are sorted in - /// lexicographic order and that there are no repeats. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs ValidateIndices(bool x) { - Attrs ret = *this; - ret.validate_indices_ = x; - return ret; - } - - bool validate_indices_ = true; - }; - SparseToDense(const ::tensorflow::Scope& scope, ::tensorflow::Input - sparse_indices, ::tensorflow::Input output_shape, - ::tensorflow::Input sparse_values, ::tensorflow::Input - default_value); - SparseToDense(const ::tensorflow::Scope& scope, ::tensorflow::Input - sparse_indices, ::tensorflow::Input output_shape, - ::tensorflow::Input sparse_values, ::tensorflow::Input - default_value, const SparseToDense::Attrs& attrs); - operator ::tensorflow::Output() const { return dense; } - operator ::tensorflow::Input() const { return dense; } - ::tensorflow::Node* node() const { return dense.node(); } - - static Attrs ValidateIndices(bool x) { - return Attrs().ValidateIndices(x); - } - - Operation operation; - ::tensorflow::Output dense; -}; - -/// Read `SparseTensors` from a `SparseTensorsMap` and concatenate them. -/// -/// The input `sparse_handles` must be an `int64` matrix of shape `[N, 1]` where -/// `N` is the minibatch size and the rows correspond to the output handles of -/// `AddSparseToTensorsMap` or `AddManySparseToTensorsMap`. The ranks of the -/// original `SparseTensor` objects that went into the given input ops must all -/// match. When the final `SparseTensor` is created, it has rank one -/// higher than the ranks of the incoming `SparseTensor` objects -/// (they have been concatenated along a new row dimension on the left). -/// -/// The output `SparseTensor` object's shape values for all dimensions but the -/// first are the max across the input `SparseTensor` objects' shape values -/// for the corresponding dimensions. Its first shape value is `N`, the minibatch -/// size. -/// -/// The input `SparseTensor` objects' indices are assumed ordered in -/// standard lexicographic order. If this is not the case, after this -/// step run `SparseReorder` to restore index ordering. -/// -/// For example, if the handles represent an input, which is a `[2, 3]` matrix -/// representing two original `SparseTensor` objects: -/// -/// ``` -/// index = [ 0] -/// [10] -/// [20] -/// values = [1, 2, 3] -/// shape = [50] -/// ``` -/// -/// and -/// -/// ``` -/// index = [ 2] -/// [10] -/// values = [4, 5] -/// shape = [30] -/// ``` -/// -/// then the final `SparseTensor` will be: -/// -/// ``` -/// index = [0 0] -/// [0 10] -/// [0 20] -/// [1 2] -/// [1 10] -/// values = [1, 2, 3, 4, 5] -/// shape = [2 50] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * sparse_handles: 1-D, The `N` serialized `SparseTensor` objects. -/// Shape: `[N]`. -/// * dtype: The `dtype` of the `SparseTensor` objects stored in the -/// `SparseTensorsMap`. -/// -/// Optional attributes (see `Attrs`): -/// * container: The container name for the `SparseTensorsMap` read by this op. -/// * shared_name: The shared name for the `SparseTensorsMap` read by this op. -/// It should not be blank; rather the `shared_name` or unique Operation name -/// of the Op that created the original `SparseTensorsMap` should be used. -/// -/// Returns: -/// * `Output` sparse_indices: 2-D. The `indices` of the minibatch `SparseTensor`. -/// * `Output` sparse_values: 1-D. The `values` of the minibatch `SparseTensor`. -/// * `Output` sparse_shape: 1-D. The `shape` of the minibatch `SparseTensor`. -class TakeManySparseFromTensorsMap { - public: - /// Optional attribute setters for TakeManySparseFromTensorsMap - struct Attrs { - /// The container name for the `SparseTensorsMap` read by this op. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// The shared name for the `SparseTensorsMap` read by this op. - /// It should not be blank; rather the `shared_name` or unique Operation name - /// of the Op that created the original `SparseTensorsMap` should be used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - TakeManySparseFromTensorsMap(const ::tensorflow::Scope& scope, - ::tensorflow::Input sparse_handles, DataType - dtype); - TakeManySparseFromTensorsMap(const ::tensorflow::Scope& scope, - ::tensorflow::Input sparse_handles, DataType - dtype, const TakeManySparseFromTensorsMap::Attrs& - attrs); - - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output sparse_indices; - ::tensorflow::Output sparse_values; - ::tensorflow::Output sparse_shape; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_SPARSE_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/sparse_ops_internal.h b/linux/include/tensorflow/cc/ops/sparse_ops_internal.h deleted file mode 100755 index 0015a85c5..000000000 --- a/linux/include/tensorflow/cc/ops/sparse_ops_internal.h +++ /dev/null @@ -1,28 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_SPARSE_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_SPARSE_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup sparse_ops_internal Sparse Ops Internal -/// @{ - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_SPARSE_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/state_ops.h b/linux/include/tensorflow/cc/ops/state_ops.h deleted file mode 100755 index 4f7746a9c..000000000 --- a/linux/include/tensorflow/cc/ops/state_ops.h +++ /dev/null @@ -1,1337 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_STATE_OPS_H_ -#define TENSORFLOW_CC_OPS_STATE_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup state_ops State Ops -/// @{ - -/// Update 'ref' by assigning 'value' to it. -/// -/// This operation outputs "ref" after the assignment is done. -/// This makes it easier to chain operations that need to use the reset value. -/// -/// Arguments: -/// * scope: A Scope object -/// * ref: Should be from a `Variable` node. May be uninitialized. -/// * value: The value to be assigned to the variable. -/// -/// Optional attributes (see `Attrs`): -/// * validate_shape: If true, the operation will validate that the shape -/// of 'value' matches the shape of the Tensor being assigned to. If false, -/// 'ref' will take on the shape of 'value'. -/// * use_locking: If True, the assignment will be protected by a lock; -/// otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: = Same as "ref". Returned as a convenience for operations that want -/// to use the new value after the variable has been reset. -class Assign { - public: - /// Optional attribute setters for Assign - struct Attrs { - /// If true, the operation will validate that the shape - /// of 'value' matches the shape of the Tensor being assigned to. If false, - /// 'ref' will take on the shape of 'value'. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs ValidateShape(bool x) { - Attrs ret = *this; - ret.validate_shape_ = x; - return ret; - } - - /// If True, the assignment will be protected by a lock; - /// otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool validate_shape_ = true; - bool use_locking_ = true; - }; - Assign(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input value); - Assign(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input value, const Assign::Attrs& attrs); - operator ::tensorflow::Output() const { return output_ref; } - operator ::tensorflow::Input() const { return output_ref; } - ::tensorflow::Node* node() const { return output_ref.node(); } - - static Attrs ValidateShape(bool x) { - return Attrs().ValidateShape(x); - } - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output output_ref; -}; - -/// Update 'ref' by adding 'value' to it. -/// -/// This operation outputs "ref" after the update is done. -/// This makes it easier to chain operations that need to use the reset value. -/// -/// Arguments: -/// * scope: A Scope object -/// * ref: Should be from a `Variable` node. -/// * value: The value to be added to the variable. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, the addition will be protected by a lock; -/// otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: = Same as "ref". Returned as a convenience for operations that want -/// to use the new value after the variable has been updated. -class AssignAdd { - public: - /// Optional attribute setters for AssignAdd - struct Attrs { - /// If True, the addition will be protected by a lock; - /// otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - AssignAdd(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input value); - AssignAdd(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input value, const AssignAdd::Attrs& attrs); - operator ::tensorflow::Output() const { return output_ref; } - operator ::tensorflow::Input() const { return output_ref; } - ::tensorflow::Node* node() const { return output_ref.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output output_ref; -}; - -/// Update 'ref' by subtracting 'value' from it. -/// -/// This operation outputs "ref" after the update is done. -/// This makes it easier to chain operations that need to use the reset value. -/// -/// Arguments: -/// * scope: A Scope object -/// * ref: Should be from a `Variable` node. -/// * value: The value to be subtracted to the variable. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, the subtraction will be protected by a lock; -/// otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: = Same as "ref". Returned as a convenience for operations that want -/// to use the new value after the variable has been updated. -class AssignSub { - public: - /// Optional attribute setters for AssignSub - struct Attrs { - /// If True, the subtraction will be protected by a lock; - /// otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - AssignSub(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input value); - AssignSub(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input value, const AssignSub::Attrs& attrs); - operator ::tensorflow::Output() const { return output_ref; } - operator ::tensorflow::Input() const { return output_ref; } - ::tensorflow::Node* node() const { return output_ref.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output output_ref; -}; - -/// Increments 'ref' until it reaches 'limit'. -/// -/// Arguments: -/// * scope: A Scope object -/// * ref: Should be from a scalar `Variable` node. -/// * limit: If incrementing ref would bring it above limit, instead generates an -/// 'OutOfRange' error. -/// -/// Returns: -/// * `Output`: A copy of the input before increment. If nothing else modifies the -/// input, the values produced will all be distinct. -class CountUpTo { - public: - CountUpTo(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, int64 - limit); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Destroys the temporary variable and returns its final value. -/// -/// Sets output to the value of the Tensor pointed to by 'ref', then destroys -/// the temporary variable called 'var_name'. -/// All other uses of 'ref' *must* have executed before this op. -/// This is typically achieved by chaining the ref through each assign op, or by -/// using control dependencies. -/// -/// Outputs the final value of the tensor pointed to by 'ref'. -/// -/// Arguments: -/// * scope: A Scope object -/// * ref: A reference to the temporary variable tensor. -/// * var_name: Name of the temporary variable, usually the name of the matching -/// 'TemporaryVariable' op. -/// -/// Returns: -/// * `Output`: The value tensor. -class DestroyTemporaryVariable { - public: - DestroyTemporaryVariable(const ::tensorflow::Scope& scope, ::tensorflow::Input - ref, StringPiece var_name); - operator ::tensorflow::Output() const { return value; } - operator ::tensorflow::Input() const { return value; } - ::tensorflow::Node* node() const { return value.node(); } - - Operation operation; - ::tensorflow::Output value; -}; - -/// Checks whether a tensor has been initialized. -/// -/// Outputs boolean scalar indicating whether the tensor has been initialized. -/// -/// Arguments: -/// * scope: A Scope object -/// * ref: Should be from a `Variable` node. May be uninitialized. -/// -/// Returns: -/// * `Output`: The is_initialized tensor. -class IsVariableInitialized { - public: - IsVariableInitialized(const ::tensorflow::Scope& scope, ::tensorflow::Input - ref); - operator ::tensorflow::Output() const { return is_initialized; } - operator ::tensorflow::Input() const { return is_initialized; } - ::tensorflow::Node* node() const { return is_initialized.node(); } - - Operation operation; - ::tensorflow::Output is_initialized; -}; - -/// Increments variable pointed to by 'resource' until it reaches 'limit'. -/// -/// Arguments: -/// * scope: A Scope object -/// * resource: Should be from a scalar `Variable` node. -/// * limit: If incrementing ref would bring it above limit, instead generates an -/// 'OutOfRange' error. -/// -/// Returns: -/// * `Output`: A copy of the input before increment. If nothing else modifies the -/// input, the values produced will all be distinct. -class ResourceCountUpTo { - public: - ResourceCountUpTo(const ::tensorflow::Scope& scope, ::tensorflow::Input - resource, int64 limit, DataType T); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Adds sparse `updates` to individual values or slices within a given -/// -/// variable according to `indices`. -/// -/// `ref` is a `Tensor` with rank `P` and `indices` is a `Tensor` of rank `Q`. -/// -/// `indices` must be integer tensor, containing indices into `ref`. -/// It must be shape `[d_0, ..., d_{Q-2}, K]` where `0 < K <= P`. -/// -/// The innermost dimension of `indices` (with length `K`) corresponds to -/// indices into elements (if `K = P`) or slices (if `K < P`) along the `K`th -/// dimension of `ref`. -/// -/// `updates` is `Tensor` of rank `Q-1+P-K` with shape: -/// -/// ``` -/// [d_0, ..., d_{Q-2}, ref.shape[K], ..., ref.shape[P-1]]. -/// ``` -/// -/// For example, say we want to update 4 scattered elements to a rank-1 tensor to -/// 8 elements. In Python, that update would look like this: -/// -/// ```python -/// ref = tf.Variable([1, 2, 3, 4, 5, 6, 7, 8], use_resource=True) -/// indices = tf.constant([[4], [3], [1] ,[7]]) -/// updates = tf.constant([9, 10, 11, 12]) -/// update = tf.scatter_nd_add(ref, indices, updates) -/// with tf.Session() as sess: -/// print sess.run(update) -/// ``` -/// -/// The resulting update to ref would look like this: -/// -/// [1, 12, 3, 14, 14, 6, 7, 20] -/// -/// See `tf.scatter_nd` for more details about how to make updates to -/// slices. -/// -/// Arguments: -/// * scope: A Scope object -/// * ref: A resource handle. Must be from a VarHandleOp. -/// * indices: A Tensor. Must be one of the following types: int32, int64. -/// A tensor of indices into ref. -/// * updates: A Tensor. Must have the same type as ref. A tensor of -/// values to add to ref. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: An optional bool. Defaults to True. If True, the assignment will -/// be protected by a lock; otherwise the behavior is undefined, -/// but may exhibit less contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceScatterNdAdd { - public: - /// Optional attribute setters for ResourceScatterNdAdd - struct Attrs { - /// An optional bool. Defaults to True. If True, the assignment will - /// be protected by a lock; otherwise the behavior is undefined, - /// but may exhibit less contention. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = true; - }; - ResourceScatterNdAdd(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates); - ResourceScatterNdAdd(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates, - const ResourceScatterNdAdd::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Applies sparse `updates` to individual values or slices within a given -/// -/// variable according to `indices`. -/// -/// `ref` is a `Tensor` with rank `P` and `indices` is a `Tensor` of rank `Q`. -/// -/// `indices` must be integer tensor, containing indices into `ref`. -/// It must be shape `[d_0, ..., d_{Q-2}, K]` where `0 < K <= P`. -/// -/// The innermost dimension of `indices` (with length `K`) corresponds to -/// indices into elements (if `K = P`) or slices (if `K < P`) along the `K`th -/// dimension of `ref`. -/// -/// `updates` is `Tensor` of rank `Q-1+P-K` with shape: -/// -/// ``` -/// [d_0, ..., d_{Q-2}, ref.shape[K], ..., ref.shape[P-1]]. -/// ``` -/// -/// For example, say we want to update 4 scattered elements to a rank-1 tensor to -/// 8 elements. In Python, that update would look like this: -/// -/// ```python -/// ref = tf.Variable([1, 2, 3, 4, 5, 6, 7, 8]) -/// indices = tf.constant([[4], [3], [1] ,[7]]) -/// updates = tf.constant([9, 10, 11, 12]) -/// update = tf.scatter_nd_update(ref, indices, updates) -/// with tf.Session() as sess: -/// print sess.run(update) -/// ``` -/// -/// The resulting update to ref would look like this: -/// -/// [1, 11, 3, 10, 9, 6, 7, 12] -/// -/// See `tf.scatter_nd` for more details about how to make updates to -/// slices. -/// -/// Arguments: -/// * scope: A Scope object -/// * ref: A resource handle. Must be from a VarHandleOp. -/// * indices: A Tensor. Must be one of the following types: int32, int64. -/// A tensor of indices into ref. -/// * updates: A Tensor. Must have the same type as ref. A tensor of updated -/// values to add to ref. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: An optional bool. Defaults to True. If True, the assignment will -/// be protected by a lock; otherwise the behavior is undefined, -/// but may exhibit less contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceScatterNdUpdate { - public: - /// Optional attribute setters for ResourceScatterNdUpdate - struct Attrs { - /// An optional bool. Defaults to True. If True, the assignment will - /// be protected by a lock; otherwise the behavior is undefined, - /// but may exhibit less contention. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = true; - }; - ResourceScatterNdUpdate(const ::tensorflow::Scope& scope, ::tensorflow::Input - ref, ::tensorflow::Input indices, ::tensorflow::Input - updates); - ResourceScatterNdUpdate(const ::tensorflow::Scope& scope, ::tensorflow::Input - ref, ::tensorflow::Input indices, ::tensorflow::Input - updates, const ResourceScatterNdUpdate::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Adds sparse updates to a variable reference. -/// -/// This operation computes -/// -/// # Scalar indices -/// ref[indices, ...] += updates[...] -/// -/// # Vector indices (for each i) -/// ref[indices[i], ...] += updates[i, ...] -/// -/// # High rank indices (for each i, ..., j) -/// ref[indices[i, ..., j], ...] += updates[i, ..., j, ...] -/// -/// This operation outputs `ref` after the update is done. -/// This makes it easier to chain operations that need to use the reset value. -/// -/// Duplicate entries are handled correctly: if multiple `indices` reference -/// the same location, their contributions add. -/// -/// Requires `updates.shape = indices.shape + ref.shape[1:]` or `updates.shape = []`. -/// -///
-/// -///
-/// -/// Arguments: -/// * scope: A Scope object -/// * ref: Should be from a `Variable` node. -/// * indices: A tensor of indices into the first dimension of `ref`. -/// * updates: A tensor of updated values to add to `ref`. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, the addition will be protected by a lock; -/// otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: = Same as `ref`. Returned as a convenience for operations that want -/// to use the updated values after the update is done. -class ScatterAdd { - public: - /// Optional attribute setters for ScatterAdd - struct Attrs { - /// If True, the addition will be protected by a lock; - /// otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ScatterAdd(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates); - ScatterAdd(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates, const - ScatterAdd::Attrs& attrs); - operator ::tensorflow::Output() const { return output_ref; } - operator ::tensorflow::Input() const { return output_ref; } - ::tensorflow::Node* node() const { return output_ref.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output output_ref; -}; - -/// Divides a variable reference by sparse updates. -/// -/// This operation computes -/// -/// ```python -/// # Scalar indices -/// ref[indices, ...] /= updates[...] -/// -/// # Vector indices (for each i) -/// ref[indices[i], ...] /= updates[i, ...] -/// -/// # High rank indices (for each i, ..., j) -/// ref[indices[i, ..., j], ...] /= updates[i, ..., j, ...] -/// ``` -/// -/// This operation outputs `ref` after the update is done. -/// This makes it easier to chain operations that need to use the reset value. -/// -/// Duplicate entries are handled correctly: if multiple `indices` reference -/// the same location, their contributions divide. -/// -/// Requires `updates.shape = indices.shape + ref.shape[1:]` or `updates.shape = []`. -/// -/// Arguments: -/// * scope: A Scope object -/// * ref: Should be from a `Variable` node. -/// * indices: A tensor of indices into the first dimension of `ref`. -/// * updates: A tensor of values that `ref` is divided by. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, the operation will be protected by a lock; -/// otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: = Same as `ref`. Returned as a convenience for operations that want -/// to use the updated values after the update is done. -class ScatterDiv { - public: - /// Optional attribute setters for ScatterDiv - struct Attrs { - /// If True, the operation will be protected by a lock; - /// otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ScatterDiv(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates); - ScatterDiv(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates, const - ScatterDiv::Attrs& attrs); - operator ::tensorflow::Output() const { return output_ref; } - operator ::tensorflow::Input() const { return output_ref; } - ::tensorflow::Node* node() const { return output_ref.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output output_ref; -}; - -/// Reduces sparse updates into a variable reference using the `max` operation. -/// -/// This operation computes -/// -/// # Scalar indices -/// ref[indices, ...] = max(ref[indices, ...], updates[...]) -/// -/// # Vector indices (for each i) -/// ref[indices[i], ...] = max(ref[indices[i], ...], updates[i, ...]) -/// -/// # High rank indices (for each i, ..., j) -/// ref[indices[i, ..., j], ...] = max(ref[indices[i, ..., j], ...], updates[i, ..., j, ...]) -/// -/// This operation outputs `ref` after the update is done. -/// This makes it easier to chain operations that need to use the reset value. -/// -/// Duplicate entries are handled correctly: if multiple `indices` reference -/// the same location, their contributions combine. -/// -/// Requires `updates.shape = indices.shape + ref.shape[1:]` or `updates.shape = []`. -/// -///
-/// -///
-/// -/// Arguments: -/// * scope: A Scope object -/// * ref: Should be from a `Variable` node. -/// * indices: A tensor of indices into the first dimension of `ref`. -/// * updates: A tensor of updated values to reduce into `ref`. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, the update will be protected by a lock; -/// otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: = Same as `ref`. Returned as a convenience for operations that want -/// to use the updated values after the update is done. -class ScatterMax { - public: - /// Optional attribute setters for ScatterMax - struct Attrs { - /// If True, the update will be protected by a lock; - /// otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ScatterMax(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates); - ScatterMax(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates, const - ScatterMax::Attrs& attrs); - operator ::tensorflow::Output() const { return output_ref; } - operator ::tensorflow::Input() const { return output_ref; } - ::tensorflow::Node* node() const { return output_ref.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output output_ref; -}; - -/// Reduces sparse updates into a variable reference using the `min` operation. -/// -/// This operation computes -/// -/// # Scalar indices -/// ref[indices, ...] = min(ref[indices, ...], updates[...]) -/// -/// # Vector indices (for each i) -/// ref[indices[i], ...] = min(ref[indices[i], ...], updates[i, ...]) -/// -/// # High rank indices (for each i, ..., j) -/// ref[indices[i, ..., j], ...] = min(ref[indices[i, ..., j], ...], updates[i, ..., j, ...]) -/// -/// This operation outputs `ref` after the update is done. -/// This makes it easier to chain operations that need to use the reset value. -/// -/// Duplicate entries are handled correctly: if multiple `indices` reference -/// the same location, their contributions combine. -/// -/// Requires `updates.shape = indices.shape + ref.shape[1:]` or `updates.shape = []`. -/// -///
-/// -///
-/// -/// Arguments: -/// * scope: A Scope object -/// * ref: Should be from a `Variable` node. -/// * indices: A tensor of indices into the first dimension of `ref`. -/// * updates: A tensor of updated values to reduce into `ref`. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, the update will be protected by a lock; -/// otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: = Same as `ref`. Returned as a convenience for operations that want -/// to use the updated values after the update is done. -class ScatterMin { - public: - /// Optional attribute setters for ScatterMin - struct Attrs { - /// If True, the update will be protected by a lock; - /// otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ScatterMin(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates); - ScatterMin(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates, const - ScatterMin::Attrs& attrs); - operator ::tensorflow::Output() const { return output_ref; } - operator ::tensorflow::Input() const { return output_ref; } - ::tensorflow::Node* node() const { return output_ref.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output output_ref; -}; - -/// Multiplies sparse updates into a variable reference. -/// -/// This operation computes -/// -/// ```python -/// # Scalar indices -/// ref[indices, ...] *= updates[...] -/// -/// # Vector indices (for each i) -/// ref[indices[i], ...] *= updates[i, ...] -/// -/// # High rank indices (for each i, ..., j) -/// ref[indices[i, ..., j], ...] *= updates[i, ..., j, ...] -/// ``` -/// -/// This operation outputs `ref` after the update is done. -/// This makes it easier to chain operations that need to use the reset value. -/// -/// Duplicate entries are handled correctly: if multiple `indices` reference -/// the same location, their contributions multiply. -/// -/// Requires `updates.shape = indices.shape + ref.shape[1:]` or `updates.shape = []`. -/// -/// Arguments: -/// * scope: A Scope object -/// * ref: Should be from a `Variable` node. -/// * indices: A tensor of indices into the first dimension of `ref`. -/// * updates: A tensor of updated values to multiply to `ref`. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, the operation will be protected by a lock; -/// otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: = Same as `ref`. Returned as a convenience for operations that want -/// to use the updated values after the update is done. -class ScatterMul { - public: - /// Optional attribute setters for ScatterMul - struct Attrs { - /// If True, the operation will be protected by a lock; - /// otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ScatterMul(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates); - ScatterMul(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates, const - ScatterMul::Attrs& attrs); - operator ::tensorflow::Output() const { return output_ref; } - operator ::tensorflow::Input() const { return output_ref; } - ::tensorflow::Node* node() const { return output_ref.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output output_ref; -}; - -/// Applies sparse addition between `updates` and individual values or slices -/// -/// within a given variable according to `indices`. -/// -/// `ref` is a `Tensor` with rank `P` and `indices` is a `Tensor` of rank `Q`. -/// -/// `indices` must be integer tensor, containing indices into `ref`. -/// It must be shape `\\([d_0, ..., d_{Q-2}, K]\\)` where `0 < K <= P`. -/// -/// The innermost dimension of `indices` (with length `K`) corresponds to -/// indices into elements (if `K = P`) or slices (if `K < P`) along the `K`th -/// dimension of `ref`. -/// -/// `updates` is `Tensor` of rank `Q-1+P-K` with shape: -/// -/// $$[d_0, ..., d_{Q-2}, ref.shape[K], ..., ref.shape[P-1]].$$ -/// -/// For example, say we want to add 4 scattered elements to a rank-1 tensor to 8 -/// elements. In Python, that addition would look like this: -/// -/// ref = tf.Variable([1, 2, 3, 4, 5, 6, 7, 8]) -/// indices = tf.constant([[4], [3], [1], [7]]) -/// updates = tf.constant([9, 10, 11, 12]) -/// add = tf.scatter_nd_add(ref, indices, updates) -/// with tf.Session() as sess: -/// print sess.run(add) -/// -/// The resulting update to ref would look like this: -/// -/// [1, 13, 3, 14, 14, 6, 7, 20] -/// -/// See `tf.scatter_nd` for more details about how to make updates to -/// slices. -/// -/// Arguments: -/// * scope: A Scope object -/// * ref: A mutable Tensor. Should be from a Variable node. -/// * indices: A Tensor. Must be one of the following types: int32, int64. -/// A tensor of indices into ref. -/// * updates: A Tensor. Must have the same type as ref. A tensor of updated values -/// to add to ref. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: An optional bool. Defaults to True. If True, the assignment will -/// be protected by a lock; otherwise the behavior is undefined, -/// but may exhibit less contention. -/// -/// Returns: -/// * `Output`: Same as ref. Returned as a convenience for operations that want -/// to use the updated values after the update is done. -class ScatterNdAdd { - public: - /// Optional attribute setters for ScatterNdAdd - struct Attrs { - /// An optional bool. Defaults to True. If True, the assignment will - /// be protected by a lock; otherwise the behavior is undefined, - /// but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ScatterNdAdd(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates); - ScatterNdAdd(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates, const - ScatterNdAdd::Attrs& attrs); - operator ::tensorflow::Output() const { return output_ref; } - operator ::tensorflow::Input() const { return output_ref; } - ::tensorflow::Node* node() const { return output_ref.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output output_ref; -}; - -/// Applies sparse subtraction between `updates` and individual values or slices -/// -/// within a given variable according to `indices`. -/// -/// `ref` is a `Tensor` with rank `P` and `indices` is a `Tensor` of rank `Q`. -/// -/// `indices` must be integer tensor, containing indices into `ref`. -/// It must be shape \\([d_0, ..., d_{Q-2}, K]\\) where `0 < K <= P`. -/// -/// The innermost dimension of `indices` (with length `K`) corresponds to -/// indices into elements (if `K = P`) or slices (if `K < P`) along the `K`th -/// dimension of `ref`. -/// -/// `updates` is `Tensor` of rank `Q-1+P-K` with shape: -/// -/// $$[d_0, ..., d_{Q-2}, ref.shape[K], ..., ref.shape[P-1]].$$ -/// -/// For example, say we want to subtract 4 scattered elements from a rank-1 tensor -/// with 8 elements. In Python, that subtraction would look like this: -/// -/// ref = tf.Variable([1, 2, 3, 4, 5, 6, 7, 8]) -/// indices = tf.constant([[4], [3], [1], [7]]) -/// updates = tf.constant([9, 10, 11, 12]) -/// sub = tf.scatter_nd_sub(ref, indices, updates) -/// with tf.Session() as sess: -/// print sess.run(sub) -/// -/// The resulting update to ref would look like this: -/// -/// [1, -9, 3, -6, -4, 6, 7, -4] -/// -/// See `tf.scatter_nd` for more details about how to make updates to -/// slices. -/// -/// Arguments: -/// * scope: A Scope object -/// * ref: A mutable Tensor. Should be from a Variable node. -/// * indices: A Tensor. Must be one of the following types: int32, int64. -/// A tensor of indices into ref. -/// * updates: A Tensor. Must have the same type as ref. A tensor of updated values -/// to subtract from ref. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: An optional bool. Defaults to True. If True, the assignment will -/// be protected by a lock; otherwise the behavior is undefined, -/// but may exhibit less contention. -/// -/// Returns: -/// * `Output`: Same as ref. Returned as a convenience for operations that want -/// to use the updated values after the update is done. -class ScatterNdSub { - public: - /// Optional attribute setters for ScatterNdSub - struct Attrs { - /// An optional bool. Defaults to True. If True, the assignment will - /// be protected by a lock; otherwise the behavior is undefined, - /// but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ScatterNdSub(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates); - ScatterNdSub(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates, const - ScatterNdSub::Attrs& attrs); - operator ::tensorflow::Output() const { return output_ref; } - operator ::tensorflow::Input() const { return output_ref; } - ::tensorflow::Node* node() const { return output_ref.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output output_ref; -}; - -/// Applies sparse `updates` to individual values or slices within a given -/// -/// variable according to `indices`. -/// -/// `ref` is a `Tensor` with rank `P` and `indices` is a `Tensor` of rank `Q`. -/// -/// `indices` must be integer tensor, containing indices into `ref`. -/// It must be shape \\([d_0, ..., d_{Q-2}, K]\\) where `0 < K <= P`. -/// -/// The innermost dimension of `indices` (with length `K`) corresponds to -/// indices into elements (if `K = P`) or slices (if `K < P`) along the `K`th -/// dimension of `ref`. -/// -/// `updates` is `Tensor` of rank `Q-1+P-K` with shape: -/// -/// $$[d_0, ..., d_{Q-2}, ref.shape[K], ..., ref.shape[P-1]].$$ -/// -/// For example, say we want to update 4 scattered elements to a rank-1 tensor to -/// 8 elements. In Python, that update would look like this: -/// -/// ```python -/// ref = tf.Variable([1, 2, 3, 4, 5, 6, 7, 8]) -/// indices = tf.constant([[4], [3], [1] ,[7]]) -/// updates = tf.constant([9, 10, 11, 12]) -/// update = tf.scatter_nd_update(ref, indices, updates) -/// with tf.Session() as sess: -/// print sess.run(update) -/// ``` -/// -/// The resulting update to ref would look like this: -/// -/// [1, 11, 3, 10, 9, 6, 7, 12] -/// -/// See `tf.scatter_nd` for more details about how to make updates to -/// slices. -/// -/// See also `tf.scatter_update` and `tf.batch_scatter_update`. -/// -/// Arguments: -/// * scope: A Scope object -/// * ref: A mutable Tensor. Should be from a Variable node. -/// * indices: A Tensor. Must be one of the following types: int32, int64. -/// A tensor of indices into ref. -/// * updates: A Tensor. Must have the same type as ref. A tensor of updated -/// values to add to ref. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: An optional bool. Defaults to True. If True, the assignment will -/// be protected by a lock; otherwise the behavior is undefined, -/// but may exhibit less contention. -/// -/// Returns: -/// * `Output`: Same as ref. Returned as a convenience for operations that want to -/// use the updated values after the update is done. -class ScatterNdUpdate { - public: - /// Optional attribute setters for ScatterNdUpdate - struct Attrs { - /// An optional bool. Defaults to True. If True, the assignment will - /// be protected by a lock; otherwise the behavior is undefined, - /// but may exhibit less contention. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = true; - }; - ScatterNdUpdate(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates); - ScatterNdUpdate(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates, const - ScatterNdUpdate::Attrs& attrs); - operator ::tensorflow::Output() const { return output_ref; } - operator ::tensorflow::Input() const { return output_ref; } - ::tensorflow::Node* node() const { return output_ref.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output output_ref; -}; - -/// Subtracts sparse updates to a variable reference. -/// -/// ```python -/// # Scalar indices -/// ref[indices, ...] -= updates[...] -/// -/// # Vector indices (for each i) -/// ref[indices[i], ...] -= updates[i, ...] -/// -/// # High rank indices (for each i, ..., j) -/// ref[indices[i, ..., j], ...] -= updates[i, ..., j, ...] -/// ``` -/// -/// This operation outputs `ref` after the update is done. -/// This makes it easier to chain operations that need to use the reset value. -/// -/// Duplicate entries are handled correctly: if multiple `indices` reference -/// the same location, their (negated) contributions add. -/// -/// Requires `updates.shape = indices.shape + ref.shape[1:]` or `updates.shape = []`. -/// -///
-/// -///
-/// -/// Arguments: -/// * scope: A Scope object -/// * ref: Should be from a `Variable` node. -/// * indices: A tensor of indices into the first dimension of `ref`. -/// * updates: A tensor of updated values to subtract from `ref`. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, the subtraction will be protected by a lock; -/// otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: = Same as `ref`. Returned as a convenience for operations that want -/// to use the updated values after the update is done. -class ScatterSub { - public: - /// Optional attribute setters for ScatterSub - struct Attrs { - /// If True, the subtraction will be protected by a lock; - /// otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ScatterSub(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates); - ScatterSub(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates, const - ScatterSub::Attrs& attrs); - operator ::tensorflow::Output() const { return output_ref; } - operator ::tensorflow::Input() const { return output_ref; } - ::tensorflow::Node* node() const { return output_ref.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output output_ref; -}; - -/// Applies sparse updates to a variable reference. -/// -/// This operation computes -/// -/// ```python -/// # Scalar indices -/// ref[indices, ...] = updates[...] -/// -/// # Vector indices (for each i) -/// ref[indices[i], ...] = updates[i, ...] -/// -/// # High rank indices (for each i, ..., j) -/// ref[indices[i, ..., j], ...] = updates[i, ..., j, ...] -/// ``` -/// -/// This operation outputs `ref` after the update is done. -/// This makes it easier to chain operations that need to use the reset value. -/// -/// If values in `ref` is to be updated more than once, because there are -/// duplicate entries in `indices`, the order at which the updates happen -/// for each value is undefined. -/// -/// Requires `updates.shape = indices.shape + ref.shape[1:]` or `updates.shape = []`. -/// -///
-/// -///
-/// -/// See also `tf.batch_scatter_update` and `tf.scatter_nd_update`. -/// -/// Arguments: -/// * scope: A Scope object -/// * ref: Should be from a `Variable` node. -/// * indices: A tensor of indices into the first dimension of `ref`. -/// * updates: A tensor of updated values to store in `ref`. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, the assignment will be protected by a lock; -/// otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: = Same as `ref`. Returned as a convenience for operations that want -/// to use the updated values after the update is done. -class ScatterUpdate { - public: - /// Optional attribute setters for ScatterUpdate - struct Attrs { - /// If True, the assignment will be protected by a lock; - /// otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = true; - }; - ScatterUpdate(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates); - ScatterUpdate(const ::tensorflow::Scope& scope, ::tensorflow::Input ref, - ::tensorflow::Input indices, ::tensorflow::Input updates, const - ScatterUpdate::Attrs& attrs); - operator ::tensorflow::Output() const { return output_ref; } - operator ::tensorflow::Input() const { return output_ref; } - ::tensorflow::Node* node() const { return output_ref.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output output_ref; -}; - -/// Returns a tensor that may be mutated, but only persists within a single step. -/// -/// This is an experimental op for internal use only and it is possible to use this -/// op in unsafe ways. DO NOT USE unless you fully understand the risks. -/// -/// It is the caller's responsibility to ensure that 'ref' is eventually passed to a -/// matching 'DestroyTemporaryVariable' op after all other uses have completed. -/// -/// Outputs a ref to the tensor state so it may be read or modified. -/// -/// E.g. -/// var = state_ops._temporary_variable([1, 2], types.float_) -/// var_name = var.op.name -/// var = state_ops.assign(var, [[4.0, 5.0]]) -/// var = state_ops.assign_add(var, [[6.0, 7.0]]) -/// final = state_ops._destroy_temporary_variable(var, var_name=var_name) -/// -/// Arguments: -/// * scope: A Scope object -/// * shape: The shape of the variable tensor. -/// * dtype: The type of elements in the variable tensor. -/// -/// Optional attributes (see `Attrs`): -/// * var_name: Overrides the name used for the temporary variable resource. Default -/// value is the name of the 'TemporaryVariable' op (which is guaranteed unique). -/// -/// Returns: -/// * `Output`: A reference to the variable tensor. -class TemporaryVariable { - public: - /// Optional attribute setters for TemporaryVariable - struct Attrs { - /// Overrides the name used for the temporary variable resource. Default - /// value is the name of the 'TemporaryVariable' op (which is guaranteed unique). - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs VarName(StringPiece x) { - Attrs ret = *this; - ret.var_name_ = x; - return ret; - } - - StringPiece var_name_ = ""; - }; - TemporaryVariable(const ::tensorflow::Scope& scope, PartialTensorShape shape, - DataType dtype); - TemporaryVariable(const ::tensorflow::Scope& scope, PartialTensorShape shape, - DataType dtype, const TemporaryVariable::Attrs& attrs); - operator ::tensorflow::Output() const { return ref; } - operator ::tensorflow::Input() const { return ref; } - ::tensorflow::Node* node() const { return ref.node(); } - - static Attrs VarName(StringPiece x) { - return Attrs().VarName(x); - } - - Operation operation; - ::tensorflow::Output ref; -}; - -/// Holds state in the form of a tensor that persists across steps. -/// -/// Outputs a ref to the tensor state so it may be read or modified. -/// TODO(zhifengc/mrry): Adds a pointer to a more detail document -/// about sharing states in tensorflow. -/// -/// Arguments: -/// * scope: A Scope object -/// * shape: The shape of the variable tensor. -/// * dtype: The type of elements in the variable tensor. -/// -/// Optional attributes (see `Attrs`): -/// * container: If non-empty, this variable is placed in the given container. -/// Otherwise, a default container is used. -/// * shared_name: If non-empty, this variable is named in the given bucket -/// with this shared_name. Otherwise, the node name is used instead. -/// -/// Returns: -/// * `Output`: A reference to the variable tensor. -class Variable { - public: - /// Optional attribute setters for Variable - struct Attrs { - /// If non-empty, this variable is placed in the given container. - /// Otherwise, a default container is used. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Container(StringPiece x) { - Attrs ret = *this; - ret.container_ = x; - return ret; - } - - /// If non-empty, this variable is named in the given bucket - /// with this shared_name. Otherwise, the node name is used instead. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs SharedName(StringPiece x) { - Attrs ret = *this; - ret.shared_name_ = x; - return ret; - } - - StringPiece container_ = ""; - StringPiece shared_name_ = ""; - }; - Variable(const ::tensorflow::Scope& scope, PartialTensorShape shape, DataType - dtype); - Variable(const ::tensorflow::Scope& scope, PartialTensorShape shape, DataType - dtype, const Variable::Attrs& attrs); - operator ::tensorflow::Output() const { return ref; } - operator ::tensorflow::Input() const { return ref; } - ::tensorflow::Node* node() const { return ref.node(); } - - static Attrs Container(StringPiece x) { - return Attrs().Container(x); - } - static Attrs SharedName(StringPiece x) { - return Attrs().SharedName(x); - } - - Operation operation; - ::tensorflow::Output ref; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_STATE_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/state_ops_internal.h b/linux/include/tensorflow/cc/ops/state_ops_internal.h deleted file mode 100755 index f9482a10a..000000000 --- a/linux/include/tensorflow/cc/ops/state_ops_internal.h +++ /dev/null @@ -1,28 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_STATE_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_STATE_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup state_ops_internal State Ops Internal -/// @{ - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_STATE_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/string_ops.h b/linux/include/tensorflow/cc/ops/string_ops.h deleted file mode 100755 index 105301acb..000000000 --- a/linux/include/tensorflow/cc/ops/string_ops.h +++ /dev/null @@ -1,902 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_STRING_OPS_H_ -#define TENSORFLOW_CC_OPS_STRING_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup string_ops String Ops -/// @{ - -/// Converts each entry in the given tensor to strings. Supports many numeric -/// -/// types and boolean. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Optional attributes (see `Attrs`): -/// * precision: The post-decimal precision to use for floating point numbers. -/// Only used if precision > -1. -/// * scientific: Use scientific notation for floating point numbers. -/// * shortest: Use shortest representation (either scientific or standard) for -/// floating point numbers. -/// * width: Pad pre-decimal numbers to this width. -/// Applies to both floating point and integer numbers. -/// Only used if width > -1. -/// * fill: The value to pad if width > -1. If empty, pads with spaces. -/// Another typical value is '0'. String cannot be longer than 1 character. -/// -/// Returns: -/// * `Output`: The output tensor. -class AsString { - public: - /// Optional attribute setters for AsString - struct Attrs { - /// The post-decimal precision to use for floating point numbers. - /// Only used if precision > -1. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs Precision(int64 x) { - Attrs ret = *this; - ret.precision_ = x; - return ret; - } - - /// Use scientific notation for floating point numbers. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs Scientific(bool x) { - Attrs ret = *this; - ret.scientific_ = x; - return ret; - } - - /// Use shortest representation (either scientific or standard) for - /// floating point numbers. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs Shortest(bool x) { - Attrs ret = *this; - ret.shortest_ = x; - return ret; - } - - /// Pad pre-decimal numbers to this width. - /// Applies to both floating point and integer numbers. - /// Only used if width > -1. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs Width(int64 x) { - Attrs ret = *this; - ret.width_ = x; - return ret; - } - - /// The value to pad if width > -1. If empty, pads with spaces. - /// Another typical value is '0'. String cannot be longer than 1 character. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Fill(StringPiece x) { - Attrs ret = *this; - ret.fill_ = x; - return ret; - } - - int64 precision_ = -1; - bool scientific_ = false; - bool shortest_ = false; - int64 width_ = -1; - StringPiece fill_ = ""; - }; - AsString(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - AsString(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - AsString::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Precision(int64 x) { - return Attrs().Precision(x); - } - static Attrs Scientific(bool x) { - return Attrs().Scientific(x); - } - static Attrs Shortest(bool x) { - return Attrs().Shortest(x); - } - static Attrs Width(int64 x) { - return Attrs().Width(x); - } - static Attrs Fill(StringPiece x) { - return Attrs().Fill(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Decode web-safe base64-encoded strings. -/// -/// Input may or may not have padding at the end. See EncodeBase64 for padding. -/// Web-safe means that input must use - and _ instead of + and /. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Base64 strings to decode. -/// -/// Returns: -/// * `Output`: Decoded strings. -class DecodeBase64 { - public: - DecodeBase64(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Encode strings into web-safe base64 format. -/// -/// Refer to the following article for more information on base64 format: -/// en.wikipedia.org/wiki/Base64. Base64 strings may have padding with '=' at the -/// end so that the encoded has length multiple of 4. See Padding section of the -/// link above. -/// -/// Web-safe means that the encoder uses - and _ instead of + and /. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Strings to be encoded. -/// -/// Optional attributes (see `Attrs`): -/// * pad: Bool whether padding is applied at the ends. -/// -/// Returns: -/// * `Output`: Input strings encoded in base64. -class EncodeBase64 { - public: - /// Optional attribute setters for EncodeBase64 - struct Attrs { - /// Bool whether padding is applied at the ends. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs Pad(bool x) { - Attrs ret = *this; - ret.pad_ = x; - return ret; - } - - bool pad_ = false; - }; - EncodeBase64(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - EncodeBase64(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - EncodeBase64::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Pad(bool x) { - return Attrs().Pad(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Joins a string Tensor across the given dimensions. -/// -/// Computes the string join across dimensions in the given string Tensor of shape -/// `[\\(d_0, d_1, ..., d_{n-1}\\)]`. Returns a new Tensor created by joining the input -/// strings with the given separator (default: empty string). Negative indices are -/// counted backwards from the end, with `-1` being equivalent to `n - 1`. If -/// indices are not specified, joins across all dimensions beginning from `n - 1` -/// through `0`. -/// -/// For example: -/// -/// ```python -/// # tensor `a` is [["a", "b"], ["c", "d"]] -/// tf.reduce_join(a, 0) ==> ["ac", "bd"] -/// tf.reduce_join(a, 1) ==> ["ab", "cd"] -/// tf.reduce_join(a, -2) = tf.reduce_join(a, 0) ==> ["ac", "bd"] -/// tf.reduce_join(a, -1) = tf.reduce_join(a, 1) ==> ["ab", "cd"] -/// tf.reduce_join(a, 0, keep_dims=True) ==> [["ac", "bd"]] -/// tf.reduce_join(a, 1, keep_dims=True) ==> [["ab"], ["cd"]] -/// tf.reduce_join(a, 0, separator=".") ==> ["a.c", "b.d"] -/// tf.reduce_join(a, [0, 1]) ==> "acbd" -/// tf.reduce_join(a, [1, 0]) ==> "abcd" -/// tf.reduce_join(a, []) ==> [["a", "b"], ["c", "d"]] -/// tf.reduce_join(a) = tf.reduce_join(a, [1, 0]) ==> "abcd" -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * inputs: The input to be joined. All reduced indices must have non-zero size. -/// * reduction_indices: The dimensions to reduce over. Dimensions are reduced in the -/// order specified. Omitting `reduction_indices` is equivalent to passing -/// `[n-1, n-2, ..., 0]`. Negative indices from `-n` to `-1` are supported. -/// -/// Optional attributes (see `Attrs`): -/// * keep_dims: If `True`, retain reduced dimensions with length `1`. -/// * separator: The separator to use when joining. -/// -/// Returns: -/// * `Output`: Has shape equal to that of the input with reduced dimensions removed or -/// set to `1` depending on `keep_dims`. -class ReduceJoin { - public: - /// Optional attribute setters for ReduceJoin - struct Attrs { - /// If `True`, retain reduced dimensions with length `1`. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs KeepDims(bool x) { - Attrs ret = *this; - ret.keep_dims_ = x; - return ret; - } - - /// The separator to use when joining. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Separator(StringPiece x) { - Attrs ret = *this; - ret.separator_ = x; - return ret; - } - - bool keep_dims_ = false; - StringPiece separator_ = ""; - }; - ReduceJoin(const ::tensorflow::Scope& scope, ::tensorflow::Input inputs, - ::tensorflow::Input reduction_indices); - ReduceJoin(const ::tensorflow::Scope& scope, ::tensorflow::Input inputs, - ::tensorflow::Input reduction_indices, const ReduceJoin::Attrs& - attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs KeepDims(bool x) { - return Attrs().KeepDims(x); - } - static Attrs Separator(StringPiece x) { - return Attrs().Separator(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Check if the input matches the regex pattern. -/// -/// The input is a string tensor of any shape. The pattern is a scalar -/// string tensor which is applied to every element of the input tensor. -/// The boolean values (True or False) of the output tensor indicate -/// if the input matches the regex pattern provided. -/// -/// The pattern follows the re2 syntax (https://github.com/google/re2/wiki/Syntax) -/// -/// Arguments: -/// * scope: A Scope object -/// * input: A string tensor of the text to be processed. -/// * pattern: A scalar string tensor containing the regular expression to match the input. -/// -/// Returns: -/// * `Output`: A bool tensor with the same shape as `input`. -class RegexFullMatch { - public: - RegexFullMatch(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input pattern); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Replaces the match of pattern in input with rewrite. -/// -/// It follows the re2 syntax (https://github.com/google/re2/wiki/Syntax) -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The text to be processed. -/// * pattern: The regular expression to match the input. -/// * rewrite: The rewrite to be applied to the matched expresion. -/// -/// Optional attributes (see `Attrs`): -/// * replace_global: If True, the replacement is global, otherwise the replacement -/// is done only on the first match. -/// -/// Returns: -/// * `Output`: The text after applying pattern and rewrite. -class RegexReplace { - public: - /// Optional attribute setters for RegexReplace - struct Attrs { - /// If True, the replacement is global, otherwise the replacement - /// is done only on the first match. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs ReplaceGlobal(bool x) { - Attrs ret = *this; - ret.replace_global_ = x; - return ret; - } - - bool replace_global_ = true; - }; - RegexReplace(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input pattern, ::tensorflow::Input rewrite); - RegexReplace(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input pattern, ::tensorflow::Input rewrite, const - RegexReplace::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs ReplaceGlobal(bool x) { - return Attrs().ReplaceGlobal(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Formats a string template using a list of tensors. -/// -/// Formats a string template using a list of tensors, pretty-printing tensor summaries. -/// -/// Arguments: -/// * scope: A Scope object -/// * inputs: The list of tensors to format into the placeholder string. -/// -/// Optional attributes (see `Attrs`): -/// * template_: A string, the template to format tensor summaries into. -/// * placeholder: A string, at each placeholder in the template a subsequent tensor summary will be inserted. -/// * summarize: When formatting the tensor summaries print the first and last summarize entries of each tensor dimension. -/// -/// Returns: -/// * `Output`: = The resulting string scalar. -class StringFormat { - public: - /// Optional attribute setters for StringFormat - struct Attrs { - /// A string, the template to format tensor summaries into. - /// - /// Defaults to "%s" - TF_MUST_USE_RESULT Attrs Template(StringPiece x) { - Attrs ret = *this; - ret.template_ = x; - return ret; - } - - /// A string, at each placeholder in the template a subsequent tensor summary will be inserted. - /// - /// Defaults to "%s" - TF_MUST_USE_RESULT Attrs Placeholder(StringPiece x) { - Attrs ret = *this; - ret.placeholder_ = x; - return ret; - } - - /// When formatting the tensor summaries print the first and last summarize entries of each tensor dimension. - /// - /// Defaults to 3 - TF_MUST_USE_RESULT Attrs Summarize(int64 x) { - Attrs ret = *this; - ret.summarize_ = x; - return ret; - } - - StringPiece template_ = "%s"; - StringPiece placeholder_ = "%s"; - int64 summarize_ = 3; - }; - StringFormat(const ::tensorflow::Scope& scope, ::tensorflow::InputList inputs); - StringFormat(const ::tensorflow::Scope& scope, ::tensorflow::InputList inputs, - const StringFormat::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Template(StringPiece x) { - return Attrs().Template(x); - } - static Attrs Placeholder(StringPiece x) { - return Attrs().Placeholder(x); - } - static Attrs Summarize(int64 x) { - return Attrs().Summarize(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Joins the strings in the given list of string tensors into one tensor; -/// -/// with the given separator (default is an empty separator). -/// -/// Arguments: -/// * scope: A Scope object -/// * inputs: A list of string tensors. The tensors must all have the same shape, -/// or be scalars. Scalars may be mixed in; these will be broadcast to the shape -/// of non-scalar inputs. -/// -/// Optional attributes (see `Attrs`): -/// * separator: string, an optional join separator. -/// -/// Returns: -/// * `Output`: The output tensor. -class StringJoin { - public: - /// Optional attribute setters for StringJoin - struct Attrs { - /// string, an optional join separator. - /// - /// Defaults to "" - TF_MUST_USE_RESULT Attrs Separator(StringPiece x) { - Attrs ret = *this; - ret.separator_ = x; - return ret; - } - - StringPiece separator_ = ""; - }; - StringJoin(const ::tensorflow::Scope& scope, ::tensorflow::InputList inputs); - StringJoin(const ::tensorflow::Scope& scope, ::tensorflow::InputList inputs, - const StringJoin::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Separator(StringPiece x) { - return Attrs().Separator(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// String lengths of `input`. -/// -/// Computes the length of each string given in the input tensor. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The string for which to compute the length. -/// -/// Optional attributes (see `Attrs`): -/// * unit: The unit that is counted to compute string length. One of: `"BYTE"` (for -/// the number of bytes in each string) or `"UTF8_CHAR"` (for the number of UTF-8 -/// encoded Unicode code points in each string). Results are undefined -/// if `unit=UTF8_CHAR` and the `input` strings do not contain structurally -/// valid UTF-8. -/// -/// Returns: -/// * `Output`: Integer tensor that has the same shape as `input`. The output contains the -/// element-wise string lengths of `input`. -class StringLength { - public: - /// Optional attribute setters for StringLength - struct Attrs { - /// The unit that is counted to compute string length. One of: `"BYTE"` (for - /// the number of bytes in each string) or `"UTF8_CHAR"` (for the number of UTF-8 - /// encoded Unicode code points in each string). Results are undefined - /// if `unit=UTF8_CHAR` and the `input` strings do not contain structurally - /// valid UTF-8. - /// - /// Defaults to "BYTE" - TF_MUST_USE_RESULT Attrs Unit(StringPiece x) { - Attrs ret = *this; - ret.unit_ = x; - return ret; - } - - StringPiece unit_ = "BYTE"; - }; - StringLength(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - StringLength(const ::tensorflow::Scope& scope, ::tensorflow::Input input, const - StringLength::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs Unit(StringPiece x) { - return Attrs().Unit(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Split elements of `input` based on `delimiter` into a `SparseTensor`. -/// -/// Let N be the size of source (typically N will be the batch size). Split each -/// element of `input` based on `delimiter` and return a `SparseTensor` -/// containing the splitted tokens. Empty tokens are ignored. -/// -/// `delimiter` can be empty, or a string of split characters. If `delimiter` is an -/// empty string, each element of `input` is split into individual single-byte -/// character strings, including splitting of UTF-8 multibyte sequences. Otherwise -/// every character of `delimiter` is a potential split point. -/// -/// For example: -/// N = 2, input[0] is 'hello world' and input[1] is 'a b c', then the output -/// will be -/// -/// indices = [0, 0; -/// 0, 1; -/// 1, 0; -/// 1, 1; -/// 1, 2] -/// shape = [2, 3] -/// values = ['hello', 'world', 'a', 'b', 'c'] -/// -/// Arguments: -/// * scope: A Scope object -/// * input: 1-D. Strings to split. -/// * delimiter: 0-D. Delimiter characters (bytes), or empty string. -/// -/// Optional attributes (see `Attrs`): -/// * skip_empty: A `bool`. If `True`, skip the empty strings from the result. -/// -/// Returns: -/// * `Output` indices: A dense matrix of int64 representing the indices of the sparse tensor. -/// * `Output` values: A vector of strings corresponding to the splited values. -/// * `Output` shape: a length-2 vector of int64 representing the shape of the sparse -/// tensor, where the first value is N and the second value is the maximum number -/// of tokens in a single input entry. -class StringSplit { - public: - /// Optional attribute setters for StringSplit - struct Attrs { - /// A `bool`. If `True`, skip the empty strings from the result. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs SkipEmpty(bool x) { - Attrs ret = *this; - ret.skip_empty_ = x; - return ret; - } - - bool skip_empty_ = true; - }; - StringSplit(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input delimiter); - StringSplit(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input delimiter, const StringSplit::Attrs& attrs); - - static Attrs SkipEmpty(bool x) { - return Attrs().SkipEmpty(x); - } - - Operation operation; - ::tensorflow::Output indices; - ::tensorflow::Output values; - ::tensorflow::Output shape; -}; - -/// Split elements of `source` based on `sep` into a `SparseTensor`. -/// -/// Let N be the size of source (typically N will be the batch size). Split each -/// element of `source` based on `sep` and return a `SparseTensor` -/// containing the split tokens. Empty tokens are ignored. -/// -/// For example, N = 2, source[0] is 'hello world' and source[1] is 'a b c', -/// then the output will be -/// ``` -/// st.indices = [0, 0; -/// 0, 1; -/// 1, 0; -/// 1, 1; -/// 1, 2] -/// st.shape = [2, 3] -/// st.values = ['hello', 'world', 'a', 'b', 'c'] -/// ``` -/// -/// If `sep` is given, consecutive delimiters are not grouped together and are -/// deemed to delimit empty strings. For example, source of `"1<>2<><>3"` and -/// sep of `"<>"` returns `["1", "2", "", "3"]`. If `sep` is None or an empty -/// string, consecutive whitespace are regarded as a single separator, and the -/// result will contain no empty strings at the startor end if the string has -/// leading or trailing whitespace. -/// -/// Note that the above mentioned behavior matches python's str.split. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: `1-D` string `Tensor`, the strings to split. -/// * sep: `0-D` string `Tensor`, the delimiter character. -/// -/// Optional attributes (see `Attrs`): -/// * maxsplit: An `int`. If `maxsplit > 0`, limit of the split of the result. -/// -/// Returns: -/// * `Output` indices -/// * `Output` values -/// * `Output` shape -class StringSplitV2 { - public: - /// Optional attribute setters for StringSplitV2 - struct Attrs { - /// An `int`. If `maxsplit > 0`, limit of the split of the result. - /// - /// Defaults to -1 - TF_MUST_USE_RESULT Attrs Maxsplit(int64 x) { - Attrs ret = *this; - ret.maxsplit_ = x; - return ret; - } - - int64 maxsplit_ = -1; - }; - StringSplitV2(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input sep); - StringSplitV2(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input sep, const StringSplitV2::Attrs& attrs); - - static Attrs Maxsplit(int64 x) { - return Attrs().Maxsplit(x); - } - - Operation operation; - ::tensorflow::Output indices; - ::tensorflow::Output values; - ::tensorflow::Output shape; -}; - -/// Strip leading and trailing whitespaces from the Tensor. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: A string `Tensor` of any shape. -/// -/// Returns: -/// * `Output`: A string `Tensor` of the same shape as the input. -class StringStrip { - public: - StringStrip(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Converts each string in the input Tensor to its hash mod by a number of buckets. -/// -/// The hash function is deterministic on the content of the string within the -/// process. -/// -/// Note that the hash function may change from time to time. -/// This functionality will be deprecated and it's recommended to use -/// `tf.string_to_hash_bucket_fast()` or `tf.string_to_hash_bucket_strong()`. -/// -/// Arguments: -/// * scope: A Scope object -/// * num_buckets: The number of buckets. -/// -/// Returns: -/// * `Output`: A Tensor of the same shape as the input `string_tensor`. -class StringToHashBucket { - public: - StringToHashBucket(const ::tensorflow::Scope& scope, ::tensorflow::Input - string_tensor, int64 num_buckets); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Converts each string in the input Tensor to its hash mod by a number of buckets. -/// -/// The hash function is deterministic on the content of the string within the -/// process and will never change. However, it is not suitable for cryptography. -/// This function may be used when CPU time is scarce and inputs are trusted or -/// unimportant. There is a risk of adversaries constructing inputs that all hash -/// to the same bucket. To prevent this problem, use a strong hash function with -/// `tf.string_to_hash_bucket_strong`. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The strings to assign a hash bucket. -/// * num_buckets: The number of buckets. -/// -/// Returns: -/// * `Output`: A Tensor of the same shape as the input `string_tensor`. -class StringToHashBucketFast { - public: - StringToHashBucketFast(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, int64 num_buckets); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Converts each string in the input Tensor to its hash mod by a number of buckets. -/// -/// The hash function is deterministic on the content of the string within the -/// process. The hash function is a keyed hash function, where attribute `key` -/// defines the key of the hash function. `key` is an array of 2 elements. -/// -/// A strong hash is important when inputs may be malicious, e.g. URLs with -/// additional components. Adversaries could try to make their inputs hash to the -/// same bucket for a denial-of-service attack or to skew the results. A strong -/// hash prevents this by making it difficult, if not infeasible, to compute inputs -/// that hash to the same bucket. This comes at a cost of roughly 4x higher compute -/// time than `tf.string_to_hash_bucket_fast`. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The strings to assign a hash bucket. -/// * num_buckets: The number of buckets. -/// * key: The key for the keyed hash function passed as a list of two uint64 -/// elements. -/// -/// Returns: -/// * `Output`: A Tensor of the same shape as the input `string_tensor`. -class StringToHashBucketStrong { - public: - StringToHashBucketStrong(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, int64 num_buckets, const gtl::ArraySlice& - key); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Return substrings from `Tensor` of strings. -/// -/// For each string in the input `Tensor`, creates a substring starting at index -/// `pos` with a total length of `len`. -/// -/// If `len` defines a substring that would extend beyond the length of the input -/// string, then as many characters as possible are used. -/// -/// A negative `pos` indicates distance within the string backwards from the end. -/// -/// If `pos` specifies an index which is out of range for any of the input strings, -/// then an `InvalidArgumentError` is thrown. -/// -/// `pos` and `len` must have the same shape, otherwise a `ValueError` is thrown on -/// Op creation. -/// -/// *NOTE*: `Substr` supports broadcasting up to two dimensions. More about -/// broadcasting -/// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html) -/// -/// --- -/// -/// Examples -/// -/// Using scalar `pos` and `len`: -/// -/// ```python -/// input = [b'Hello', b'World'] -/// position = 1 -/// length = 3 -/// -/// output = [b'ell', b'orl'] -/// ``` -/// -/// Using `pos` and `len` with same shape as `input`: -/// -/// ```python -/// input = [[b'ten', b'eleven', b'twelve'], -/// [b'thirteen', b'fourteen', b'fifteen'], -/// [b'sixteen', b'seventeen', b'eighteen']] -/// position = [[1, 2, 3], -/// [1, 2, 3], -/// [1, 2, 3]] -/// length = [[2, 3, 4], -/// [4, 3, 2], -/// [5, 5, 5]] -/// -/// output = [[b'en', b'eve', b'lve'], -/// [b'hirt', b'urt', b'te'], -/// [b'ixtee', b'vente', b'hteen']] -/// ``` -/// -/// Broadcasting `pos` and `len` onto `input`: -/// -/// ``` -/// input = [[b'ten', b'eleven', b'twelve'], -/// [b'thirteen', b'fourteen', b'fifteen'], -/// [b'sixteen', b'seventeen', b'eighteen'], -/// [b'nineteen', b'twenty', b'twentyone']] -/// position = [1, 2, 3] -/// length = [1, 2, 3] -/// -/// output = [[b'e', b'ev', b'lve'], -/// [b'h', b'ur', b'tee'], -/// [b'i', b've', b'hte'], -/// [b'i', b'en', b'nty']] -/// ``` -/// -/// Broadcasting `input` onto `pos` and `len`: -/// -/// ``` -/// input = b'thirteen' -/// position = [1, 5, 7] -/// length = [3, 2, 1] -/// -/// output = [b'hir', b'ee', b'n'] -/// ``` -/// -/// Arguments: -/// * scope: A Scope object -/// * input: Tensor of strings -/// * pos: Scalar defining the position of first character in each substring -/// * len: Scalar defining the number of characters to include in each substring -/// -/// Returns: -/// * `Output`: Tensor of substrings -class Substr { - public: - Substr(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - ::tensorflow::Input pos, ::tensorflow::Input len); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Determine the script codes of a given tensor of Unicode integer code points. -/// -/// This operation converts Unicode code points to script codes corresponding to -/// each code point. Script codes correspond to International Components for -/// Unicode (ICU) UScriptCode values. See http://icu-project.org/apiref/icu4c/uscript_8h.html. -/// Returns -1 (USCRIPT_INVALID_CODE) for invalid codepoints. Output shape will -/// match input shape. -/// -/// Arguments: -/// * scope: A Scope object -/// * input: A Tensor of int32 Unicode code points. -/// -/// Returns: -/// * `Output`: A Tensor of int32 script codes corresponding to each input code point. -class UnicodeScript { - public: - UnicodeScript(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_STRING_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/string_ops_internal.h b/linux/include/tensorflow/cc/ops/string_ops_internal.h deleted file mode 100755 index aa3341db7..000000000 --- a/linux/include/tensorflow/cc/ops/string_ops_internal.h +++ /dev/null @@ -1,105 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_STRING_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_STRING_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup string_ops_internal String Ops Internal -/// @{ - -/// Check if the input matches the regex pattern. -/// -/// The input is a string tensor of any shape. The pattern is the -/// regular expression to be matched with every element of the input tensor. -/// The boolean values (True or False) of the output tensor indicate -/// if the input matches the regex pattern provided. -/// -/// The pattern follows the re2 syntax (https://github.com/google/re2/wiki/Syntax) -/// -/// Arguments: -/// * scope: A Scope object -/// * input: A string tensor of the text to be processed. -/// * pattern: The regular expression to match the input. -/// -/// Returns: -/// * `Output`: A bool tensor with the same shape as `input`. -class StaticRegexFullMatch { - public: - StaticRegexFullMatch(const ::tensorflow::Scope& scope, ::tensorflow::Input - input, StringPiece pattern); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - Operation operation; - ::tensorflow::Output output; -}; - -/// Replaces the match of pattern in input with rewrite. -/// -/// It follows the re2 syntax (https://github.com/google/re2/wiki/Syntax) -/// -/// Arguments: -/// * scope: A Scope object -/// * input: The text to be processed. -/// * pattern: The regular expression to match the input. -/// * rewrite: The rewrite to be applied to the matched expresion. -/// -/// Optional attributes (see `Attrs`): -/// * replace_global: If True, the replacement is global, otherwise the replacement -/// is done only on the first match. -/// -/// Returns: -/// * `Output`: The text after applying pattern and rewrite. -class StaticRegexReplace { - public: - /// Optional attribute setters for StaticRegexReplace - struct Attrs { - /// If True, the replacement is global, otherwise the replacement - /// is done only on the first match. - /// - /// Defaults to true - TF_MUST_USE_RESULT Attrs ReplaceGlobal(bool x) { - Attrs ret = *this; - ret.replace_global_ = x; - return ret; - } - - bool replace_global_ = true; - }; - StaticRegexReplace(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - StringPiece pattern, StringPiece rewrite); - StaticRegexReplace(const ::tensorflow::Scope& scope, ::tensorflow::Input input, - StringPiece pattern, StringPiece rewrite, const - StaticRegexReplace::Attrs& attrs); - operator ::tensorflow::Output() const { return output; } - operator ::tensorflow::Input() const { return output; } - ::tensorflow::Node* node() const { return output.node(); } - - static Attrs ReplaceGlobal(bool x) { - return Attrs().ReplaceGlobal(x); - } - - Operation operation; - ::tensorflow::Output output; -}; - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_STRING_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/training_ops.h b/linux/include/tensorflow/cc/ops/training_ops.h deleted file mode 100755 index a8ebb385d..000000000 --- a/linux/include/tensorflow/cc/ops/training_ops.h +++ /dev/null @@ -1,3177 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_TRAINING_OPS_H_ -#define TENSORFLOW_CC_OPS_TRAINING_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup training_ops Training Ops -/// @{ - -/// Update '*var' according to the adadelta scheme. -/// -/// accum = rho() * accum + (1 - rho()) * grad.square(); -/// update = (update_accum + epsilon).sqrt() * (accum + epsilon()).rsqrt() * grad; -/// update_accum = rho() * update_accum + (1 - rho()) * update.square(); -/// var -= update; -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * accum_update: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * rho: Decay factor. Must be a scalar. -/// * epsilon: Constant factor. Must be a scalar. -/// * grad: The gradient. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, updating of the var, accum and update_accum tensors will be protected by -/// a lock; otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class ApplyAdadelta { - public: - /// Optional attribute setters for ApplyAdadelta - struct Attrs { - /// If True, updating of the var, accum and update_accum tensors will be protected by - /// a lock; otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ApplyAdadelta(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input accum_update, - ::tensorflow::Input lr, ::tensorflow::Input rho, - ::tensorflow::Input epsilon, ::tensorflow::Input grad); - ApplyAdadelta(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input accum_update, - ::tensorflow::Input lr, ::tensorflow::Input rho, - ::tensorflow::Input epsilon, ::tensorflow::Input grad, const - ApplyAdadelta::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update '*var' according to the adagrad scheme. -/// -/// accum += grad * grad -/// var -= lr * grad * (1 / sqrt(accum)) -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * grad: The gradient. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and accum tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class ApplyAdagrad { - public: - /// Optional attribute setters for ApplyAdagrad - struct Attrs { - /// If `True`, updating of the var and accum tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - /// Defaults to true - TF_MUST_USE_RESULT Attrs UpdateSlots(bool x) { - Attrs ret = *this; - ret.update_slots_ = x; - return ret; - } - - bool use_locking_ = false; - bool update_slots_ = true; - }; - ApplyAdagrad(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input lr, - ::tensorflow::Input grad); - ApplyAdagrad(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input lr, - ::tensorflow::Input grad, const ApplyAdagrad::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - static Attrs UpdateSlots(bool x) { - return Attrs().UpdateSlots(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update '*var' according to the proximal adagrad scheme. -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * gradient_accumulator: Should be from a Variable(). -/// * gradient_squared_accumulator: Should be from a Variable(). -/// * grad: The gradient. -/// * lr: Scaling factor. Must be a scalar. -/// * l1: L1 regularization. Must be a scalar. -/// * l2: L2 regularization. Must be a scalar. -/// * global_step: Training step number. Must be a scalar. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, updating of the var and accum tensors will be protected by -/// a lock; otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class ApplyAdagradDA { - public: - /// Optional attribute setters for ApplyAdagradDA - struct Attrs { - /// If True, updating of the var and accum tensors will be protected by - /// a lock; otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ApplyAdagradDA(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input gradient_accumulator, ::tensorflow::Input - gradient_squared_accumulator, ::tensorflow::Input grad, - ::tensorflow::Input lr, ::tensorflow::Input l1, - ::tensorflow::Input l2, ::tensorflow::Input global_step); - ApplyAdagradDA(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input gradient_accumulator, ::tensorflow::Input - gradient_squared_accumulator, ::tensorflow::Input grad, - ::tensorflow::Input lr, ::tensorflow::Input l1, - ::tensorflow::Input l2, ::tensorflow::Input global_step, const - ApplyAdagradDA::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update '*var' according to the Adam algorithm. -/// -/// $$lr_t := \text{learning\_rate} * \sqrt{1 - beta_2^t} / (1 - beta_1^t)$$ -/// $$m_t := beta_1 * m_{t-1} + (1 - beta_1) * g$$ -/// $$v_t := beta_2 * v_{t-1} + (1 - beta_2) * g * g$$ -/// $$variable := variable - lr_t * m_t / (\sqrt{v_t} + \epsilon)$$ -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * m: Should be from a Variable(). -/// * v: Should be from a Variable(). -/// * beta1_power: Must be a scalar. -/// * beta2_power: Must be a scalar. -/// * lr: Scaling factor. Must be a scalar. -/// * beta1: Momentum factor. Must be a scalar. -/// * beta2: Momentum factor. Must be a scalar. -/// * epsilon: Ridge term. Must be a scalar. -/// * grad: The gradient. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var, m, and v tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// * use_nesterov: If `True`, uses the nesterov update. -/// -/// Returns: -/// * `Output`: Same as "var". -class ApplyAdam { - public: - /// Optional attribute setters for ApplyAdam - struct Attrs { - /// If `True`, updating of the var, m, and v tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - /// If `True`, uses the nesterov update. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseNesterov(bool x) { - Attrs ret = *this; - ret.use_nesterov_ = x; - return ret; - } - - bool use_locking_ = false; - bool use_nesterov_ = false; - }; - ApplyAdam(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input m, ::tensorflow::Input v, ::tensorflow::Input - beta1_power, ::tensorflow::Input beta2_power, ::tensorflow::Input lr, - ::tensorflow::Input beta1, ::tensorflow::Input beta2, - ::tensorflow::Input epsilon, ::tensorflow::Input grad); - ApplyAdam(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input m, ::tensorflow::Input v, ::tensorflow::Input - beta1_power, ::tensorflow::Input beta2_power, ::tensorflow::Input lr, - ::tensorflow::Input beta1, ::tensorflow::Input beta2, - ::tensorflow::Input epsilon, ::tensorflow::Input grad, const - ApplyAdam::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - static Attrs UseNesterov(bool x) { - return Attrs().UseNesterov(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update '*var' according to the AddSign update. -/// -/// m_t <- beta1 * m_{t-1} + (1 - beta1) * g -/// update <- (alpha + sign_decay * sign(g) *sign(m)) * g -/// variable <- variable - lr_t * update -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * m: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * alpha: Must be a scalar. -/// * sign_decay: Must be a scalar. -/// * beta: Must be a scalar. -/// * grad: The gradient. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and m tensors is -/// protected by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class ApplyAddSign { - public: - /// Optional attribute setters for ApplyAddSign - struct Attrs { - /// If `True`, updating of the var and m tensors is - /// protected by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ApplyAddSign(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input - alpha, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, - ::tensorflow::Input grad); - ApplyAddSign(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input m, ::tensorflow::Input lr, ::tensorflow::Input - alpha, ::tensorflow::Input sign_decay, ::tensorflow::Input beta, - ::tensorflow::Input grad, const ApplyAddSign::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update '*var' according to the centered RMSProp algorithm. -/// -/// The centered RMSProp algorithm uses an estimate of the centered second moment -/// (i.e., the variance) for normalization, as opposed to regular RMSProp, which -/// uses the (uncentered) second moment. This often helps with training, but is -/// slightly more expensive in terms of computation and memory. -/// -/// Note that in dense implementation of this algorithm, mg, ms, and mom will -/// update even if the grad is zero, but in this sparse implementation, mg, ms, -/// and mom will not update in iterations during which the grad is zero. -/// -/// mean_square = decay * mean_square + (1-decay) * gradient ** 2 -/// mean_grad = decay * mean_grad + (1-decay) * gradient -/// -/// Delta = learning_rate * gradient / sqrt(mean_square + epsilon - mean_grad ** 2) -/// -/// mg <- rho * mg_{t-1} + (1-rho) * grad -/// ms <- rho * ms_{t-1} + (1-rho) * grad * grad -/// mom <- momentum * mom_{t-1} + lr * grad / sqrt(ms - mg * mg + epsilon) -/// var <- var - mom -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * mg: Should be from a Variable(). -/// * ms: Should be from a Variable(). -/// * mom: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * rho: Decay rate. Must be a scalar. -/// * epsilon: Ridge term. Must be a scalar. -/// * grad: The gradient. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var, mg, ms, and mom tensors is -/// protected by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class ApplyCenteredRMSProp { - public: - /// Optional attribute setters for ApplyCenteredRMSProp - struct Attrs { - /// If `True`, updating of the var, mg, ms, and mom tensors is - /// protected by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ApplyCenteredRMSProp(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input mg, ::tensorflow::Input ms, - ::tensorflow::Input mom, ::tensorflow::Input lr, - ::tensorflow::Input rho, ::tensorflow::Input momentum, - ::tensorflow::Input epsilon, ::tensorflow::Input grad); - ApplyCenteredRMSProp(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input mg, ::tensorflow::Input ms, - ::tensorflow::Input mom, ::tensorflow::Input lr, - ::tensorflow::Input rho, ::tensorflow::Input momentum, - ::tensorflow::Input epsilon, ::tensorflow::Input grad, - const ApplyCenteredRMSProp::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update '*var' according to the Ftrl-proximal scheme. -/// -/// accum_new = accum + grad * grad -/// linear += grad + (accum_new^(-lr_power) - accum^(-lr_power)) / lr * var -/// quadratic = 1.0 / (accum_new^(lr_power) * lr) + 2 * l2 -/// var = (sign(linear) * l1 - linear) / quadratic if |linear| > l1 else 0.0 -/// accum = accum_new -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * linear: Should be from a Variable(). -/// * grad: The gradient. -/// * lr: Scaling factor. Must be a scalar. -/// * l1: L1 regulariation. Must be a scalar. -/// * l2: L2 regulariation. Must be a scalar. -/// * lr_power: Scaling factor. Must be a scalar. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and accum tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class ApplyFtrl { - public: - /// Optional attribute setters for ApplyFtrl - struct Attrs { - /// If `True`, updating of the var and accum tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ApplyFtrl(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input linear, - ::tensorflow::Input grad, ::tensorflow::Input lr, ::tensorflow::Input - l1, ::tensorflow::Input l2, ::tensorflow::Input lr_power); - ApplyFtrl(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input linear, - ::tensorflow::Input grad, ::tensorflow::Input lr, ::tensorflow::Input - l1, ::tensorflow::Input l2, ::tensorflow::Input lr_power, const - ApplyFtrl::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update '*var' according to the Ftrl-proximal scheme. -/// -/// grad_with_shrinkage = grad + 2 * l2_shrinkage * var -/// accum_new = accum + grad_with_shrinkage * grad_with_shrinkage -/// linear += grad_with_shrinkage + -/// (accum_new^(-lr_power) - accum^(-lr_power)) / lr * var -/// quadratic = 1.0 / (accum_new^(lr_power) * lr) + 2 * l2 -/// var = (sign(linear) * l1 - linear) / quadratic if |linear| > l1 else 0.0 -/// accum = accum_new -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * linear: Should be from a Variable(). -/// * grad: The gradient. -/// * lr: Scaling factor. Must be a scalar. -/// * l1: L1 regulariation. Must be a scalar. -/// * l2: L2 shrinkage regulariation. Must be a scalar. -/// * lr_power: Scaling factor. Must be a scalar. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and accum tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class ApplyFtrlV2 { - public: - /// Optional attribute setters for ApplyFtrlV2 - struct Attrs { - /// If `True`, updating of the var and accum tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ApplyFtrlV2(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input linear, - ::tensorflow::Input grad, ::tensorflow::Input lr, - ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input - l2_shrinkage, ::tensorflow::Input lr_power); - ApplyFtrlV2(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input linear, - ::tensorflow::Input grad, ::tensorflow::Input lr, - ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input - l2_shrinkage, ::tensorflow::Input lr_power, const - ApplyFtrlV2::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update '*var' by subtracting 'alpha' * 'delta' from it. -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * alpha: Scaling factor. Must be a scalar. -/// * delta: The change. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, the subtraction will be protected by a lock; -/// otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class ApplyGradientDescent { - public: - /// Optional attribute setters for ApplyGradientDescent - struct Attrs { - /// If `True`, the subtraction will be protected by a lock; - /// otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ApplyGradientDescent(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input alpha, ::tensorflow::Input delta); - ApplyGradientDescent(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input alpha, ::tensorflow::Input delta, - const ApplyGradientDescent::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update '*var' according to the momentum scheme. Set use_nesterov = True if you -/// -/// want to use Nesterov momentum. -/// -/// accum = accum * momentum + grad -/// var -= lr * accum -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * grad: The gradient. -/// * momentum: Momentum. Must be a scalar. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and accum tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// * use_nesterov: If `True`, the tensor passed to compute grad will be -/// var - lr * momentum * accum, so in the end, the var you get is actually -/// var - lr * momentum * accum. -/// -/// Returns: -/// * `Output`: Same as "var". -class ApplyMomentum { - public: - /// Optional attribute setters for ApplyMomentum - struct Attrs { - /// If `True`, updating of the var and accum tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - /// If `True`, the tensor passed to compute grad will be - /// var - lr * momentum * accum, so in the end, the var you get is actually - /// var - lr * momentum * accum. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseNesterov(bool x) { - Attrs ret = *this; - ret.use_nesterov_ = x; - return ret; - } - - bool use_locking_ = false; - bool use_nesterov_ = false; - }; - ApplyMomentum(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input lr, - ::tensorflow::Input grad, ::tensorflow::Input momentum); - ApplyMomentum(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input lr, - ::tensorflow::Input grad, ::tensorflow::Input momentum, const - ApplyMomentum::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - static Attrs UseNesterov(bool x) { - return Attrs().UseNesterov(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update '*var' according to the AddSign update. -/// -/// m_t <- beta1 * m_{t-1} + (1 - beta1) * g -/// update <- exp(logbase * sign_decay * sign(g) * sign(m_t)) * g -/// variable <- variable - lr_t * update -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * m: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * logbase: Must be a scalar. -/// * sign_decay: Must be a scalar. -/// * beta: Must be a scalar. -/// * grad: The gradient. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and m tensors is -/// protected by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class ApplyPowerSign { - public: - /// Optional attribute setters for ApplyPowerSign - struct Attrs { - /// If `True`, updating of the var and m tensors is - /// protected by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ApplyPowerSign(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input m, ::tensorflow::Input lr, - ::tensorflow::Input logbase, ::tensorflow::Input sign_decay, - ::tensorflow::Input beta, ::tensorflow::Input grad); - ApplyPowerSign(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input m, ::tensorflow::Input lr, - ::tensorflow::Input logbase, ::tensorflow::Input sign_decay, - ::tensorflow::Input beta, ::tensorflow::Input grad, const - ApplyPowerSign::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update '*var' and '*accum' according to FOBOS with Adagrad learning rate. -/// -/// accum += grad * grad -/// prox_v = var - lr * grad * (1 / sqrt(accum)) -/// var = sign(prox_v)/(1+lr*l2) * max{|prox_v|-lr*l1,0} -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * l1: L1 regularization. Must be a scalar. -/// * l2: L2 regularization. Must be a scalar. -/// * grad: The gradient. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, updating of the var and accum tensors will be protected by -/// a lock; otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class ApplyProximalAdagrad { - public: - /// Optional attribute setters for ApplyProximalAdagrad - struct Attrs { - /// If True, updating of the var and accum tensors will be protected by - /// a lock; otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ApplyProximalAdagrad(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input lr, - ::tensorflow::Input l1, ::tensorflow::Input l2, - ::tensorflow::Input grad); - ApplyProximalAdagrad(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input lr, - ::tensorflow::Input l1, ::tensorflow::Input l2, - ::tensorflow::Input grad, const - ApplyProximalAdagrad::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update '*var' as FOBOS algorithm with fixed learning rate. -/// -/// prox_v = var - alpha * delta -/// var = sign(prox_v)/(1+alpha*l2) * max{|prox_v|-alpha*l1,0} -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * alpha: Scaling factor. Must be a scalar. -/// * l1: L1 regularization. Must be a scalar. -/// * l2: L2 regularization. Must be a scalar. -/// * delta: The change. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, the subtraction will be protected by a lock; -/// otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class ApplyProximalGradientDescent { - public: - /// Optional attribute setters for ApplyProximalGradientDescent - struct Attrs { - /// If True, the subtraction will be protected by a lock; - /// otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ApplyProximalGradientDescent(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input - alpha, ::tensorflow::Input l1, ::tensorflow::Input - l2, ::tensorflow::Input delta); - ApplyProximalGradientDescent(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input - alpha, ::tensorflow::Input l1, ::tensorflow::Input - l2, ::tensorflow::Input delta, const - ApplyProximalGradientDescent::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update '*var' according to the RMSProp algorithm. -/// -/// Note that in dense implementation of this algorithm, ms and mom will -/// update even if the grad is zero, but in this sparse implementation, ms -/// and mom will not update in iterations during which the grad is zero. -/// -/// mean_square = decay * mean_square + (1-decay) * gradient ** 2 -/// Delta = learning_rate * gradient / sqrt(mean_square + epsilon) -/// -/// ms <- rho * ms_{t-1} + (1-rho) * grad * grad -/// mom <- momentum * mom_{t-1} + lr * grad / sqrt(ms + epsilon) -/// var <- var - mom -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * ms: Should be from a Variable(). -/// * mom: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * rho: Decay rate. Must be a scalar. -/// * epsilon: Ridge term. Must be a scalar. -/// * grad: The gradient. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var, ms, and mom tensors is protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class ApplyRMSProp { - public: - /// Optional attribute setters for ApplyRMSProp - struct Attrs { - /// If `True`, updating of the var, ms, and mom tensors is protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ApplyRMSProp(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input ms, ::tensorflow::Input mom, - ::tensorflow::Input lr, ::tensorflow::Input rho, - ::tensorflow::Input momentum, ::tensorflow::Input epsilon, - ::tensorflow::Input grad); - ApplyRMSProp(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input ms, ::tensorflow::Input mom, - ::tensorflow::Input lr, ::tensorflow::Input rho, - ::tensorflow::Input momentum, ::tensorflow::Input epsilon, - ::tensorflow::Input grad, const ApplyRMSProp::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update '*var' according to the adadelta scheme. -/// -/// accum = rho() * accum + (1 - rho()) * grad.square(); -/// update = (update_accum + epsilon).sqrt() * (accum + epsilon()).rsqrt() * grad; -/// update_accum = rho() * update_accum + (1 - rho()) * update.square(); -/// var -= update; -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * accum_update: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * rho: Decay factor. Must be a scalar. -/// * epsilon: Constant factor. Must be a scalar. -/// * grad: The gradient. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, updating of the var, accum and update_accum tensors will be protected by -/// a lock; otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceApplyAdadelta { - public: - /// Optional attribute setters for ResourceApplyAdadelta - struct Attrs { - /// If True, updating of the var, accum and update_accum tensors will be protected by - /// a lock; otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceApplyAdadelta(const ::tensorflow::Scope& scope, ::tensorflow::Input - var, ::tensorflow::Input accum, ::tensorflow::Input - accum_update, ::tensorflow::Input lr, ::tensorflow::Input - rho, ::tensorflow::Input epsilon, ::tensorflow::Input - grad); - ResourceApplyAdadelta(const ::tensorflow::Scope& scope, ::tensorflow::Input - var, ::tensorflow::Input accum, ::tensorflow::Input - accum_update, ::tensorflow::Input lr, ::tensorflow::Input - rho, ::tensorflow::Input epsilon, ::tensorflow::Input - grad, const ResourceApplyAdadelta::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Update '*var' according to the adagrad scheme. -/// -/// accum += grad * grad -/// var -= lr * grad * (1 / sqrt(accum)) -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * grad: The gradient. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and accum tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceApplyAdagrad { - public: - /// Optional attribute setters for ResourceApplyAdagrad - struct Attrs { - /// If `True`, updating of the var and accum tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - /// Defaults to true - TF_MUST_USE_RESULT Attrs UpdateSlots(bool x) { - Attrs ret = *this; - ret.update_slots_ = x; - return ret; - } - - bool use_locking_ = false; - bool update_slots_ = true; - }; - ResourceApplyAdagrad(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input lr, - ::tensorflow::Input grad); - ResourceApplyAdagrad(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input lr, - ::tensorflow::Input grad, const - ResourceApplyAdagrad::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - static Attrs UpdateSlots(bool x) { - return Attrs().UpdateSlots(x); - } - - Operation operation; -}; - -/// Update '*var' according to the proximal adagrad scheme. -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * gradient_accumulator: Should be from a Variable(). -/// * gradient_squared_accumulator: Should be from a Variable(). -/// * grad: The gradient. -/// * lr: Scaling factor. Must be a scalar. -/// * l1: L1 regularization. Must be a scalar. -/// * l2: L2 regularization. Must be a scalar. -/// * global_step: Training step number. Must be a scalar. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, updating of the var and accum tensors will be protected by -/// a lock; otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceApplyAdagradDA { - public: - /// Optional attribute setters for ResourceApplyAdagradDA - struct Attrs { - /// If True, updating of the var and accum tensors will be protected by - /// a lock; otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceApplyAdagradDA(const ::tensorflow::Scope& scope, ::tensorflow::Input - var, ::tensorflow::Input gradient_accumulator, - ::tensorflow::Input gradient_squared_accumulator, - ::tensorflow::Input grad, ::tensorflow::Input lr, - ::tensorflow::Input l1, ::tensorflow::Input l2, - ::tensorflow::Input global_step); - ResourceApplyAdagradDA(const ::tensorflow::Scope& scope, ::tensorflow::Input - var, ::tensorflow::Input gradient_accumulator, - ::tensorflow::Input gradient_squared_accumulator, - ::tensorflow::Input grad, ::tensorflow::Input lr, - ::tensorflow::Input l1, ::tensorflow::Input l2, - ::tensorflow::Input global_step, const - ResourceApplyAdagradDA::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Update '*var' according to the Adam algorithm. -/// -/// $$lr_t := \text{learning\_rate} * \sqrt{1 - beta_2^t} / (1 - beta_1^t)$$ -/// $$m_t := beta_1 * m_{t-1} + (1 - beta_1) * g$$ -/// $$v_t := beta_2 * v_{t-1} + (1 - beta_2) * g * g$$ -/// $$variable := variable - lr_t * m_t / (\sqrt{v_t} + \epsilon)$$ -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * m: Should be from a Variable(). -/// * v: Should be from a Variable(). -/// * beta1_power: Must be a scalar. -/// * beta2_power: Must be a scalar. -/// * lr: Scaling factor. Must be a scalar. -/// * beta1: Momentum factor. Must be a scalar. -/// * beta2: Momentum factor. Must be a scalar. -/// * epsilon: Ridge term. Must be a scalar. -/// * grad: The gradient. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var, m, and v tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// * use_nesterov: If `True`, uses the nesterov update. -/// -/// Returns: -/// * the created `Operation` -class ResourceApplyAdam { - public: - /// Optional attribute setters for ResourceApplyAdam - struct Attrs { - /// If `True`, updating of the var, m, and v tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - /// If `True`, uses the nesterov update. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseNesterov(bool x) { - Attrs ret = *this; - ret.use_nesterov_ = x; - return ret; - } - - bool use_locking_ = false; - bool use_nesterov_ = false; - }; - ResourceApplyAdam(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input m, ::tensorflow::Input v, - ::tensorflow::Input beta1_power, ::tensorflow::Input - beta2_power, ::tensorflow::Input lr, ::tensorflow::Input - beta1, ::tensorflow::Input beta2, ::tensorflow::Input - epsilon, ::tensorflow::Input grad); - ResourceApplyAdam(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input m, ::tensorflow::Input v, - ::tensorflow::Input beta1_power, ::tensorflow::Input - beta2_power, ::tensorflow::Input lr, ::tensorflow::Input - beta1, ::tensorflow::Input beta2, ::tensorflow::Input - epsilon, ::tensorflow::Input grad, const - ResourceApplyAdam::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - static Attrs UseNesterov(bool x) { - return Attrs().UseNesterov(x); - } - - Operation operation; -}; - -/// Update '*var' according to the AddSign update. -/// -/// m_t <- beta1 * m_{t-1} + (1 - beta1) * g -/// update <- (alpha + sign_decay * sign(g) *sign(m)) * g -/// variable <- variable - lr_t * update -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * m: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * alpha: Must be a scalar. -/// * sign_decay: Must be a scalar. -/// * beta: Must be a scalar. -/// * grad: The gradient. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and m tensors is -/// protected by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceApplyAddSign { - public: - /// Optional attribute setters for ResourceApplyAddSign - struct Attrs { - /// If `True`, updating of the var and m tensors is - /// protected by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceApplyAddSign(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input m, ::tensorflow::Input lr, - ::tensorflow::Input alpha, ::tensorflow::Input sign_decay, - ::tensorflow::Input beta, ::tensorflow::Input grad); - ResourceApplyAddSign(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input m, ::tensorflow::Input lr, - ::tensorflow::Input alpha, ::tensorflow::Input sign_decay, - ::tensorflow::Input beta, ::tensorflow::Input grad, const - ResourceApplyAddSign::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Update '*var' according to the centered RMSProp algorithm. -/// -/// The centered RMSProp algorithm uses an estimate of the centered second moment -/// (i.e., the variance) for normalization, as opposed to regular RMSProp, which -/// uses the (uncentered) second moment. This often helps with training, but is -/// slightly more expensive in terms of computation and memory. -/// -/// Note that in dense implementation of this algorithm, mg, ms, and mom will -/// update even if the grad is zero, but in this sparse implementation, mg, ms, -/// and mom will not update in iterations during which the grad is zero. -/// -/// mean_square = decay * mean_square + (1-decay) * gradient ** 2 -/// mean_grad = decay * mean_grad + (1-decay) * gradient -/// -/// Delta = learning_rate * gradient / sqrt(mean_square + epsilon - mean_grad ** 2) -/// -/// mg <- rho * mg_{t-1} + (1-rho) * grad -/// ms <- rho * ms_{t-1} + (1-rho) * grad * grad -/// mom <- momentum * mom_{t-1} + lr * grad / sqrt(ms - mg * mg + epsilon) -/// var <- var - mom -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * mg: Should be from a Variable(). -/// * ms: Should be from a Variable(). -/// * mom: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * rho: Decay rate. Must be a scalar. -/// * epsilon: Ridge term. Must be a scalar. -/// * grad: The gradient. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var, mg, ms, and mom tensors is -/// protected by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceApplyCenteredRMSProp { - public: - /// Optional attribute setters for ResourceApplyCenteredRMSProp - struct Attrs { - /// If `True`, updating of the var, mg, ms, and mom tensors is - /// protected by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceApplyCenteredRMSProp(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input mg, - ::tensorflow::Input ms, ::tensorflow::Input mom, - ::tensorflow::Input lr, ::tensorflow::Input rho, - ::tensorflow::Input momentum, ::tensorflow::Input - epsilon, ::tensorflow::Input grad); - ResourceApplyCenteredRMSProp(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input mg, - ::tensorflow::Input ms, ::tensorflow::Input mom, - ::tensorflow::Input lr, ::tensorflow::Input rho, - ::tensorflow::Input momentum, ::tensorflow::Input - epsilon, ::tensorflow::Input grad, const - ResourceApplyCenteredRMSProp::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Update '*var' according to the Ftrl-proximal scheme. -/// -/// accum_new = accum + grad * grad -/// linear += grad - (accum_new^(-lr_power) - accum^(-lr_power)) / lr * var -/// quadratic = 1.0 / (accum_new^(lr_power) * lr) + 2 * l2 -/// var = (sign(linear) * l1 - linear) / quadratic if |linear| > l1 else 0.0 -/// accum = accum_new -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * linear: Should be from a Variable(). -/// * grad: The gradient. -/// * lr: Scaling factor. Must be a scalar. -/// * l1: L1 regulariation. Must be a scalar. -/// * l2: L2 regulariation. Must be a scalar. -/// * lr_power: Scaling factor. Must be a scalar. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and accum tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceApplyFtrl { - public: - /// Optional attribute setters for ResourceApplyFtrl - struct Attrs { - /// If `True`, updating of the var and accum tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceApplyFtrl(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input linear, - ::tensorflow::Input grad, ::tensorflow::Input lr, - ::tensorflow::Input l1, ::tensorflow::Input l2, - ::tensorflow::Input lr_power); - ResourceApplyFtrl(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input linear, - ::tensorflow::Input grad, ::tensorflow::Input lr, - ::tensorflow::Input l1, ::tensorflow::Input l2, - ::tensorflow::Input lr_power, const ResourceApplyFtrl::Attrs& - attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Update '*var' according to the Ftrl-proximal scheme. -/// -/// grad_with_shrinkage = grad + 2 * l2_shrinkage * var -/// accum_new = accum + grad_with_shrinkage * grad_with_shrinkage -/// linear += grad_with_shrinkage + -/// (accum_new^(-lr_power) - accum^(-lr_power)) / lr * var -/// quadratic = 1.0 / (accum_new^(lr_power) * lr) + 2 * l2 -/// var = (sign(linear) * l1 - linear) / quadratic if |linear| > l1 else 0.0 -/// accum = accum_new -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * linear: Should be from a Variable(). -/// * grad: The gradient. -/// * lr: Scaling factor. Must be a scalar. -/// * l1: L1 regulariation. Must be a scalar. -/// * l2: L2 shrinkage regulariation. Must be a scalar. -/// * lr_power: Scaling factor. Must be a scalar. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and accum tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceApplyFtrlV2 { - public: - /// Optional attribute setters for ResourceApplyFtrlV2 - struct Attrs { - /// If `True`, updating of the var and accum tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceApplyFtrlV2(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input linear, - ::tensorflow::Input grad, ::tensorflow::Input lr, - ::tensorflow::Input l1, ::tensorflow::Input l2, - ::tensorflow::Input l2_shrinkage, ::tensorflow::Input - lr_power); - ResourceApplyFtrlV2(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input linear, - ::tensorflow::Input grad, ::tensorflow::Input lr, - ::tensorflow::Input l1, ::tensorflow::Input l2, - ::tensorflow::Input l2_shrinkage, ::tensorflow::Input - lr_power, const ResourceApplyFtrlV2::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Update '*var' by subtracting 'alpha' * 'delta' from it. -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * alpha: Scaling factor. Must be a scalar. -/// * delta: The change. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, the subtraction will be protected by a lock; -/// otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceApplyGradientDescent { - public: - /// Optional attribute setters for ResourceApplyGradientDescent - struct Attrs { - /// If `True`, the subtraction will be protected by a lock; - /// otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceApplyGradientDescent(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input - alpha, ::tensorflow::Input delta); - ResourceApplyGradientDescent(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input - alpha, ::tensorflow::Input delta, const - ResourceApplyGradientDescent::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Update '*var' according to the momentum scheme. Set use_nesterov = True if you -/// -/// want to use Nesterov momentum. -/// -/// accum = accum * momentum + grad -/// var -= lr * accum -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * grad: The gradient. -/// * momentum: Momentum. Must be a scalar. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and accum tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// * use_nesterov: If `True`, the tensor passed to compute grad will be -/// var - lr * momentum * accum, so in the end, the var you get is actually -/// var - lr * momentum * accum. -/// -/// Returns: -/// * the created `Operation` -class ResourceApplyMomentum { - public: - /// Optional attribute setters for ResourceApplyMomentum - struct Attrs { - /// If `True`, updating of the var and accum tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - /// If `True`, the tensor passed to compute grad will be - /// var - lr * momentum * accum, so in the end, the var you get is actually - /// var - lr * momentum * accum. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseNesterov(bool x) { - Attrs ret = *this; - ret.use_nesterov_ = x; - return ret; - } - - bool use_locking_ = false; - bool use_nesterov_ = false; - }; - ResourceApplyMomentum(const ::tensorflow::Scope& scope, ::tensorflow::Input - var, ::tensorflow::Input accum, ::tensorflow::Input lr, - ::tensorflow::Input grad, ::tensorflow::Input momentum); - ResourceApplyMomentum(const ::tensorflow::Scope& scope, ::tensorflow::Input - var, ::tensorflow::Input accum, ::tensorflow::Input lr, - ::tensorflow::Input grad, ::tensorflow::Input momentum, - const ResourceApplyMomentum::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - static Attrs UseNesterov(bool x) { - return Attrs().UseNesterov(x); - } - - Operation operation; -}; - -/// Update '*var' according to the AddSign update. -/// -/// m_t <- beta1 * m_{t-1} + (1 - beta1) * g -/// update <- exp(logbase * sign_decay * sign(g) * sign(m_t)) * g -/// variable <- variable - lr_t * update -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * m: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * logbase: Must be a scalar. -/// * sign_decay: Must be a scalar. -/// * beta: Must be a scalar. -/// * grad: The gradient. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and m tensors is -/// protected by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceApplyPowerSign { - public: - /// Optional attribute setters for ResourceApplyPowerSign - struct Attrs { - /// If `True`, updating of the var and m tensors is - /// protected by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceApplyPowerSign(const ::tensorflow::Scope& scope, ::tensorflow::Input - var, ::tensorflow::Input m, ::tensorflow::Input lr, - ::tensorflow::Input logbase, ::tensorflow::Input - sign_decay, ::tensorflow::Input beta, - ::tensorflow::Input grad); - ResourceApplyPowerSign(const ::tensorflow::Scope& scope, ::tensorflow::Input - var, ::tensorflow::Input m, ::tensorflow::Input lr, - ::tensorflow::Input logbase, ::tensorflow::Input - sign_decay, ::tensorflow::Input beta, - ::tensorflow::Input grad, const - ResourceApplyPowerSign::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Update '*var' and '*accum' according to FOBOS with Adagrad learning rate. -/// -/// accum += grad * grad -/// prox_v = var - lr * grad * (1 / sqrt(accum)) -/// var = sign(prox_v)/(1+lr*l2) * max{|prox_v|-lr*l1,0} -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * l1: L1 regularization. Must be a scalar. -/// * l2: L2 regularization. Must be a scalar. -/// * grad: The gradient. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, updating of the var and accum tensors will be protected by -/// a lock; otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceApplyProximalAdagrad { - public: - /// Optional attribute setters for ResourceApplyProximalAdagrad - struct Attrs { - /// If True, updating of the var and accum tensors will be protected by - /// a lock; otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceApplyProximalAdagrad(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input - accum, ::tensorflow::Input lr, ::tensorflow::Input - l1, ::tensorflow::Input l2, ::tensorflow::Input - grad); - ResourceApplyProximalAdagrad(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input - accum, ::tensorflow::Input lr, ::tensorflow::Input - l1, ::tensorflow::Input l2, ::tensorflow::Input - grad, const ResourceApplyProximalAdagrad::Attrs& - attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Update '*var' as FOBOS algorithm with fixed learning rate. -/// -/// prox_v = var - alpha * delta -/// var = sign(prox_v)/(1+alpha*l2) * max{|prox_v|-alpha*l1,0} -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * alpha: Scaling factor. Must be a scalar. -/// * l1: L1 regularization. Must be a scalar. -/// * l2: L2 regularization. Must be a scalar. -/// * delta: The change. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, the subtraction will be protected by a lock; -/// otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceApplyProximalGradientDescent { - public: - /// Optional attribute setters for ResourceApplyProximalGradientDescent - struct Attrs { - /// If True, the subtraction will be protected by a lock; - /// otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceApplyProximalGradientDescent(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, - ::tensorflow::Input alpha, - ::tensorflow::Input l1, - ::tensorflow::Input l2, - ::tensorflow::Input delta); - ResourceApplyProximalGradientDescent(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, - ::tensorflow::Input alpha, - ::tensorflow::Input l1, - ::tensorflow::Input l2, - ::tensorflow::Input delta, const - ResourceApplyProximalGradientDescent::Attrs& - attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Update '*var' according to the RMSProp algorithm. -/// -/// Note that in dense implementation of this algorithm, ms and mom will -/// update even if the grad is zero, but in this sparse implementation, ms -/// and mom will not update in iterations during which the grad is zero. -/// -/// mean_square = decay * mean_square + (1-decay) * gradient ** 2 -/// Delta = learning_rate * gradient / sqrt(mean_square + epsilon) -/// -/// ms <- rho * ms_{t-1} + (1-rho) * grad * grad -/// mom <- momentum * mom_{t-1} + lr * grad / sqrt(ms + epsilon) -/// var <- var - mom -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * ms: Should be from a Variable(). -/// * mom: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * rho: Decay rate. Must be a scalar. -/// * epsilon: Ridge term. Must be a scalar. -/// * grad: The gradient. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var, ms, and mom tensors is protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceApplyRMSProp { - public: - /// Optional attribute setters for ResourceApplyRMSProp - struct Attrs { - /// If `True`, updating of the var, ms, and mom tensors is protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceApplyRMSProp(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input ms, ::tensorflow::Input mom, - ::tensorflow::Input lr, ::tensorflow::Input rho, - ::tensorflow::Input momentum, ::tensorflow::Input epsilon, - ::tensorflow::Input grad); - ResourceApplyRMSProp(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input ms, ::tensorflow::Input mom, - ::tensorflow::Input lr, ::tensorflow::Input rho, - ::tensorflow::Input momentum, ::tensorflow::Input epsilon, - ::tensorflow::Input grad, const - ResourceApplyRMSProp::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// var: Should be from a Variable(). -/// -/// Arguments: -/// * scope: A Scope object -/// * accum: Should be from a Variable(). -/// * accum_update: : Should be from a Variable(). -/// * lr: Learning rate. Must be a scalar. -/// * rho: Decay factor. Must be a scalar. -/// * epsilon: Constant factor. Must be a scalar. -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var and accum. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, updating of the var and accum tensors will be protected by -/// a lock; otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceSparseApplyAdadelta { - public: - /// Optional attribute setters for ResourceSparseApplyAdadelta - struct Attrs { - /// If True, updating of the var and accum tensors will be protected by - /// a lock; otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceSparseApplyAdadelta(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input accum, - ::tensorflow::Input accum_update, - ::tensorflow::Input lr, ::tensorflow::Input rho, - ::tensorflow::Input epsilon, ::tensorflow::Input - grad, ::tensorflow::Input indices); - ResourceSparseApplyAdadelta(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input accum, - ::tensorflow::Input accum_update, - ::tensorflow::Input lr, ::tensorflow::Input rho, - ::tensorflow::Input epsilon, ::tensorflow::Input - grad, ::tensorflow::Input indices, const - ResourceSparseApplyAdadelta::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Update relevant entries in '*var' and '*accum' according to the adagrad scheme. -/// -/// That is for rows we have grad for, we update var and accum as follows: -/// accum += grad * grad -/// var -= lr * grad * (1 / sqrt(accum)) -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * lr: Learning rate. Must be a scalar. -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var and accum. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and accum tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceSparseApplyAdagrad { - public: - /// Optional attribute setters for ResourceSparseApplyAdagrad - struct Attrs { - /// If `True`, updating of the var and accum tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - /// Defaults to true - TF_MUST_USE_RESULT Attrs UpdateSlots(bool x) { - Attrs ret = *this; - ret.update_slots_ = x; - return ret; - } - - bool use_locking_ = false; - bool update_slots_ = true; - }; - ResourceSparseApplyAdagrad(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input accum, - ::tensorflow::Input lr, ::tensorflow::Input grad, - ::tensorflow::Input indices); - ResourceSparseApplyAdagrad(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input accum, - ::tensorflow::Input lr, ::tensorflow::Input grad, - ::tensorflow::Input indices, const - ResourceSparseApplyAdagrad::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - static Attrs UpdateSlots(bool x) { - return Attrs().UpdateSlots(x); - } - - Operation operation; -}; - -/// Update entries in '*var' and '*accum' according to the proximal adagrad scheme. -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * gradient_accumulator: Should be from a Variable(). -/// * gradient_squared_accumulator: Should be from a Variable(). -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var and accum. -/// * lr: Learning rate. Must be a scalar. -/// * l1: L1 regularization. Must be a scalar. -/// * l2: L2 regularization. Must be a scalar. -/// * global_step: Training step number. Must be a scalar. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, updating of the var and accum tensors will be protected by -/// a lock; otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceSparseApplyAdagradDA { - public: - /// Optional attribute setters for ResourceSparseApplyAdagradDA - struct Attrs { - /// If True, updating of the var and accum tensors will be protected by - /// a lock; otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceSparseApplyAdagradDA(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input - gradient_accumulator, ::tensorflow::Input - gradient_squared_accumulator, ::tensorflow::Input - grad, ::tensorflow::Input indices, - ::tensorflow::Input lr, ::tensorflow::Input l1, - ::tensorflow::Input l2, ::tensorflow::Input - global_step); - ResourceSparseApplyAdagradDA(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input - gradient_accumulator, ::tensorflow::Input - gradient_squared_accumulator, ::tensorflow::Input - grad, ::tensorflow::Input indices, - ::tensorflow::Input lr, ::tensorflow::Input l1, - ::tensorflow::Input l2, ::tensorflow::Input - global_step, const - ResourceSparseApplyAdagradDA::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Update '*var' according to the centered RMSProp algorithm. -/// -/// The centered RMSProp algorithm uses an estimate of the centered second moment -/// (i.e., the variance) for normalization, as opposed to regular RMSProp, which -/// uses the (uncentered) second moment. This often helps with training, but is -/// slightly more expensive in terms of computation and memory. -/// -/// Note that in dense implementation of this algorithm, mg, ms, and mom will -/// update even if the grad is zero, but in this sparse implementation, mg, ms, -/// and mom will not update in iterations during which the grad is zero. -/// -/// mean_square = decay * mean_square + (1-decay) * gradient ** 2 -/// mean_grad = decay * mean_grad + (1-decay) * gradient -/// Delta = learning_rate * gradient / sqrt(mean_square + epsilon - mean_grad ** 2) -/// -/// ms <- rho * ms_{t-1} + (1-rho) * grad * grad -/// mom <- momentum * mom_{t-1} + lr * grad / sqrt(ms + epsilon) -/// var <- var - mom -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * mg: Should be from a Variable(). -/// * ms: Should be from a Variable(). -/// * mom: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * rho: Decay rate. Must be a scalar. -/// * epsilon: Ridge term. Must be a scalar. -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var, ms and mom. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var, mg, ms, and mom tensors is -/// protected by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceSparseApplyCenteredRMSProp { - public: - /// Optional attribute setters for ResourceSparseApplyCenteredRMSProp - struct Attrs { - /// If `True`, updating of the var, mg, ms, and mom tensors is - /// protected by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceSparseApplyCenteredRMSProp(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input - mg, ::tensorflow::Input ms, - ::tensorflow::Input mom, ::tensorflow::Input - lr, ::tensorflow::Input rho, - ::tensorflow::Input momentum, - ::tensorflow::Input epsilon, - ::tensorflow::Input grad, - ::tensorflow::Input indices); - ResourceSparseApplyCenteredRMSProp(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input - mg, ::tensorflow::Input ms, - ::tensorflow::Input mom, ::tensorflow::Input - lr, ::tensorflow::Input rho, - ::tensorflow::Input momentum, - ::tensorflow::Input epsilon, - ::tensorflow::Input grad, - ::tensorflow::Input indices, const - ResourceSparseApplyCenteredRMSProp::Attrs& - attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Update relevant entries in '*var' according to the Ftrl-proximal scheme. -/// -/// That is for rows we have grad for, we update var, accum and linear as follows: -/// accum_new = accum + grad * grad -/// linear += grad + (accum_new^(-lr_power) - accum^(-lr_power)) / lr * var -/// quadratic = 1.0 / (accum_new^(lr_power) * lr) + 2 * l2 -/// var = (sign(linear) * l1 - linear) / quadratic if |linear| > l1 else 0.0 -/// accum = accum_new -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * linear: Should be from a Variable(). -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var and accum. -/// * lr: Scaling factor. Must be a scalar. -/// * l1: L1 regularization. Must be a scalar. -/// * l2: L2 regularization. Must be a scalar. -/// * lr_power: Scaling factor. Must be a scalar. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and accum tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceSparseApplyFtrl { - public: - /// Optional attribute setters for ResourceSparseApplyFtrl - struct Attrs { - /// If `True`, updating of the var and accum tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceSparseApplyFtrl(const ::tensorflow::Scope& scope, ::tensorflow::Input - var, ::tensorflow::Input accum, ::tensorflow::Input - linear, ::tensorflow::Input grad, ::tensorflow::Input - indices, ::tensorflow::Input lr, ::tensorflow::Input - l1, ::tensorflow::Input l2, ::tensorflow::Input - lr_power); - ResourceSparseApplyFtrl(const ::tensorflow::Scope& scope, ::tensorflow::Input - var, ::tensorflow::Input accum, ::tensorflow::Input - linear, ::tensorflow::Input grad, ::tensorflow::Input - indices, ::tensorflow::Input lr, ::tensorflow::Input - l1, ::tensorflow::Input l2, ::tensorflow::Input - lr_power, const ResourceSparseApplyFtrl::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Update relevant entries in '*var' according to the Ftrl-proximal scheme. -/// -/// That is for rows we have grad for, we update var, accum and linear as follows: -/// grad_with_shrinkage = grad + 2 * l2_shrinkage * var -/// accum_new = accum + grad_with_shrinkage * grad_with_shrinkage -/// linear += grad_with_shrinkage + -/// (accum_new^(-lr_power) - accum^(-lr_power)) / lr * var -/// quadratic = 1.0 / (accum_new^(lr_power) * lr) + 2 * l2 -/// var = (sign(linear) * l1 - linear) / quadratic if |linear| > l1 else 0.0 -/// accum = accum_new -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * linear: Should be from a Variable(). -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var and accum. -/// * lr: Scaling factor. Must be a scalar. -/// * l1: L1 regularization. Must be a scalar. -/// * l2: L2 shrinkage regulariation. Must be a scalar. -/// * lr_power: Scaling factor. Must be a scalar. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and accum tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceSparseApplyFtrlV2 { - public: - /// Optional attribute setters for ResourceSparseApplyFtrlV2 - struct Attrs { - /// If `True`, updating of the var and accum tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceSparseApplyFtrlV2(const ::tensorflow::Scope& scope, ::tensorflow::Input - var, ::tensorflow::Input accum, ::tensorflow::Input - linear, ::tensorflow::Input grad, ::tensorflow::Input - indices, ::tensorflow::Input lr, ::tensorflow::Input - l1, ::tensorflow::Input l2, ::tensorflow::Input - l2_shrinkage, ::tensorflow::Input lr_power); - ResourceSparseApplyFtrlV2(const ::tensorflow::Scope& scope, ::tensorflow::Input - var, ::tensorflow::Input accum, ::tensorflow::Input - linear, ::tensorflow::Input grad, ::tensorflow::Input - indices, ::tensorflow::Input lr, ::tensorflow::Input - l1, ::tensorflow::Input l2, ::tensorflow::Input - l2_shrinkage, ::tensorflow::Input lr_power, const - ResourceSparseApplyFtrlV2::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Update relevant entries in '*var' and '*accum' according to the momentum scheme. -/// -/// Set use_nesterov = True if you want to use Nesterov momentum. -/// -/// That is for rows we have grad for, we update var and accum as follows: -/// -/// accum = accum * momentum + grad -/// var -= lr * accum -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * lr: Learning rate. Must be a scalar. -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var and accum. -/// * momentum: Momentum. Must be a scalar. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and accum tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// * use_nesterov: If `True`, the tensor passed to compute grad will be -/// var - lr * momentum * accum, so in the end, the var you get is actually -/// var - lr * momentum * accum. -/// -/// Returns: -/// * the created `Operation` -class ResourceSparseApplyMomentum { - public: - /// Optional attribute setters for ResourceSparseApplyMomentum - struct Attrs { - /// If `True`, updating of the var and accum tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - /// If `True`, the tensor passed to compute grad will be - /// var - lr * momentum * accum, so in the end, the var you get is actually - /// var - lr * momentum * accum. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseNesterov(bool x) { - Attrs ret = *this; - ret.use_nesterov_ = x; - return ret; - } - - bool use_locking_ = false; - bool use_nesterov_ = false; - }; - ResourceSparseApplyMomentum(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input accum, - ::tensorflow::Input lr, ::tensorflow::Input grad, - ::tensorflow::Input indices, ::tensorflow::Input - momentum); - ResourceSparseApplyMomentum(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input accum, - ::tensorflow::Input lr, ::tensorflow::Input grad, - ::tensorflow::Input indices, ::tensorflow::Input - momentum, const ResourceSparseApplyMomentum::Attrs& - attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - static Attrs UseNesterov(bool x) { - return Attrs().UseNesterov(x); - } - - Operation operation; -}; - -/// Sparse update entries in '*var' and '*accum' according to FOBOS algorithm. -/// -/// That is for rows we have grad for, we update var and accum as follows: -/// accum += grad * grad -/// prox_v = var -/// prox_v -= lr * grad * (1 / sqrt(accum)) -/// var = sign(prox_v)/(1+lr*l2) * max{|prox_v|-lr*l1,0} -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * lr: Learning rate. Must be a scalar. -/// * l1: L1 regularization. Must be a scalar. -/// * l2: L2 regularization. Must be a scalar. -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var and accum. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, updating of the var and accum tensors will be protected by -/// a lock; otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceSparseApplyProximalAdagrad { - public: - /// Optional attribute setters for ResourceSparseApplyProximalAdagrad - struct Attrs { - /// If True, updating of the var and accum tensors will be protected by - /// a lock; otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceSparseApplyProximalAdagrad(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input - accum, ::tensorflow::Input lr, - ::tensorflow::Input l1, ::tensorflow::Input - l2, ::tensorflow::Input grad, - ::tensorflow::Input indices); - ResourceSparseApplyProximalAdagrad(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input - accum, ::tensorflow::Input lr, - ::tensorflow::Input l1, ::tensorflow::Input - l2, ::tensorflow::Input grad, - ::tensorflow::Input indices, const - ResourceSparseApplyProximalAdagrad::Attrs& - attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Sparse update '*var' as FOBOS algorithm with fixed learning rate. -/// -/// That is for rows we have grad for, we update var as follows: -/// prox_v = var - alpha * grad -/// var = sign(prox_v)/(1+alpha*l2) * max{|prox_v|-alpha*l1,0} -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * alpha: Scaling factor. Must be a scalar. -/// * l1: L1 regularization. Must be a scalar. -/// * l2: L2 regularization. Must be a scalar. -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var and accum. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, the subtraction will be protected by a lock; -/// otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceSparseApplyProximalGradientDescent { - public: - /// Optional attribute setters for ResourceSparseApplyProximalGradientDescent - struct Attrs { - /// If True, the subtraction will be protected by a lock; - /// otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceSparseApplyProximalGradientDescent(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, - ::tensorflow::Input alpha, - ::tensorflow::Input l1, - ::tensorflow::Input l2, - ::tensorflow::Input grad, - ::tensorflow::Input indices); - ResourceSparseApplyProximalGradientDescent(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, - ::tensorflow::Input alpha, - ::tensorflow::Input l1, - ::tensorflow::Input l2, - ::tensorflow::Input grad, - ::tensorflow::Input indices, const - ResourceSparseApplyProximalGradientDescent::Attrs& - attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// Update '*var' according to the RMSProp algorithm. -/// -/// Note that in dense implementation of this algorithm, ms and mom will -/// update even if the grad is zero, but in this sparse implementation, ms -/// and mom will not update in iterations during which the grad is zero. -/// -/// mean_square = decay * mean_square + (1-decay) * gradient ** 2 -/// Delta = learning_rate * gradient / sqrt(mean_square + epsilon) -/// -/// ms <- rho * ms_{t-1} + (1-rho) * grad * grad -/// mom <- momentum * mom_{t-1} + lr * grad / sqrt(ms + epsilon) -/// var <- var - mom -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * ms: Should be from a Variable(). -/// * mom: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * rho: Decay rate. Must be a scalar. -/// * epsilon: Ridge term. Must be a scalar. -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var, ms and mom. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var, ms, and mom tensors is protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceSparseApplyRMSProp { - public: - /// Optional attribute setters for ResourceSparseApplyRMSProp - struct Attrs { - /// If `True`, updating of the var, ms, and mom tensors is protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceSparseApplyRMSProp(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input ms, - ::tensorflow::Input mom, ::tensorflow::Input lr, - ::tensorflow::Input rho, ::tensorflow::Input - momentum, ::tensorflow::Input epsilon, - ::tensorflow::Input grad, ::tensorflow::Input - indices); - ResourceSparseApplyRMSProp(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input ms, - ::tensorflow::Input mom, ::tensorflow::Input lr, - ::tensorflow::Input rho, ::tensorflow::Input - momentum, ::tensorflow::Input epsilon, - ::tensorflow::Input grad, ::tensorflow::Input - indices, const ResourceSparseApplyRMSProp::Attrs& - attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -/// var: Should be from a Variable(). -/// -/// Arguments: -/// * scope: A Scope object -/// * accum: Should be from a Variable(). -/// * accum_update: : Should be from a Variable(). -/// * lr: Learning rate. Must be a scalar. -/// * rho: Decay factor. Must be a scalar. -/// * epsilon: Constant factor. Must be a scalar. -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var and accum. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, updating of the var and accum tensors will be protected by -/// a lock; otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class SparseApplyAdadelta { - public: - /// Optional attribute setters for SparseApplyAdadelta - struct Attrs { - /// If True, updating of the var and accum tensors will be protected by - /// a lock; otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - SparseApplyAdadelta(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input - accum_update, ::tensorflow::Input lr, ::tensorflow::Input - rho, ::tensorflow::Input epsilon, ::tensorflow::Input grad, - ::tensorflow::Input indices); - SparseApplyAdadelta(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input - accum_update, ::tensorflow::Input lr, ::tensorflow::Input - rho, ::tensorflow::Input epsilon, ::tensorflow::Input grad, - ::tensorflow::Input indices, const - SparseApplyAdadelta::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update relevant entries in '*var' and '*accum' according to the adagrad scheme. -/// -/// That is for rows we have grad for, we update var and accum as follows: -/// $$accum += grad * grad$$ -/// $$var -= lr * grad * (1 / sqrt(accum))$$ -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * lr: Learning rate. Must be a scalar. -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var and accum. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and accum tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class SparseApplyAdagrad { - public: - /// Optional attribute setters for SparseApplyAdagrad - struct Attrs { - /// If `True`, updating of the var and accum tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - /// Defaults to true - TF_MUST_USE_RESULT Attrs UpdateSlots(bool x) { - Attrs ret = *this; - ret.update_slots_ = x; - return ret; - } - - bool use_locking_ = false; - bool update_slots_ = true; - }; - SparseApplyAdagrad(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input lr, - ::tensorflow::Input grad, ::tensorflow::Input indices); - SparseApplyAdagrad(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input lr, - ::tensorflow::Input grad, ::tensorflow::Input indices, const - SparseApplyAdagrad::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - static Attrs UpdateSlots(bool x) { - return Attrs().UpdateSlots(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update entries in '*var' and '*accum' according to the proximal adagrad scheme. -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * gradient_accumulator: Should be from a Variable(). -/// * gradient_squared_accumulator: Should be from a Variable(). -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var and accum. -/// * lr: Learning rate. Must be a scalar. -/// * l1: L1 regularization. Must be a scalar. -/// * l2: L2 regularization. Must be a scalar. -/// * global_step: Training step number. Must be a scalar. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, updating of the var and accum tensors will be protected by -/// a lock; otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class SparseApplyAdagradDA { - public: - /// Optional attribute setters for SparseApplyAdagradDA - struct Attrs { - /// If True, updating of the var and accum tensors will be protected by - /// a lock; otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - SparseApplyAdagradDA(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input gradient_accumulator, - ::tensorflow::Input gradient_squared_accumulator, - ::tensorflow::Input grad, ::tensorflow::Input indices, - ::tensorflow::Input lr, ::tensorflow::Input l1, - ::tensorflow::Input l2, ::tensorflow::Input global_step); - SparseApplyAdagradDA(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input gradient_accumulator, - ::tensorflow::Input gradient_squared_accumulator, - ::tensorflow::Input grad, ::tensorflow::Input indices, - ::tensorflow::Input lr, ::tensorflow::Input l1, - ::tensorflow::Input l2, ::tensorflow::Input global_step, - const SparseApplyAdagradDA::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update '*var' according to the centered RMSProp algorithm. -/// -/// The centered RMSProp algorithm uses an estimate of the centered second moment -/// (i.e., the variance) for normalization, as opposed to regular RMSProp, which -/// uses the (uncentered) second moment. This often helps with training, but is -/// slightly more expensive in terms of computation and memory. -/// -/// Note that in dense implementation of this algorithm, mg, ms, and mom will -/// update even if the grad is zero, but in this sparse implementation, mg, ms, -/// and mom will not update in iterations during which the grad is zero. -/// -/// mean_square = decay * mean_square + (1-decay) * gradient ** 2 -/// mean_grad = decay * mean_grad + (1-decay) * gradient -/// Delta = learning_rate * gradient / sqrt(mean_square + epsilon - mean_grad ** 2) -/// -/// $$ms <- rho * ms_{t-1} + (1-rho) * grad * grad$$ -/// $$mom <- momentum * mom_{t-1} + lr * grad / sqrt(ms + epsilon)$$ -/// $$var <- var - mom$$ -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * mg: Should be from a Variable(). -/// * ms: Should be from a Variable(). -/// * mom: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * rho: Decay rate. Must be a scalar. -/// * epsilon: Ridge term. Must be a scalar. -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var, ms and mom. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var, mg, ms, and mom tensors is -/// protected by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class SparseApplyCenteredRMSProp { - public: - /// Optional attribute setters for SparseApplyCenteredRMSProp - struct Attrs { - /// If `True`, updating of the var, mg, ms, and mom tensors is - /// protected by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - SparseApplyCenteredRMSProp(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input mg, - ::tensorflow::Input ms, ::tensorflow::Input mom, - ::tensorflow::Input lr, ::tensorflow::Input rho, - ::tensorflow::Input momentum, ::tensorflow::Input - epsilon, ::tensorflow::Input grad, - ::tensorflow::Input indices); - SparseApplyCenteredRMSProp(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input mg, - ::tensorflow::Input ms, ::tensorflow::Input mom, - ::tensorflow::Input lr, ::tensorflow::Input rho, - ::tensorflow::Input momentum, ::tensorflow::Input - epsilon, ::tensorflow::Input grad, - ::tensorflow::Input indices, const - SparseApplyCenteredRMSProp::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update relevant entries in '*var' according to the Ftrl-proximal scheme. -/// -/// That is for rows we have grad for, we update var, accum and linear as follows: -/// $$accum_new = accum + grad * grad$$ -/// $$linear += grad + (accum_{new}^{-lr_{power}} - accum^{-lr_{power}} / lr * var$$ -/// $$quadratic = 1.0 / (accum_{new}^{lr_{power}} * lr) + 2 * l2$$ -/// $$var = (sign(linear) * l1 - linear) / quadratic\ if\ |linear| > l1\ else\ 0.0$$ -/// $$accum = accum_{new}$$ -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * linear: Should be from a Variable(). -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var and accum. -/// * lr: Scaling factor. Must be a scalar. -/// * l1: L1 regularization. Must be a scalar. -/// * l2: L2 regularization. Must be a scalar. -/// * lr_power: Scaling factor. Must be a scalar. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and accum tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class SparseApplyFtrl { - public: - /// Optional attribute setters for SparseApplyFtrl - struct Attrs { - /// If `True`, updating of the var and accum tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - SparseApplyFtrl(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input linear, - ::tensorflow::Input grad, ::tensorflow::Input indices, - ::tensorflow::Input lr, ::tensorflow::Input l1, - ::tensorflow::Input l2, ::tensorflow::Input lr_power); - SparseApplyFtrl(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input linear, - ::tensorflow::Input grad, ::tensorflow::Input indices, - ::tensorflow::Input lr, ::tensorflow::Input l1, - ::tensorflow::Input l2, ::tensorflow::Input lr_power, const - SparseApplyFtrl::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update relevant entries in '*var' according to the Ftrl-proximal scheme. -/// -/// That is for rows we have grad for, we update var, accum and linear as follows: -/// grad_with_shrinkage = grad + 2 * l2_shrinkage * var -/// accum_new = accum + grad_with_shrinkage * grad_with_shrinkage -/// linear += grad_with_shrinkage + -/// (accum_new^(-lr_power) - accum^(-lr_power)) / lr * var -/// quadratic = 1.0 / (accum_new^(lr_power) * lr) + 2 * l2 -/// var = (sign(linear) * l1 - linear) / quadratic if |linear| > l1 else 0.0 -/// accum = accum_new -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * linear: Should be from a Variable(). -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var and accum. -/// * lr: Scaling factor. Must be a scalar. -/// * l1: L1 regularization. Must be a scalar. -/// * l2: L2 shrinkage regulariation. Must be a scalar. -/// * lr_power: Scaling factor. Must be a scalar. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and accum tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class SparseApplyFtrlV2 { - public: - /// Optional attribute setters for SparseApplyFtrlV2 - struct Attrs { - /// If `True`, updating of the var and accum tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - SparseApplyFtrlV2(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input linear, - ::tensorflow::Input grad, ::tensorflow::Input indices, - ::tensorflow::Input lr, ::tensorflow::Input l1, - ::tensorflow::Input l2, ::tensorflow::Input l2_shrinkage, - ::tensorflow::Input lr_power); - SparseApplyFtrlV2(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input linear, - ::tensorflow::Input grad, ::tensorflow::Input indices, - ::tensorflow::Input lr, ::tensorflow::Input l1, - ::tensorflow::Input l2, ::tensorflow::Input l2_shrinkage, - ::tensorflow::Input lr_power, const SparseApplyFtrlV2::Attrs& - attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update relevant entries in '*var' and '*accum' according to the momentum scheme. -/// -/// Set use_nesterov = True if you want to use Nesterov momentum. -/// -/// That is for rows we have grad for, we update var and accum as follows: -/// -/// $$accum = accum * momentum + grad$$ -/// $$var -= lr * accum$$ -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * lr: Learning rate. Must be a scalar. -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var and accum. -/// * momentum: Momentum. Must be a scalar. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var and accum tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// * use_nesterov: If `True`, the tensor passed to compute grad will be -/// var - lr * momentum * accum, so in the end, the var you get is actually -/// var - lr * momentum * accum. -/// -/// Returns: -/// * `Output`: Same as "var". -class SparseApplyMomentum { - public: - /// Optional attribute setters for SparseApplyMomentum - struct Attrs { - /// If `True`, updating of the var and accum tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - /// If `True`, the tensor passed to compute grad will be - /// var - lr * momentum * accum, so in the end, the var you get is actually - /// var - lr * momentum * accum. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseNesterov(bool x) { - Attrs ret = *this; - ret.use_nesterov_ = x; - return ret; - } - - bool use_locking_ = false; - bool use_nesterov_ = false; - }; - SparseApplyMomentum(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input lr, - ::tensorflow::Input grad, ::tensorflow::Input indices, - ::tensorflow::Input momentum); - SparseApplyMomentum(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input accum, ::tensorflow::Input lr, - ::tensorflow::Input grad, ::tensorflow::Input indices, - ::tensorflow::Input momentum, const - SparseApplyMomentum::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - static Attrs UseNesterov(bool x) { - return Attrs().UseNesterov(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Sparse update entries in '*var' and '*accum' according to FOBOS algorithm. -/// -/// That is for rows we have grad for, we update var and accum as follows: -/// $$accum += grad * grad$$ -/// $$prox_v = var$$ -/// $$prox_v -= lr * grad * (1 / sqrt(accum))$$ -/// $$var = sign(prox_v)/(1+lr*l2) * max{|prox_v|-lr*l1,0}$$ -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * accum: Should be from a Variable(). -/// * lr: Learning rate. Must be a scalar. -/// * l1: L1 regularization. Must be a scalar. -/// * l2: L2 regularization. Must be a scalar. -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var and accum. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, updating of the var and accum tensors will be protected by -/// a lock; otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class SparseApplyProximalAdagrad { - public: - /// Optional attribute setters for SparseApplyProximalAdagrad - struct Attrs { - /// If True, updating of the var and accum tensors will be protected by - /// a lock; otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - SparseApplyProximalAdagrad(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input accum, - ::tensorflow::Input lr, ::tensorflow::Input l1, - ::tensorflow::Input l2, ::tensorflow::Input grad, - ::tensorflow::Input indices); - SparseApplyProximalAdagrad(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input accum, - ::tensorflow::Input lr, ::tensorflow::Input l1, - ::tensorflow::Input l2, ::tensorflow::Input grad, - ::tensorflow::Input indices, const - SparseApplyProximalAdagrad::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Sparse update '*var' as FOBOS algorithm with fixed learning rate. -/// -/// That is for rows we have grad for, we update var as follows: -/// $$prox_v = var - alpha * grad$$ -/// $$var = sign(prox_v)/(1+alpha*l2) * max{|prox_v|-alpha*l1,0}$$ -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * alpha: Scaling factor. Must be a scalar. -/// * l1: L1 regularization. Must be a scalar. -/// * l2: L2 regularization. Must be a scalar. -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var and accum. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If True, the subtraction will be protected by a lock; -/// otherwise the behavior is undefined, but may exhibit less contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class SparseApplyProximalGradientDescent { - public: - /// Optional attribute setters for SparseApplyProximalGradientDescent - struct Attrs { - /// If True, the subtraction will be protected by a lock; - /// otherwise the behavior is undefined, but may exhibit less contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - SparseApplyProximalGradientDescent(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input - alpha, ::tensorflow::Input l1, - ::tensorflow::Input l2, ::tensorflow::Input - grad, ::tensorflow::Input indices); - SparseApplyProximalGradientDescent(const ::tensorflow::Scope& scope, - ::tensorflow::Input var, ::tensorflow::Input - alpha, ::tensorflow::Input l1, - ::tensorflow::Input l2, ::tensorflow::Input - grad, ::tensorflow::Input indices, const - SparseApplyProximalGradientDescent::Attrs& - attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update '*var' according to the RMSProp algorithm. -/// -/// Note that in dense implementation of this algorithm, ms and mom will -/// update even if the grad is zero, but in this sparse implementation, ms -/// and mom will not update in iterations during which the grad is zero. -/// -/// mean_square = decay * mean_square + (1-decay) * gradient ** 2 -/// Delta = learning_rate * gradient / sqrt(mean_square + epsilon) -/// -/// $$ms <- rho * ms_{t-1} + (1-rho) * grad * grad$$ -/// $$mom <- momentum * mom_{t-1} + lr * grad / sqrt(ms + epsilon)$$ -/// $$var <- var - mom$$ -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * ms: Should be from a Variable(). -/// * mom: Should be from a Variable(). -/// * lr: Scaling factor. Must be a scalar. -/// * rho: Decay rate. Must be a scalar. -/// * epsilon: Ridge term. Must be a scalar. -/// * grad: The gradient. -/// * indices: A vector of indices into the first dimension of var, ms and mom. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var, ms, and mom tensors is protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class SparseApplyRMSProp { - public: - /// Optional attribute setters for SparseApplyRMSProp - struct Attrs { - /// If `True`, updating of the var, ms, and mom tensors is protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - SparseApplyRMSProp(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input ms, ::tensorflow::Input mom, - ::tensorflow::Input lr, ::tensorflow::Input rho, - ::tensorflow::Input momentum, ::tensorflow::Input epsilon, - ::tensorflow::Input grad, ::tensorflow::Input indices); - SparseApplyRMSProp(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input ms, ::tensorflow::Input mom, - ::tensorflow::Input lr, ::tensorflow::Input rho, - ::tensorflow::Input momentum, ::tensorflow::Input epsilon, - ::tensorflow::Input grad, ::tensorflow::Input indices, const - SparseApplyRMSProp::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_TRAINING_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/training_ops_internal.h b/linux/include/tensorflow/cc/ops/training_ops_internal.h deleted file mode 100755 index 4c53e4441..000000000 --- a/linux/include/tensorflow/cc/ops/training_ops_internal.h +++ /dev/null @@ -1,154 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_TRAINING_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_TRAINING_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup training_ops_internal Training Ops Internal -/// @{ - -/// Update '*var' according to the AdaMax algorithm. -/// -/// m_t <- beta1 * m_{t-1} + (1 - beta1) * g -/// v_t <- max(beta2 * v_{t-1}, abs(g)) -/// variable <- variable - learning_rate / (1 - beta1^t) * m_t / (v_t + epsilon) -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * m: Should be from a Variable(). -/// * v: Should be from a Variable(). -/// * beta1_power: Must be a scalar. -/// * lr: Scaling factor. Must be a scalar. -/// * beta1: Momentum factor. Must be a scalar. -/// * beta2: Momentum factor. Must be a scalar. -/// * epsilon: Ridge term. Must be a scalar. -/// * grad: The gradient. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var, m, and v tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * `Output`: Same as "var". -class ApplyAdaMax { - public: - /// Optional attribute setters for ApplyAdaMax - struct Attrs { - /// If `True`, updating of the var, m, and v tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ApplyAdaMax(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input m, ::tensorflow::Input v, ::tensorflow::Input - beta1_power, ::tensorflow::Input lr, ::tensorflow::Input beta1, - ::tensorflow::Input beta2, ::tensorflow::Input epsilon, - ::tensorflow::Input grad); - ApplyAdaMax(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input m, ::tensorflow::Input v, ::tensorflow::Input - beta1_power, ::tensorflow::Input lr, ::tensorflow::Input beta1, - ::tensorflow::Input beta2, ::tensorflow::Input epsilon, - ::tensorflow::Input grad, const ApplyAdaMax::Attrs& attrs); - operator ::tensorflow::Output() const { return out; } - operator ::tensorflow::Input() const { return out; } - ::tensorflow::Node* node() const { return out.node(); } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; - ::tensorflow::Output out; -}; - -/// Update '*var' according to the AdaMax algorithm. -/// -/// m_t <- beta1 * m_{t-1} + (1 - beta1) * g -/// v_t <- max(beta2 * v_{t-1}, abs(g)) -/// variable <- variable - learning_rate / (1 - beta1^t) * m_t / (v_t + epsilon) -/// -/// Arguments: -/// * scope: A Scope object -/// * var: Should be from a Variable(). -/// * m: Should be from a Variable(). -/// * v: Should be from a Variable(). -/// * beta1_power: Must be a scalar. -/// * lr: Scaling factor. Must be a scalar. -/// * beta1: Momentum factor. Must be a scalar. -/// * beta2: Momentum factor. Must be a scalar. -/// * epsilon: Ridge term. Must be a scalar. -/// * grad: The gradient. -/// -/// Optional attributes (see `Attrs`): -/// * use_locking: If `True`, updating of the var, m, and v tensors will be protected -/// by a lock; otherwise the behavior is undefined, but may exhibit less -/// contention. -/// -/// Returns: -/// * the created `Operation` -class ResourceApplyAdaMax { - public: - /// Optional attribute setters for ResourceApplyAdaMax - struct Attrs { - /// If `True`, updating of the var, m, and v tensors will be protected - /// by a lock; otherwise the behavior is undefined, but may exhibit less - /// contention. - /// - /// Defaults to false - TF_MUST_USE_RESULT Attrs UseLocking(bool x) { - Attrs ret = *this; - ret.use_locking_ = x; - return ret; - } - - bool use_locking_ = false; - }; - ResourceApplyAdaMax(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input m, ::tensorflow::Input v, - ::tensorflow::Input beta1_power, ::tensorflow::Input lr, - ::tensorflow::Input beta1, ::tensorflow::Input beta2, - ::tensorflow::Input epsilon, ::tensorflow::Input grad); - ResourceApplyAdaMax(const ::tensorflow::Scope& scope, ::tensorflow::Input var, - ::tensorflow::Input m, ::tensorflow::Input v, - ::tensorflow::Input beta1_power, ::tensorflow::Input lr, - ::tensorflow::Input beta1, ::tensorflow::Input beta2, - ::tensorflow::Input epsilon, ::tensorflow::Input grad, - const ResourceApplyAdaMax::Attrs& attrs); - operator ::tensorflow::Operation() const { return operation; } - - static Attrs UseLocking(bool x) { - return Attrs().UseLocking(x); - } - - Operation operation; -}; - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_TRAINING_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/cc/ops/user_ops.h b/linux/include/tensorflow/cc/ops/user_ops.h deleted file mode 100755 index f7e6811a8..000000000 --- a/linux/include/tensorflow/cc/ops/user_ops.h +++ /dev/null @@ -1,44 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_USER_OPS_H_ -#define TENSORFLOW_CC_OPS_USER_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup user_ops User Ops -/// @{ - -/// Output a fact about factorials. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The fact tensor. -class Fact { - public: - Fact(const ::tensorflow::Scope& scope); - operator ::tensorflow::Output() const { return fact; } - operator ::tensorflow::Input() const { return fact; } - ::tensorflow::Node* node() const { return fact.node(); } - - Operation operation; - ::tensorflow::Output fact; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_USER_OPS_H_ diff --git a/linux/include/tensorflow/cc/ops/user_ops_internal.h b/linux/include/tensorflow/cc/ops/user_ops_internal.h deleted file mode 100755 index 784254dd4..000000000 --- a/linux/include/tensorflow/cc/ops/user_ops_internal.h +++ /dev/null @@ -1,28 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_CC_OPS_USER_OPS_INTERNAL_H_ -#define TENSORFLOW_CC_OPS_USER_OPS_INTERNAL_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { -namespace internal { -// NOTE: This namespace has internal TensorFlow details that -// are not part of TensorFlow's public API. - -/// @defgroup user_ops_internal User Ops Internal -/// @{ - -} // namespace internal -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_CC_OPS_USER_OPS_INTERNAL_H_ diff --git a/linux/include/tensorflow/compiler/tf2xla/cc/ops/xla_jit_ops.h b/linux/include/tensorflow/compiler/tf2xla/cc/ops/xla_jit_ops.h deleted file mode 100755 index c483be888..000000000 --- a/linux/include/tensorflow/compiler/tf2xla/cc/ops/xla_jit_ops.h +++ /dev/null @@ -1,108 +0,0 @@ -// This file is MACHINE GENERATED! Do not edit. - -#ifndef TENSORFLOW_COMPILER_TF_XLA_CC_OPS_XLA_JIT_OPS_H_ -#define TENSORFLOW_COMPILER_TF_XLA_CC_OPS_XLA_JIT_OPS_H_ - -// This file is MACHINE GENERATED! Do not edit. - -#include "tensorflow/cc/framework/ops.h" -#include "tensorflow/cc/framework/scope.h" -#include "tensorflow/core/framework/tensor.h" -#include "tensorflow/core/framework/tensor_shape.h" -#include "tensorflow/core/framework/types.h" -#include "tensorflow/core/lib/gtl/array_slice.h" - -namespace tensorflow { -namespace ops { - -/// @defgroup xla_jit_ops Xla Jit Ops -/// @{ - -/// Operator that connects the output of an XLA computation to other consumer graph nodes. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output`: The outputs tensor. -class XlaClusterOutput { - public: - XlaClusterOutput(const ::tensorflow::Scope& scope, ::tensorflow::Input input); - operator ::tensorflow::Output() const { return outputs; } - operator ::tensorflow::Input() const { return outputs; } - ::tensorflow::Node* node() const { return outputs.node(); } - - Operation operation; - ::tensorflow::Output outputs; -}; - -/// XLA Launch Op. For use by the XLA JIT only. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `OutputList`: The results tensor. -class XlaLaunch { - public: - XlaLaunch(const ::tensorflow::Scope& scope, ::tensorflow::InputList constants, - ::tensorflow::InputList args, ::tensorflow::InputList resources, - const DataTypeSlice& Tresults, const NameAttrList& function); - ::tensorflow::Output operator[](size_t index) const { return results[index]; } - - - Operation operation; - ::tensorflow::OutputList results; -}; - -/// XLA Compile Op. For use by the XLA JIT only. -/// -/// Compiles a TensorFlow function into an XLA LocalExecutable and returns a key -/// that _XlaRun can use to look up the LocalExecutable and execute it. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `Output` key: A key that can be used to look up the local executable compiled by the -/// node and associated metadata. -/// * `Output` compilation_successful: True iff the compilation was successful. Always true -/// for now. -class _XlaCompile { - public: - _XlaCompile(const ::tensorflow::Scope& scope, ::tensorflow::InputList - constants, ::tensorflow::InputList args, ::tensorflow::InputList - resources, const NameAttrList& function); - - Operation operation; - ::tensorflow::Output key; - ::tensorflow::Output compilation_successful; -}; - -/// XLA Run Op. For use by the XLA JIT only. -/// -/// Executes a TensorFlow function previously compiled into a LocalExecutable by an -/// _XlaCompile op. -/// -/// Arguments: -/// * scope: A Scope object -/// -/// Returns: -/// * `OutputList`: The results tensor. -class _XlaRun { - public: - _XlaRun(const ::tensorflow::Scope& scope, ::tensorflow::InputList args, - ::tensorflow::Input key, const DataTypeSlice& Tresults); - ::tensorflow::Output operator[](size_t index) const { return results[index]; } - - - Operation operation; - ::tensorflow::OutputList results; -}; - -/// @} - -} // namespace ops -} // namespace tensorflow - -#endif // TENSORFLOW_COMPILER_TF_XLA_CC_OPS_XLA_JIT_OPS_H_ diff --git a/linux/include/tensorflow/compiler/tf2xla/host_compute_metadata.pb.h b/linux/include/tensorflow/compiler/tf2xla/host_compute_metadata.pb.h deleted file mode 100755 index 0dbeb0ba9..000000000 --- a/linux/include/tensorflow/compiler/tf2xla/host_compute_metadata.pb.h +++ /dev/null @@ -1,764 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/compiler/tf2xla/host_compute_metadata.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcompiler_2ftf2xla_2fhost_5fcompute_5fmetadata_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcompiler_2ftf2xla_2fhost_5fcompute_5fmetadata_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/types.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcompiler_2ftf2xla_2fhost_5fcompute_5fmetadata_2eproto - -namespace protobuf_tensorflow_2fcompiler_2ftf2xla_2fhost_5fcompute_5fmetadata_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[3]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcompiler_2ftf2xla_2fhost_5fcompute_5fmetadata_2eproto -namespace tensorflow { -namespace tf2xla { -class HostComputeMetadata; -class HostComputeMetadataDefaultTypeInternal; -extern HostComputeMetadataDefaultTypeInternal _HostComputeMetadata_default_instance_; -class HostTransferMetadata; -class HostTransferMetadataDefaultTypeInternal; -extern HostTransferMetadataDefaultTypeInternal _HostTransferMetadata_default_instance_; -class TensorMetadata; -class TensorMetadataDefaultTypeInternal; -extern TensorMetadataDefaultTypeInternal _TensorMetadata_default_instance_; -} // namespace tf2xla -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::tf2xla::HostComputeMetadata* Arena::CreateMaybeMessage<::tensorflow::tf2xla::HostComputeMetadata>(Arena*); -template<> ::tensorflow::tf2xla::HostTransferMetadata* Arena::CreateMaybeMessage<::tensorflow::tf2xla::HostTransferMetadata>(Arena*); -template<> ::tensorflow::tf2xla::TensorMetadata* Arena::CreateMaybeMessage<::tensorflow::tf2xla::TensorMetadata>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { -namespace tf2xla { - -// =================================================================== - -class TensorMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.tf2xla.TensorMetadata) */ { - public: - TensorMetadata(); - virtual ~TensorMetadata(); - - TensorMetadata(const TensorMetadata& from); - - inline TensorMetadata& operator=(const TensorMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TensorMetadata(TensorMetadata&& from) noexcept - : TensorMetadata() { - *this = ::std::move(from); - } - - inline TensorMetadata& operator=(TensorMetadata&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const TensorMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TensorMetadata* internal_default_instance() { - return reinterpret_cast( - &_TensorMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(TensorMetadata* other); - void Swap(TensorMetadata* other); - friend void swap(TensorMetadata& a, TensorMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TensorMetadata* New() const final { - return CreateMaybeMessage(NULL); - } - - TensorMetadata* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TensorMetadata& from); - void MergeFrom(const TensorMetadata& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TensorMetadata* other); - protected: - explicit TensorMetadata(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .tensorflow.TensorShapeProto shape = 2; - bool has_shape() const; - void clear_shape(); - static const int kShapeFieldNumber = 2; - private: - const ::tensorflow::TensorShapeProto& _internal_shape() const; - public: - const ::tensorflow::TensorShapeProto& shape() const; - ::tensorflow::TensorShapeProto* release_shape(); - ::tensorflow::TensorShapeProto* mutable_shape(); - void set_allocated_shape(::tensorflow::TensorShapeProto* shape); - void unsafe_arena_set_allocated_shape( - ::tensorflow::TensorShapeProto* shape); - ::tensorflow::TensorShapeProto* unsafe_arena_release_shape(); - - // .tensorflow.DataType type = 1; - void clear_type(); - static const int kTypeFieldNumber = 1; - ::tensorflow::DataType type() const; - void set_type(::tensorflow::DataType value); - - // @@protoc_insertion_point(class_scope:tensorflow.tf2xla.TensorMetadata) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::tensorflow::TensorShapeProto* shape_; - int type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2ftf2xla_2fhost_5fcompute_5fmetadata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class HostTransferMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.tf2xla.HostTransferMetadata) */ { - public: - HostTransferMetadata(); - virtual ~HostTransferMetadata(); - - HostTransferMetadata(const HostTransferMetadata& from); - - inline HostTransferMetadata& operator=(const HostTransferMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HostTransferMetadata(HostTransferMetadata&& from) noexcept - : HostTransferMetadata() { - *this = ::std::move(from); - } - - inline HostTransferMetadata& operator=(HostTransferMetadata&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const HostTransferMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HostTransferMetadata* internal_default_instance() { - return reinterpret_cast( - &_HostTransferMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(HostTransferMetadata* other); - void Swap(HostTransferMetadata* other); - friend void swap(HostTransferMetadata& a, HostTransferMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HostTransferMetadata* New() const final { - return CreateMaybeMessage(NULL); - } - - HostTransferMetadata* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HostTransferMetadata& from); - void MergeFrom(const HostTransferMetadata& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HostTransferMetadata* other); - protected: - explicit HostTransferMetadata(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.tf2xla.TensorMetadata metadata = 2; - int metadata_size() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 2; - ::tensorflow::tf2xla::TensorMetadata* mutable_metadata(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::TensorMetadata >* - mutable_metadata(); - const ::tensorflow::tf2xla::TensorMetadata& metadata(int index) const; - ::tensorflow::tf2xla::TensorMetadata* add_metadata(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::TensorMetadata >& - metadata() const; - - // string key = 1; - void clear_key(); - static const int kKeyFieldNumber = 1; - const ::std::string& key() const; - void set_key(const ::std::string& value); - #if LANG_CXX11 - void set_key(::std::string&& value); - #endif - void set_key(const char* value); - void set_key(const char* value, size_t size); - ::std::string* mutable_key(); - ::std::string* release_key(); - void set_allocated_key(::std::string* key); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_key(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_key( - ::std::string* key); - - // @@protoc_insertion_point(class_scope:tensorflow.tf2xla.HostTransferMetadata) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::TensorMetadata > metadata_; - ::google::protobuf::internal::ArenaStringPtr key_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2ftf2xla_2fhost_5fcompute_5fmetadata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class HostComputeMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.tf2xla.HostComputeMetadata) */ { - public: - HostComputeMetadata(); - virtual ~HostComputeMetadata(); - - HostComputeMetadata(const HostComputeMetadata& from); - - inline HostComputeMetadata& operator=(const HostComputeMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HostComputeMetadata(HostComputeMetadata&& from) noexcept - : HostComputeMetadata() { - *this = ::std::move(from); - } - - inline HostComputeMetadata& operator=(HostComputeMetadata&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const HostComputeMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HostComputeMetadata* internal_default_instance() { - return reinterpret_cast( - &_HostComputeMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void UnsafeArenaSwap(HostComputeMetadata* other); - void Swap(HostComputeMetadata* other); - friend void swap(HostComputeMetadata& a, HostComputeMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HostComputeMetadata* New() const final { - return CreateMaybeMessage(NULL); - } - - HostComputeMetadata* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HostComputeMetadata& from); - void MergeFrom(const HostComputeMetadata& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HostComputeMetadata* other); - protected: - explicit HostComputeMetadata(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.tf2xla.HostTransferMetadata device_to_host = 1; - int device_to_host_size() const; - void clear_device_to_host(); - static const int kDeviceToHostFieldNumber = 1; - ::tensorflow::tf2xla::HostTransferMetadata* mutable_device_to_host(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::HostTransferMetadata >* - mutable_device_to_host(); - const ::tensorflow::tf2xla::HostTransferMetadata& device_to_host(int index) const; - ::tensorflow::tf2xla::HostTransferMetadata* add_device_to_host(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::HostTransferMetadata >& - device_to_host() const; - - // repeated .tensorflow.tf2xla.HostTransferMetadata host_to_device = 2; - int host_to_device_size() const; - void clear_host_to_device(); - static const int kHostToDeviceFieldNumber = 2; - ::tensorflow::tf2xla::HostTransferMetadata* mutable_host_to_device(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::HostTransferMetadata >* - mutable_host_to_device(); - const ::tensorflow::tf2xla::HostTransferMetadata& host_to_device(int index) const; - ::tensorflow::tf2xla::HostTransferMetadata* add_host_to_device(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::HostTransferMetadata >& - host_to_device() const; - - // @@protoc_insertion_point(class_scope:tensorflow.tf2xla.HostComputeMetadata) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::HostTransferMetadata > device_to_host_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::HostTransferMetadata > host_to_device_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2ftf2xla_2fhost_5fcompute_5fmetadata_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// TensorMetadata - -// .tensorflow.DataType type = 1; -inline void TensorMetadata::clear_type() { - type_ = 0; -} -inline ::tensorflow::DataType TensorMetadata::type() const { - // @@protoc_insertion_point(field_get:tensorflow.tf2xla.TensorMetadata.type) - return static_cast< ::tensorflow::DataType >(type_); -} -inline void TensorMetadata::set_type(::tensorflow::DataType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:tensorflow.tf2xla.TensorMetadata.type) -} - -// .tensorflow.TensorShapeProto shape = 2; -inline bool TensorMetadata::has_shape() const { - return this != internal_default_instance() && shape_ != NULL; -} -inline const ::tensorflow::TensorShapeProto& TensorMetadata::_internal_shape() const { - return *shape_; -} -inline const ::tensorflow::TensorShapeProto& TensorMetadata::shape() const { - const ::tensorflow::TensorShapeProto* p = shape_; - // @@protoc_insertion_point(field_get:tensorflow.tf2xla.TensorMetadata.shape) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_TensorShapeProto_default_instance_); -} -inline ::tensorflow::TensorShapeProto* TensorMetadata::release_shape() { - // @@protoc_insertion_point(field_release:tensorflow.tf2xla.TensorMetadata.shape) - - ::tensorflow::TensorShapeProto* temp = shape_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - shape_ = NULL; - return temp; -} -inline ::tensorflow::TensorShapeProto* TensorMetadata::unsafe_arena_release_shape() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.tf2xla.TensorMetadata.shape) - - ::tensorflow::TensorShapeProto* temp = shape_; - shape_ = NULL; - return temp; -} -inline ::tensorflow::TensorShapeProto* TensorMetadata::mutable_shape() { - - if (shape_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::TensorShapeProto>(GetArenaNoVirtual()); - shape_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.tf2xla.TensorMetadata.shape) - return shape_; -} -inline void TensorMetadata::set_allocated_shape(::tensorflow::TensorShapeProto* shape) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(shape_); - } - if (shape) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(shape)->GetArena(); - if (message_arena != submessage_arena) { - shape = ::google::protobuf::internal::GetOwnedMessage( - message_arena, shape, submessage_arena); - } - - } else { - - } - shape_ = shape; - // @@protoc_insertion_point(field_set_allocated:tensorflow.tf2xla.TensorMetadata.shape) -} - -// ------------------------------------------------------------------- - -// HostTransferMetadata - -// string key = 1; -inline void HostTransferMetadata::clear_key() { - key_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HostTransferMetadata::key() const { - // @@protoc_insertion_point(field_get:tensorflow.tf2xla.HostTransferMetadata.key) - return key_.Get(); -} -inline void HostTransferMetadata::set_key(const ::std::string& value) { - - key_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.tf2xla.HostTransferMetadata.key) -} -#if LANG_CXX11 -inline void HostTransferMetadata::set_key(::std::string&& value) { - - key_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.tf2xla.HostTransferMetadata.key) -} -#endif -inline void HostTransferMetadata::set_key(const char* value) { - GOOGLE_DCHECK(value != NULL); - - key_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.tf2xla.HostTransferMetadata.key) -} -inline void HostTransferMetadata::set_key(const char* value, - size_t size) { - - key_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.tf2xla.HostTransferMetadata.key) -} -inline ::std::string* HostTransferMetadata::mutable_key() { - - // @@protoc_insertion_point(field_mutable:tensorflow.tf2xla.HostTransferMetadata.key) - return key_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HostTransferMetadata::release_key() { - // @@protoc_insertion_point(field_release:tensorflow.tf2xla.HostTransferMetadata.key) - - return key_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HostTransferMetadata::set_allocated_key(::std::string* key) { - if (key != NULL) { - - } else { - - } - key_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.tf2xla.HostTransferMetadata.key) -} -inline ::std::string* HostTransferMetadata::unsafe_arena_release_key() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.tf2xla.HostTransferMetadata.key) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return key_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HostTransferMetadata::unsafe_arena_set_allocated_key( - ::std::string* key) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (key != NULL) { - - } else { - - } - key_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - key, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.tf2xla.HostTransferMetadata.key) -} - -// repeated .tensorflow.tf2xla.TensorMetadata metadata = 2; -inline int HostTransferMetadata::metadata_size() const { - return metadata_.size(); -} -inline void HostTransferMetadata::clear_metadata() { - metadata_.Clear(); -} -inline ::tensorflow::tf2xla::TensorMetadata* HostTransferMetadata::mutable_metadata(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.tf2xla.HostTransferMetadata.metadata) - return metadata_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::TensorMetadata >* -HostTransferMetadata::mutable_metadata() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.tf2xla.HostTransferMetadata.metadata) - return &metadata_; -} -inline const ::tensorflow::tf2xla::TensorMetadata& HostTransferMetadata::metadata(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.tf2xla.HostTransferMetadata.metadata) - return metadata_.Get(index); -} -inline ::tensorflow::tf2xla::TensorMetadata* HostTransferMetadata::add_metadata() { - // @@protoc_insertion_point(field_add:tensorflow.tf2xla.HostTransferMetadata.metadata) - return metadata_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::TensorMetadata >& -HostTransferMetadata::metadata() const { - // @@protoc_insertion_point(field_list:tensorflow.tf2xla.HostTransferMetadata.metadata) - return metadata_; -} - -// ------------------------------------------------------------------- - -// HostComputeMetadata - -// repeated .tensorflow.tf2xla.HostTransferMetadata device_to_host = 1; -inline int HostComputeMetadata::device_to_host_size() const { - return device_to_host_.size(); -} -inline void HostComputeMetadata::clear_device_to_host() { - device_to_host_.Clear(); -} -inline ::tensorflow::tf2xla::HostTransferMetadata* HostComputeMetadata::mutable_device_to_host(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.tf2xla.HostComputeMetadata.device_to_host) - return device_to_host_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::HostTransferMetadata >* -HostComputeMetadata::mutable_device_to_host() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.tf2xla.HostComputeMetadata.device_to_host) - return &device_to_host_; -} -inline const ::tensorflow::tf2xla::HostTransferMetadata& HostComputeMetadata::device_to_host(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.tf2xla.HostComputeMetadata.device_to_host) - return device_to_host_.Get(index); -} -inline ::tensorflow::tf2xla::HostTransferMetadata* HostComputeMetadata::add_device_to_host() { - // @@protoc_insertion_point(field_add:tensorflow.tf2xla.HostComputeMetadata.device_to_host) - return device_to_host_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::HostTransferMetadata >& -HostComputeMetadata::device_to_host() const { - // @@protoc_insertion_point(field_list:tensorflow.tf2xla.HostComputeMetadata.device_to_host) - return device_to_host_; -} - -// repeated .tensorflow.tf2xla.HostTransferMetadata host_to_device = 2; -inline int HostComputeMetadata::host_to_device_size() const { - return host_to_device_.size(); -} -inline void HostComputeMetadata::clear_host_to_device() { - host_to_device_.Clear(); -} -inline ::tensorflow::tf2xla::HostTransferMetadata* HostComputeMetadata::mutable_host_to_device(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.tf2xla.HostComputeMetadata.host_to_device) - return host_to_device_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::HostTransferMetadata >* -HostComputeMetadata::mutable_host_to_device() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.tf2xla.HostComputeMetadata.host_to_device) - return &host_to_device_; -} -inline const ::tensorflow::tf2xla::HostTransferMetadata& HostComputeMetadata::host_to_device(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.tf2xla.HostComputeMetadata.host_to_device) - return host_to_device_.Get(index); -} -inline ::tensorflow::tf2xla::HostTransferMetadata* HostComputeMetadata::add_host_to_device() { - // @@protoc_insertion_point(field_add:tensorflow.tf2xla.HostComputeMetadata.host_to_device) - return host_to_device_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::HostTransferMetadata >& -HostComputeMetadata::host_to_device() const { - // @@protoc_insertion_point(field_list:tensorflow.tf2xla.HostComputeMetadata.host_to_device) - return host_to_device_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tf2xla -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcompiler_2ftf2xla_2fhost_5fcompute_5fmetadata_2eproto diff --git a/linux/include/tensorflow/compiler/tf2xla/tf2xla.pb.h b/linux/include/tensorflow/compiler/tf2xla/tf2xla.pb.h deleted file mode 100755 index ee58a0e7e..000000000 --- a/linux/include/tensorflow/compiler/tf2xla/tf2xla.pb.h +++ /dev/null @@ -1,1223 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/compiler/tf2xla/tf2xla.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcompiler_2ftf2xla_2ftf2xla_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcompiler_2ftf2xla_2ftf2xla_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/types.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcompiler_2ftf2xla_2ftf2xla_2eproto - -namespace protobuf_tensorflow_2fcompiler_2ftf2xla_2ftf2xla_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[4]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcompiler_2ftf2xla_2ftf2xla_2eproto -namespace tensorflow { -namespace tf2xla { -class Config; -class ConfigDefaultTypeInternal; -extern ConfigDefaultTypeInternal _Config_default_instance_; -class Feed; -class FeedDefaultTypeInternal; -extern FeedDefaultTypeInternal _Feed_default_instance_; -class Fetch; -class FetchDefaultTypeInternal; -extern FetchDefaultTypeInternal _Fetch_default_instance_; -class TensorId; -class TensorIdDefaultTypeInternal; -extern TensorIdDefaultTypeInternal _TensorId_default_instance_; -} // namespace tf2xla -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::tf2xla::Config* Arena::CreateMaybeMessage<::tensorflow::tf2xla::Config>(Arena*); -template<> ::tensorflow::tf2xla::Feed* Arena::CreateMaybeMessage<::tensorflow::tf2xla::Feed>(Arena*); -template<> ::tensorflow::tf2xla::Fetch* Arena::CreateMaybeMessage<::tensorflow::tf2xla::Fetch>(Arena*); -template<> ::tensorflow::tf2xla::TensorId* Arena::CreateMaybeMessage<::tensorflow::tf2xla::TensorId>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { -namespace tf2xla { - -// =================================================================== - -class TensorId : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.tf2xla.TensorId) */ { - public: - TensorId(); - virtual ~TensorId(); - - TensorId(const TensorId& from); - - inline TensorId& operator=(const TensorId& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TensorId(TensorId&& from) noexcept - : TensorId() { - *this = ::std::move(from); - } - - inline TensorId& operator=(TensorId&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const TensorId& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TensorId* internal_default_instance() { - return reinterpret_cast( - &_TensorId_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(TensorId* other); - void Swap(TensorId* other); - friend void swap(TensorId& a, TensorId& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TensorId* New() const final { - return CreateMaybeMessage(NULL); - } - - TensorId* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TensorId& from); - void MergeFrom(const TensorId& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TensorId* other); - protected: - explicit TensorId(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string node_name = 1; - void clear_node_name(); - static const int kNodeNameFieldNumber = 1; - const ::std::string& node_name() const; - void set_node_name(const ::std::string& value); - #if LANG_CXX11 - void set_node_name(::std::string&& value); - #endif - void set_node_name(const char* value); - void set_node_name(const char* value, size_t size); - ::std::string* mutable_node_name(); - ::std::string* release_node_name(); - void set_allocated_node_name(::std::string* node_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_node_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_node_name( - ::std::string* node_name); - - // int64 output_index = 2; - void clear_output_index(); - static const int kOutputIndexFieldNumber = 2; - ::google::protobuf::int64 output_index() const; - void set_output_index(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:tensorflow.tf2xla.TensorId) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr node_name_; - ::google::protobuf::int64 output_index_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2ftf2xla_2ftf2xla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Feed : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.tf2xla.Feed) */ { - public: - Feed(); - virtual ~Feed(); - - Feed(const Feed& from); - - inline Feed& operator=(const Feed& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Feed(Feed&& from) noexcept - : Feed() { - *this = ::std::move(from); - } - - inline Feed& operator=(Feed&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const Feed& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Feed* internal_default_instance() { - return reinterpret_cast( - &_Feed_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(Feed* other); - void Swap(Feed* other); - friend void swap(Feed& a, Feed& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Feed* New() const final { - return CreateMaybeMessage(NULL); - } - - Feed* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Feed& from); - void MergeFrom(const Feed& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Feed* other); - protected: - explicit Feed(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string name = 3; - void clear_name(); - static const int kNameFieldNumber = 3; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // .tensorflow.tf2xla.TensorId id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - private: - const ::tensorflow::tf2xla::TensorId& _internal_id() const; - public: - const ::tensorflow::tf2xla::TensorId& id() const; - ::tensorflow::tf2xla::TensorId* release_id(); - ::tensorflow::tf2xla::TensorId* mutable_id(); - void set_allocated_id(::tensorflow::tf2xla::TensorId* id); - void unsafe_arena_set_allocated_id( - ::tensorflow::tf2xla::TensorId* id); - ::tensorflow::tf2xla::TensorId* unsafe_arena_release_id(); - - // .tensorflow.TensorShapeProto shape = 2; - bool has_shape() const; - void clear_shape(); - static const int kShapeFieldNumber = 2; - private: - const ::tensorflow::TensorShapeProto& _internal_shape() const; - public: - const ::tensorflow::TensorShapeProto& shape() const; - ::tensorflow::TensorShapeProto* release_shape(); - ::tensorflow::TensorShapeProto* mutable_shape(); - void set_allocated_shape(::tensorflow::TensorShapeProto* shape); - void unsafe_arena_set_allocated_shape( - ::tensorflow::TensorShapeProto* shape); - ::tensorflow::TensorShapeProto* unsafe_arena_release_shape(); - - // .tensorflow.DataType type = 4; - void clear_type(); - static const int kTypeFieldNumber = 4; - ::tensorflow::DataType type() const; - void set_type(::tensorflow::DataType value); - - // @@protoc_insertion_point(class_scope:tensorflow.tf2xla.Feed) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::tensorflow::tf2xla::TensorId* id_; - ::tensorflow::TensorShapeProto* shape_; - int type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2ftf2xla_2ftf2xla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Fetch : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.tf2xla.Fetch) */ { - public: - Fetch(); - virtual ~Fetch(); - - Fetch(const Fetch& from); - - inline Fetch& operator=(const Fetch& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Fetch(Fetch&& from) noexcept - : Fetch() { - *this = ::std::move(from); - } - - inline Fetch& operator=(Fetch&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const Fetch& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Fetch* internal_default_instance() { - return reinterpret_cast( - &_Fetch_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void UnsafeArenaSwap(Fetch* other); - void Swap(Fetch* other); - friend void swap(Fetch& a, Fetch& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Fetch* New() const final { - return CreateMaybeMessage(NULL); - } - - Fetch* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Fetch& from); - void MergeFrom(const Fetch& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Fetch* other); - protected: - explicit Fetch(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string name = 2; - void clear_name(); - static const int kNameFieldNumber = 2; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // .tensorflow.tf2xla.TensorId id = 1; - bool has_id() const; - void clear_id(); - static const int kIdFieldNumber = 1; - private: - const ::tensorflow::tf2xla::TensorId& _internal_id() const; - public: - const ::tensorflow::tf2xla::TensorId& id() const; - ::tensorflow::tf2xla::TensorId* release_id(); - ::tensorflow::tf2xla::TensorId* mutable_id(); - void set_allocated_id(::tensorflow::tf2xla::TensorId* id); - void unsafe_arena_set_allocated_id( - ::tensorflow::tf2xla::TensorId* id); - ::tensorflow::tf2xla::TensorId* unsafe_arena_release_id(); - - // @@protoc_insertion_point(class_scope:tensorflow.tf2xla.Fetch) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::tensorflow::tf2xla::TensorId* id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2ftf2xla_2ftf2xla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Config : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.tf2xla.Config) */ { - public: - Config(); - virtual ~Config(); - - Config(const Config& from); - - inline Config& operator=(const Config& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Config(Config&& from) noexcept - : Config() { - *this = ::std::move(from); - } - - inline Config& operator=(Config&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const Config& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Config* internal_default_instance() { - return reinterpret_cast( - &_Config_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void UnsafeArenaSwap(Config* other); - void Swap(Config* other); - friend void swap(Config& a, Config& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Config* New() const final { - return CreateMaybeMessage(NULL); - } - - Config* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Config& from); - void MergeFrom(const Config& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Config* other); - protected: - explicit Config(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.tf2xla.Feed feed = 1; - int feed_size() const; - void clear_feed(); - static const int kFeedFieldNumber = 1; - ::tensorflow::tf2xla::Feed* mutable_feed(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::Feed >* - mutable_feed(); - const ::tensorflow::tf2xla::Feed& feed(int index) const; - ::tensorflow::tf2xla::Feed* add_feed(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::Feed >& - feed() const; - - // repeated .tensorflow.tf2xla.Fetch fetch = 2; - int fetch_size() const; - void clear_fetch(); - static const int kFetchFieldNumber = 2; - ::tensorflow::tf2xla::Fetch* mutable_fetch(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::Fetch >* - mutable_fetch(); - const ::tensorflow::tf2xla::Fetch& fetch(int index) const; - ::tensorflow::tf2xla::Fetch* add_fetch(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::Fetch >& - fetch() const; - - // @@protoc_insertion_point(class_scope:tensorflow.tf2xla.Config) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::Feed > feed_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::Fetch > fetch_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2ftf2xla_2ftf2xla_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// TensorId - -// string node_name = 1; -inline void TensorId::clear_node_name() { - node_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& TensorId::node_name() const { - // @@protoc_insertion_point(field_get:tensorflow.tf2xla.TensorId.node_name) - return node_name_.Get(); -} -inline void TensorId::set_node_name(const ::std::string& value) { - - node_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.tf2xla.TensorId.node_name) -} -#if LANG_CXX11 -inline void TensorId::set_node_name(::std::string&& value) { - - node_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.tf2xla.TensorId.node_name) -} -#endif -inline void TensorId::set_node_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - node_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.tf2xla.TensorId.node_name) -} -inline void TensorId::set_node_name(const char* value, - size_t size) { - - node_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.tf2xla.TensorId.node_name) -} -inline ::std::string* TensorId::mutable_node_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.tf2xla.TensorId.node_name) - return node_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* TensorId::release_node_name() { - // @@protoc_insertion_point(field_release:tensorflow.tf2xla.TensorId.node_name) - - return node_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void TensorId::set_allocated_node_name(::std::string* node_name) { - if (node_name != NULL) { - - } else { - - } - node_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.tf2xla.TensorId.node_name) -} -inline ::std::string* TensorId::unsafe_arena_release_node_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.tf2xla.TensorId.node_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return node_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void TensorId::unsafe_arena_set_allocated_node_name( - ::std::string* node_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (node_name != NULL) { - - } else { - - } - node_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - node_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.tf2xla.TensorId.node_name) -} - -// int64 output_index = 2; -inline void TensorId::clear_output_index() { - output_index_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 TensorId::output_index() const { - // @@protoc_insertion_point(field_get:tensorflow.tf2xla.TensorId.output_index) - return output_index_; -} -inline void TensorId::set_output_index(::google::protobuf::int64 value) { - - output_index_ = value; - // @@protoc_insertion_point(field_set:tensorflow.tf2xla.TensorId.output_index) -} - -// ------------------------------------------------------------------- - -// Feed - -// .tensorflow.tf2xla.TensorId id = 1; -inline bool Feed::has_id() const { - return this != internal_default_instance() && id_ != NULL; -} -inline void Feed::clear_id() { - if (GetArenaNoVirtual() == NULL && id_ != NULL) { - delete id_; - } - id_ = NULL; -} -inline const ::tensorflow::tf2xla::TensorId& Feed::_internal_id() const { - return *id_; -} -inline const ::tensorflow::tf2xla::TensorId& Feed::id() const { - const ::tensorflow::tf2xla::TensorId* p = id_; - // @@protoc_insertion_point(field_get:tensorflow.tf2xla.Feed.id) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::tf2xla::_TensorId_default_instance_); -} -inline ::tensorflow::tf2xla::TensorId* Feed::release_id() { - // @@protoc_insertion_point(field_release:tensorflow.tf2xla.Feed.id) - - ::tensorflow::tf2xla::TensorId* temp = id_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - id_ = NULL; - return temp; -} -inline ::tensorflow::tf2xla::TensorId* Feed::unsafe_arena_release_id() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.tf2xla.Feed.id) - - ::tensorflow::tf2xla::TensorId* temp = id_; - id_ = NULL; - return temp; -} -inline ::tensorflow::tf2xla::TensorId* Feed::mutable_id() { - - if (id_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::tf2xla::TensorId>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.tf2xla.Feed.id) - return id_; -} -inline void Feed::set_allocated_id(::tensorflow::tf2xla::TensorId* id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete id_; - } - if (id) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(id); - if (message_arena != submessage_arena) { - id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, id, submessage_arena); - } - - } else { - - } - id_ = id; - // @@protoc_insertion_point(field_set_allocated:tensorflow.tf2xla.Feed.id) -} - -// .tensorflow.TensorShapeProto shape = 2; -inline bool Feed::has_shape() const { - return this != internal_default_instance() && shape_ != NULL; -} -inline const ::tensorflow::TensorShapeProto& Feed::_internal_shape() const { - return *shape_; -} -inline const ::tensorflow::TensorShapeProto& Feed::shape() const { - const ::tensorflow::TensorShapeProto* p = shape_; - // @@protoc_insertion_point(field_get:tensorflow.tf2xla.Feed.shape) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_TensorShapeProto_default_instance_); -} -inline ::tensorflow::TensorShapeProto* Feed::release_shape() { - // @@protoc_insertion_point(field_release:tensorflow.tf2xla.Feed.shape) - - ::tensorflow::TensorShapeProto* temp = shape_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - shape_ = NULL; - return temp; -} -inline ::tensorflow::TensorShapeProto* Feed::unsafe_arena_release_shape() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.tf2xla.Feed.shape) - - ::tensorflow::TensorShapeProto* temp = shape_; - shape_ = NULL; - return temp; -} -inline ::tensorflow::TensorShapeProto* Feed::mutable_shape() { - - if (shape_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::TensorShapeProto>(GetArenaNoVirtual()); - shape_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.tf2xla.Feed.shape) - return shape_; -} -inline void Feed::set_allocated_shape(::tensorflow::TensorShapeProto* shape) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(shape_); - } - if (shape) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(shape)->GetArena(); - if (message_arena != submessage_arena) { - shape = ::google::protobuf::internal::GetOwnedMessage( - message_arena, shape, submessage_arena); - } - - } else { - - } - shape_ = shape; - // @@protoc_insertion_point(field_set_allocated:tensorflow.tf2xla.Feed.shape) -} - -// string name = 3; -inline void Feed::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& Feed::name() const { - // @@protoc_insertion_point(field_get:tensorflow.tf2xla.Feed.name) - return name_.Get(); -} -inline void Feed::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.tf2xla.Feed.name) -} -#if LANG_CXX11 -inline void Feed::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.tf2xla.Feed.name) -} -#endif -inline void Feed::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.tf2xla.Feed.name) -} -inline void Feed::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.tf2xla.Feed.name) -} -inline ::std::string* Feed::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.tf2xla.Feed.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* Feed::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.tf2xla.Feed.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void Feed::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.tf2xla.Feed.name) -} -inline ::std::string* Feed::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.tf2xla.Feed.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void Feed::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.tf2xla.Feed.name) -} - -// .tensorflow.DataType type = 4; -inline void Feed::clear_type() { - type_ = 0; -} -inline ::tensorflow::DataType Feed::type() const { - // @@protoc_insertion_point(field_get:tensorflow.tf2xla.Feed.type) - return static_cast< ::tensorflow::DataType >(type_); -} -inline void Feed::set_type(::tensorflow::DataType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:tensorflow.tf2xla.Feed.type) -} - -// ------------------------------------------------------------------- - -// Fetch - -// .tensorflow.tf2xla.TensorId id = 1; -inline bool Fetch::has_id() const { - return this != internal_default_instance() && id_ != NULL; -} -inline void Fetch::clear_id() { - if (GetArenaNoVirtual() == NULL && id_ != NULL) { - delete id_; - } - id_ = NULL; -} -inline const ::tensorflow::tf2xla::TensorId& Fetch::_internal_id() const { - return *id_; -} -inline const ::tensorflow::tf2xla::TensorId& Fetch::id() const { - const ::tensorflow::tf2xla::TensorId* p = id_; - // @@protoc_insertion_point(field_get:tensorflow.tf2xla.Fetch.id) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::tf2xla::_TensorId_default_instance_); -} -inline ::tensorflow::tf2xla::TensorId* Fetch::release_id() { - // @@protoc_insertion_point(field_release:tensorflow.tf2xla.Fetch.id) - - ::tensorflow::tf2xla::TensorId* temp = id_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - id_ = NULL; - return temp; -} -inline ::tensorflow::tf2xla::TensorId* Fetch::unsafe_arena_release_id() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.tf2xla.Fetch.id) - - ::tensorflow::tf2xla::TensorId* temp = id_; - id_ = NULL; - return temp; -} -inline ::tensorflow::tf2xla::TensorId* Fetch::mutable_id() { - - if (id_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::tf2xla::TensorId>(GetArenaNoVirtual()); - id_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.tf2xla.Fetch.id) - return id_; -} -inline void Fetch::set_allocated_id(::tensorflow::tf2xla::TensorId* id) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete id_; - } - if (id) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(id); - if (message_arena != submessage_arena) { - id = ::google::protobuf::internal::GetOwnedMessage( - message_arena, id, submessage_arena); - } - - } else { - - } - id_ = id; - // @@protoc_insertion_point(field_set_allocated:tensorflow.tf2xla.Fetch.id) -} - -// string name = 2; -inline void Fetch::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& Fetch::name() const { - // @@protoc_insertion_point(field_get:tensorflow.tf2xla.Fetch.name) - return name_.Get(); -} -inline void Fetch::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.tf2xla.Fetch.name) -} -#if LANG_CXX11 -inline void Fetch::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.tf2xla.Fetch.name) -} -#endif -inline void Fetch::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.tf2xla.Fetch.name) -} -inline void Fetch::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.tf2xla.Fetch.name) -} -inline ::std::string* Fetch::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.tf2xla.Fetch.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* Fetch::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.tf2xla.Fetch.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void Fetch::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.tf2xla.Fetch.name) -} -inline ::std::string* Fetch::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.tf2xla.Fetch.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void Fetch::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.tf2xla.Fetch.name) -} - -// ------------------------------------------------------------------- - -// Config - -// repeated .tensorflow.tf2xla.Feed feed = 1; -inline int Config::feed_size() const { - return feed_.size(); -} -inline void Config::clear_feed() { - feed_.Clear(); -} -inline ::tensorflow::tf2xla::Feed* Config::mutable_feed(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.tf2xla.Config.feed) - return feed_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::Feed >* -Config::mutable_feed() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.tf2xla.Config.feed) - return &feed_; -} -inline const ::tensorflow::tf2xla::Feed& Config::feed(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.tf2xla.Config.feed) - return feed_.Get(index); -} -inline ::tensorflow::tf2xla::Feed* Config::add_feed() { - // @@protoc_insertion_point(field_add:tensorflow.tf2xla.Config.feed) - return feed_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::Feed >& -Config::feed() const { - // @@protoc_insertion_point(field_list:tensorflow.tf2xla.Config.feed) - return feed_; -} - -// repeated .tensorflow.tf2xla.Fetch fetch = 2; -inline int Config::fetch_size() const { - return fetch_.size(); -} -inline void Config::clear_fetch() { - fetch_.Clear(); -} -inline ::tensorflow::tf2xla::Fetch* Config::mutable_fetch(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.tf2xla.Config.fetch) - return fetch_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::Fetch >* -Config::mutable_fetch() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.tf2xla.Config.fetch) - return &fetch_; -} -inline const ::tensorflow::tf2xla::Fetch& Config::fetch(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.tf2xla.Config.fetch) - return fetch_.Get(index); -} -inline ::tensorflow::tf2xla::Fetch* Config::add_fetch() { - // @@protoc_insertion_point(field_add:tensorflow.tf2xla.Config.fetch) - return fetch_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::tf2xla::Fetch >& -Config::fetch() const { - // @@protoc_insertion_point(field_list:tensorflow.tf2xla.Config.fetch) - return fetch_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tf2xla -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcompiler_2ftf2xla_2ftf2xla_2eproto diff --git a/linux/include/tensorflow/compiler/xla/service/hlo.pb.h b/linux/include/tensorflow/compiler/xla/service/hlo.pb.h deleted file mode 100755 index 69e971d95..000000000 --- a/linux/include/tensorflow/compiler/xla/service/hlo.pb.h +++ /dev/null @@ -1,7612 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/compiler/xla/service/hlo.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include -#include "tensorflow/compiler/xla/xla_data.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto - -namespace protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[18]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto -namespace xla { -class BufferAllocationProto; -class BufferAllocationProtoDefaultTypeInternal; -extern BufferAllocationProtoDefaultTypeInternal _BufferAllocationProto_default_instance_; -class BufferAllocationProto_Assigned; -class BufferAllocationProto_AssignedDefaultTypeInternal; -extern BufferAllocationProto_AssignedDefaultTypeInternal _BufferAllocationProto_Assigned_default_instance_; -class BufferAssignmentProto; -class BufferAssignmentProtoDefaultTypeInternal; -extern BufferAssignmentProtoDefaultTypeInternal _BufferAssignmentProto_default_instance_; -class BufferAssignmentProto_BufferAlias; -class BufferAssignmentProto_BufferAliasDefaultTypeInternal; -extern BufferAssignmentProto_BufferAliasDefaultTypeInternal _BufferAssignmentProto_BufferAlias_default_instance_; -class HeapSimulatorTrace; -class HeapSimulatorTraceDefaultTypeInternal; -extern HeapSimulatorTraceDefaultTypeInternal _HeapSimulatorTrace_default_instance_; -class HeapSimulatorTrace_Event; -class HeapSimulatorTrace_EventDefaultTypeInternal; -extern HeapSimulatorTrace_EventDefaultTypeInternal _HeapSimulatorTrace_Event_default_instance_; -class HloComputationProto; -class HloComputationProtoDefaultTypeInternal; -extern HloComputationProtoDefaultTypeInternal _HloComputationProto_default_instance_; -class HloInstructionProto; -class HloInstructionProtoDefaultTypeInternal; -extern HloInstructionProtoDefaultTypeInternal _HloInstructionProto_default_instance_; -class HloInstructionProto_SliceDimensions; -class HloInstructionProto_SliceDimensionsDefaultTypeInternal; -extern HloInstructionProto_SliceDimensionsDefaultTypeInternal _HloInstructionProto_SliceDimensions_default_instance_; -class HloModuleGroupProto; -class HloModuleGroupProtoDefaultTypeInternal; -extern HloModuleGroupProtoDefaultTypeInternal _HloModuleGroupProto_default_instance_; -class HloModuleProto; -class HloModuleProtoDefaultTypeInternal; -extern HloModuleProtoDefaultTypeInternal _HloModuleProto_default_instance_; -class HloProto; -class HloProtoDefaultTypeInternal; -extern HloProtoDefaultTypeInternal _HloProto_default_instance_; -class HloScheduleProto; -class HloScheduleProtoDefaultTypeInternal; -extern HloScheduleProtoDefaultTypeInternal _HloScheduleProto_default_instance_; -class HloScheduleProto_InstructionSequence; -class HloScheduleProto_InstructionSequenceDefaultTypeInternal; -extern HloScheduleProto_InstructionSequenceDefaultTypeInternal _HloScheduleProto_InstructionSequence_default_instance_; -class HloScheduleProto_SequencesEntry_DoNotUse; -class HloScheduleProto_SequencesEntry_DoNotUseDefaultTypeInternal; -extern HloScheduleProto_SequencesEntry_DoNotUseDefaultTypeInternal _HloScheduleProto_SequencesEntry_DoNotUse_default_instance_; -class HloSnapshot; -class HloSnapshotDefaultTypeInternal; -extern HloSnapshotDefaultTypeInternal _HloSnapshot_default_instance_; -class LogicalBufferProto; -class LogicalBufferProtoDefaultTypeInternal; -extern LogicalBufferProtoDefaultTypeInternal _LogicalBufferProto_default_instance_; -class LogicalBufferProto_Location; -class LogicalBufferProto_LocationDefaultTypeInternal; -extern LogicalBufferProto_LocationDefaultTypeInternal _LogicalBufferProto_Location_default_instance_; -} // namespace xla -namespace google { -namespace protobuf { -template<> ::xla::BufferAllocationProto* Arena::CreateMaybeMessage<::xla::BufferAllocationProto>(Arena*); -template<> ::xla::BufferAllocationProto_Assigned* Arena::CreateMaybeMessage<::xla::BufferAllocationProto_Assigned>(Arena*); -template<> ::xla::BufferAssignmentProto* Arena::CreateMaybeMessage<::xla::BufferAssignmentProto>(Arena*); -template<> ::xla::BufferAssignmentProto_BufferAlias* Arena::CreateMaybeMessage<::xla::BufferAssignmentProto_BufferAlias>(Arena*); -template<> ::xla::HeapSimulatorTrace* Arena::CreateMaybeMessage<::xla::HeapSimulatorTrace>(Arena*); -template<> ::xla::HeapSimulatorTrace_Event* Arena::CreateMaybeMessage<::xla::HeapSimulatorTrace_Event>(Arena*); -template<> ::xla::HloComputationProto* Arena::CreateMaybeMessage<::xla::HloComputationProto>(Arena*); -template<> ::xla::HloInstructionProto* Arena::CreateMaybeMessage<::xla::HloInstructionProto>(Arena*); -template<> ::xla::HloInstructionProto_SliceDimensions* Arena::CreateMaybeMessage<::xla::HloInstructionProto_SliceDimensions>(Arena*); -template<> ::xla::HloModuleGroupProto* Arena::CreateMaybeMessage<::xla::HloModuleGroupProto>(Arena*); -template<> ::xla::HloModuleProto* Arena::CreateMaybeMessage<::xla::HloModuleProto>(Arena*); -template<> ::xla::HloProto* Arena::CreateMaybeMessage<::xla::HloProto>(Arena*); -template<> ::xla::HloScheduleProto* Arena::CreateMaybeMessage<::xla::HloScheduleProto>(Arena*); -template<> ::xla::HloScheduleProto_InstructionSequence* Arena::CreateMaybeMessage<::xla::HloScheduleProto_InstructionSequence>(Arena*); -template<> ::xla::HloScheduleProto_SequencesEntry_DoNotUse* Arena::CreateMaybeMessage<::xla::HloScheduleProto_SequencesEntry_DoNotUse>(Arena*); -template<> ::xla::HloSnapshot* Arena::CreateMaybeMessage<::xla::HloSnapshot>(Arena*); -template<> ::xla::LogicalBufferProto* Arena::CreateMaybeMessage<::xla::LogicalBufferProto>(Arena*); -template<> ::xla::LogicalBufferProto_Location* Arena::CreateMaybeMessage<::xla::LogicalBufferProto_Location>(Arena*); -} // namespace protobuf -} // namespace google -namespace xla { - -enum HeapSimulatorTrace_Event_Kind { - HeapSimulatorTrace_Event_Kind_ALLOC = 0, - HeapSimulatorTrace_Event_Kind_FREE = 1, - HeapSimulatorTrace_Event_Kind_SHARE_WITH = 2, - HeapSimulatorTrace_Event_Kind_HeapSimulatorTrace_Event_Kind_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - HeapSimulatorTrace_Event_Kind_HeapSimulatorTrace_Event_Kind_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool HeapSimulatorTrace_Event_Kind_IsValid(int value); -const HeapSimulatorTrace_Event_Kind HeapSimulatorTrace_Event_Kind_Kind_MIN = HeapSimulatorTrace_Event_Kind_ALLOC; -const HeapSimulatorTrace_Event_Kind HeapSimulatorTrace_Event_Kind_Kind_MAX = HeapSimulatorTrace_Event_Kind_SHARE_WITH; -const int HeapSimulatorTrace_Event_Kind_Kind_ARRAYSIZE = HeapSimulatorTrace_Event_Kind_Kind_MAX + 1; - -const ::google::protobuf::EnumDescriptor* HeapSimulatorTrace_Event_Kind_descriptor(); -inline const ::std::string& HeapSimulatorTrace_Event_Kind_Name(HeapSimulatorTrace_Event_Kind value) { - return ::google::protobuf::internal::NameOfEnum( - HeapSimulatorTrace_Event_Kind_descriptor(), value); -} -inline bool HeapSimulatorTrace_Event_Kind_Parse( - const ::std::string& name, HeapSimulatorTrace_Event_Kind* value) { - return ::google::protobuf::internal::ParseNamedEnum( - HeapSimulatorTrace_Event_Kind_descriptor(), name, value); -} -// =================================================================== - -class HloInstructionProto_SliceDimensions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloInstructionProto.SliceDimensions) */ { - public: - HloInstructionProto_SliceDimensions(); - virtual ~HloInstructionProto_SliceDimensions(); - - HloInstructionProto_SliceDimensions(const HloInstructionProto_SliceDimensions& from); - - inline HloInstructionProto_SliceDimensions& operator=(const HloInstructionProto_SliceDimensions& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HloInstructionProto_SliceDimensions(HloInstructionProto_SliceDimensions&& from) noexcept - : HloInstructionProto_SliceDimensions() { - *this = ::std::move(from); - } - - inline HloInstructionProto_SliceDimensions& operator=(HloInstructionProto_SliceDimensions&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const HloInstructionProto_SliceDimensions& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HloInstructionProto_SliceDimensions* internal_default_instance() { - return reinterpret_cast( - &_HloInstructionProto_SliceDimensions_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(HloInstructionProto_SliceDimensions* other); - void Swap(HloInstructionProto_SliceDimensions* other); - friend void swap(HloInstructionProto_SliceDimensions& a, HloInstructionProto_SliceDimensions& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HloInstructionProto_SliceDimensions* New() const final { - return CreateMaybeMessage(NULL); - } - - HloInstructionProto_SliceDimensions* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HloInstructionProto_SliceDimensions& from); - void MergeFrom(const HloInstructionProto_SliceDimensions& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HloInstructionProto_SliceDimensions* other); - protected: - explicit HloInstructionProto_SliceDimensions(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 start = 1; - void clear_start(); - static const int kStartFieldNumber = 1; - ::google::protobuf::int64 start() const; - void set_start(::google::protobuf::int64 value); - - // int64 limit = 2; - void clear_limit(); - static const int kLimitFieldNumber = 2; - ::google::protobuf::int64 limit() const; - void set_limit(::google::protobuf::int64 value); - - // int64 stride = 3; - void clear_stride(); - static const int kStrideFieldNumber = 3; - ::google::protobuf::int64 stride() const; - void set_stride(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.HloInstructionProto.SliceDimensions) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int64 start_; - ::google::protobuf::int64 limit_; - ::google::protobuf::int64 stride_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class HloInstructionProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloInstructionProto) */ { - public: - HloInstructionProto(); - virtual ~HloInstructionProto(); - - HloInstructionProto(const HloInstructionProto& from); - - inline HloInstructionProto& operator=(const HloInstructionProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HloInstructionProto(HloInstructionProto&& from) noexcept - : HloInstructionProto() { - *this = ::std::move(from); - } - - inline HloInstructionProto& operator=(HloInstructionProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const HloInstructionProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HloInstructionProto* internal_default_instance() { - return reinterpret_cast( - &_HloInstructionProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(HloInstructionProto* other); - void Swap(HloInstructionProto* other); - friend void swap(HloInstructionProto& a, HloInstructionProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HloInstructionProto* New() const final { - return CreateMaybeMessage(NULL); - } - - HloInstructionProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HloInstructionProto& from); - void MergeFrom(const HloInstructionProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HloInstructionProto* other); - protected: - explicit HloInstructionProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef HloInstructionProto_SliceDimensions SliceDimensions; - - // accessors ------------------------------------------------------- - - // repeated int64 dimensions = 14; - int dimensions_size() const; - void clear_dimensions(); - static const int kDimensionsFieldNumber = 14; - ::google::protobuf::int64 dimensions(int index) const; - void set_dimensions(int index, ::google::protobuf::int64 value); - void add_dimensions(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - dimensions() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_dimensions(); - - // repeated .xla.HloInstructionProto.SliceDimensions slice_dimensions = 17; - int slice_dimensions_size() const; - void clear_slice_dimensions(); - static const int kSliceDimensionsFieldNumber = 17; - ::xla::HloInstructionProto_SliceDimensions* mutable_slice_dimensions(int index); - ::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto_SliceDimensions >* - mutable_slice_dimensions(); - const ::xla::HloInstructionProto_SliceDimensions& slice_dimensions(int index) const; - ::xla::HloInstructionProto_SliceDimensions* add_slice_dimensions(); - const ::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto_SliceDimensions >& - slice_dimensions() const; - - // repeated int64 dynamic_slice_sizes = 20; - int dynamic_slice_sizes_size() const; - void clear_dynamic_slice_sizes(); - static const int kDynamicSliceSizesFieldNumber = 20; - ::google::protobuf::int64 dynamic_slice_sizes(int index) const; - void set_dynamic_slice_sizes(int index, ::google::protobuf::int64 value); - void add_dynamic_slice_sizes(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - dynamic_slice_sizes() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_dynamic_slice_sizes(); - - // repeated int64 fft_length = 32; - int fft_length_size() const; - void clear_fft_length(); - static const int kFftLengthFieldNumber = 32; - ::google::protobuf::int64 fft_length(int index) const; - void set_fft_length(int index, ::google::protobuf::int64 value); - void add_fft_length(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - fft_length() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_fft_length(); - - // repeated int64 gather_slice_sizes = 34; - int gather_slice_sizes_size() const; - void clear_gather_slice_sizes(); - static const int kGatherSliceSizesFieldNumber = 34; - ::google::protobuf::int64 gather_slice_sizes(int index) const; - void set_gather_slice_sizes(int index, ::google::protobuf::int64 value); - void add_gather_slice_sizes(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - gather_slice_sizes() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_gather_slice_sizes(); - - // repeated int64 operand_ids = 36; - int operand_ids_size() const; - void clear_operand_ids(); - static const int kOperandIdsFieldNumber = 36; - ::google::protobuf::int64 operand_ids(int index) const; - void set_operand_ids(int index, ::google::protobuf::int64 value); - void add_operand_ids(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - operand_ids() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_operand_ids(); - - // repeated int64 control_predecessor_ids = 37; - int control_predecessor_ids_size() const; - void clear_control_predecessor_ids(); - static const int kControlPredecessorIdsFieldNumber = 37; - ::google::protobuf::int64 control_predecessor_ids(int index) const; - void set_control_predecessor_ids(int index, ::google::protobuf::int64 value); - void add_control_predecessor_ids(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - control_predecessor_ids() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_control_predecessor_ids(); - - // repeated int64 called_computation_ids = 38; - int called_computation_ids_size() const; - void clear_called_computation_ids(); - static const int kCalledComputationIdsFieldNumber = 38; - ::google::protobuf::int64 called_computation_ids(int index) const; - void set_called_computation_ids(int index, ::google::protobuf::int64 value); - void add_called_computation_ids(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - called_computation_ids() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_called_computation_ids(); - - // repeated .xla.ReplicaGroup replica_groups = 49; - int replica_groups_size() const; - void clear_replica_groups(); - static const int kReplicaGroupsFieldNumber = 49; - ::xla::ReplicaGroup* mutable_replica_groups(int index); - ::google::protobuf::RepeatedPtrField< ::xla::ReplicaGroup >* - mutable_replica_groups(); - const ::xla::ReplicaGroup& replica_groups(int index) const; - ::xla::ReplicaGroup* add_replica_groups(); - const ::google::protobuf::RepeatedPtrField< ::xla::ReplicaGroup >& - replica_groups() const; - - // repeated .xla.SourceTarget source_target_pairs = 52; - int source_target_pairs_size() const; - void clear_source_target_pairs(); - static const int kSourceTargetPairsFieldNumber = 52; - ::xla::SourceTarget* mutable_source_target_pairs(int index); - ::google::protobuf::RepeatedPtrField< ::xla::SourceTarget >* - mutable_source_target_pairs(); - const ::xla::SourceTarget& source_target_pairs(int index) const; - ::xla::SourceTarget* add_source_target_pairs(); - const ::google::protobuf::RepeatedPtrField< ::xla::SourceTarget >& - source_target_pairs() const; - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // string opcode = 2; - void clear_opcode(); - static const int kOpcodeFieldNumber = 2; - const ::std::string& opcode() const; - void set_opcode(const ::std::string& value); - #if LANG_CXX11 - void set_opcode(::std::string&& value); - #endif - void set_opcode(const char* value); - void set_opcode(const char* value, size_t size); - ::std::string* mutable_opcode(); - ::std::string* release_opcode(); - void set_allocated_opcode(::std::string* opcode); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_opcode(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_opcode( - ::std::string* opcode); - - // string fusion_kind = 11; - void clear_fusion_kind(); - static const int kFusionKindFieldNumber = 11; - const ::std::string& fusion_kind() const; - void set_fusion_kind(const ::std::string& value); - #if LANG_CXX11 - void set_fusion_kind(::std::string&& value); - #endif - void set_fusion_kind(const char* value); - void set_fusion_kind(const char* value, size_t size); - ::std::string* mutable_fusion_kind(); - ::std::string* release_fusion_kind(); - void set_allocated_fusion_kind(::std::string* fusion_kind); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_fusion_kind(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_fusion_kind( - ::std::string* fusion_kind); - - // bytes outfeed_config = 22; - void clear_outfeed_config(); - static const int kOutfeedConfigFieldNumber = 22; - const ::std::string& outfeed_config() const; - void set_outfeed_config(const ::std::string& value); - #if LANG_CXX11 - void set_outfeed_config(::std::string&& value); - #endif - void set_outfeed_config(const char* value); - void set_outfeed_config(const void* value, size_t size); - ::std::string* mutable_outfeed_config(); - ::std::string* release_outfeed_config(); - void set_allocated_outfeed_config(::std::string* outfeed_config); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_outfeed_config(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_outfeed_config( - ::std::string* outfeed_config); - - // bytes infeed_config = 27; - void clear_infeed_config(); - static const int kInfeedConfigFieldNumber = 27; - const ::std::string& infeed_config() const; - void set_infeed_config(const ::std::string& value); - #if LANG_CXX11 - void set_infeed_config(::std::string&& value); - #endif - void set_infeed_config(const char* value); - void set_infeed_config(const void* value, size_t size); - ::std::string* mutable_infeed_config(); - ::std::string* release_infeed_config(); - void set_allocated_infeed_config(::std::string* infeed_config); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_infeed_config(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_infeed_config( - ::std::string* infeed_config); - - // string custom_call_target = 28; - void clear_custom_call_target(); - static const int kCustomCallTargetFieldNumber = 28; - const ::std::string& custom_call_target() const; - void set_custom_call_target(const ::std::string& value); - #if LANG_CXX11 - void set_custom_call_target(::std::string&& value); - #endif - void set_custom_call_target(const char* value); - void set_custom_call_target(const char* value, size_t size); - ::std::string* mutable_custom_call_target(); - ::std::string* release_custom_call_target(); - void set_allocated_custom_call_target(::std::string* custom_call_target); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_custom_call_target(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_custom_call_target( - ::std::string* custom_call_target); - - // string channel_name = 41; - void clear_channel_name(); - static const int kChannelNameFieldNumber = 41; - const ::std::string& channel_name() const; - void set_channel_name(const ::std::string& value); - #if LANG_CXX11 - void set_channel_name(::std::string&& value); - #endif - void set_channel_name(const char* value); - void set_channel_name(const char* value, size_t size); - ::std::string* mutable_channel_name(); - ::std::string* release_channel_name(); - void set_allocated_channel_name(::std::string* channel_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_channel_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_channel_name( - ::std::string* channel_name); - - // string backend_config = 43; - void clear_backend_config(); - static const int kBackendConfigFieldNumber = 43; - const ::std::string& backend_config() const; - void set_backend_config(const ::std::string& value); - #if LANG_CXX11 - void set_backend_config(::std::string&& value); - #endif - void set_backend_config(const char* value); - void set_backend_config(const char* value, size_t size); - ::std::string* mutable_backend_config(); - ::std::string* release_backend_config(); - void set_allocated_backend_config(::std::string* backend_config); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_backend_config(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_backend_config( - ::std::string* backend_config); - - // string cross_replica_sum_barrier = 46; - void clear_cross_replica_sum_barrier(); - static const int kCrossReplicaSumBarrierFieldNumber = 46; - const ::std::string& cross_replica_sum_barrier() const; - void set_cross_replica_sum_barrier(const ::std::string& value); - #if LANG_CXX11 - void set_cross_replica_sum_barrier(::std::string&& value); - #endif - void set_cross_replica_sum_barrier(const char* value); - void set_cross_replica_sum_barrier(const char* value, size_t size); - ::std::string* mutable_cross_replica_sum_barrier(); - ::std::string* release_cross_replica_sum_barrier(); - void set_allocated_cross_replica_sum_barrier(::std::string* cross_replica_sum_barrier); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_cross_replica_sum_barrier(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_cross_replica_sum_barrier( - ::std::string* cross_replica_sum_barrier); - - // string custom_call_opaque = 53; - void clear_custom_call_opaque(); - static const int kCustomCallOpaqueFieldNumber = 53; - const ::std::string& custom_call_opaque() const; - void set_custom_call_opaque(const ::std::string& value); - #if LANG_CXX11 - void set_custom_call_opaque(::std::string&& value); - #endif - void set_custom_call_opaque(const char* value); - void set_custom_call_opaque(const char* value, size_t size); - ::std::string* mutable_custom_call_opaque(); - ::std::string* release_custom_call_opaque(); - void set_allocated_custom_call_opaque(::std::string* custom_call_opaque); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_custom_call_opaque(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_custom_call_opaque( - ::std::string* custom_call_opaque); - - // .xla.Shape shape = 3; - bool has_shape() const; - void clear_shape(); - static const int kShapeFieldNumber = 3; - private: - const ::xla::Shape& _internal_shape() const; - public: - const ::xla::Shape& shape() const; - ::xla::Shape* release_shape(); - ::xla::Shape* mutable_shape(); - void set_allocated_shape(::xla::Shape* shape); - void unsafe_arena_set_allocated_shape( - ::xla::Shape* shape); - ::xla::Shape* unsafe_arena_release_shape(); - - // .xla.OpMetadata metadata = 7; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 7; - private: - const ::xla::OpMetadata& _internal_metadata() const; - public: - const ::xla::OpMetadata& metadata() const; - ::xla::OpMetadata* release_metadata(); - ::xla::OpMetadata* mutable_metadata(); - void set_allocated_metadata(::xla::OpMetadata* metadata); - void unsafe_arena_set_allocated_metadata( - ::xla::OpMetadata* metadata); - ::xla::OpMetadata* unsafe_arena_release_metadata(); - - // .xla.LiteralProto literal = 8; - bool has_literal() const; - void clear_literal(); - static const int kLiteralFieldNumber = 8; - private: - const ::xla::LiteralProto& _internal_literal() const; - public: - const ::xla::LiteralProto& literal() const; - ::xla::LiteralProto* release_literal(); - ::xla::LiteralProto* mutable_literal(); - void set_allocated_literal(::xla::LiteralProto* literal); - void unsafe_arena_set_allocated_literal( - ::xla::LiteralProto* literal); - ::xla::LiteralProto* unsafe_arena_release_literal(); - - // .xla.Window window = 15; - bool has_window() const; - void clear_window(); - static const int kWindowFieldNumber = 15; - private: - const ::xla::Window& _internal_window() const; - public: - const ::xla::Window& window() const; - ::xla::Window* release_window(); - ::xla::Window* mutable_window(); - void set_allocated_window(::xla::Window* window); - void unsafe_arena_set_allocated_window( - ::xla::Window* window); - ::xla::Window* unsafe_arena_release_window(); - - // .xla.ConvolutionDimensionNumbers convolution_dimension_numbers = 16; - bool has_convolution_dimension_numbers() const; - void clear_convolution_dimension_numbers(); - static const int kConvolutionDimensionNumbersFieldNumber = 16; - private: - const ::xla::ConvolutionDimensionNumbers& _internal_convolution_dimension_numbers() const; - public: - const ::xla::ConvolutionDimensionNumbers& convolution_dimension_numbers() const; - ::xla::ConvolutionDimensionNumbers* release_convolution_dimension_numbers(); - ::xla::ConvolutionDimensionNumbers* mutable_convolution_dimension_numbers(); - void set_allocated_convolution_dimension_numbers(::xla::ConvolutionDimensionNumbers* convolution_dimension_numbers); - void unsafe_arena_set_allocated_convolution_dimension_numbers( - ::xla::ConvolutionDimensionNumbers* convolution_dimension_numbers); - ::xla::ConvolutionDimensionNumbers* unsafe_arena_release_convolution_dimension_numbers(); - - // .xla.PaddingConfig padding_config = 21; - bool has_padding_config() const; - void clear_padding_config(); - static const int kPaddingConfigFieldNumber = 21; - private: - const ::xla::PaddingConfig& _internal_padding_config() const; - public: - const ::xla::PaddingConfig& padding_config() const; - ::xla::PaddingConfig* release_padding_config(); - ::xla::PaddingConfig* mutable_padding_config(); - void set_allocated_padding_config(::xla::PaddingConfig* padding_config); - void unsafe_arena_set_allocated_padding_config( - ::xla::PaddingConfig* padding_config); - ::xla::PaddingConfig* unsafe_arena_release_padding_config(); - - // .xla.Shape outfeed_shape = 29; - bool has_outfeed_shape() const; - void clear_outfeed_shape(); - static const int kOutfeedShapeFieldNumber = 29; - private: - const ::xla::Shape& _internal_outfeed_shape() const; - public: - const ::xla::Shape& outfeed_shape() const; - ::xla::Shape* release_outfeed_shape(); - ::xla::Shape* mutable_outfeed_shape(); - void set_allocated_outfeed_shape(::xla::Shape* outfeed_shape); - void unsafe_arena_set_allocated_outfeed_shape( - ::xla::Shape* outfeed_shape); - ::xla::Shape* unsafe_arena_release_outfeed_shape(); - - // .xla.DotDimensionNumbers dot_dimension_numbers = 30; - bool has_dot_dimension_numbers() const; - void clear_dot_dimension_numbers(); - static const int kDotDimensionNumbersFieldNumber = 30; - private: - const ::xla::DotDimensionNumbers& _internal_dot_dimension_numbers() const; - public: - const ::xla::DotDimensionNumbers& dot_dimension_numbers() const; - ::xla::DotDimensionNumbers* release_dot_dimension_numbers(); - ::xla::DotDimensionNumbers* mutable_dot_dimension_numbers(); - void set_allocated_dot_dimension_numbers(::xla::DotDimensionNumbers* dot_dimension_numbers); - void unsafe_arena_set_allocated_dot_dimension_numbers( - ::xla::DotDimensionNumbers* dot_dimension_numbers); - ::xla::DotDimensionNumbers* unsafe_arena_release_dot_dimension_numbers(); - - // .xla.GatherDimensionNumbers gather_dimension_numbers = 33; - bool has_gather_dimension_numbers() const; - void clear_gather_dimension_numbers(); - static const int kGatherDimensionNumbersFieldNumber = 33; - private: - const ::xla::GatherDimensionNumbers& _internal_gather_dimension_numbers() const; - public: - const ::xla::GatherDimensionNumbers& gather_dimension_numbers() const; - ::xla::GatherDimensionNumbers* release_gather_dimension_numbers(); - ::xla::GatherDimensionNumbers* mutable_gather_dimension_numbers(); - void set_allocated_gather_dimension_numbers(::xla::GatherDimensionNumbers* gather_dimension_numbers); - void unsafe_arena_set_allocated_gather_dimension_numbers( - ::xla::GatherDimensionNumbers* gather_dimension_numbers); - ::xla::GatherDimensionNumbers* unsafe_arena_release_gather_dimension_numbers(); - - // .xla.OpSharding sharding = 40; - bool has_sharding() const; - void clear_sharding(); - static const int kShardingFieldNumber = 40; - private: - const ::xla::OpSharding& _internal_sharding() const; - public: - const ::xla::OpSharding& sharding() const; - ::xla::OpSharding* release_sharding(); - ::xla::OpSharding* mutable_sharding(); - void set_allocated_sharding(::xla::OpSharding* sharding); - void unsafe_arena_set_allocated_sharding( - ::xla::OpSharding* sharding); - ::xla::OpSharding* unsafe_arena_release_sharding(); - - // .xla.ScatterDimensionNumbers scatter_dimension_numbers = 48; - bool has_scatter_dimension_numbers() const; - void clear_scatter_dimension_numbers(); - static const int kScatterDimensionNumbersFieldNumber = 48; - private: - const ::xla::ScatterDimensionNumbers& _internal_scatter_dimension_numbers() const; - public: - const ::xla::ScatterDimensionNumbers& scatter_dimension_numbers() const; - ::xla::ScatterDimensionNumbers* release_scatter_dimension_numbers(); - ::xla::ScatterDimensionNumbers* mutable_scatter_dimension_numbers(); - void set_allocated_scatter_dimension_numbers(::xla::ScatterDimensionNumbers* scatter_dimension_numbers); - void unsafe_arena_set_allocated_scatter_dimension_numbers( - ::xla::ScatterDimensionNumbers* scatter_dimension_numbers); - ::xla::ScatterDimensionNumbers* unsafe_arena_release_scatter_dimension_numbers(); - - // .xla.PrecisionConfig precision_config = 51; - bool has_precision_config() const; - void clear_precision_config(); - static const int kPrecisionConfigFieldNumber = 51; - private: - const ::xla::PrecisionConfig& _internal_precision_config() const; - public: - const ::xla::PrecisionConfig& precision_config() const; - ::xla::PrecisionConfig* release_precision_config(); - ::xla::PrecisionConfig* mutable_precision_config(); - void set_allocated_precision_config(::xla::PrecisionConfig* precision_config); - void unsafe_arena_set_allocated_precision_config( - ::xla::PrecisionConfig* precision_config); - ::xla::PrecisionConfig* unsafe_arena_release_precision_config(); - - // int64 parameter_number = 9; - void clear_parameter_number(); - static const int kParameterNumberFieldNumber = 9; - ::google::protobuf::int64 parameter_number() const; - void set_parameter_number(::google::protobuf::int64 value); - - // int64 tuple_index = 13; - void clear_tuple_index(); - static const int kTupleIndexFieldNumber = 13; - ::google::protobuf::int64 tuple_index() const; - void set_tuple_index(::google::protobuf::int64 value); - - // int32 exponent_bits = 18; - void clear_exponent_bits(); - static const int kExponentBitsFieldNumber = 18; - ::google::protobuf::int32 exponent_bits() const; - void set_exponent_bits(::google::protobuf::int32 value); - - // int32 mantissa_bits = 19; - void clear_mantissa_bits(); - static const int kMantissaBitsFieldNumber = 19; - ::google::protobuf::int32 mantissa_bits() const; - void set_mantissa_bits(::google::protobuf::int32 value); - - // .xla.RandomDistribution distribution = 23; - void clear_distribution(); - static const int kDistributionFieldNumber = 23; - ::xla::RandomDistribution distribution() const; - void set_distribution(::xla::RandomDistribution value); - - // float epsilon = 24; - void clear_epsilon(); - static const int kEpsilonFieldNumber = 24; - float epsilon() const; - void set_epsilon(float value); - - // int64 feature_index = 25; - void clear_feature_index(); - static const int kFeatureIndexFieldNumber = 25; - ::google::protobuf::int64 feature_index() const; - void set_feature_index(::google::protobuf::int64 value); - - // int64 channel_id = 26; - void clear_channel_id(); - static const int kChannelIdFieldNumber = 26; - ::google::protobuf::int64 channel_id() const; - void set_channel_id(::google::protobuf::int64 value); - - // int64 id = 35; - void clear_id(); - static const int kIdFieldNumber = 35; - ::google::protobuf::int64 id() const; - void set_id(::google::protobuf::int64 value); - - // .xla.FftType fft_type = 31; - void clear_fft_type(); - static const int kFftTypeFieldNumber = 31; - ::xla::FftType fft_type() const; - void set_fft_type(::xla::FftType value); - - // bool is_host_transfer = 47; - void clear_is_host_transfer(); - static const int kIsHostTransferFieldNumber = 47; - bool is_host_transfer() const; - void set_is_host_transfer(bool value); - - // int64 cost_estimate_ns = 42; - void clear_cost_estimate_ns(); - static const int kCostEstimateNsFieldNumber = 42; - ::google::protobuf::int64 cost_estimate_ns() const; - void set_cost_estimate_ns(::google::protobuf::int64 value); - - // int64 all_reduce_id = 45; - void clear_all_reduce_id(); - static const int kAllReduceIdFieldNumber = 45; - ::google::protobuf::int64 all_reduce_id() const; - void set_all_reduce_id(::google::protobuf::int64 value); - - // int64 feature_group_count = 50; - void clear_feature_group_count(); - static const int kFeatureGroupCountFieldNumber = 50; - ::google::protobuf::int64 feature_group_count() const; - void set_feature_group_count(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.HloInstructionProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > dimensions_; - mutable int _dimensions_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto_SliceDimensions > slice_dimensions_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > dynamic_slice_sizes_; - mutable int _dynamic_slice_sizes_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > fft_length_; - mutable int _fft_length_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > gather_slice_sizes_; - mutable int _gather_slice_sizes_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > operand_ids_; - mutable int _operand_ids_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > control_predecessor_ids_; - mutable int _control_predecessor_ids_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > called_computation_ids_; - mutable int _called_computation_ids_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::xla::ReplicaGroup > replica_groups_; - ::google::protobuf::RepeatedPtrField< ::xla::SourceTarget > source_target_pairs_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr opcode_; - ::google::protobuf::internal::ArenaStringPtr fusion_kind_; - ::google::protobuf::internal::ArenaStringPtr outfeed_config_; - ::google::protobuf::internal::ArenaStringPtr infeed_config_; - ::google::protobuf::internal::ArenaStringPtr custom_call_target_; - ::google::protobuf::internal::ArenaStringPtr channel_name_; - ::google::protobuf::internal::ArenaStringPtr backend_config_; - ::google::protobuf::internal::ArenaStringPtr cross_replica_sum_barrier_; - ::google::protobuf::internal::ArenaStringPtr custom_call_opaque_; - ::xla::Shape* shape_; - ::xla::OpMetadata* metadata_; - ::xla::LiteralProto* literal_; - ::xla::Window* window_; - ::xla::ConvolutionDimensionNumbers* convolution_dimension_numbers_; - ::xla::PaddingConfig* padding_config_; - ::xla::Shape* outfeed_shape_; - ::xla::DotDimensionNumbers* dot_dimension_numbers_; - ::xla::GatherDimensionNumbers* gather_dimension_numbers_; - ::xla::OpSharding* sharding_; - ::xla::ScatterDimensionNumbers* scatter_dimension_numbers_; - ::xla::PrecisionConfig* precision_config_; - ::google::protobuf::int64 parameter_number_; - ::google::protobuf::int64 tuple_index_; - ::google::protobuf::int32 exponent_bits_; - ::google::protobuf::int32 mantissa_bits_; - int distribution_; - float epsilon_; - ::google::protobuf::int64 feature_index_; - ::google::protobuf::int64 channel_id_; - ::google::protobuf::int64 id_; - int fft_type_; - bool is_host_transfer_; - ::google::protobuf::int64 cost_estimate_ns_; - ::google::protobuf::int64 all_reduce_id_; - ::google::protobuf::int64 feature_group_count_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class HloComputationProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloComputationProto) */ { - public: - HloComputationProto(); - virtual ~HloComputationProto(); - - HloComputationProto(const HloComputationProto& from); - - inline HloComputationProto& operator=(const HloComputationProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HloComputationProto(HloComputationProto&& from) noexcept - : HloComputationProto() { - *this = ::std::move(from); - } - - inline HloComputationProto& operator=(HloComputationProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const HloComputationProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HloComputationProto* internal_default_instance() { - return reinterpret_cast( - &_HloComputationProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void UnsafeArenaSwap(HloComputationProto* other); - void Swap(HloComputationProto* other); - friend void swap(HloComputationProto& a, HloComputationProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HloComputationProto* New() const final { - return CreateMaybeMessage(NULL); - } - - HloComputationProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HloComputationProto& from); - void MergeFrom(const HloComputationProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HloComputationProto* other); - protected: - explicit HloComputationProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .xla.HloInstructionProto instructions = 2; - int instructions_size() const; - void clear_instructions(); - static const int kInstructionsFieldNumber = 2; - ::xla::HloInstructionProto* mutable_instructions(int index); - ::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto >* - mutable_instructions(); - const ::xla::HloInstructionProto& instructions(int index) const; - ::xla::HloInstructionProto* add_instructions(); - const ::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto >& - instructions() const; - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // .xla.ProgramShape program_shape = 4; - bool has_program_shape() const; - void clear_program_shape(); - static const int kProgramShapeFieldNumber = 4; - private: - const ::xla::ProgramShape& _internal_program_shape() const; - public: - const ::xla::ProgramShape& program_shape() const; - ::xla::ProgramShape* release_program_shape(); - ::xla::ProgramShape* mutable_program_shape(); - void set_allocated_program_shape(::xla::ProgramShape* program_shape); - void unsafe_arena_set_allocated_program_shape( - ::xla::ProgramShape* program_shape); - ::xla::ProgramShape* unsafe_arena_release_program_shape(); - - // int64 id = 5; - void clear_id(); - static const int kIdFieldNumber = 5; - ::google::protobuf::int64 id() const; - void set_id(::google::protobuf::int64 value); - - // int64 root_id = 6; - void clear_root_id(); - static const int kRootIdFieldNumber = 6; - ::google::protobuf::int64 root_id() const; - void set_root_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.HloComputationProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto > instructions_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::xla::ProgramShape* program_shape_; - ::google::protobuf::int64 id_; - ::google::protobuf::int64 root_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class HloScheduleProto_InstructionSequence : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloScheduleProto.InstructionSequence) */ { - public: - HloScheduleProto_InstructionSequence(); - virtual ~HloScheduleProto_InstructionSequence(); - - HloScheduleProto_InstructionSequence(const HloScheduleProto_InstructionSequence& from); - - inline HloScheduleProto_InstructionSequence& operator=(const HloScheduleProto_InstructionSequence& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HloScheduleProto_InstructionSequence(HloScheduleProto_InstructionSequence&& from) noexcept - : HloScheduleProto_InstructionSequence() { - *this = ::std::move(from); - } - - inline HloScheduleProto_InstructionSequence& operator=(HloScheduleProto_InstructionSequence&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const HloScheduleProto_InstructionSequence& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HloScheduleProto_InstructionSequence* internal_default_instance() { - return reinterpret_cast( - &_HloScheduleProto_InstructionSequence_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void UnsafeArenaSwap(HloScheduleProto_InstructionSequence* other); - void Swap(HloScheduleProto_InstructionSequence* other); - friend void swap(HloScheduleProto_InstructionSequence& a, HloScheduleProto_InstructionSequence& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HloScheduleProto_InstructionSequence* New() const final { - return CreateMaybeMessage(NULL); - } - - HloScheduleProto_InstructionSequence* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HloScheduleProto_InstructionSequence& from); - void MergeFrom(const HloScheduleProto_InstructionSequence& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HloScheduleProto_InstructionSequence* other); - protected: - explicit HloScheduleProto_InstructionSequence(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int64 instruction_ids = 1; - int instruction_ids_size() const; - void clear_instruction_ids(); - static const int kInstructionIdsFieldNumber = 1; - ::google::protobuf::int64 instruction_ids(int index) const; - void set_instruction_ids(int index, ::google::protobuf::int64 value); - void add_instruction_ids(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - instruction_ids() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_instruction_ids(); - - // @@protoc_insertion_point(class_scope:xla.HloScheduleProto.InstructionSequence) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > instruction_ids_; - mutable int _instruction_ids_cached_byte_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class HloScheduleProto_SequencesEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: - typedef ::google::protobuf::internal::MapEntry SuperType; - HloScheduleProto_SequencesEntry_DoNotUse(); - HloScheduleProto_SequencesEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const HloScheduleProto_SequencesEntry_DoNotUse& other); - static const HloScheduleProto_SequencesEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_HloScheduleProto_SequencesEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class HloScheduleProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloScheduleProto) */ { - public: - HloScheduleProto(); - virtual ~HloScheduleProto(); - - HloScheduleProto(const HloScheduleProto& from); - - inline HloScheduleProto& operator=(const HloScheduleProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HloScheduleProto(HloScheduleProto&& from) noexcept - : HloScheduleProto() { - *this = ::std::move(from); - } - - inline HloScheduleProto& operator=(HloScheduleProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const HloScheduleProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HloScheduleProto* internal_default_instance() { - return reinterpret_cast( - &_HloScheduleProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void UnsafeArenaSwap(HloScheduleProto* other); - void Swap(HloScheduleProto* other); - friend void swap(HloScheduleProto& a, HloScheduleProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HloScheduleProto* New() const final { - return CreateMaybeMessage(NULL); - } - - HloScheduleProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HloScheduleProto& from); - void MergeFrom(const HloScheduleProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HloScheduleProto* other); - protected: - explicit HloScheduleProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef HloScheduleProto_InstructionSequence InstructionSequence; - - // accessors ------------------------------------------------------- - - // map sequences = 1; - int sequences_size() const; - void clear_sequences(); - static const int kSequencesFieldNumber = 1; - const ::google::protobuf::Map< ::google::protobuf::int64, ::xla::HloScheduleProto_InstructionSequence >& - sequences() const; - ::google::protobuf::Map< ::google::protobuf::int64, ::xla::HloScheduleProto_InstructionSequence >* - mutable_sequences(); - - // @@protoc_insertion_point(class_scope:xla.HloScheduleProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::MapField< - HloScheduleProto_SequencesEntry_DoNotUse, - ::google::protobuf::int64, ::xla::HloScheduleProto_InstructionSequence, - ::google::protobuf::internal::WireFormatLite::TYPE_INT64, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > sequences_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class HloModuleProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloModuleProto) */ { - public: - HloModuleProto(); - virtual ~HloModuleProto(); - - HloModuleProto(const HloModuleProto& from); - - inline HloModuleProto& operator=(const HloModuleProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HloModuleProto(HloModuleProto&& from) noexcept - : HloModuleProto() { - *this = ::std::move(from); - } - - inline HloModuleProto& operator=(HloModuleProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const HloModuleProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HloModuleProto* internal_default_instance() { - return reinterpret_cast( - &_HloModuleProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void UnsafeArenaSwap(HloModuleProto* other); - void Swap(HloModuleProto* other); - friend void swap(HloModuleProto& a, HloModuleProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HloModuleProto* New() const final { - return CreateMaybeMessage(NULL); - } - - HloModuleProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HloModuleProto& from); - void MergeFrom(const HloModuleProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HloModuleProto* other); - protected: - explicit HloModuleProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .xla.HloComputationProto computations = 3; - int computations_size() const; - void clear_computations(); - static const int kComputationsFieldNumber = 3; - ::xla::HloComputationProto* mutable_computations(int index); - ::google::protobuf::RepeatedPtrField< ::xla::HloComputationProto >* - mutable_computations(); - const ::xla::HloComputationProto& computations(int index) const; - ::xla::HloComputationProto* add_computations(); - const ::google::protobuf::RepeatedPtrField< ::xla::HloComputationProto >& - computations() const; - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // string entry_computation_name = 2; - void clear_entry_computation_name(); - static const int kEntryComputationNameFieldNumber = 2; - const ::std::string& entry_computation_name() const; - void set_entry_computation_name(const ::std::string& value); - #if LANG_CXX11 - void set_entry_computation_name(::std::string&& value); - #endif - void set_entry_computation_name(const char* value); - void set_entry_computation_name(const char* value, size_t size); - ::std::string* mutable_entry_computation_name(); - ::std::string* release_entry_computation_name(); - void set_allocated_entry_computation_name(::std::string* entry_computation_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_entry_computation_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_entry_computation_name( - ::std::string* entry_computation_name); - - // .xla.ProgramShape program_shape = 4; - bool has_program_shape() const; - void clear_program_shape(); - static const int kProgramShapeFieldNumber = 4; - private: - const ::xla::ProgramShape& _internal_program_shape() const; - public: - const ::xla::ProgramShape& program_shape() const; - ::xla::ProgramShape* release_program_shape(); - ::xla::ProgramShape* mutable_program_shape(); - void set_allocated_program_shape(::xla::ProgramShape* program_shape); - void unsafe_arena_set_allocated_program_shape( - ::xla::ProgramShape* program_shape); - ::xla::ProgramShape* unsafe_arena_release_program_shape(); - - // .xla.HloScheduleProto schedule = 7; - bool has_schedule() const; - void clear_schedule(); - static const int kScheduleFieldNumber = 7; - private: - const ::xla::HloScheduleProto& _internal_schedule() const; - public: - const ::xla::HloScheduleProto& schedule() const; - ::xla::HloScheduleProto* release_schedule(); - ::xla::HloScheduleProto* mutable_schedule(); - void set_allocated_schedule(::xla::HloScheduleProto* schedule); - void unsafe_arena_set_allocated_schedule( - ::xla::HloScheduleProto* schedule); - ::xla::HloScheduleProto* unsafe_arena_release_schedule(); - - // int64 id = 5; - void clear_id(); - static const int kIdFieldNumber = 5; - ::google::protobuf::int64 id() const; - void set_id(::google::protobuf::int64 value); - - // int64 entry_computation_id = 6; - void clear_entry_computation_id(); - static const int kEntryComputationIdFieldNumber = 6; - ::google::protobuf::int64 entry_computation_id() const; - void set_entry_computation_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.HloModuleProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::xla::HloComputationProto > computations_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr entry_computation_name_; - ::xla::ProgramShape* program_shape_; - ::xla::HloScheduleProto* schedule_; - ::google::protobuf::int64 id_; - ::google::protobuf::int64 entry_computation_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class LogicalBufferProto_Location : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.LogicalBufferProto.Location) */ { - public: - LogicalBufferProto_Location(); - virtual ~LogicalBufferProto_Location(); - - LogicalBufferProto_Location(const LogicalBufferProto_Location& from); - - inline LogicalBufferProto_Location& operator=(const LogicalBufferProto_Location& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LogicalBufferProto_Location(LogicalBufferProto_Location&& from) noexcept - : LogicalBufferProto_Location() { - *this = ::std::move(from); - } - - inline LogicalBufferProto_Location& operator=(LogicalBufferProto_Location&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const LogicalBufferProto_Location& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LogicalBufferProto_Location* internal_default_instance() { - return reinterpret_cast( - &_LogicalBufferProto_Location_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void UnsafeArenaSwap(LogicalBufferProto_Location* other); - void Swap(LogicalBufferProto_Location* other); - friend void swap(LogicalBufferProto_Location& a, LogicalBufferProto_Location& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LogicalBufferProto_Location* New() const final { - return CreateMaybeMessage(NULL); - } - - LogicalBufferProto_Location* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const LogicalBufferProto_Location& from); - void MergeFrom(const LogicalBufferProto_Location& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LogicalBufferProto_Location* other); - protected: - explicit LogicalBufferProto_Location(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int64 shape_index = 3; - int shape_index_size() const; - void clear_shape_index(); - static const int kShapeIndexFieldNumber = 3; - ::google::protobuf::int64 shape_index(int index) const; - void set_shape_index(int index, ::google::protobuf::int64 value); - void add_shape_index(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - shape_index() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_shape_index(); - - // string computation_name = 1; - void clear_computation_name(); - static const int kComputationNameFieldNumber = 1; - const ::std::string& computation_name() const; - void set_computation_name(const ::std::string& value); - #if LANG_CXX11 - void set_computation_name(::std::string&& value); - #endif - void set_computation_name(const char* value); - void set_computation_name(const char* value, size_t size); - ::std::string* mutable_computation_name(); - ::std::string* release_computation_name(); - void set_allocated_computation_name(::std::string* computation_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_computation_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_computation_name( - ::std::string* computation_name); - - // string instruction_name = 2; - void clear_instruction_name(); - static const int kInstructionNameFieldNumber = 2; - const ::std::string& instruction_name() const; - void set_instruction_name(const ::std::string& value); - #if LANG_CXX11 - void set_instruction_name(::std::string&& value); - #endif - void set_instruction_name(const char* value); - void set_instruction_name(const char* value, size_t size); - ::std::string* mutable_instruction_name(); - ::std::string* release_instruction_name(); - void set_allocated_instruction_name(::std::string* instruction_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_instruction_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_instruction_name( - ::std::string* instruction_name); - - // @@protoc_insertion_point(class_scope:xla.LogicalBufferProto.Location) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > shape_index_; - mutable int _shape_index_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr computation_name_; - ::google::protobuf::internal::ArenaStringPtr instruction_name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class LogicalBufferProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.LogicalBufferProto) */ { - public: - LogicalBufferProto(); - virtual ~LogicalBufferProto(); - - LogicalBufferProto(const LogicalBufferProto& from); - - inline LogicalBufferProto& operator=(const LogicalBufferProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LogicalBufferProto(LogicalBufferProto&& from) noexcept - : LogicalBufferProto() { - *this = ::std::move(from); - } - - inline LogicalBufferProto& operator=(LogicalBufferProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const LogicalBufferProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LogicalBufferProto* internal_default_instance() { - return reinterpret_cast( - &_LogicalBufferProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void UnsafeArenaSwap(LogicalBufferProto* other); - void Swap(LogicalBufferProto* other); - friend void swap(LogicalBufferProto& a, LogicalBufferProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LogicalBufferProto* New() const final { - return CreateMaybeMessage(NULL); - } - - LogicalBufferProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const LogicalBufferProto& from); - void MergeFrom(const LogicalBufferProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LogicalBufferProto* other); - protected: - explicit LogicalBufferProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef LogicalBufferProto_Location Location; - - // accessors ------------------------------------------------------- - - // .xla.LogicalBufferProto.Location defined_at = 3; - bool has_defined_at() const; - void clear_defined_at(); - static const int kDefinedAtFieldNumber = 3; - private: - const ::xla::LogicalBufferProto_Location& _internal_defined_at() const; - public: - const ::xla::LogicalBufferProto_Location& defined_at() const; - ::xla::LogicalBufferProto_Location* release_defined_at(); - ::xla::LogicalBufferProto_Location* mutable_defined_at(); - void set_allocated_defined_at(::xla::LogicalBufferProto_Location* defined_at); - void unsafe_arena_set_allocated_defined_at( - ::xla::LogicalBufferProto_Location* defined_at); - ::xla::LogicalBufferProto_Location* unsafe_arena_release_defined_at(); - - // int64 id = 1; - void clear_id(); - static const int kIdFieldNumber = 1; - ::google::protobuf::int64 id() const; - void set_id(::google::protobuf::int64 value); - - // int64 size = 2; - void clear_size(); - static const int kSizeFieldNumber = 2; - ::google::protobuf::int64 size() const; - void set_size(::google::protobuf::int64 value); - - // int64 color = 4; - void clear_color(); - static const int kColorFieldNumber = 4; - ::google::protobuf::int64 color() const; - void set_color(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.LogicalBufferProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::xla::LogicalBufferProto_Location* defined_at_; - ::google::protobuf::int64 id_; - ::google::protobuf::int64 size_; - ::google::protobuf::int64 color_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class BufferAllocationProto_Assigned : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.BufferAllocationProto.Assigned) */ { - public: - BufferAllocationProto_Assigned(); - virtual ~BufferAllocationProto_Assigned(); - - BufferAllocationProto_Assigned(const BufferAllocationProto_Assigned& from); - - inline BufferAllocationProto_Assigned& operator=(const BufferAllocationProto_Assigned& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - BufferAllocationProto_Assigned(BufferAllocationProto_Assigned&& from) noexcept - : BufferAllocationProto_Assigned() { - *this = ::std::move(from); - } - - inline BufferAllocationProto_Assigned& operator=(BufferAllocationProto_Assigned&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const BufferAllocationProto_Assigned& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BufferAllocationProto_Assigned* internal_default_instance() { - return reinterpret_cast( - &_BufferAllocationProto_Assigned_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void UnsafeArenaSwap(BufferAllocationProto_Assigned* other); - void Swap(BufferAllocationProto_Assigned* other); - friend void swap(BufferAllocationProto_Assigned& a, BufferAllocationProto_Assigned& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline BufferAllocationProto_Assigned* New() const final { - return CreateMaybeMessage(NULL); - } - - BufferAllocationProto_Assigned* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const BufferAllocationProto_Assigned& from); - void MergeFrom(const BufferAllocationProto_Assigned& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(BufferAllocationProto_Assigned* other); - protected: - explicit BufferAllocationProto_Assigned(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 logical_buffer_id = 1; - void clear_logical_buffer_id(); - static const int kLogicalBufferIdFieldNumber = 1; - ::google::protobuf::int64 logical_buffer_id() const; - void set_logical_buffer_id(::google::protobuf::int64 value); - - // int64 offset = 2; - void clear_offset(); - static const int kOffsetFieldNumber = 2; - ::google::protobuf::int64 offset() const; - void set_offset(::google::protobuf::int64 value); - - // int64 size = 3; - void clear_size(); - static const int kSizeFieldNumber = 3; - ::google::protobuf::int64 size() const; - void set_size(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.BufferAllocationProto.Assigned) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int64 logical_buffer_id_; - ::google::protobuf::int64 offset_; - ::google::protobuf::int64 size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class BufferAllocationProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.BufferAllocationProto) */ { - public: - BufferAllocationProto(); - virtual ~BufferAllocationProto(); - - BufferAllocationProto(const BufferAllocationProto& from); - - inline BufferAllocationProto& operator=(const BufferAllocationProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - BufferAllocationProto(BufferAllocationProto&& from) noexcept - : BufferAllocationProto() { - *this = ::std::move(from); - } - - inline BufferAllocationProto& operator=(BufferAllocationProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const BufferAllocationProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BufferAllocationProto* internal_default_instance() { - return reinterpret_cast( - &_BufferAllocationProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - void UnsafeArenaSwap(BufferAllocationProto* other); - void Swap(BufferAllocationProto* other); - friend void swap(BufferAllocationProto& a, BufferAllocationProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline BufferAllocationProto* New() const final { - return CreateMaybeMessage(NULL); - } - - BufferAllocationProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const BufferAllocationProto& from); - void MergeFrom(const BufferAllocationProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(BufferAllocationProto* other); - protected: - explicit BufferAllocationProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef BufferAllocationProto_Assigned Assigned; - - // accessors ------------------------------------------------------- - - // repeated .xla.BufferAllocationProto.Assigned assigned = 9; - int assigned_size() const; - void clear_assigned(); - static const int kAssignedFieldNumber = 9; - ::xla::BufferAllocationProto_Assigned* mutable_assigned(int index); - ::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto_Assigned >* - mutable_assigned(); - const ::xla::BufferAllocationProto_Assigned& assigned(int index) const; - ::xla::BufferAllocationProto_Assigned* add_assigned(); - const ::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto_Assigned >& - assigned() const; - - // repeated int64 parameter_shape_index = 10; - int parameter_shape_index_size() const; - void clear_parameter_shape_index(); - static const int kParameterShapeIndexFieldNumber = 10; - ::google::protobuf::int64 parameter_shape_index(int index) const; - void set_parameter_shape_index(int index, ::google::protobuf::int64 value); - void add_parameter_shape_index(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - parameter_shape_index() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_parameter_shape_index(); - - // int64 index = 1; - void clear_index(); - static const int kIndexFieldNumber = 1; - ::google::protobuf::int64 index() const; - void set_index(::google::protobuf::int64 value); - - // int64 size = 2; - void clear_size(); - static const int kSizeFieldNumber = 2; - ::google::protobuf::int64 size() const; - void set_size(::google::protobuf::int64 value); - - // int64 parameter_number = 6; - void clear_parameter_number(); - static const int kParameterNumberFieldNumber = 6; - ::google::protobuf::int64 parameter_number() const; - void set_parameter_number(::google::protobuf::int64 value); - - // bool maybe_live_out = 7; - void clear_maybe_live_out(); - static const int kMaybeLiveOutFieldNumber = 7; - bool maybe_live_out() const; - void set_maybe_live_out(bool value); - - // bool is_thread_local = 3; - void clear_is_thread_local(); - static const int kIsThreadLocalFieldNumber = 3; - bool is_thread_local() const; - void set_is_thread_local(bool value); - - // bool is_tuple = 11; - void clear_is_tuple(); - static const int kIsTupleFieldNumber = 11; - bool is_tuple() const; - void set_is_tuple(bool value); - - // bool is_entry_computation_parameter = 5; - void clear_is_entry_computation_parameter(); - static const int kIsEntryComputationParameterFieldNumber = 5; - bool is_entry_computation_parameter() const; - void set_is_entry_computation_parameter(bool value); - - // bool is_constant = 12; - void clear_is_constant(); - static const int kIsConstantFieldNumber = 12; - bool is_constant() const; - void set_is_constant(bool value); - - // int64 color = 8; - void clear_color(); - static const int kColorFieldNumber = 8; - ::google::protobuf::int64 color() const; - void set_color(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.BufferAllocationProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto_Assigned > assigned_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > parameter_shape_index_; - mutable int _parameter_shape_index_cached_byte_size_; - ::google::protobuf::int64 index_; - ::google::protobuf::int64 size_; - ::google::protobuf::int64 parameter_number_; - bool maybe_live_out_; - bool is_thread_local_; - bool is_tuple_; - bool is_entry_computation_parameter_; - bool is_constant_; - ::google::protobuf::int64 color_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class HeapSimulatorTrace_Event : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HeapSimulatorTrace.Event) */ { - public: - HeapSimulatorTrace_Event(); - virtual ~HeapSimulatorTrace_Event(); - - HeapSimulatorTrace_Event(const HeapSimulatorTrace_Event& from); - - inline HeapSimulatorTrace_Event& operator=(const HeapSimulatorTrace_Event& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HeapSimulatorTrace_Event(HeapSimulatorTrace_Event&& from) noexcept - : HeapSimulatorTrace_Event() { - *this = ::std::move(from); - } - - inline HeapSimulatorTrace_Event& operator=(HeapSimulatorTrace_Event&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const HeapSimulatorTrace_Event& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HeapSimulatorTrace_Event* internal_default_instance() { - return reinterpret_cast( - &_HeapSimulatorTrace_Event_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void UnsafeArenaSwap(HeapSimulatorTrace_Event* other); - void Swap(HeapSimulatorTrace_Event* other); - friend void swap(HeapSimulatorTrace_Event& a, HeapSimulatorTrace_Event& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HeapSimulatorTrace_Event* New() const final { - return CreateMaybeMessage(NULL); - } - - HeapSimulatorTrace_Event* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HeapSimulatorTrace_Event& from); - void MergeFrom(const HeapSimulatorTrace_Event& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HeapSimulatorTrace_Event* other); - protected: - explicit HeapSimulatorTrace_Event(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef HeapSimulatorTrace_Event_Kind Kind; - static const Kind ALLOC = - HeapSimulatorTrace_Event_Kind_ALLOC; - static const Kind FREE = - HeapSimulatorTrace_Event_Kind_FREE; - static const Kind SHARE_WITH = - HeapSimulatorTrace_Event_Kind_SHARE_WITH; - static inline bool Kind_IsValid(int value) { - return HeapSimulatorTrace_Event_Kind_IsValid(value); - } - static const Kind Kind_MIN = - HeapSimulatorTrace_Event_Kind_Kind_MIN; - static const Kind Kind_MAX = - HeapSimulatorTrace_Event_Kind_Kind_MAX; - static const int Kind_ARRAYSIZE = - HeapSimulatorTrace_Event_Kind_Kind_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Kind_descriptor() { - return HeapSimulatorTrace_Event_Kind_descriptor(); - } - static inline const ::std::string& Kind_Name(Kind value) { - return HeapSimulatorTrace_Event_Kind_Name(value); - } - static inline bool Kind_Parse(const ::std::string& name, - Kind* value) { - return HeapSimulatorTrace_Event_Kind_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // string computation_name = 3; - void clear_computation_name(); - static const int kComputationNameFieldNumber = 3; - const ::std::string& computation_name() const; - void set_computation_name(const ::std::string& value); - #if LANG_CXX11 - void set_computation_name(::std::string&& value); - #endif - void set_computation_name(const char* value); - void set_computation_name(const char* value, size_t size); - ::std::string* mutable_computation_name(); - ::std::string* release_computation_name(); - void set_allocated_computation_name(::std::string* computation_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_computation_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_computation_name( - ::std::string* computation_name); - - // string instruction_name = 4; - void clear_instruction_name(); - static const int kInstructionNameFieldNumber = 4; - const ::std::string& instruction_name() const; - void set_instruction_name(const ::std::string& value); - #if LANG_CXX11 - void set_instruction_name(::std::string&& value); - #endif - void set_instruction_name(const char* value); - void set_instruction_name(const char* value, size_t size); - ::std::string* mutable_instruction_name(); - ::std::string* release_instruction_name(); - void set_allocated_instruction_name(::std::string* instruction_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_instruction_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_instruction_name( - ::std::string* instruction_name); - - // int64 buffer_id = 2; - void clear_buffer_id(); - static const int kBufferIdFieldNumber = 2; - ::google::protobuf::int64 buffer_id() const; - void set_buffer_id(::google::protobuf::int64 value); - - // int64 share_with_canonical_id = 5; - void clear_share_with_canonical_id(); - static const int kShareWithCanonicalIdFieldNumber = 5; - ::google::protobuf::int64 share_with_canonical_id() const; - void set_share_with_canonical_id(::google::protobuf::int64 value); - - // .xla.HeapSimulatorTrace.Event.Kind kind = 1; - void clear_kind(); - static const int kKindFieldNumber = 1; - ::xla::HeapSimulatorTrace_Event_Kind kind() const; - void set_kind(::xla::HeapSimulatorTrace_Event_Kind value); - - // @@protoc_insertion_point(class_scope:xla.HeapSimulatorTrace.Event) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr computation_name_; - ::google::protobuf::internal::ArenaStringPtr instruction_name_; - ::google::protobuf::int64 buffer_id_; - ::google::protobuf::int64 share_with_canonical_id_; - int kind_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class HeapSimulatorTrace : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HeapSimulatorTrace) */ { - public: - HeapSimulatorTrace(); - virtual ~HeapSimulatorTrace(); - - HeapSimulatorTrace(const HeapSimulatorTrace& from); - - inline HeapSimulatorTrace& operator=(const HeapSimulatorTrace& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HeapSimulatorTrace(HeapSimulatorTrace&& from) noexcept - : HeapSimulatorTrace() { - *this = ::std::move(from); - } - - inline HeapSimulatorTrace& operator=(HeapSimulatorTrace&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const HeapSimulatorTrace& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HeapSimulatorTrace* internal_default_instance() { - return reinterpret_cast( - &_HeapSimulatorTrace_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - void UnsafeArenaSwap(HeapSimulatorTrace* other); - void Swap(HeapSimulatorTrace* other); - friend void swap(HeapSimulatorTrace& a, HeapSimulatorTrace& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HeapSimulatorTrace* New() const final { - return CreateMaybeMessage(NULL); - } - - HeapSimulatorTrace* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HeapSimulatorTrace& from); - void MergeFrom(const HeapSimulatorTrace& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HeapSimulatorTrace* other); - protected: - explicit HeapSimulatorTrace(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef HeapSimulatorTrace_Event Event; - - // accessors ------------------------------------------------------- - - // repeated .xla.HeapSimulatorTrace.Event events = 1; - int events_size() const; - void clear_events(); - static const int kEventsFieldNumber = 1; - ::xla::HeapSimulatorTrace_Event* mutable_events(int index); - ::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace_Event >* - mutable_events(); - const ::xla::HeapSimulatorTrace_Event& events(int index) const; - ::xla::HeapSimulatorTrace_Event* add_events(); - const ::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace_Event >& - events() const; - - // bool whole_module_simulation = 2; - void clear_whole_module_simulation(); - static const int kWholeModuleSimulationFieldNumber = 2; - bool whole_module_simulation() const; - void set_whole_module_simulation(bool value); - - // @@protoc_insertion_point(class_scope:xla.HeapSimulatorTrace) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace_Event > events_; - bool whole_module_simulation_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class HloModuleGroupProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloModuleGroupProto) */ { - public: - HloModuleGroupProto(); - virtual ~HloModuleGroupProto(); - - HloModuleGroupProto(const HloModuleGroupProto& from); - - inline HloModuleGroupProto& operator=(const HloModuleGroupProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HloModuleGroupProto(HloModuleGroupProto&& from) noexcept - : HloModuleGroupProto() { - *this = ::std::move(from); - } - - inline HloModuleGroupProto& operator=(HloModuleGroupProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const HloModuleGroupProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HloModuleGroupProto* internal_default_instance() { - return reinterpret_cast( - &_HloModuleGroupProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - void UnsafeArenaSwap(HloModuleGroupProto* other); - void Swap(HloModuleGroupProto* other); - friend void swap(HloModuleGroupProto& a, HloModuleGroupProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HloModuleGroupProto* New() const final { - return CreateMaybeMessage(NULL); - } - - HloModuleGroupProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HloModuleGroupProto& from); - void MergeFrom(const HloModuleGroupProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HloModuleGroupProto* other); - protected: - explicit HloModuleGroupProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .xla.HloModuleProto hlo_modules = 2; - int hlo_modules_size() const; - void clear_hlo_modules(); - static const int kHloModulesFieldNumber = 2; - ::xla::HloModuleProto* mutable_hlo_modules(int index); - ::google::protobuf::RepeatedPtrField< ::xla::HloModuleProto >* - mutable_hlo_modules(); - const ::xla::HloModuleProto& hlo_modules(int index) const; - ::xla::HloModuleProto* add_hlo_modules(); - const ::google::protobuf::RepeatedPtrField< ::xla::HloModuleProto >& - hlo_modules() const; - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // @@protoc_insertion_point(class_scope:xla.HloModuleGroupProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::xla::HloModuleProto > hlo_modules_; - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class BufferAssignmentProto_BufferAlias : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.BufferAssignmentProto.BufferAlias) */ { - public: - BufferAssignmentProto_BufferAlias(); - virtual ~BufferAssignmentProto_BufferAlias(); - - BufferAssignmentProto_BufferAlias(const BufferAssignmentProto_BufferAlias& from); - - inline BufferAssignmentProto_BufferAlias& operator=(const BufferAssignmentProto_BufferAlias& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - BufferAssignmentProto_BufferAlias(BufferAssignmentProto_BufferAlias&& from) noexcept - : BufferAssignmentProto_BufferAlias() { - *this = ::std::move(from); - } - - inline BufferAssignmentProto_BufferAlias& operator=(BufferAssignmentProto_BufferAlias&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const BufferAssignmentProto_BufferAlias& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BufferAssignmentProto_BufferAlias* internal_default_instance() { - return reinterpret_cast( - &_BufferAssignmentProto_BufferAlias_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - void UnsafeArenaSwap(BufferAssignmentProto_BufferAlias* other); - void Swap(BufferAssignmentProto_BufferAlias* other); - friend void swap(BufferAssignmentProto_BufferAlias& a, BufferAssignmentProto_BufferAlias& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline BufferAssignmentProto_BufferAlias* New() const final { - return CreateMaybeMessage(NULL); - } - - BufferAssignmentProto_BufferAlias* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const BufferAssignmentProto_BufferAlias& from); - void MergeFrom(const BufferAssignmentProto_BufferAlias& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(BufferAssignmentProto_BufferAlias* other); - protected: - explicit BufferAssignmentProto_BufferAlias(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.LogicalBufferProto.Location location = 2; - bool has_location() const; - void clear_location(); - static const int kLocationFieldNumber = 2; - private: - const ::xla::LogicalBufferProto_Location& _internal_location() const; - public: - const ::xla::LogicalBufferProto_Location& location() const; - ::xla::LogicalBufferProto_Location* release_location(); - ::xla::LogicalBufferProto_Location* mutable_location(); - void set_allocated_location(::xla::LogicalBufferProto_Location* location); - void unsafe_arena_set_allocated_location( - ::xla::LogicalBufferProto_Location* location); - ::xla::LogicalBufferProto_Location* unsafe_arena_release_location(); - - // int64 source_buffer_id = 1; - void clear_source_buffer_id(); - static const int kSourceBufferIdFieldNumber = 1; - ::google::protobuf::int64 source_buffer_id() const; - void set_source_buffer_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.BufferAssignmentProto.BufferAlias) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::xla::LogicalBufferProto_Location* location_; - ::google::protobuf::int64 source_buffer_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class BufferAssignmentProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.BufferAssignmentProto) */ { - public: - BufferAssignmentProto(); - virtual ~BufferAssignmentProto(); - - BufferAssignmentProto(const BufferAssignmentProto& from); - - inline BufferAssignmentProto& operator=(const BufferAssignmentProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - BufferAssignmentProto(BufferAssignmentProto&& from) noexcept - : BufferAssignmentProto() { - *this = ::std::move(from); - } - - inline BufferAssignmentProto& operator=(BufferAssignmentProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const BufferAssignmentProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BufferAssignmentProto* internal_default_instance() { - return reinterpret_cast( - &_BufferAssignmentProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - void UnsafeArenaSwap(BufferAssignmentProto* other); - void Swap(BufferAssignmentProto* other); - friend void swap(BufferAssignmentProto& a, BufferAssignmentProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline BufferAssignmentProto* New() const final { - return CreateMaybeMessage(NULL); - } - - BufferAssignmentProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const BufferAssignmentProto& from); - void MergeFrom(const BufferAssignmentProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(BufferAssignmentProto* other); - protected: - explicit BufferAssignmentProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef BufferAssignmentProto_BufferAlias BufferAlias; - - // accessors ------------------------------------------------------- - - // repeated .xla.LogicalBufferProto logical_buffers = 1; - int logical_buffers_size() const; - void clear_logical_buffers(); - static const int kLogicalBuffersFieldNumber = 1; - ::xla::LogicalBufferProto* mutable_logical_buffers(int index); - ::google::protobuf::RepeatedPtrField< ::xla::LogicalBufferProto >* - mutable_logical_buffers(); - const ::xla::LogicalBufferProto& logical_buffers(int index) const; - ::xla::LogicalBufferProto* add_logical_buffers(); - const ::google::protobuf::RepeatedPtrField< ::xla::LogicalBufferProto >& - logical_buffers() const; - - // repeated .xla.BufferAssignmentProto.BufferAlias buffer_aliases = 2; - int buffer_aliases_size() const; - void clear_buffer_aliases(); - static const int kBufferAliasesFieldNumber = 2; - ::xla::BufferAssignmentProto_BufferAlias* mutable_buffer_aliases(int index); - ::google::protobuf::RepeatedPtrField< ::xla::BufferAssignmentProto_BufferAlias >* - mutable_buffer_aliases(); - const ::xla::BufferAssignmentProto_BufferAlias& buffer_aliases(int index) const; - ::xla::BufferAssignmentProto_BufferAlias* add_buffer_aliases(); - const ::google::protobuf::RepeatedPtrField< ::xla::BufferAssignmentProto_BufferAlias >& - buffer_aliases() const; - - // repeated .xla.BufferAllocationProto buffer_allocations = 3; - int buffer_allocations_size() const; - void clear_buffer_allocations(); - static const int kBufferAllocationsFieldNumber = 3; - ::xla::BufferAllocationProto* mutable_buffer_allocations(int index); - ::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto >* - mutable_buffer_allocations(); - const ::xla::BufferAllocationProto& buffer_allocations(int index) const; - ::xla::BufferAllocationProto* add_buffer_allocations(); - const ::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto >& - buffer_allocations() const; - - // repeated .xla.HeapSimulatorTrace heap_simulator_traces = 4; - int heap_simulator_traces_size() const; - void clear_heap_simulator_traces(); - static const int kHeapSimulatorTracesFieldNumber = 4; - ::xla::HeapSimulatorTrace* mutable_heap_simulator_traces(int index); - ::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace >* - mutable_heap_simulator_traces(); - const ::xla::HeapSimulatorTrace& heap_simulator_traces(int index) const; - ::xla::HeapSimulatorTrace* add_heap_simulator_traces(); - const ::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace >& - heap_simulator_traces() const; - - // @@protoc_insertion_point(class_scope:xla.BufferAssignmentProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::xla::LogicalBufferProto > logical_buffers_; - ::google::protobuf::RepeatedPtrField< ::xla::BufferAssignmentProto_BufferAlias > buffer_aliases_; - ::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto > buffer_allocations_; - ::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace > heap_simulator_traces_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class HloProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloProto) */ { - public: - HloProto(); - virtual ~HloProto(); - - HloProto(const HloProto& from); - - inline HloProto& operator=(const HloProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HloProto(HloProto&& from) noexcept - : HloProto() { - *this = ::std::move(from); - } - - inline HloProto& operator=(HloProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const HloProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HloProto* internal_default_instance() { - return reinterpret_cast( - &_HloProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - void UnsafeArenaSwap(HloProto* other); - void Swap(HloProto* other); - friend void swap(HloProto& a, HloProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HloProto* New() const final { - return CreateMaybeMessage(NULL); - } - - HloProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HloProto& from); - void MergeFrom(const HloProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HloProto* other); - protected: - explicit HloProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.HloModuleProto hlo_module = 1; - bool has_hlo_module() const; - void clear_hlo_module(); - static const int kHloModuleFieldNumber = 1; - private: - const ::xla::HloModuleProto& _internal_hlo_module() const; - public: - const ::xla::HloModuleProto& hlo_module() const; - ::xla::HloModuleProto* release_hlo_module(); - ::xla::HloModuleProto* mutable_hlo_module(); - void set_allocated_hlo_module(::xla::HloModuleProto* hlo_module); - void unsafe_arena_set_allocated_hlo_module( - ::xla::HloModuleProto* hlo_module); - ::xla::HloModuleProto* unsafe_arena_release_hlo_module(); - - // .xla.BufferAssignmentProto buffer_assignment = 3; - bool has_buffer_assignment() const; - void clear_buffer_assignment(); - static const int kBufferAssignmentFieldNumber = 3; - private: - const ::xla::BufferAssignmentProto& _internal_buffer_assignment() const; - public: - const ::xla::BufferAssignmentProto& buffer_assignment() const; - ::xla::BufferAssignmentProto* release_buffer_assignment(); - ::xla::BufferAssignmentProto* mutable_buffer_assignment(); - void set_allocated_buffer_assignment(::xla::BufferAssignmentProto* buffer_assignment); - void unsafe_arena_set_allocated_buffer_assignment( - ::xla::BufferAssignmentProto* buffer_assignment); - ::xla::BufferAssignmentProto* unsafe_arena_release_buffer_assignment(); - - // @@protoc_insertion_point(class_scope:xla.HloProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::xla::HloModuleProto* hlo_module_; - ::xla::BufferAssignmentProto* buffer_assignment_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class HloSnapshot : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloSnapshot) */ { - public: - HloSnapshot(); - virtual ~HloSnapshot(); - - HloSnapshot(const HloSnapshot& from); - - inline HloSnapshot& operator=(const HloSnapshot& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HloSnapshot(HloSnapshot&& from) noexcept - : HloSnapshot() { - *this = ::std::move(from); - } - - inline HloSnapshot& operator=(HloSnapshot&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const HloSnapshot& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HloSnapshot* internal_default_instance() { - return reinterpret_cast( - &_HloSnapshot_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - void UnsafeArenaSwap(HloSnapshot* other); - void Swap(HloSnapshot* other); - friend void swap(HloSnapshot& a, HloSnapshot& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HloSnapshot* New() const final { - return CreateMaybeMessage(NULL); - } - - HloSnapshot* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HloSnapshot& from); - void MergeFrom(const HloSnapshot& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HloSnapshot* other); - protected: - explicit HloSnapshot(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .xla.LiteralProto arguments = 2; - int arguments_size() const; - void clear_arguments(); - static const int kArgumentsFieldNumber = 2; - ::xla::LiteralProto* mutable_arguments(int index); - ::google::protobuf::RepeatedPtrField< ::xla::LiteralProto >* - mutable_arguments(); - const ::xla::LiteralProto& arguments(int index) const; - ::xla::LiteralProto* add_arguments(); - const ::google::protobuf::RepeatedPtrField< ::xla::LiteralProto >& - arguments() const; - - // string execution_platform = 4; - void clear_execution_platform(); - static const int kExecutionPlatformFieldNumber = 4; - const ::std::string& execution_platform() const; - void set_execution_platform(const ::std::string& value); - #if LANG_CXX11 - void set_execution_platform(::std::string&& value); - #endif - void set_execution_platform(const char* value); - void set_execution_platform(const char* value, size_t size); - ::std::string* mutable_execution_platform(); - ::std::string* release_execution_platform(); - void set_allocated_execution_platform(::std::string* execution_platform); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_execution_platform(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_execution_platform( - ::std::string* execution_platform); - - // .xla.HloProto hlo = 1; - bool has_hlo() const; - void clear_hlo(); - static const int kHloFieldNumber = 1; - private: - const ::xla::HloProto& _internal_hlo() const; - public: - const ::xla::HloProto& hlo() const; - ::xla::HloProto* release_hlo(); - ::xla::HloProto* mutable_hlo(); - void set_allocated_hlo(::xla::HloProto* hlo); - void unsafe_arena_set_allocated_hlo( - ::xla::HloProto* hlo); - ::xla::HloProto* unsafe_arena_release_hlo(); - - // .xla.LiteralProto result = 3; - bool has_result() const; - void clear_result(); - static const int kResultFieldNumber = 3; - private: - const ::xla::LiteralProto& _internal_result() const; - public: - const ::xla::LiteralProto& result() const; - ::xla::LiteralProto* release_result(); - ::xla::LiteralProto* mutable_result(); - void set_allocated_result(::xla::LiteralProto* result); - void unsafe_arena_set_allocated_result( - ::xla::LiteralProto* result); - ::xla::LiteralProto* unsafe_arena_release_result(); - - // @@protoc_insertion_point(class_scope:xla.HloSnapshot) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::xla::LiteralProto > arguments_; - ::google::protobuf::internal::ArenaStringPtr execution_platform_; - ::xla::HloProto* hlo_; - ::xla::LiteralProto* result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// HloInstructionProto_SliceDimensions - -// int64 start = 1; -inline void HloInstructionProto_SliceDimensions::clear_start() { - start_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HloInstructionProto_SliceDimensions::start() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.SliceDimensions.start) - return start_; -} -inline void HloInstructionProto_SliceDimensions::set_start(::google::protobuf::int64 value) { - - start_ = value; - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.SliceDimensions.start) -} - -// int64 limit = 2; -inline void HloInstructionProto_SliceDimensions::clear_limit() { - limit_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HloInstructionProto_SliceDimensions::limit() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.SliceDimensions.limit) - return limit_; -} -inline void HloInstructionProto_SliceDimensions::set_limit(::google::protobuf::int64 value) { - - limit_ = value; - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.SliceDimensions.limit) -} - -// int64 stride = 3; -inline void HloInstructionProto_SliceDimensions::clear_stride() { - stride_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HloInstructionProto_SliceDimensions::stride() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.SliceDimensions.stride) - return stride_; -} -inline void HloInstructionProto_SliceDimensions::set_stride(::google::protobuf::int64 value) { - - stride_ = value; - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.SliceDimensions.stride) -} - -// ------------------------------------------------------------------- - -// HloInstructionProto - -// string name = 1; -inline void HloInstructionProto::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloInstructionProto::name() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.name) - return name_.Get(); -} -inline void HloInstructionProto::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.name) -} -#if LANG_CXX11 -inline void HloInstructionProto::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.name) -} -#endif -inline void HloInstructionProto::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.name) -} -inline void HloInstructionProto::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.name) -} -inline ::std::string* HloInstructionProto::mutable_name() { - - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloInstructionProto::release_name() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloInstructionProto::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.name) -} -inline ::std::string* HloInstructionProto::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloInstructionProto::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.name) -} - -// string opcode = 2; -inline void HloInstructionProto::clear_opcode() { - opcode_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloInstructionProto::opcode() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.opcode) - return opcode_.Get(); -} -inline void HloInstructionProto::set_opcode(const ::std::string& value) { - - opcode_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.opcode) -} -#if LANG_CXX11 -inline void HloInstructionProto::set_opcode(::std::string&& value) { - - opcode_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.opcode) -} -#endif -inline void HloInstructionProto::set_opcode(const char* value) { - GOOGLE_DCHECK(value != NULL); - - opcode_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.opcode) -} -inline void HloInstructionProto::set_opcode(const char* value, - size_t size) { - - opcode_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.opcode) -} -inline ::std::string* HloInstructionProto::mutable_opcode() { - - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.opcode) - return opcode_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloInstructionProto::release_opcode() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.opcode) - - return opcode_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloInstructionProto::set_allocated_opcode(::std::string* opcode) { - if (opcode != NULL) { - - } else { - - } - opcode_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), opcode, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.opcode) -} -inline ::std::string* HloInstructionProto::unsafe_arena_release_opcode() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.opcode) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return opcode_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloInstructionProto::unsafe_arena_set_allocated_opcode( - ::std::string* opcode) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (opcode != NULL) { - - } else { - - } - opcode_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - opcode, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.opcode) -} - -// .xla.Shape shape = 3; -inline bool HloInstructionProto::has_shape() const { - return this != internal_default_instance() && shape_ != NULL; -} -inline const ::xla::Shape& HloInstructionProto::_internal_shape() const { - return *shape_; -} -inline const ::xla::Shape& HloInstructionProto::shape() const { - const ::xla::Shape* p = shape_; - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.shape) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_Shape_default_instance_); -} -inline ::xla::Shape* HloInstructionProto::release_shape() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.shape) - - ::xla::Shape* temp = shape_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - shape_ = NULL; - return temp; -} -inline ::xla::Shape* HloInstructionProto::unsafe_arena_release_shape() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.shape) - - ::xla::Shape* temp = shape_; - shape_ = NULL; - return temp; -} -inline ::xla::Shape* HloInstructionProto::mutable_shape() { - - if (shape_ == NULL) { - auto* p = CreateMaybeMessage<::xla::Shape>(GetArenaNoVirtual()); - shape_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.shape) - return shape_; -} -inline void HloInstructionProto::set_allocated_shape(::xla::Shape* shape) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(shape_); - } - if (shape) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(shape)->GetArena(); - if (message_arena != submessage_arena) { - shape = ::google::protobuf::internal::GetOwnedMessage( - message_arena, shape, submessage_arena); - } - - } else { - - } - shape_ = shape; - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.shape) -} - -// .xla.OpMetadata metadata = 7; -inline bool HloInstructionProto::has_metadata() const { - return this != internal_default_instance() && metadata_ != NULL; -} -inline const ::xla::OpMetadata& HloInstructionProto::_internal_metadata() const { - return *metadata_; -} -inline const ::xla::OpMetadata& HloInstructionProto::metadata() const { - const ::xla::OpMetadata* p = metadata_; - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.metadata) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_OpMetadata_default_instance_); -} -inline ::xla::OpMetadata* HloInstructionProto::release_metadata() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.metadata) - - ::xla::OpMetadata* temp = metadata_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - metadata_ = NULL; - return temp; -} -inline ::xla::OpMetadata* HloInstructionProto::unsafe_arena_release_metadata() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.metadata) - - ::xla::OpMetadata* temp = metadata_; - metadata_ = NULL; - return temp; -} -inline ::xla::OpMetadata* HloInstructionProto::mutable_metadata() { - - if (metadata_ == NULL) { - auto* p = CreateMaybeMessage<::xla::OpMetadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.metadata) - return metadata_; -} -inline void HloInstructionProto::set_allocated_metadata(::xla::OpMetadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(metadata_); - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(metadata)->GetArena(); - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.metadata) -} - -// .xla.LiteralProto literal = 8; -inline bool HloInstructionProto::has_literal() const { - return this != internal_default_instance() && literal_ != NULL; -} -inline const ::xla::LiteralProto& HloInstructionProto::_internal_literal() const { - return *literal_; -} -inline const ::xla::LiteralProto& HloInstructionProto::literal() const { - const ::xla::LiteralProto* p = literal_; - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.literal) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_LiteralProto_default_instance_); -} -inline ::xla::LiteralProto* HloInstructionProto::release_literal() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.literal) - - ::xla::LiteralProto* temp = literal_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - literal_ = NULL; - return temp; -} -inline ::xla::LiteralProto* HloInstructionProto::unsafe_arena_release_literal() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.literal) - - ::xla::LiteralProto* temp = literal_; - literal_ = NULL; - return temp; -} -inline ::xla::LiteralProto* HloInstructionProto::mutable_literal() { - - if (literal_ == NULL) { - auto* p = CreateMaybeMessage<::xla::LiteralProto>(GetArenaNoVirtual()); - literal_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.literal) - return literal_; -} -inline void HloInstructionProto::set_allocated_literal(::xla::LiteralProto* literal) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(literal_); - } - if (literal) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(literal)->GetArena(); - if (message_arena != submessage_arena) { - literal = ::google::protobuf::internal::GetOwnedMessage( - message_arena, literal, submessage_arena); - } - - } else { - - } - literal_ = literal; - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.literal) -} - -// int64 parameter_number = 9; -inline void HloInstructionProto::clear_parameter_number() { - parameter_number_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HloInstructionProto::parameter_number() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.parameter_number) - return parameter_number_; -} -inline void HloInstructionProto::set_parameter_number(::google::protobuf::int64 value) { - - parameter_number_ = value; - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.parameter_number) -} - -// string fusion_kind = 11; -inline void HloInstructionProto::clear_fusion_kind() { - fusion_kind_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloInstructionProto::fusion_kind() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.fusion_kind) - return fusion_kind_.Get(); -} -inline void HloInstructionProto::set_fusion_kind(const ::std::string& value) { - - fusion_kind_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.fusion_kind) -} -#if LANG_CXX11 -inline void HloInstructionProto::set_fusion_kind(::std::string&& value) { - - fusion_kind_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.fusion_kind) -} -#endif -inline void HloInstructionProto::set_fusion_kind(const char* value) { - GOOGLE_DCHECK(value != NULL); - - fusion_kind_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.fusion_kind) -} -inline void HloInstructionProto::set_fusion_kind(const char* value, - size_t size) { - - fusion_kind_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.fusion_kind) -} -inline ::std::string* HloInstructionProto::mutable_fusion_kind() { - - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.fusion_kind) - return fusion_kind_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloInstructionProto::release_fusion_kind() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.fusion_kind) - - return fusion_kind_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloInstructionProto::set_allocated_fusion_kind(::std::string* fusion_kind) { - if (fusion_kind != NULL) { - - } else { - - } - fusion_kind_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), fusion_kind, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.fusion_kind) -} -inline ::std::string* HloInstructionProto::unsafe_arena_release_fusion_kind() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.fusion_kind) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return fusion_kind_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloInstructionProto::unsafe_arena_set_allocated_fusion_kind( - ::std::string* fusion_kind) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (fusion_kind != NULL) { - - } else { - - } - fusion_kind_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - fusion_kind, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.fusion_kind) -} - -// int64 tuple_index = 13; -inline void HloInstructionProto::clear_tuple_index() { - tuple_index_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HloInstructionProto::tuple_index() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.tuple_index) - return tuple_index_; -} -inline void HloInstructionProto::set_tuple_index(::google::protobuf::int64 value) { - - tuple_index_ = value; - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.tuple_index) -} - -// repeated int64 dimensions = 14; -inline int HloInstructionProto::dimensions_size() const { - return dimensions_.size(); -} -inline void HloInstructionProto::clear_dimensions() { - dimensions_.Clear(); -} -inline ::google::protobuf::int64 HloInstructionProto::dimensions(int index) const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.dimensions) - return dimensions_.Get(index); -} -inline void HloInstructionProto::set_dimensions(int index, ::google::protobuf::int64 value) { - dimensions_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.dimensions) -} -inline void HloInstructionProto::add_dimensions(::google::protobuf::int64 value) { - dimensions_.Add(value); - // @@protoc_insertion_point(field_add:xla.HloInstructionProto.dimensions) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -HloInstructionProto::dimensions() const { - // @@protoc_insertion_point(field_list:xla.HloInstructionProto.dimensions) - return dimensions_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -HloInstructionProto::mutable_dimensions() { - // @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.dimensions) - return &dimensions_; -} - -// .xla.Window window = 15; -inline bool HloInstructionProto::has_window() const { - return this != internal_default_instance() && window_ != NULL; -} -inline const ::xla::Window& HloInstructionProto::_internal_window() const { - return *window_; -} -inline const ::xla::Window& HloInstructionProto::window() const { - const ::xla::Window* p = window_; - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.window) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_Window_default_instance_); -} -inline ::xla::Window* HloInstructionProto::release_window() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.window) - - ::xla::Window* temp = window_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - window_ = NULL; - return temp; -} -inline ::xla::Window* HloInstructionProto::unsafe_arena_release_window() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.window) - - ::xla::Window* temp = window_; - window_ = NULL; - return temp; -} -inline ::xla::Window* HloInstructionProto::mutable_window() { - - if (window_ == NULL) { - auto* p = CreateMaybeMessage<::xla::Window>(GetArenaNoVirtual()); - window_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.window) - return window_; -} -inline void HloInstructionProto::set_allocated_window(::xla::Window* window) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(window_); - } - if (window) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(window)->GetArena(); - if (message_arena != submessage_arena) { - window = ::google::protobuf::internal::GetOwnedMessage( - message_arena, window, submessage_arena); - } - - } else { - - } - window_ = window; - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.window) -} - -// .xla.ConvolutionDimensionNumbers convolution_dimension_numbers = 16; -inline bool HloInstructionProto::has_convolution_dimension_numbers() const { - return this != internal_default_instance() && convolution_dimension_numbers_ != NULL; -} -inline const ::xla::ConvolutionDimensionNumbers& HloInstructionProto::_internal_convolution_dimension_numbers() const { - return *convolution_dimension_numbers_; -} -inline const ::xla::ConvolutionDimensionNumbers& HloInstructionProto::convolution_dimension_numbers() const { - const ::xla::ConvolutionDimensionNumbers* p = convolution_dimension_numbers_; - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.convolution_dimension_numbers) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_ConvolutionDimensionNumbers_default_instance_); -} -inline ::xla::ConvolutionDimensionNumbers* HloInstructionProto::release_convolution_dimension_numbers() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.convolution_dimension_numbers) - - ::xla::ConvolutionDimensionNumbers* temp = convolution_dimension_numbers_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - convolution_dimension_numbers_ = NULL; - return temp; -} -inline ::xla::ConvolutionDimensionNumbers* HloInstructionProto::unsafe_arena_release_convolution_dimension_numbers() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.convolution_dimension_numbers) - - ::xla::ConvolutionDimensionNumbers* temp = convolution_dimension_numbers_; - convolution_dimension_numbers_ = NULL; - return temp; -} -inline ::xla::ConvolutionDimensionNumbers* HloInstructionProto::mutable_convolution_dimension_numbers() { - - if (convolution_dimension_numbers_ == NULL) { - auto* p = CreateMaybeMessage<::xla::ConvolutionDimensionNumbers>(GetArenaNoVirtual()); - convolution_dimension_numbers_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.convolution_dimension_numbers) - return convolution_dimension_numbers_; -} -inline void HloInstructionProto::set_allocated_convolution_dimension_numbers(::xla::ConvolutionDimensionNumbers* convolution_dimension_numbers) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(convolution_dimension_numbers_); - } - if (convolution_dimension_numbers) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(convolution_dimension_numbers)->GetArena(); - if (message_arena != submessage_arena) { - convolution_dimension_numbers = ::google::protobuf::internal::GetOwnedMessage( - message_arena, convolution_dimension_numbers, submessage_arena); - } - - } else { - - } - convolution_dimension_numbers_ = convolution_dimension_numbers; - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.convolution_dimension_numbers) -} - -// int64 feature_group_count = 50; -inline void HloInstructionProto::clear_feature_group_count() { - feature_group_count_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HloInstructionProto::feature_group_count() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.feature_group_count) - return feature_group_count_; -} -inline void HloInstructionProto::set_feature_group_count(::google::protobuf::int64 value) { - - feature_group_count_ = value; - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.feature_group_count) -} - -// repeated .xla.HloInstructionProto.SliceDimensions slice_dimensions = 17; -inline int HloInstructionProto::slice_dimensions_size() const { - return slice_dimensions_.size(); -} -inline void HloInstructionProto::clear_slice_dimensions() { - slice_dimensions_.Clear(); -} -inline ::xla::HloInstructionProto_SliceDimensions* HloInstructionProto::mutable_slice_dimensions(int index) { - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.slice_dimensions) - return slice_dimensions_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto_SliceDimensions >* -HloInstructionProto::mutable_slice_dimensions() { - // @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.slice_dimensions) - return &slice_dimensions_; -} -inline const ::xla::HloInstructionProto_SliceDimensions& HloInstructionProto::slice_dimensions(int index) const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.slice_dimensions) - return slice_dimensions_.Get(index); -} -inline ::xla::HloInstructionProto_SliceDimensions* HloInstructionProto::add_slice_dimensions() { - // @@protoc_insertion_point(field_add:xla.HloInstructionProto.slice_dimensions) - return slice_dimensions_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto_SliceDimensions >& -HloInstructionProto::slice_dimensions() const { - // @@protoc_insertion_point(field_list:xla.HloInstructionProto.slice_dimensions) - return slice_dimensions_; -} - -// int32 exponent_bits = 18; -inline void HloInstructionProto::clear_exponent_bits() { - exponent_bits_ = 0; -} -inline ::google::protobuf::int32 HloInstructionProto::exponent_bits() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.exponent_bits) - return exponent_bits_; -} -inline void HloInstructionProto::set_exponent_bits(::google::protobuf::int32 value) { - - exponent_bits_ = value; - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.exponent_bits) -} - -// int32 mantissa_bits = 19; -inline void HloInstructionProto::clear_mantissa_bits() { - mantissa_bits_ = 0; -} -inline ::google::protobuf::int32 HloInstructionProto::mantissa_bits() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.mantissa_bits) - return mantissa_bits_; -} -inline void HloInstructionProto::set_mantissa_bits(::google::protobuf::int32 value) { - - mantissa_bits_ = value; - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.mantissa_bits) -} - -// repeated int64 dynamic_slice_sizes = 20; -inline int HloInstructionProto::dynamic_slice_sizes_size() const { - return dynamic_slice_sizes_.size(); -} -inline void HloInstructionProto::clear_dynamic_slice_sizes() { - dynamic_slice_sizes_.Clear(); -} -inline ::google::protobuf::int64 HloInstructionProto::dynamic_slice_sizes(int index) const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.dynamic_slice_sizes) - return dynamic_slice_sizes_.Get(index); -} -inline void HloInstructionProto::set_dynamic_slice_sizes(int index, ::google::protobuf::int64 value) { - dynamic_slice_sizes_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.dynamic_slice_sizes) -} -inline void HloInstructionProto::add_dynamic_slice_sizes(::google::protobuf::int64 value) { - dynamic_slice_sizes_.Add(value); - // @@protoc_insertion_point(field_add:xla.HloInstructionProto.dynamic_slice_sizes) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -HloInstructionProto::dynamic_slice_sizes() const { - // @@protoc_insertion_point(field_list:xla.HloInstructionProto.dynamic_slice_sizes) - return dynamic_slice_sizes_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -HloInstructionProto::mutable_dynamic_slice_sizes() { - // @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.dynamic_slice_sizes) - return &dynamic_slice_sizes_; -} - -// .xla.PaddingConfig padding_config = 21; -inline bool HloInstructionProto::has_padding_config() const { - return this != internal_default_instance() && padding_config_ != NULL; -} -inline const ::xla::PaddingConfig& HloInstructionProto::_internal_padding_config() const { - return *padding_config_; -} -inline const ::xla::PaddingConfig& HloInstructionProto::padding_config() const { - const ::xla::PaddingConfig* p = padding_config_; - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.padding_config) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_PaddingConfig_default_instance_); -} -inline ::xla::PaddingConfig* HloInstructionProto::release_padding_config() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.padding_config) - - ::xla::PaddingConfig* temp = padding_config_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - padding_config_ = NULL; - return temp; -} -inline ::xla::PaddingConfig* HloInstructionProto::unsafe_arena_release_padding_config() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.padding_config) - - ::xla::PaddingConfig* temp = padding_config_; - padding_config_ = NULL; - return temp; -} -inline ::xla::PaddingConfig* HloInstructionProto::mutable_padding_config() { - - if (padding_config_ == NULL) { - auto* p = CreateMaybeMessage<::xla::PaddingConfig>(GetArenaNoVirtual()); - padding_config_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.padding_config) - return padding_config_; -} -inline void HloInstructionProto::set_allocated_padding_config(::xla::PaddingConfig* padding_config) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(padding_config_); - } - if (padding_config) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(padding_config)->GetArena(); - if (message_arena != submessage_arena) { - padding_config = ::google::protobuf::internal::GetOwnedMessage( - message_arena, padding_config, submessage_arena); - } - - } else { - - } - padding_config_ = padding_config; - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.padding_config) -} - -// bytes outfeed_config = 22; -inline void HloInstructionProto::clear_outfeed_config() { - outfeed_config_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloInstructionProto::outfeed_config() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.outfeed_config) - return outfeed_config_.Get(); -} -inline void HloInstructionProto::set_outfeed_config(const ::std::string& value) { - - outfeed_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.outfeed_config) -} -#if LANG_CXX11 -inline void HloInstructionProto::set_outfeed_config(::std::string&& value) { - - outfeed_config_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.outfeed_config) -} -#endif -inline void HloInstructionProto::set_outfeed_config(const char* value) { - GOOGLE_DCHECK(value != NULL); - - outfeed_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.outfeed_config) -} -inline void HloInstructionProto::set_outfeed_config(const void* value, - size_t size) { - - outfeed_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.outfeed_config) -} -inline ::std::string* HloInstructionProto::mutable_outfeed_config() { - - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.outfeed_config) - return outfeed_config_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloInstructionProto::release_outfeed_config() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.outfeed_config) - - return outfeed_config_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloInstructionProto::set_allocated_outfeed_config(::std::string* outfeed_config) { - if (outfeed_config != NULL) { - - } else { - - } - outfeed_config_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), outfeed_config, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.outfeed_config) -} -inline ::std::string* HloInstructionProto::unsafe_arena_release_outfeed_config() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.outfeed_config) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return outfeed_config_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloInstructionProto::unsafe_arena_set_allocated_outfeed_config( - ::std::string* outfeed_config) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (outfeed_config != NULL) { - - } else { - - } - outfeed_config_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - outfeed_config, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.outfeed_config) -} - -// .xla.RandomDistribution distribution = 23; -inline void HloInstructionProto::clear_distribution() { - distribution_ = 0; -} -inline ::xla::RandomDistribution HloInstructionProto::distribution() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.distribution) - return static_cast< ::xla::RandomDistribution >(distribution_); -} -inline void HloInstructionProto::set_distribution(::xla::RandomDistribution value) { - - distribution_ = value; - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.distribution) -} - -// float epsilon = 24; -inline void HloInstructionProto::clear_epsilon() { - epsilon_ = 0; -} -inline float HloInstructionProto::epsilon() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.epsilon) - return epsilon_; -} -inline void HloInstructionProto::set_epsilon(float value) { - - epsilon_ = value; - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.epsilon) -} - -// int64 feature_index = 25; -inline void HloInstructionProto::clear_feature_index() { - feature_index_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HloInstructionProto::feature_index() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.feature_index) - return feature_index_; -} -inline void HloInstructionProto::set_feature_index(::google::protobuf::int64 value) { - - feature_index_ = value; - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.feature_index) -} - -// int64 channel_id = 26; -inline void HloInstructionProto::clear_channel_id() { - channel_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HloInstructionProto::channel_id() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.channel_id) - return channel_id_; -} -inline void HloInstructionProto::set_channel_id(::google::protobuf::int64 value) { - - channel_id_ = value; - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.channel_id) -} - -// bytes infeed_config = 27; -inline void HloInstructionProto::clear_infeed_config() { - infeed_config_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloInstructionProto::infeed_config() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.infeed_config) - return infeed_config_.Get(); -} -inline void HloInstructionProto::set_infeed_config(const ::std::string& value) { - - infeed_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.infeed_config) -} -#if LANG_CXX11 -inline void HloInstructionProto::set_infeed_config(::std::string&& value) { - - infeed_config_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.infeed_config) -} -#endif -inline void HloInstructionProto::set_infeed_config(const char* value) { - GOOGLE_DCHECK(value != NULL); - - infeed_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.infeed_config) -} -inline void HloInstructionProto::set_infeed_config(const void* value, - size_t size) { - - infeed_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.infeed_config) -} -inline ::std::string* HloInstructionProto::mutable_infeed_config() { - - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.infeed_config) - return infeed_config_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloInstructionProto::release_infeed_config() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.infeed_config) - - return infeed_config_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloInstructionProto::set_allocated_infeed_config(::std::string* infeed_config) { - if (infeed_config != NULL) { - - } else { - - } - infeed_config_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), infeed_config, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.infeed_config) -} -inline ::std::string* HloInstructionProto::unsafe_arena_release_infeed_config() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.infeed_config) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return infeed_config_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloInstructionProto::unsafe_arena_set_allocated_infeed_config( - ::std::string* infeed_config) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (infeed_config != NULL) { - - } else { - - } - infeed_config_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - infeed_config, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.infeed_config) -} - -// string custom_call_target = 28; -inline void HloInstructionProto::clear_custom_call_target() { - custom_call_target_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloInstructionProto::custom_call_target() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.custom_call_target) - return custom_call_target_.Get(); -} -inline void HloInstructionProto::set_custom_call_target(const ::std::string& value) { - - custom_call_target_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.custom_call_target) -} -#if LANG_CXX11 -inline void HloInstructionProto::set_custom_call_target(::std::string&& value) { - - custom_call_target_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.custom_call_target) -} -#endif -inline void HloInstructionProto::set_custom_call_target(const char* value) { - GOOGLE_DCHECK(value != NULL); - - custom_call_target_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.custom_call_target) -} -inline void HloInstructionProto::set_custom_call_target(const char* value, - size_t size) { - - custom_call_target_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.custom_call_target) -} -inline ::std::string* HloInstructionProto::mutable_custom_call_target() { - - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.custom_call_target) - return custom_call_target_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloInstructionProto::release_custom_call_target() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.custom_call_target) - - return custom_call_target_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloInstructionProto::set_allocated_custom_call_target(::std::string* custom_call_target) { - if (custom_call_target != NULL) { - - } else { - - } - custom_call_target_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), custom_call_target, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.custom_call_target) -} -inline ::std::string* HloInstructionProto::unsafe_arena_release_custom_call_target() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.custom_call_target) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return custom_call_target_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloInstructionProto::unsafe_arena_set_allocated_custom_call_target( - ::std::string* custom_call_target) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (custom_call_target != NULL) { - - } else { - - } - custom_call_target_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - custom_call_target, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.custom_call_target) -} - -// string custom_call_opaque = 53; -inline void HloInstructionProto::clear_custom_call_opaque() { - custom_call_opaque_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloInstructionProto::custom_call_opaque() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.custom_call_opaque) - return custom_call_opaque_.Get(); -} -inline void HloInstructionProto::set_custom_call_opaque(const ::std::string& value) { - - custom_call_opaque_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.custom_call_opaque) -} -#if LANG_CXX11 -inline void HloInstructionProto::set_custom_call_opaque(::std::string&& value) { - - custom_call_opaque_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.custom_call_opaque) -} -#endif -inline void HloInstructionProto::set_custom_call_opaque(const char* value) { - GOOGLE_DCHECK(value != NULL); - - custom_call_opaque_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.custom_call_opaque) -} -inline void HloInstructionProto::set_custom_call_opaque(const char* value, - size_t size) { - - custom_call_opaque_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.custom_call_opaque) -} -inline ::std::string* HloInstructionProto::mutable_custom_call_opaque() { - - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.custom_call_opaque) - return custom_call_opaque_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloInstructionProto::release_custom_call_opaque() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.custom_call_opaque) - - return custom_call_opaque_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloInstructionProto::set_allocated_custom_call_opaque(::std::string* custom_call_opaque) { - if (custom_call_opaque != NULL) { - - } else { - - } - custom_call_opaque_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), custom_call_opaque, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.custom_call_opaque) -} -inline ::std::string* HloInstructionProto::unsafe_arena_release_custom_call_opaque() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.custom_call_opaque) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return custom_call_opaque_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloInstructionProto::unsafe_arena_set_allocated_custom_call_opaque( - ::std::string* custom_call_opaque) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (custom_call_opaque != NULL) { - - } else { - - } - custom_call_opaque_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - custom_call_opaque, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.custom_call_opaque) -} - -// .xla.Shape outfeed_shape = 29; -inline bool HloInstructionProto::has_outfeed_shape() const { - return this != internal_default_instance() && outfeed_shape_ != NULL; -} -inline const ::xla::Shape& HloInstructionProto::_internal_outfeed_shape() const { - return *outfeed_shape_; -} -inline const ::xla::Shape& HloInstructionProto::outfeed_shape() const { - const ::xla::Shape* p = outfeed_shape_; - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.outfeed_shape) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_Shape_default_instance_); -} -inline ::xla::Shape* HloInstructionProto::release_outfeed_shape() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.outfeed_shape) - - ::xla::Shape* temp = outfeed_shape_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - outfeed_shape_ = NULL; - return temp; -} -inline ::xla::Shape* HloInstructionProto::unsafe_arena_release_outfeed_shape() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.outfeed_shape) - - ::xla::Shape* temp = outfeed_shape_; - outfeed_shape_ = NULL; - return temp; -} -inline ::xla::Shape* HloInstructionProto::mutable_outfeed_shape() { - - if (outfeed_shape_ == NULL) { - auto* p = CreateMaybeMessage<::xla::Shape>(GetArenaNoVirtual()); - outfeed_shape_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.outfeed_shape) - return outfeed_shape_; -} -inline void HloInstructionProto::set_allocated_outfeed_shape(::xla::Shape* outfeed_shape) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(outfeed_shape_); - } - if (outfeed_shape) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(outfeed_shape)->GetArena(); - if (message_arena != submessage_arena) { - outfeed_shape = ::google::protobuf::internal::GetOwnedMessage( - message_arena, outfeed_shape, submessage_arena); - } - - } else { - - } - outfeed_shape_ = outfeed_shape; - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.outfeed_shape) -} - -// .xla.DotDimensionNumbers dot_dimension_numbers = 30; -inline bool HloInstructionProto::has_dot_dimension_numbers() const { - return this != internal_default_instance() && dot_dimension_numbers_ != NULL; -} -inline const ::xla::DotDimensionNumbers& HloInstructionProto::_internal_dot_dimension_numbers() const { - return *dot_dimension_numbers_; -} -inline const ::xla::DotDimensionNumbers& HloInstructionProto::dot_dimension_numbers() const { - const ::xla::DotDimensionNumbers* p = dot_dimension_numbers_; - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.dot_dimension_numbers) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_DotDimensionNumbers_default_instance_); -} -inline ::xla::DotDimensionNumbers* HloInstructionProto::release_dot_dimension_numbers() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.dot_dimension_numbers) - - ::xla::DotDimensionNumbers* temp = dot_dimension_numbers_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - dot_dimension_numbers_ = NULL; - return temp; -} -inline ::xla::DotDimensionNumbers* HloInstructionProto::unsafe_arena_release_dot_dimension_numbers() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.dot_dimension_numbers) - - ::xla::DotDimensionNumbers* temp = dot_dimension_numbers_; - dot_dimension_numbers_ = NULL; - return temp; -} -inline ::xla::DotDimensionNumbers* HloInstructionProto::mutable_dot_dimension_numbers() { - - if (dot_dimension_numbers_ == NULL) { - auto* p = CreateMaybeMessage<::xla::DotDimensionNumbers>(GetArenaNoVirtual()); - dot_dimension_numbers_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.dot_dimension_numbers) - return dot_dimension_numbers_; -} -inline void HloInstructionProto::set_allocated_dot_dimension_numbers(::xla::DotDimensionNumbers* dot_dimension_numbers) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(dot_dimension_numbers_); - } - if (dot_dimension_numbers) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(dot_dimension_numbers)->GetArena(); - if (message_arena != submessage_arena) { - dot_dimension_numbers = ::google::protobuf::internal::GetOwnedMessage( - message_arena, dot_dimension_numbers, submessage_arena); - } - - } else { - - } - dot_dimension_numbers_ = dot_dimension_numbers; - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.dot_dimension_numbers) -} - -// .xla.FftType fft_type = 31; -inline void HloInstructionProto::clear_fft_type() { - fft_type_ = 0; -} -inline ::xla::FftType HloInstructionProto::fft_type() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.fft_type) - return static_cast< ::xla::FftType >(fft_type_); -} -inline void HloInstructionProto::set_fft_type(::xla::FftType value) { - - fft_type_ = value; - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.fft_type) -} - -// repeated int64 fft_length = 32; -inline int HloInstructionProto::fft_length_size() const { - return fft_length_.size(); -} -inline void HloInstructionProto::clear_fft_length() { - fft_length_.Clear(); -} -inline ::google::protobuf::int64 HloInstructionProto::fft_length(int index) const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.fft_length) - return fft_length_.Get(index); -} -inline void HloInstructionProto::set_fft_length(int index, ::google::protobuf::int64 value) { - fft_length_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.fft_length) -} -inline void HloInstructionProto::add_fft_length(::google::protobuf::int64 value) { - fft_length_.Add(value); - // @@protoc_insertion_point(field_add:xla.HloInstructionProto.fft_length) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -HloInstructionProto::fft_length() const { - // @@protoc_insertion_point(field_list:xla.HloInstructionProto.fft_length) - return fft_length_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -HloInstructionProto::mutable_fft_length() { - // @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.fft_length) - return &fft_length_; -} - -// .xla.GatherDimensionNumbers gather_dimension_numbers = 33; -inline bool HloInstructionProto::has_gather_dimension_numbers() const { - return this != internal_default_instance() && gather_dimension_numbers_ != NULL; -} -inline const ::xla::GatherDimensionNumbers& HloInstructionProto::_internal_gather_dimension_numbers() const { - return *gather_dimension_numbers_; -} -inline const ::xla::GatherDimensionNumbers& HloInstructionProto::gather_dimension_numbers() const { - const ::xla::GatherDimensionNumbers* p = gather_dimension_numbers_; - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.gather_dimension_numbers) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_GatherDimensionNumbers_default_instance_); -} -inline ::xla::GatherDimensionNumbers* HloInstructionProto::release_gather_dimension_numbers() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.gather_dimension_numbers) - - ::xla::GatherDimensionNumbers* temp = gather_dimension_numbers_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - gather_dimension_numbers_ = NULL; - return temp; -} -inline ::xla::GatherDimensionNumbers* HloInstructionProto::unsafe_arena_release_gather_dimension_numbers() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.gather_dimension_numbers) - - ::xla::GatherDimensionNumbers* temp = gather_dimension_numbers_; - gather_dimension_numbers_ = NULL; - return temp; -} -inline ::xla::GatherDimensionNumbers* HloInstructionProto::mutable_gather_dimension_numbers() { - - if (gather_dimension_numbers_ == NULL) { - auto* p = CreateMaybeMessage<::xla::GatherDimensionNumbers>(GetArenaNoVirtual()); - gather_dimension_numbers_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.gather_dimension_numbers) - return gather_dimension_numbers_; -} -inline void HloInstructionProto::set_allocated_gather_dimension_numbers(::xla::GatherDimensionNumbers* gather_dimension_numbers) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(gather_dimension_numbers_); - } - if (gather_dimension_numbers) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(gather_dimension_numbers)->GetArena(); - if (message_arena != submessage_arena) { - gather_dimension_numbers = ::google::protobuf::internal::GetOwnedMessage( - message_arena, gather_dimension_numbers, submessage_arena); - } - - } else { - - } - gather_dimension_numbers_ = gather_dimension_numbers; - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.gather_dimension_numbers) -} - -// repeated int64 gather_slice_sizes = 34; -inline int HloInstructionProto::gather_slice_sizes_size() const { - return gather_slice_sizes_.size(); -} -inline void HloInstructionProto::clear_gather_slice_sizes() { - gather_slice_sizes_.Clear(); -} -inline ::google::protobuf::int64 HloInstructionProto::gather_slice_sizes(int index) const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.gather_slice_sizes) - return gather_slice_sizes_.Get(index); -} -inline void HloInstructionProto::set_gather_slice_sizes(int index, ::google::protobuf::int64 value) { - gather_slice_sizes_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.gather_slice_sizes) -} -inline void HloInstructionProto::add_gather_slice_sizes(::google::protobuf::int64 value) { - gather_slice_sizes_.Add(value); - // @@protoc_insertion_point(field_add:xla.HloInstructionProto.gather_slice_sizes) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -HloInstructionProto::gather_slice_sizes() const { - // @@protoc_insertion_point(field_list:xla.HloInstructionProto.gather_slice_sizes) - return gather_slice_sizes_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -HloInstructionProto::mutable_gather_slice_sizes() { - // @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.gather_slice_sizes) - return &gather_slice_sizes_; -} - -// string channel_name = 41; -inline void HloInstructionProto::clear_channel_name() { - channel_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloInstructionProto::channel_name() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.channel_name) - return channel_name_.Get(); -} -inline void HloInstructionProto::set_channel_name(const ::std::string& value) { - - channel_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.channel_name) -} -#if LANG_CXX11 -inline void HloInstructionProto::set_channel_name(::std::string&& value) { - - channel_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.channel_name) -} -#endif -inline void HloInstructionProto::set_channel_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - channel_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.channel_name) -} -inline void HloInstructionProto::set_channel_name(const char* value, - size_t size) { - - channel_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.channel_name) -} -inline ::std::string* HloInstructionProto::mutable_channel_name() { - - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.channel_name) - return channel_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloInstructionProto::release_channel_name() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.channel_name) - - return channel_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloInstructionProto::set_allocated_channel_name(::std::string* channel_name) { - if (channel_name != NULL) { - - } else { - - } - channel_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), channel_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.channel_name) -} -inline ::std::string* HloInstructionProto::unsafe_arena_release_channel_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.channel_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return channel_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloInstructionProto::unsafe_arena_set_allocated_channel_name( - ::std::string* channel_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (channel_name != NULL) { - - } else { - - } - channel_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - channel_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.channel_name) -} - -// int64 cost_estimate_ns = 42; -inline void HloInstructionProto::clear_cost_estimate_ns() { - cost_estimate_ns_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HloInstructionProto::cost_estimate_ns() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.cost_estimate_ns) - return cost_estimate_ns_; -} -inline void HloInstructionProto::set_cost_estimate_ns(::google::protobuf::int64 value) { - - cost_estimate_ns_ = value; - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.cost_estimate_ns) -} - -// int64 id = 35; -inline void HloInstructionProto::clear_id() { - id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HloInstructionProto::id() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.id) - return id_; -} -inline void HloInstructionProto::set_id(::google::protobuf::int64 value) { - - id_ = value; - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.id) -} - -// repeated int64 operand_ids = 36; -inline int HloInstructionProto::operand_ids_size() const { - return operand_ids_.size(); -} -inline void HloInstructionProto::clear_operand_ids() { - operand_ids_.Clear(); -} -inline ::google::protobuf::int64 HloInstructionProto::operand_ids(int index) const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.operand_ids) - return operand_ids_.Get(index); -} -inline void HloInstructionProto::set_operand_ids(int index, ::google::protobuf::int64 value) { - operand_ids_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.operand_ids) -} -inline void HloInstructionProto::add_operand_ids(::google::protobuf::int64 value) { - operand_ids_.Add(value); - // @@protoc_insertion_point(field_add:xla.HloInstructionProto.operand_ids) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -HloInstructionProto::operand_ids() const { - // @@protoc_insertion_point(field_list:xla.HloInstructionProto.operand_ids) - return operand_ids_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -HloInstructionProto::mutable_operand_ids() { - // @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.operand_ids) - return &operand_ids_; -} - -// repeated int64 control_predecessor_ids = 37; -inline int HloInstructionProto::control_predecessor_ids_size() const { - return control_predecessor_ids_.size(); -} -inline void HloInstructionProto::clear_control_predecessor_ids() { - control_predecessor_ids_.Clear(); -} -inline ::google::protobuf::int64 HloInstructionProto::control_predecessor_ids(int index) const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.control_predecessor_ids) - return control_predecessor_ids_.Get(index); -} -inline void HloInstructionProto::set_control_predecessor_ids(int index, ::google::protobuf::int64 value) { - control_predecessor_ids_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.control_predecessor_ids) -} -inline void HloInstructionProto::add_control_predecessor_ids(::google::protobuf::int64 value) { - control_predecessor_ids_.Add(value); - // @@protoc_insertion_point(field_add:xla.HloInstructionProto.control_predecessor_ids) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -HloInstructionProto::control_predecessor_ids() const { - // @@protoc_insertion_point(field_list:xla.HloInstructionProto.control_predecessor_ids) - return control_predecessor_ids_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -HloInstructionProto::mutable_control_predecessor_ids() { - // @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.control_predecessor_ids) - return &control_predecessor_ids_; -} - -// repeated int64 called_computation_ids = 38; -inline int HloInstructionProto::called_computation_ids_size() const { - return called_computation_ids_.size(); -} -inline void HloInstructionProto::clear_called_computation_ids() { - called_computation_ids_.Clear(); -} -inline ::google::protobuf::int64 HloInstructionProto::called_computation_ids(int index) const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.called_computation_ids) - return called_computation_ids_.Get(index); -} -inline void HloInstructionProto::set_called_computation_ids(int index, ::google::protobuf::int64 value) { - called_computation_ids_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.called_computation_ids) -} -inline void HloInstructionProto::add_called_computation_ids(::google::protobuf::int64 value) { - called_computation_ids_.Add(value); - // @@protoc_insertion_point(field_add:xla.HloInstructionProto.called_computation_ids) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -HloInstructionProto::called_computation_ids() const { - // @@protoc_insertion_point(field_list:xla.HloInstructionProto.called_computation_ids) - return called_computation_ids_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -HloInstructionProto::mutable_called_computation_ids() { - // @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.called_computation_ids) - return &called_computation_ids_; -} - -// .xla.OpSharding sharding = 40; -inline bool HloInstructionProto::has_sharding() const { - return this != internal_default_instance() && sharding_ != NULL; -} -inline const ::xla::OpSharding& HloInstructionProto::_internal_sharding() const { - return *sharding_; -} -inline const ::xla::OpSharding& HloInstructionProto::sharding() const { - const ::xla::OpSharding* p = sharding_; - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.sharding) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_OpSharding_default_instance_); -} -inline ::xla::OpSharding* HloInstructionProto::release_sharding() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.sharding) - - ::xla::OpSharding* temp = sharding_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - sharding_ = NULL; - return temp; -} -inline ::xla::OpSharding* HloInstructionProto::unsafe_arena_release_sharding() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.sharding) - - ::xla::OpSharding* temp = sharding_; - sharding_ = NULL; - return temp; -} -inline ::xla::OpSharding* HloInstructionProto::mutable_sharding() { - - if (sharding_ == NULL) { - auto* p = CreateMaybeMessage<::xla::OpSharding>(GetArenaNoVirtual()); - sharding_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.sharding) - return sharding_; -} -inline void HloInstructionProto::set_allocated_sharding(::xla::OpSharding* sharding) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(sharding_); - } - if (sharding) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(sharding)->GetArena(); - if (message_arena != submessage_arena) { - sharding = ::google::protobuf::internal::GetOwnedMessage( - message_arena, sharding, submessage_arena); - } - - } else { - - } - sharding_ = sharding; - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.sharding) -} - -// string backend_config = 43; -inline void HloInstructionProto::clear_backend_config() { - backend_config_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloInstructionProto::backend_config() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.backend_config) - return backend_config_.Get(); -} -inline void HloInstructionProto::set_backend_config(const ::std::string& value) { - - backend_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.backend_config) -} -#if LANG_CXX11 -inline void HloInstructionProto::set_backend_config(::std::string&& value) { - - backend_config_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.backend_config) -} -#endif -inline void HloInstructionProto::set_backend_config(const char* value) { - GOOGLE_DCHECK(value != NULL); - - backend_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.backend_config) -} -inline void HloInstructionProto::set_backend_config(const char* value, - size_t size) { - - backend_config_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.backend_config) -} -inline ::std::string* HloInstructionProto::mutable_backend_config() { - - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.backend_config) - return backend_config_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloInstructionProto::release_backend_config() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.backend_config) - - return backend_config_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloInstructionProto::set_allocated_backend_config(::std::string* backend_config) { - if (backend_config != NULL) { - - } else { - - } - backend_config_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), backend_config, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.backend_config) -} -inline ::std::string* HloInstructionProto::unsafe_arena_release_backend_config() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.backend_config) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return backend_config_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloInstructionProto::unsafe_arena_set_allocated_backend_config( - ::std::string* backend_config) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (backend_config != NULL) { - - } else { - - } - backend_config_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - backend_config, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.backend_config) -} - -// repeated .xla.ReplicaGroup replica_groups = 49; -inline int HloInstructionProto::replica_groups_size() const { - return replica_groups_.size(); -} -inline ::xla::ReplicaGroup* HloInstructionProto::mutable_replica_groups(int index) { - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.replica_groups) - return replica_groups_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::ReplicaGroup >* -HloInstructionProto::mutable_replica_groups() { - // @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.replica_groups) - return &replica_groups_; -} -inline const ::xla::ReplicaGroup& HloInstructionProto::replica_groups(int index) const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.replica_groups) - return replica_groups_.Get(index); -} -inline ::xla::ReplicaGroup* HloInstructionProto::add_replica_groups() { - // @@protoc_insertion_point(field_add:xla.HloInstructionProto.replica_groups) - return replica_groups_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::ReplicaGroup >& -HloInstructionProto::replica_groups() const { - // @@protoc_insertion_point(field_list:xla.HloInstructionProto.replica_groups) - return replica_groups_; -} - -// int64 all_reduce_id = 45; -inline void HloInstructionProto::clear_all_reduce_id() { - all_reduce_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HloInstructionProto::all_reduce_id() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.all_reduce_id) - return all_reduce_id_; -} -inline void HloInstructionProto::set_all_reduce_id(::google::protobuf::int64 value) { - - all_reduce_id_ = value; - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.all_reduce_id) -} - -// string cross_replica_sum_barrier = 46; -inline void HloInstructionProto::clear_cross_replica_sum_barrier() { - cross_replica_sum_barrier_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloInstructionProto::cross_replica_sum_barrier() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.cross_replica_sum_barrier) - return cross_replica_sum_barrier_.Get(); -} -inline void HloInstructionProto::set_cross_replica_sum_barrier(const ::std::string& value) { - - cross_replica_sum_barrier_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.cross_replica_sum_barrier) -} -#if LANG_CXX11 -inline void HloInstructionProto::set_cross_replica_sum_barrier(::std::string&& value) { - - cross_replica_sum_barrier_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloInstructionProto.cross_replica_sum_barrier) -} -#endif -inline void HloInstructionProto::set_cross_replica_sum_barrier(const char* value) { - GOOGLE_DCHECK(value != NULL); - - cross_replica_sum_barrier_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloInstructionProto.cross_replica_sum_barrier) -} -inline void HloInstructionProto::set_cross_replica_sum_barrier(const char* value, - size_t size) { - - cross_replica_sum_barrier_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloInstructionProto.cross_replica_sum_barrier) -} -inline ::std::string* HloInstructionProto::mutable_cross_replica_sum_barrier() { - - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.cross_replica_sum_barrier) - return cross_replica_sum_barrier_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloInstructionProto::release_cross_replica_sum_barrier() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.cross_replica_sum_barrier) - - return cross_replica_sum_barrier_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloInstructionProto::set_allocated_cross_replica_sum_barrier(::std::string* cross_replica_sum_barrier) { - if (cross_replica_sum_barrier != NULL) { - - } else { - - } - cross_replica_sum_barrier_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), cross_replica_sum_barrier, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.cross_replica_sum_barrier) -} -inline ::std::string* HloInstructionProto::unsafe_arena_release_cross_replica_sum_barrier() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.cross_replica_sum_barrier) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return cross_replica_sum_barrier_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloInstructionProto::unsafe_arena_set_allocated_cross_replica_sum_barrier( - ::std::string* cross_replica_sum_barrier) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (cross_replica_sum_barrier != NULL) { - - } else { - - } - cross_replica_sum_barrier_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - cross_replica_sum_barrier, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloInstructionProto.cross_replica_sum_barrier) -} - -// bool is_host_transfer = 47; -inline void HloInstructionProto::clear_is_host_transfer() { - is_host_transfer_ = false; -} -inline bool HloInstructionProto::is_host_transfer() const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.is_host_transfer) - return is_host_transfer_; -} -inline void HloInstructionProto::set_is_host_transfer(bool value) { - - is_host_transfer_ = value; - // @@protoc_insertion_point(field_set:xla.HloInstructionProto.is_host_transfer) -} - -// .xla.ScatterDimensionNumbers scatter_dimension_numbers = 48; -inline bool HloInstructionProto::has_scatter_dimension_numbers() const { - return this != internal_default_instance() && scatter_dimension_numbers_ != NULL; -} -inline const ::xla::ScatterDimensionNumbers& HloInstructionProto::_internal_scatter_dimension_numbers() const { - return *scatter_dimension_numbers_; -} -inline const ::xla::ScatterDimensionNumbers& HloInstructionProto::scatter_dimension_numbers() const { - const ::xla::ScatterDimensionNumbers* p = scatter_dimension_numbers_; - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.scatter_dimension_numbers) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_ScatterDimensionNumbers_default_instance_); -} -inline ::xla::ScatterDimensionNumbers* HloInstructionProto::release_scatter_dimension_numbers() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.scatter_dimension_numbers) - - ::xla::ScatterDimensionNumbers* temp = scatter_dimension_numbers_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - scatter_dimension_numbers_ = NULL; - return temp; -} -inline ::xla::ScatterDimensionNumbers* HloInstructionProto::unsafe_arena_release_scatter_dimension_numbers() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.scatter_dimension_numbers) - - ::xla::ScatterDimensionNumbers* temp = scatter_dimension_numbers_; - scatter_dimension_numbers_ = NULL; - return temp; -} -inline ::xla::ScatterDimensionNumbers* HloInstructionProto::mutable_scatter_dimension_numbers() { - - if (scatter_dimension_numbers_ == NULL) { - auto* p = CreateMaybeMessage<::xla::ScatterDimensionNumbers>(GetArenaNoVirtual()); - scatter_dimension_numbers_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.scatter_dimension_numbers) - return scatter_dimension_numbers_; -} -inline void HloInstructionProto::set_allocated_scatter_dimension_numbers(::xla::ScatterDimensionNumbers* scatter_dimension_numbers) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(scatter_dimension_numbers_); - } - if (scatter_dimension_numbers) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(scatter_dimension_numbers)->GetArena(); - if (message_arena != submessage_arena) { - scatter_dimension_numbers = ::google::protobuf::internal::GetOwnedMessage( - message_arena, scatter_dimension_numbers, submessage_arena); - } - - } else { - - } - scatter_dimension_numbers_ = scatter_dimension_numbers; - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.scatter_dimension_numbers) -} - -// .xla.PrecisionConfig precision_config = 51; -inline bool HloInstructionProto::has_precision_config() const { - return this != internal_default_instance() && precision_config_ != NULL; -} -inline const ::xla::PrecisionConfig& HloInstructionProto::_internal_precision_config() const { - return *precision_config_; -} -inline const ::xla::PrecisionConfig& HloInstructionProto::precision_config() const { - const ::xla::PrecisionConfig* p = precision_config_; - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.precision_config) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_PrecisionConfig_default_instance_); -} -inline ::xla::PrecisionConfig* HloInstructionProto::release_precision_config() { - // @@protoc_insertion_point(field_release:xla.HloInstructionProto.precision_config) - - ::xla::PrecisionConfig* temp = precision_config_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - precision_config_ = NULL; - return temp; -} -inline ::xla::PrecisionConfig* HloInstructionProto::unsafe_arena_release_precision_config() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloInstructionProto.precision_config) - - ::xla::PrecisionConfig* temp = precision_config_; - precision_config_ = NULL; - return temp; -} -inline ::xla::PrecisionConfig* HloInstructionProto::mutable_precision_config() { - - if (precision_config_ == NULL) { - auto* p = CreateMaybeMessage<::xla::PrecisionConfig>(GetArenaNoVirtual()); - precision_config_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.precision_config) - return precision_config_; -} -inline void HloInstructionProto::set_allocated_precision_config(::xla::PrecisionConfig* precision_config) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(precision_config_); - } - if (precision_config) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(precision_config)->GetArena(); - if (message_arena != submessage_arena) { - precision_config = ::google::protobuf::internal::GetOwnedMessage( - message_arena, precision_config, submessage_arena); - } - - } else { - - } - precision_config_ = precision_config; - // @@protoc_insertion_point(field_set_allocated:xla.HloInstructionProto.precision_config) -} - -// repeated .xla.SourceTarget source_target_pairs = 52; -inline int HloInstructionProto::source_target_pairs_size() const { - return source_target_pairs_.size(); -} -inline ::xla::SourceTarget* HloInstructionProto::mutable_source_target_pairs(int index) { - // @@protoc_insertion_point(field_mutable:xla.HloInstructionProto.source_target_pairs) - return source_target_pairs_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::SourceTarget >* -HloInstructionProto::mutable_source_target_pairs() { - // @@protoc_insertion_point(field_mutable_list:xla.HloInstructionProto.source_target_pairs) - return &source_target_pairs_; -} -inline const ::xla::SourceTarget& HloInstructionProto::source_target_pairs(int index) const { - // @@protoc_insertion_point(field_get:xla.HloInstructionProto.source_target_pairs) - return source_target_pairs_.Get(index); -} -inline ::xla::SourceTarget* HloInstructionProto::add_source_target_pairs() { - // @@protoc_insertion_point(field_add:xla.HloInstructionProto.source_target_pairs) - return source_target_pairs_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::SourceTarget >& -HloInstructionProto::source_target_pairs() const { - // @@protoc_insertion_point(field_list:xla.HloInstructionProto.source_target_pairs) - return source_target_pairs_; -} - -// ------------------------------------------------------------------- - -// HloComputationProto - -// string name = 1; -inline void HloComputationProto::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloComputationProto::name() const { - // @@protoc_insertion_point(field_get:xla.HloComputationProto.name) - return name_.Get(); -} -inline void HloComputationProto::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloComputationProto.name) -} -#if LANG_CXX11 -inline void HloComputationProto::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloComputationProto.name) -} -#endif -inline void HloComputationProto::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloComputationProto.name) -} -inline void HloComputationProto::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloComputationProto.name) -} -inline ::std::string* HloComputationProto::mutable_name() { - - // @@protoc_insertion_point(field_mutable:xla.HloComputationProto.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloComputationProto::release_name() { - // @@protoc_insertion_point(field_release:xla.HloComputationProto.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloComputationProto::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloComputationProto.name) -} -inline ::std::string* HloComputationProto::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloComputationProto.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloComputationProto::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloComputationProto.name) -} - -// repeated .xla.HloInstructionProto instructions = 2; -inline int HloComputationProto::instructions_size() const { - return instructions_.size(); -} -inline void HloComputationProto::clear_instructions() { - instructions_.Clear(); -} -inline ::xla::HloInstructionProto* HloComputationProto::mutable_instructions(int index) { - // @@protoc_insertion_point(field_mutable:xla.HloComputationProto.instructions) - return instructions_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto >* -HloComputationProto::mutable_instructions() { - // @@protoc_insertion_point(field_mutable_list:xla.HloComputationProto.instructions) - return &instructions_; -} -inline const ::xla::HloInstructionProto& HloComputationProto::instructions(int index) const { - // @@protoc_insertion_point(field_get:xla.HloComputationProto.instructions) - return instructions_.Get(index); -} -inline ::xla::HloInstructionProto* HloComputationProto::add_instructions() { - // @@protoc_insertion_point(field_add:xla.HloComputationProto.instructions) - return instructions_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::HloInstructionProto >& -HloComputationProto::instructions() const { - // @@protoc_insertion_point(field_list:xla.HloComputationProto.instructions) - return instructions_; -} - -// .xla.ProgramShape program_shape = 4; -inline bool HloComputationProto::has_program_shape() const { - return this != internal_default_instance() && program_shape_ != NULL; -} -inline const ::xla::ProgramShape& HloComputationProto::_internal_program_shape() const { - return *program_shape_; -} -inline const ::xla::ProgramShape& HloComputationProto::program_shape() const { - const ::xla::ProgramShape* p = program_shape_; - // @@protoc_insertion_point(field_get:xla.HloComputationProto.program_shape) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_ProgramShape_default_instance_); -} -inline ::xla::ProgramShape* HloComputationProto::release_program_shape() { - // @@protoc_insertion_point(field_release:xla.HloComputationProto.program_shape) - - ::xla::ProgramShape* temp = program_shape_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - program_shape_ = NULL; - return temp; -} -inline ::xla::ProgramShape* HloComputationProto::unsafe_arena_release_program_shape() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloComputationProto.program_shape) - - ::xla::ProgramShape* temp = program_shape_; - program_shape_ = NULL; - return temp; -} -inline ::xla::ProgramShape* HloComputationProto::mutable_program_shape() { - - if (program_shape_ == NULL) { - auto* p = CreateMaybeMessage<::xla::ProgramShape>(GetArenaNoVirtual()); - program_shape_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloComputationProto.program_shape) - return program_shape_; -} -inline void HloComputationProto::set_allocated_program_shape(::xla::ProgramShape* program_shape) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(program_shape_); - } - if (program_shape) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(program_shape)->GetArena(); - if (message_arena != submessage_arena) { - program_shape = ::google::protobuf::internal::GetOwnedMessage( - message_arena, program_shape, submessage_arena); - } - - } else { - - } - program_shape_ = program_shape; - // @@protoc_insertion_point(field_set_allocated:xla.HloComputationProto.program_shape) -} - -// int64 id = 5; -inline void HloComputationProto::clear_id() { - id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HloComputationProto::id() const { - // @@protoc_insertion_point(field_get:xla.HloComputationProto.id) - return id_; -} -inline void HloComputationProto::set_id(::google::protobuf::int64 value) { - - id_ = value; - // @@protoc_insertion_point(field_set:xla.HloComputationProto.id) -} - -// int64 root_id = 6; -inline void HloComputationProto::clear_root_id() { - root_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HloComputationProto::root_id() const { - // @@protoc_insertion_point(field_get:xla.HloComputationProto.root_id) - return root_id_; -} -inline void HloComputationProto::set_root_id(::google::protobuf::int64 value) { - - root_id_ = value; - // @@protoc_insertion_point(field_set:xla.HloComputationProto.root_id) -} - -// ------------------------------------------------------------------- - -// HloScheduleProto_InstructionSequence - -// repeated int64 instruction_ids = 1; -inline int HloScheduleProto_InstructionSequence::instruction_ids_size() const { - return instruction_ids_.size(); -} -inline void HloScheduleProto_InstructionSequence::clear_instruction_ids() { - instruction_ids_.Clear(); -} -inline ::google::protobuf::int64 HloScheduleProto_InstructionSequence::instruction_ids(int index) const { - // @@protoc_insertion_point(field_get:xla.HloScheduleProto.InstructionSequence.instruction_ids) - return instruction_ids_.Get(index); -} -inline void HloScheduleProto_InstructionSequence::set_instruction_ids(int index, ::google::protobuf::int64 value) { - instruction_ids_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.HloScheduleProto.InstructionSequence.instruction_ids) -} -inline void HloScheduleProto_InstructionSequence::add_instruction_ids(::google::protobuf::int64 value) { - instruction_ids_.Add(value); - // @@protoc_insertion_point(field_add:xla.HloScheduleProto.InstructionSequence.instruction_ids) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -HloScheduleProto_InstructionSequence::instruction_ids() const { - // @@protoc_insertion_point(field_list:xla.HloScheduleProto.InstructionSequence.instruction_ids) - return instruction_ids_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -HloScheduleProto_InstructionSequence::mutable_instruction_ids() { - // @@protoc_insertion_point(field_mutable_list:xla.HloScheduleProto.InstructionSequence.instruction_ids) - return &instruction_ids_; -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// HloScheduleProto - -// map sequences = 1; -inline int HloScheduleProto::sequences_size() const { - return sequences_.size(); -} -inline void HloScheduleProto::clear_sequences() { - sequences_.Clear(); -} -inline const ::google::protobuf::Map< ::google::protobuf::int64, ::xla::HloScheduleProto_InstructionSequence >& -HloScheduleProto::sequences() const { - // @@protoc_insertion_point(field_map:xla.HloScheduleProto.sequences) - return sequences_.GetMap(); -} -inline ::google::protobuf::Map< ::google::protobuf::int64, ::xla::HloScheduleProto_InstructionSequence >* -HloScheduleProto::mutable_sequences() { - // @@protoc_insertion_point(field_mutable_map:xla.HloScheduleProto.sequences) - return sequences_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// HloModuleProto - -// string name = 1; -inline void HloModuleProto::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloModuleProto::name() const { - // @@protoc_insertion_point(field_get:xla.HloModuleProto.name) - return name_.Get(); -} -inline void HloModuleProto::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloModuleProto.name) -} -#if LANG_CXX11 -inline void HloModuleProto::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloModuleProto.name) -} -#endif -inline void HloModuleProto::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloModuleProto.name) -} -inline void HloModuleProto::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloModuleProto.name) -} -inline ::std::string* HloModuleProto::mutable_name() { - - // @@protoc_insertion_point(field_mutable:xla.HloModuleProto.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloModuleProto::release_name() { - // @@protoc_insertion_point(field_release:xla.HloModuleProto.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloModuleProto::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloModuleProto.name) -} -inline ::std::string* HloModuleProto::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloModuleProto.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloModuleProto::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloModuleProto.name) -} - -// string entry_computation_name = 2; -inline void HloModuleProto::clear_entry_computation_name() { - entry_computation_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloModuleProto::entry_computation_name() const { - // @@protoc_insertion_point(field_get:xla.HloModuleProto.entry_computation_name) - return entry_computation_name_.Get(); -} -inline void HloModuleProto::set_entry_computation_name(const ::std::string& value) { - - entry_computation_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloModuleProto.entry_computation_name) -} -#if LANG_CXX11 -inline void HloModuleProto::set_entry_computation_name(::std::string&& value) { - - entry_computation_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloModuleProto.entry_computation_name) -} -#endif -inline void HloModuleProto::set_entry_computation_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - entry_computation_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloModuleProto.entry_computation_name) -} -inline void HloModuleProto::set_entry_computation_name(const char* value, - size_t size) { - - entry_computation_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloModuleProto.entry_computation_name) -} -inline ::std::string* HloModuleProto::mutable_entry_computation_name() { - - // @@protoc_insertion_point(field_mutable:xla.HloModuleProto.entry_computation_name) - return entry_computation_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloModuleProto::release_entry_computation_name() { - // @@protoc_insertion_point(field_release:xla.HloModuleProto.entry_computation_name) - - return entry_computation_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloModuleProto::set_allocated_entry_computation_name(::std::string* entry_computation_name) { - if (entry_computation_name != NULL) { - - } else { - - } - entry_computation_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), entry_computation_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloModuleProto.entry_computation_name) -} -inline ::std::string* HloModuleProto::unsafe_arena_release_entry_computation_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloModuleProto.entry_computation_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return entry_computation_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloModuleProto::unsafe_arena_set_allocated_entry_computation_name( - ::std::string* entry_computation_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (entry_computation_name != NULL) { - - } else { - - } - entry_computation_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - entry_computation_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloModuleProto.entry_computation_name) -} - -// int64 entry_computation_id = 6; -inline void HloModuleProto::clear_entry_computation_id() { - entry_computation_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HloModuleProto::entry_computation_id() const { - // @@protoc_insertion_point(field_get:xla.HloModuleProto.entry_computation_id) - return entry_computation_id_; -} -inline void HloModuleProto::set_entry_computation_id(::google::protobuf::int64 value) { - - entry_computation_id_ = value; - // @@protoc_insertion_point(field_set:xla.HloModuleProto.entry_computation_id) -} - -// repeated .xla.HloComputationProto computations = 3; -inline int HloModuleProto::computations_size() const { - return computations_.size(); -} -inline void HloModuleProto::clear_computations() { - computations_.Clear(); -} -inline ::xla::HloComputationProto* HloModuleProto::mutable_computations(int index) { - // @@protoc_insertion_point(field_mutable:xla.HloModuleProto.computations) - return computations_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::HloComputationProto >* -HloModuleProto::mutable_computations() { - // @@protoc_insertion_point(field_mutable_list:xla.HloModuleProto.computations) - return &computations_; -} -inline const ::xla::HloComputationProto& HloModuleProto::computations(int index) const { - // @@protoc_insertion_point(field_get:xla.HloModuleProto.computations) - return computations_.Get(index); -} -inline ::xla::HloComputationProto* HloModuleProto::add_computations() { - // @@protoc_insertion_point(field_add:xla.HloModuleProto.computations) - return computations_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::HloComputationProto >& -HloModuleProto::computations() const { - // @@protoc_insertion_point(field_list:xla.HloModuleProto.computations) - return computations_; -} - -// .xla.ProgramShape program_shape = 4; -inline bool HloModuleProto::has_program_shape() const { - return this != internal_default_instance() && program_shape_ != NULL; -} -inline const ::xla::ProgramShape& HloModuleProto::_internal_program_shape() const { - return *program_shape_; -} -inline const ::xla::ProgramShape& HloModuleProto::program_shape() const { - const ::xla::ProgramShape* p = program_shape_; - // @@protoc_insertion_point(field_get:xla.HloModuleProto.program_shape) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_ProgramShape_default_instance_); -} -inline ::xla::ProgramShape* HloModuleProto::release_program_shape() { - // @@protoc_insertion_point(field_release:xla.HloModuleProto.program_shape) - - ::xla::ProgramShape* temp = program_shape_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - program_shape_ = NULL; - return temp; -} -inline ::xla::ProgramShape* HloModuleProto::unsafe_arena_release_program_shape() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloModuleProto.program_shape) - - ::xla::ProgramShape* temp = program_shape_; - program_shape_ = NULL; - return temp; -} -inline ::xla::ProgramShape* HloModuleProto::mutable_program_shape() { - - if (program_shape_ == NULL) { - auto* p = CreateMaybeMessage<::xla::ProgramShape>(GetArenaNoVirtual()); - program_shape_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloModuleProto.program_shape) - return program_shape_; -} -inline void HloModuleProto::set_allocated_program_shape(::xla::ProgramShape* program_shape) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(program_shape_); - } - if (program_shape) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(program_shape)->GetArena(); - if (message_arena != submessage_arena) { - program_shape = ::google::protobuf::internal::GetOwnedMessage( - message_arena, program_shape, submessage_arena); - } - - } else { - - } - program_shape_ = program_shape; - // @@protoc_insertion_point(field_set_allocated:xla.HloModuleProto.program_shape) -} - -// int64 id = 5; -inline void HloModuleProto::clear_id() { - id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HloModuleProto::id() const { - // @@protoc_insertion_point(field_get:xla.HloModuleProto.id) - return id_; -} -inline void HloModuleProto::set_id(::google::protobuf::int64 value) { - - id_ = value; - // @@protoc_insertion_point(field_set:xla.HloModuleProto.id) -} - -// .xla.HloScheduleProto schedule = 7; -inline bool HloModuleProto::has_schedule() const { - return this != internal_default_instance() && schedule_ != NULL; -} -inline void HloModuleProto::clear_schedule() { - if (GetArenaNoVirtual() == NULL && schedule_ != NULL) { - delete schedule_; - } - schedule_ = NULL; -} -inline const ::xla::HloScheduleProto& HloModuleProto::_internal_schedule() const { - return *schedule_; -} -inline const ::xla::HloScheduleProto& HloModuleProto::schedule() const { - const ::xla::HloScheduleProto* p = schedule_; - // @@protoc_insertion_point(field_get:xla.HloModuleProto.schedule) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_HloScheduleProto_default_instance_); -} -inline ::xla::HloScheduleProto* HloModuleProto::release_schedule() { - // @@protoc_insertion_point(field_release:xla.HloModuleProto.schedule) - - ::xla::HloScheduleProto* temp = schedule_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - schedule_ = NULL; - return temp; -} -inline ::xla::HloScheduleProto* HloModuleProto::unsafe_arena_release_schedule() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloModuleProto.schedule) - - ::xla::HloScheduleProto* temp = schedule_; - schedule_ = NULL; - return temp; -} -inline ::xla::HloScheduleProto* HloModuleProto::mutable_schedule() { - - if (schedule_ == NULL) { - auto* p = CreateMaybeMessage<::xla::HloScheduleProto>(GetArenaNoVirtual()); - schedule_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloModuleProto.schedule) - return schedule_; -} -inline void HloModuleProto::set_allocated_schedule(::xla::HloScheduleProto* schedule) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete schedule_; - } - if (schedule) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(schedule); - if (message_arena != submessage_arena) { - schedule = ::google::protobuf::internal::GetOwnedMessage( - message_arena, schedule, submessage_arena); - } - - } else { - - } - schedule_ = schedule; - // @@protoc_insertion_point(field_set_allocated:xla.HloModuleProto.schedule) -} - -// ------------------------------------------------------------------- - -// LogicalBufferProto_Location - -// string computation_name = 1; -inline void LogicalBufferProto_Location::clear_computation_name() { - computation_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& LogicalBufferProto_Location::computation_name() const { - // @@protoc_insertion_point(field_get:xla.LogicalBufferProto.Location.computation_name) - return computation_name_.Get(); -} -inline void LogicalBufferProto_Location::set_computation_name(const ::std::string& value) { - - computation_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.LogicalBufferProto.Location.computation_name) -} -#if LANG_CXX11 -inline void LogicalBufferProto_Location::set_computation_name(::std::string&& value) { - - computation_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.LogicalBufferProto.Location.computation_name) -} -#endif -inline void LogicalBufferProto_Location::set_computation_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - computation_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.LogicalBufferProto.Location.computation_name) -} -inline void LogicalBufferProto_Location::set_computation_name(const char* value, - size_t size) { - - computation_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.LogicalBufferProto.Location.computation_name) -} -inline ::std::string* LogicalBufferProto_Location::mutable_computation_name() { - - // @@protoc_insertion_point(field_mutable:xla.LogicalBufferProto.Location.computation_name) - return computation_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* LogicalBufferProto_Location::release_computation_name() { - // @@protoc_insertion_point(field_release:xla.LogicalBufferProto.Location.computation_name) - - return computation_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void LogicalBufferProto_Location::set_allocated_computation_name(::std::string* computation_name) { - if (computation_name != NULL) { - - } else { - - } - computation_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), computation_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.LogicalBufferProto.Location.computation_name) -} -inline ::std::string* LogicalBufferProto_Location::unsafe_arena_release_computation_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.LogicalBufferProto.Location.computation_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return computation_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void LogicalBufferProto_Location::unsafe_arena_set_allocated_computation_name( - ::std::string* computation_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (computation_name != NULL) { - - } else { - - } - computation_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - computation_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.LogicalBufferProto.Location.computation_name) -} - -// string instruction_name = 2; -inline void LogicalBufferProto_Location::clear_instruction_name() { - instruction_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& LogicalBufferProto_Location::instruction_name() const { - // @@protoc_insertion_point(field_get:xla.LogicalBufferProto.Location.instruction_name) - return instruction_name_.Get(); -} -inline void LogicalBufferProto_Location::set_instruction_name(const ::std::string& value) { - - instruction_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.LogicalBufferProto.Location.instruction_name) -} -#if LANG_CXX11 -inline void LogicalBufferProto_Location::set_instruction_name(::std::string&& value) { - - instruction_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.LogicalBufferProto.Location.instruction_name) -} -#endif -inline void LogicalBufferProto_Location::set_instruction_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - instruction_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.LogicalBufferProto.Location.instruction_name) -} -inline void LogicalBufferProto_Location::set_instruction_name(const char* value, - size_t size) { - - instruction_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.LogicalBufferProto.Location.instruction_name) -} -inline ::std::string* LogicalBufferProto_Location::mutable_instruction_name() { - - // @@protoc_insertion_point(field_mutable:xla.LogicalBufferProto.Location.instruction_name) - return instruction_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* LogicalBufferProto_Location::release_instruction_name() { - // @@protoc_insertion_point(field_release:xla.LogicalBufferProto.Location.instruction_name) - - return instruction_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void LogicalBufferProto_Location::set_allocated_instruction_name(::std::string* instruction_name) { - if (instruction_name != NULL) { - - } else { - - } - instruction_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), instruction_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.LogicalBufferProto.Location.instruction_name) -} -inline ::std::string* LogicalBufferProto_Location::unsafe_arena_release_instruction_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.LogicalBufferProto.Location.instruction_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return instruction_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void LogicalBufferProto_Location::unsafe_arena_set_allocated_instruction_name( - ::std::string* instruction_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (instruction_name != NULL) { - - } else { - - } - instruction_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - instruction_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.LogicalBufferProto.Location.instruction_name) -} - -// repeated int64 shape_index = 3; -inline int LogicalBufferProto_Location::shape_index_size() const { - return shape_index_.size(); -} -inline void LogicalBufferProto_Location::clear_shape_index() { - shape_index_.Clear(); -} -inline ::google::protobuf::int64 LogicalBufferProto_Location::shape_index(int index) const { - // @@protoc_insertion_point(field_get:xla.LogicalBufferProto.Location.shape_index) - return shape_index_.Get(index); -} -inline void LogicalBufferProto_Location::set_shape_index(int index, ::google::protobuf::int64 value) { - shape_index_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.LogicalBufferProto.Location.shape_index) -} -inline void LogicalBufferProto_Location::add_shape_index(::google::protobuf::int64 value) { - shape_index_.Add(value); - // @@protoc_insertion_point(field_add:xla.LogicalBufferProto.Location.shape_index) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -LogicalBufferProto_Location::shape_index() const { - // @@protoc_insertion_point(field_list:xla.LogicalBufferProto.Location.shape_index) - return shape_index_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -LogicalBufferProto_Location::mutable_shape_index() { - // @@protoc_insertion_point(field_mutable_list:xla.LogicalBufferProto.Location.shape_index) - return &shape_index_; -} - -// ------------------------------------------------------------------- - -// LogicalBufferProto - -// int64 id = 1; -inline void LogicalBufferProto::clear_id() { - id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 LogicalBufferProto::id() const { - // @@protoc_insertion_point(field_get:xla.LogicalBufferProto.id) - return id_; -} -inline void LogicalBufferProto::set_id(::google::protobuf::int64 value) { - - id_ = value; - // @@protoc_insertion_point(field_set:xla.LogicalBufferProto.id) -} - -// int64 size = 2; -inline void LogicalBufferProto::clear_size() { - size_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 LogicalBufferProto::size() const { - // @@protoc_insertion_point(field_get:xla.LogicalBufferProto.size) - return size_; -} -inline void LogicalBufferProto::set_size(::google::protobuf::int64 value) { - - size_ = value; - // @@protoc_insertion_point(field_set:xla.LogicalBufferProto.size) -} - -// .xla.LogicalBufferProto.Location defined_at = 3; -inline bool LogicalBufferProto::has_defined_at() const { - return this != internal_default_instance() && defined_at_ != NULL; -} -inline void LogicalBufferProto::clear_defined_at() { - if (GetArenaNoVirtual() == NULL && defined_at_ != NULL) { - delete defined_at_; - } - defined_at_ = NULL; -} -inline const ::xla::LogicalBufferProto_Location& LogicalBufferProto::_internal_defined_at() const { - return *defined_at_; -} -inline const ::xla::LogicalBufferProto_Location& LogicalBufferProto::defined_at() const { - const ::xla::LogicalBufferProto_Location* p = defined_at_; - // @@protoc_insertion_point(field_get:xla.LogicalBufferProto.defined_at) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_LogicalBufferProto_Location_default_instance_); -} -inline ::xla::LogicalBufferProto_Location* LogicalBufferProto::release_defined_at() { - // @@protoc_insertion_point(field_release:xla.LogicalBufferProto.defined_at) - - ::xla::LogicalBufferProto_Location* temp = defined_at_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - defined_at_ = NULL; - return temp; -} -inline ::xla::LogicalBufferProto_Location* LogicalBufferProto::unsafe_arena_release_defined_at() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.LogicalBufferProto.defined_at) - - ::xla::LogicalBufferProto_Location* temp = defined_at_; - defined_at_ = NULL; - return temp; -} -inline ::xla::LogicalBufferProto_Location* LogicalBufferProto::mutable_defined_at() { - - if (defined_at_ == NULL) { - auto* p = CreateMaybeMessage<::xla::LogicalBufferProto_Location>(GetArenaNoVirtual()); - defined_at_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.LogicalBufferProto.defined_at) - return defined_at_; -} -inline void LogicalBufferProto::set_allocated_defined_at(::xla::LogicalBufferProto_Location* defined_at) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete defined_at_; - } - if (defined_at) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(defined_at); - if (message_arena != submessage_arena) { - defined_at = ::google::protobuf::internal::GetOwnedMessage( - message_arena, defined_at, submessage_arena); - } - - } else { - - } - defined_at_ = defined_at; - // @@protoc_insertion_point(field_set_allocated:xla.LogicalBufferProto.defined_at) -} - -// int64 color = 4; -inline void LogicalBufferProto::clear_color() { - color_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 LogicalBufferProto::color() const { - // @@protoc_insertion_point(field_get:xla.LogicalBufferProto.color) - return color_; -} -inline void LogicalBufferProto::set_color(::google::protobuf::int64 value) { - - color_ = value; - // @@protoc_insertion_point(field_set:xla.LogicalBufferProto.color) -} - -// ------------------------------------------------------------------- - -// BufferAllocationProto_Assigned - -// int64 logical_buffer_id = 1; -inline void BufferAllocationProto_Assigned::clear_logical_buffer_id() { - logical_buffer_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 BufferAllocationProto_Assigned::logical_buffer_id() const { - // @@protoc_insertion_point(field_get:xla.BufferAllocationProto.Assigned.logical_buffer_id) - return logical_buffer_id_; -} -inline void BufferAllocationProto_Assigned::set_logical_buffer_id(::google::protobuf::int64 value) { - - logical_buffer_id_ = value; - // @@protoc_insertion_point(field_set:xla.BufferAllocationProto.Assigned.logical_buffer_id) -} - -// int64 offset = 2; -inline void BufferAllocationProto_Assigned::clear_offset() { - offset_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 BufferAllocationProto_Assigned::offset() const { - // @@protoc_insertion_point(field_get:xla.BufferAllocationProto.Assigned.offset) - return offset_; -} -inline void BufferAllocationProto_Assigned::set_offset(::google::protobuf::int64 value) { - - offset_ = value; - // @@protoc_insertion_point(field_set:xla.BufferAllocationProto.Assigned.offset) -} - -// int64 size = 3; -inline void BufferAllocationProto_Assigned::clear_size() { - size_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 BufferAllocationProto_Assigned::size() const { - // @@protoc_insertion_point(field_get:xla.BufferAllocationProto.Assigned.size) - return size_; -} -inline void BufferAllocationProto_Assigned::set_size(::google::protobuf::int64 value) { - - size_ = value; - // @@protoc_insertion_point(field_set:xla.BufferAllocationProto.Assigned.size) -} - -// ------------------------------------------------------------------- - -// BufferAllocationProto - -// int64 index = 1; -inline void BufferAllocationProto::clear_index() { - index_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 BufferAllocationProto::index() const { - // @@protoc_insertion_point(field_get:xla.BufferAllocationProto.index) - return index_; -} -inline void BufferAllocationProto::set_index(::google::protobuf::int64 value) { - - index_ = value; - // @@protoc_insertion_point(field_set:xla.BufferAllocationProto.index) -} - -// int64 size = 2; -inline void BufferAllocationProto::clear_size() { - size_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 BufferAllocationProto::size() const { - // @@protoc_insertion_point(field_get:xla.BufferAllocationProto.size) - return size_; -} -inline void BufferAllocationProto::set_size(::google::protobuf::int64 value) { - - size_ = value; - // @@protoc_insertion_point(field_set:xla.BufferAllocationProto.size) -} - -// bool is_thread_local = 3; -inline void BufferAllocationProto::clear_is_thread_local() { - is_thread_local_ = false; -} -inline bool BufferAllocationProto::is_thread_local() const { - // @@protoc_insertion_point(field_get:xla.BufferAllocationProto.is_thread_local) - return is_thread_local_; -} -inline void BufferAllocationProto::set_is_thread_local(bool value) { - - is_thread_local_ = value; - // @@protoc_insertion_point(field_set:xla.BufferAllocationProto.is_thread_local) -} - -// bool is_tuple = 11; -inline void BufferAllocationProto::clear_is_tuple() { - is_tuple_ = false; -} -inline bool BufferAllocationProto::is_tuple() const { - // @@protoc_insertion_point(field_get:xla.BufferAllocationProto.is_tuple) - return is_tuple_; -} -inline void BufferAllocationProto::set_is_tuple(bool value) { - - is_tuple_ = value; - // @@protoc_insertion_point(field_set:xla.BufferAllocationProto.is_tuple) -} - -// bool is_entry_computation_parameter = 5; -inline void BufferAllocationProto::clear_is_entry_computation_parameter() { - is_entry_computation_parameter_ = false; -} -inline bool BufferAllocationProto::is_entry_computation_parameter() const { - // @@protoc_insertion_point(field_get:xla.BufferAllocationProto.is_entry_computation_parameter) - return is_entry_computation_parameter_; -} -inline void BufferAllocationProto::set_is_entry_computation_parameter(bool value) { - - is_entry_computation_parameter_ = value; - // @@protoc_insertion_point(field_set:xla.BufferAllocationProto.is_entry_computation_parameter) -} - -// bool is_constant = 12; -inline void BufferAllocationProto::clear_is_constant() { - is_constant_ = false; -} -inline bool BufferAllocationProto::is_constant() const { - // @@protoc_insertion_point(field_get:xla.BufferAllocationProto.is_constant) - return is_constant_; -} -inline void BufferAllocationProto::set_is_constant(bool value) { - - is_constant_ = value; - // @@protoc_insertion_point(field_set:xla.BufferAllocationProto.is_constant) -} - -// int64 parameter_number = 6; -inline void BufferAllocationProto::clear_parameter_number() { - parameter_number_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 BufferAllocationProto::parameter_number() const { - // @@protoc_insertion_point(field_get:xla.BufferAllocationProto.parameter_number) - return parameter_number_; -} -inline void BufferAllocationProto::set_parameter_number(::google::protobuf::int64 value) { - - parameter_number_ = value; - // @@protoc_insertion_point(field_set:xla.BufferAllocationProto.parameter_number) -} - -// repeated int64 parameter_shape_index = 10; -inline int BufferAllocationProto::parameter_shape_index_size() const { - return parameter_shape_index_.size(); -} -inline void BufferAllocationProto::clear_parameter_shape_index() { - parameter_shape_index_.Clear(); -} -inline ::google::protobuf::int64 BufferAllocationProto::parameter_shape_index(int index) const { - // @@protoc_insertion_point(field_get:xla.BufferAllocationProto.parameter_shape_index) - return parameter_shape_index_.Get(index); -} -inline void BufferAllocationProto::set_parameter_shape_index(int index, ::google::protobuf::int64 value) { - parameter_shape_index_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.BufferAllocationProto.parameter_shape_index) -} -inline void BufferAllocationProto::add_parameter_shape_index(::google::protobuf::int64 value) { - parameter_shape_index_.Add(value); - // @@protoc_insertion_point(field_add:xla.BufferAllocationProto.parameter_shape_index) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -BufferAllocationProto::parameter_shape_index() const { - // @@protoc_insertion_point(field_list:xla.BufferAllocationProto.parameter_shape_index) - return parameter_shape_index_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -BufferAllocationProto::mutable_parameter_shape_index() { - // @@protoc_insertion_point(field_mutable_list:xla.BufferAllocationProto.parameter_shape_index) - return ¶meter_shape_index_; -} - -// bool maybe_live_out = 7; -inline void BufferAllocationProto::clear_maybe_live_out() { - maybe_live_out_ = false; -} -inline bool BufferAllocationProto::maybe_live_out() const { - // @@protoc_insertion_point(field_get:xla.BufferAllocationProto.maybe_live_out) - return maybe_live_out_; -} -inline void BufferAllocationProto::set_maybe_live_out(bool value) { - - maybe_live_out_ = value; - // @@protoc_insertion_point(field_set:xla.BufferAllocationProto.maybe_live_out) -} - -// int64 color = 8; -inline void BufferAllocationProto::clear_color() { - color_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 BufferAllocationProto::color() const { - // @@protoc_insertion_point(field_get:xla.BufferAllocationProto.color) - return color_; -} -inline void BufferAllocationProto::set_color(::google::protobuf::int64 value) { - - color_ = value; - // @@protoc_insertion_point(field_set:xla.BufferAllocationProto.color) -} - -// repeated .xla.BufferAllocationProto.Assigned assigned = 9; -inline int BufferAllocationProto::assigned_size() const { - return assigned_.size(); -} -inline void BufferAllocationProto::clear_assigned() { - assigned_.Clear(); -} -inline ::xla::BufferAllocationProto_Assigned* BufferAllocationProto::mutable_assigned(int index) { - // @@protoc_insertion_point(field_mutable:xla.BufferAllocationProto.assigned) - return assigned_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto_Assigned >* -BufferAllocationProto::mutable_assigned() { - // @@protoc_insertion_point(field_mutable_list:xla.BufferAllocationProto.assigned) - return &assigned_; -} -inline const ::xla::BufferAllocationProto_Assigned& BufferAllocationProto::assigned(int index) const { - // @@protoc_insertion_point(field_get:xla.BufferAllocationProto.assigned) - return assigned_.Get(index); -} -inline ::xla::BufferAllocationProto_Assigned* BufferAllocationProto::add_assigned() { - // @@protoc_insertion_point(field_add:xla.BufferAllocationProto.assigned) - return assigned_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto_Assigned >& -BufferAllocationProto::assigned() const { - // @@protoc_insertion_point(field_list:xla.BufferAllocationProto.assigned) - return assigned_; -} - -// ------------------------------------------------------------------- - -// HeapSimulatorTrace_Event - -// .xla.HeapSimulatorTrace.Event.Kind kind = 1; -inline void HeapSimulatorTrace_Event::clear_kind() { - kind_ = 0; -} -inline ::xla::HeapSimulatorTrace_Event_Kind HeapSimulatorTrace_Event::kind() const { - // @@protoc_insertion_point(field_get:xla.HeapSimulatorTrace.Event.kind) - return static_cast< ::xla::HeapSimulatorTrace_Event_Kind >(kind_); -} -inline void HeapSimulatorTrace_Event::set_kind(::xla::HeapSimulatorTrace_Event_Kind value) { - - kind_ = value; - // @@protoc_insertion_point(field_set:xla.HeapSimulatorTrace.Event.kind) -} - -// int64 buffer_id = 2; -inline void HeapSimulatorTrace_Event::clear_buffer_id() { - buffer_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HeapSimulatorTrace_Event::buffer_id() const { - // @@protoc_insertion_point(field_get:xla.HeapSimulatorTrace.Event.buffer_id) - return buffer_id_; -} -inline void HeapSimulatorTrace_Event::set_buffer_id(::google::protobuf::int64 value) { - - buffer_id_ = value; - // @@protoc_insertion_point(field_set:xla.HeapSimulatorTrace.Event.buffer_id) -} - -// string computation_name = 3; -inline void HeapSimulatorTrace_Event::clear_computation_name() { - computation_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HeapSimulatorTrace_Event::computation_name() const { - // @@protoc_insertion_point(field_get:xla.HeapSimulatorTrace.Event.computation_name) - return computation_name_.Get(); -} -inline void HeapSimulatorTrace_Event::set_computation_name(const ::std::string& value) { - - computation_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HeapSimulatorTrace.Event.computation_name) -} -#if LANG_CXX11 -inline void HeapSimulatorTrace_Event::set_computation_name(::std::string&& value) { - - computation_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HeapSimulatorTrace.Event.computation_name) -} -#endif -inline void HeapSimulatorTrace_Event::set_computation_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - computation_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HeapSimulatorTrace.Event.computation_name) -} -inline void HeapSimulatorTrace_Event::set_computation_name(const char* value, - size_t size) { - - computation_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HeapSimulatorTrace.Event.computation_name) -} -inline ::std::string* HeapSimulatorTrace_Event::mutable_computation_name() { - - // @@protoc_insertion_point(field_mutable:xla.HeapSimulatorTrace.Event.computation_name) - return computation_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HeapSimulatorTrace_Event::release_computation_name() { - // @@protoc_insertion_point(field_release:xla.HeapSimulatorTrace.Event.computation_name) - - return computation_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HeapSimulatorTrace_Event::set_allocated_computation_name(::std::string* computation_name) { - if (computation_name != NULL) { - - } else { - - } - computation_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), computation_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HeapSimulatorTrace.Event.computation_name) -} -inline ::std::string* HeapSimulatorTrace_Event::unsafe_arena_release_computation_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HeapSimulatorTrace.Event.computation_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return computation_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HeapSimulatorTrace_Event::unsafe_arena_set_allocated_computation_name( - ::std::string* computation_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (computation_name != NULL) { - - } else { - - } - computation_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - computation_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HeapSimulatorTrace.Event.computation_name) -} - -// string instruction_name = 4; -inline void HeapSimulatorTrace_Event::clear_instruction_name() { - instruction_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HeapSimulatorTrace_Event::instruction_name() const { - // @@protoc_insertion_point(field_get:xla.HeapSimulatorTrace.Event.instruction_name) - return instruction_name_.Get(); -} -inline void HeapSimulatorTrace_Event::set_instruction_name(const ::std::string& value) { - - instruction_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HeapSimulatorTrace.Event.instruction_name) -} -#if LANG_CXX11 -inline void HeapSimulatorTrace_Event::set_instruction_name(::std::string&& value) { - - instruction_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HeapSimulatorTrace.Event.instruction_name) -} -#endif -inline void HeapSimulatorTrace_Event::set_instruction_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - instruction_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HeapSimulatorTrace.Event.instruction_name) -} -inline void HeapSimulatorTrace_Event::set_instruction_name(const char* value, - size_t size) { - - instruction_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HeapSimulatorTrace.Event.instruction_name) -} -inline ::std::string* HeapSimulatorTrace_Event::mutable_instruction_name() { - - // @@protoc_insertion_point(field_mutable:xla.HeapSimulatorTrace.Event.instruction_name) - return instruction_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HeapSimulatorTrace_Event::release_instruction_name() { - // @@protoc_insertion_point(field_release:xla.HeapSimulatorTrace.Event.instruction_name) - - return instruction_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HeapSimulatorTrace_Event::set_allocated_instruction_name(::std::string* instruction_name) { - if (instruction_name != NULL) { - - } else { - - } - instruction_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), instruction_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HeapSimulatorTrace.Event.instruction_name) -} -inline ::std::string* HeapSimulatorTrace_Event::unsafe_arena_release_instruction_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HeapSimulatorTrace.Event.instruction_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return instruction_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HeapSimulatorTrace_Event::unsafe_arena_set_allocated_instruction_name( - ::std::string* instruction_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (instruction_name != NULL) { - - } else { - - } - instruction_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - instruction_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HeapSimulatorTrace.Event.instruction_name) -} - -// int64 share_with_canonical_id = 5; -inline void HeapSimulatorTrace_Event::clear_share_with_canonical_id() { - share_with_canonical_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HeapSimulatorTrace_Event::share_with_canonical_id() const { - // @@protoc_insertion_point(field_get:xla.HeapSimulatorTrace.Event.share_with_canonical_id) - return share_with_canonical_id_; -} -inline void HeapSimulatorTrace_Event::set_share_with_canonical_id(::google::protobuf::int64 value) { - - share_with_canonical_id_ = value; - // @@protoc_insertion_point(field_set:xla.HeapSimulatorTrace.Event.share_with_canonical_id) -} - -// ------------------------------------------------------------------- - -// HeapSimulatorTrace - -// repeated .xla.HeapSimulatorTrace.Event events = 1; -inline int HeapSimulatorTrace::events_size() const { - return events_.size(); -} -inline void HeapSimulatorTrace::clear_events() { - events_.Clear(); -} -inline ::xla::HeapSimulatorTrace_Event* HeapSimulatorTrace::mutable_events(int index) { - // @@protoc_insertion_point(field_mutable:xla.HeapSimulatorTrace.events) - return events_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace_Event >* -HeapSimulatorTrace::mutable_events() { - // @@protoc_insertion_point(field_mutable_list:xla.HeapSimulatorTrace.events) - return &events_; -} -inline const ::xla::HeapSimulatorTrace_Event& HeapSimulatorTrace::events(int index) const { - // @@protoc_insertion_point(field_get:xla.HeapSimulatorTrace.events) - return events_.Get(index); -} -inline ::xla::HeapSimulatorTrace_Event* HeapSimulatorTrace::add_events() { - // @@protoc_insertion_point(field_add:xla.HeapSimulatorTrace.events) - return events_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace_Event >& -HeapSimulatorTrace::events() const { - // @@protoc_insertion_point(field_list:xla.HeapSimulatorTrace.events) - return events_; -} - -// bool whole_module_simulation = 2; -inline void HeapSimulatorTrace::clear_whole_module_simulation() { - whole_module_simulation_ = false; -} -inline bool HeapSimulatorTrace::whole_module_simulation() const { - // @@protoc_insertion_point(field_get:xla.HeapSimulatorTrace.whole_module_simulation) - return whole_module_simulation_; -} -inline void HeapSimulatorTrace::set_whole_module_simulation(bool value) { - - whole_module_simulation_ = value; - // @@protoc_insertion_point(field_set:xla.HeapSimulatorTrace.whole_module_simulation) -} - -// ------------------------------------------------------------------- - -// HloModuleGroupProto - -// string name = 1; -inline void HloModuleGroupProto::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloModuleGroupProto::name() const { - // @@protoc_insertion_point(field_get:xla.HloModuleGroupProto.name) - return name_.Get(); -} -inline void HloModuleGroupProto::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloModuleGroupProto.name) -} -#if LANG_CXX11 -inline void HloModuleGroupProto::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloModuleGroupProto.name) -} -#endif -inline void HloModuleGroupProto::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloModuleGroupProto.name) -} -inline void HloModuleGroupProto::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloModuleGroupProto.name) -} -inline ::std::string* HloModuleGroupProto::mutable_name() { - - // @@protoc_insertion_point(field_mutable:xla.HloModuleGroupProto.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloModuleGroupProto::release_name() { - // @@protoc_insertion_point(field_release:xla.HloModuleGroupProto.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloModuleGroupProto::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloModuleGroupProto.name) -} -inline ::std::string* HloModuleGroupProto::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloModuleGroupProto.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloModuleGroupProto::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloModuleGroupProto.name) -} - -// repeated .xla.HloModuleProto hlo_modules = 2; -inline int HloModuleGroupProto::hlo_modules_size() const { - return hlo_modules_.size(); -} -inline void HloModuleGroupProto::clear_hlo_modules() { - hlo_modules_.Clear(); -} -inline ::xla::HloModuleProto* HloModuleGroupProto::mutable_hlo_modules(int index) { - // @@protoc_insertion_point(field_mutable:xla.HloModuleGroupProto.hlo_modules) - return hlo_modules_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::HloModuleProto >* -HloModuleGroupProto::mutable_hlo_modules() { - // @@protoc_insertion_point(field_mutable_list:xla.HloModuleGroupProto.hlo_modules) - return &hlo_modules_; -} -inline const ::xla::HloModuleProto& HloModuleGroupProto::hlo_modules(int index) const { - // @@protoc_insertion_point(field_get:xla.HloModuleGroupProto.hlo_modules) - return hlo_modules_.Get(index); -} -inline ::xla::HloModuleProto* HloModuleGroupProto::add_hlo_modules() { - // @@protoc_insertion_point(field_add:xla.HloModuleGroupProto.hlo_modules) - return hlo_modules_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::HloModuleProto >& -HloModuleGroupProto::hlo_modules() const { - // @@protoc_insertion_point(field_list:xla.HloModuleGroupProto.hlo_modules) - return hlo_modules_; -} - -// ------------------------------------------------------------------- - -// BufferAssignmentProto_BufferAlias - -// int64 source_buffer_id = 1; -inline void BufferAssignmentProto_BufferAlias::clear_source_buffer_id() { - source_buffer_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 BufferAssignmentProto_BufferAlias::source_buffer_id() const { - // @@protoc_insertion_point(field_get:xla.BufferAssignmentProto.BufferAlias.source_buffer_id) - return source_buffer_id_; -} -inline void BufferAssignmentProto_BufferAlias::set_source_buffer_id(::google::protobuf::int64 value) { - - source_buffer_id_ = value; - // @@protoc_insertion_point(field_set:xla.BufferAssignmentProto.BufferAlias.source_buffer_id) -} - -// .xla.LogicalBufferProto.Location location = 2; -inline bool BufferAssignmentProto_BufferAlias::has_location() const { - return this != internal_default_instance() && location_ != NULL; -} -inline void BufferAssignmentProto_BufferAlias::clear_location() { - if (GetArenaNoVirtual() == NULL && location_ != NULL) { - delete location_; - } - location_ = NULL; -} -inline const ::xla::LogicalBufferProto_Location& BufferAssignmentProto_BufferAlias::_internal_location() const { - return *location_; -} -inline const ::xla::LogicalBufferProto_Location& BufferAssignmentProto_BufferAlias::location() const { - const ::xla::LogicalBufferProto_Location* p = location_; - // @@protoc_insertion_point(field_get:xla.BufferAssignmentProto.BufferAlias.location) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_LogicalBufferProto_Location_default_instance_); -} -inline ::xla::LogicalBufferProto_Location* BufferAssignmentProto_BufferAlias::release_location() { - // @@protoc_insertion_point(field_release:xla.BufferAssignmentProto.BufferAlias.location) - - ::xla::LogicalBufferProto_Location* temp = location_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - location_ = NULL; - return temp; -} -inline ::xla::LogicalBufferProto_Location* BufferAssignmentProto_BufferAlias::unsafe_arena_release_location() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.BufferAssignmentProto.BufferAlias.location) - - ::xla::LogicalBufferProto_Location* temp = location_; - location_ = NULL; - return temp; -} -inline ::xla::LogicalBufferProto_Location* BufferAssignmentProto_BufferAlias::mutable_location() { - - if (location_ == NULL) { - auto* p = CreateMaybeMessage<::xla::LogicalBufferProto_Location>(GetArenaNoVirtual()); - location_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.BufferAssignmentProto.BufferAlias.location) - return location_; -} -inline void BufferAssignmentProto_BufferAlias::set_allocated_location(::xla::LogicalBufferProto_Location* location) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete location_; - } - if (location) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(location); - if (message_arena != submessage_arena) { - location = ::google::protobuf::internal::GetOwnedMessage( - message_arena, location, submessage_arena); - } - - } else { - - } - location_ = location; - // @@protoc_insertion_point(field_set_allocated:xla.BufferAssignmentProto.BufferAlias.location) -} - -// ------------------------------------------------------------------- - -// BufferAssignmentProto - -// repeated .xla.LogicalBufferProto logical_buffers = 1; -inline int BufferAssignmentProto::logical_buffers_size() const { - return logical_buffers_.size(); -} -inline void BufferAssignmentProto::clear_logical_buffers() { - logical_buffers_.Clear(); -} -inline ::xla::LogicalBufferProto* BufferAssignmentProto::mutable_logical_buffers(int index) { - // @@protoc_insertion_point(field_mutable:xla.BufferAssignmentProto.logical_buffers) - return logical_buffers_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::LogicalBufferProto >* -BufferAssignmentProto::mutable_logical_buffers() { - // @@protoc_insertion_point(field_mutable_list:xla.BufferAssignmentProto.logical_buffers) - return &logical_buffers_; -} -inline const ::xla::LogicalBufferProto& BufferAssignmentProto::logical_buffers(int index) const { - // @@protoc_insertion_point(field_get:xla.BufferAssignmentProto.logical_buffers) - return logical_buffers_.Get(index); -} -inline ::xla::LogicalBufferProto* BufferAssignmentProto::add_logical_buffers() { - // @@protoc_insertion_point(field_add:xla.BufferAssignmentProto.logical_buffers) - return logical_buffers_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::LogicalBufferProto >& -BufferAssignmentProto::logical_buffers() const { - // @@protoc_insertion_point(field_list:xla.BufferAssignmentProto.logical_buffers) - return logical_buffers_; -} - -// repeated .xla.BufferAssignmentProto.BufferAlias buffer_aliases = 2; -inline int BufferAssignmentProto::buffer_aliases_size() const { - return buffer_aliases_.size(); -} -inline void BufferAssignmentProto::clear_buffer_aliases() { - buffer_aliases_.Clear(); -} -inline ::xla::BufferAssignmentProto_BufferAlias* BufferAssignmentProto::mutable_buffer_aliases(int index) { - // @@protoc_insertion_point(field_mutable:xla.BufferAssignmentProto.buffer_aliases) - return buffer_aliases_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::BufferAssignmentProto_BufferAlias >* -BufferAssignmentProto::mutable_buffer_aliases() { - // @@protoc_insertion_point(field_mutable_list:xla.BufferAssignmentProto.buffer_aliases) - return &buffer_aliases_; -} -inline const ::xla::BufferAssignmentProto_BufferAlias& BufferAssignmentProto::buffer_aliases(int index) const { - // @@protoc_insertion_point(field_get:xla.BufferAssignmentProto.buffer_aliases) - return buffer_aliases_.Get(index); -} -inline ::xla::BufferAssignmentProto_BufferAlias* BufferAssignmentProto::add_buffer_aliases() { - // @@protoc_insertion_point(field_add:xla.BufferAssignmentProto.buffer_aliases) - return buffer_aliases_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::BufferAssignmentProto_BufferAlias >& -BufferAssignmentProto::buffer_aliases() const { - // @@protoc_insertion_point(field_list:xla.BufferAssignmentProto.buffer_aliases) - return buffer_aliases_; -} - -// repeated .xla.BufferAllocationProto buffer_allocations = 3; -inline int BufferAssignmentProto::buffer_allocations_size() const { - return buffer_allocations_.size(); -} -inline void BufferAssignmentProto::clear_buffer_allocations() { - buffer_allocations_.Clear(); -} -inline ::xla::BufferAllocationProto* BufferAssignmentProto::mutable_buffer_allocations(int index) { - // @@protoc_insertion_point(field_mutable:xla.BufferAssignmentProto.buffer_allocations) - return buffer_allocations_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto >* -BufferAssignmentProto::mutable_buffer_allocations() { - // @@protoc_insertion_point(field_mutable_list:xla.BufferAssignmentProto.buffer_allocations) - return &buffer_allocations_; -} -inline const ::xla::BufferAllocationProto& BufferAssignmentProto::buffer_allocations(int index) const { - // @@protoc_insertion_point(field_get:xla.BufferAssignmentProto.buffer_allocations) - return buffer_allocations_.Get(index); -} -inline ::xla::BufferAllocationProto* BufferAssignmentProto::add_buffer_allocations() { - // @@protoc_insertion_point(field_add:xla.BufferAssignmentProto.buffer_allocations) - return buffer_allocations_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::BufferAllocationProto >& -BufferAssignmentProto::buffer_allocations() const { - // @@protoc_insertion_point(field_list:xla.BufferAssignmentProto.buffer_allocations) - return buffer_allocations_; -} - -// repeated .xla.HeapSimulatorTrace heap_simulator_traces = 4; -inline int BufferAssignmentProto::heap_simulator_traces_size() const { - return heap_simulator_traces_.size(); -} -inline void BufferAssignmentProto::clear_heap_simulator_traces() { - heap_simulator_traces_.Clear(); -} -inline ::xla::HeapSimulatorTrace* BufferAssignmentProto::mutable_heap_simulator_traces(int index) { - // @@protoc_insertion_point(field_mutable:xla.BufferAssignmentProto.heap_simulator_traces) - return heap_simulator_traces_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace >* -BufferAssignmentProto::mutable_heap_simulator_traces() { - // @@protoc_insertion_point(field_mutable_list:xla.BufferAssignmentProto.heap_simulator_traces) - return &heap_simulator_traces_; -} -inline const ::xla::HeapSimulatorTrace& BufferAssignmentProto::heap_simulator_traces(int index) const { - // @@protoc_insertion_point(field_get:xla.BufferAssignmentProto.heap_simulator_traces) - return heap_simulator_traces_.Get(index); -} -inline ::xla::HeapSimulatorTrace* BufferAssignmentProto::add_heap_simulator_traces() { - // @@protoc_insertion_point(field_add:xla.BufferAssignmentProto.heap_simulator_traces) - return heap_simulator_traces_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::HeapSimulatorTrace >& -BufferAssignmentProto::heap_simulator_traces() const { - // @@protoc_insertion_point(field_list:xla.BufferAssignmentProto.heap_simulator_traces) - return heap_simulator_traces_; -} - -// ------------------------------------------------------------------- - -// HloProto - -// .xla.HloModuleProto hlo_module = 1; -inline bool HloProto::has_hlo_module() const { - return this != internal_default_instance() && hlo_module_ != NULL; -} -inline void HloProto::clear_hlo_module() { - if (GetArenaNoVirtual() == NULL && hlo_module_ != NULL) { - delete hlo_module_; - } - hlo_module_ = NULL; -} -inline const ::xla::HloModuleProto& HloProto::_internal_hlo_module() const { - return *hlo_module_; -} -inline const ::xla::HloModuleProto& HloProto::hlo_module() const { - const ::xla::HloModuleProto* p = hlo_module_; - // @@protoc_insertion_point(field_get:xla.HloProto.hlo_module) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_HloModuleProto_default_instance_); -} -inline ::xla::HloModuleProto* HloProto::release_hlo_module() { - // @@protoc_insertion_point(field_release:xla.HloProto.hlo_module) - - ::xla::HloModuleProto* temp = hlo_module_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - hlo_module_ = NULL; - return temp; -} -inline ::xla::HloModuleProto* HloProto::unsafe_arena_release_hlo_module() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloProto.hlo_module) - - ::xla::HloModuleProto* temp = hlo_module_; - hlo_module_ = NULL; - return temp; -} -inline ::xla::HloModuleProto* HloProto::mutable_hlo_module() { - - if (hlo_module_ == NULL) { - auto* p = CreateMaybeMessage<::xla::HloModuleProto>(GetArenaNoVirtual()); - hlo_module_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloProto.hlo_module) - return hlo_module_; -} -inline void HloProto::set_allocated_hlo_module(::xla::HloModuleProto* hlo_module) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete hlo_module_; - } - if (hlo_module) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(hlo_module); - if (message_arena != submessage_arena) { - hlo_module = ::google::protobuf::internal::GetOwnedMessage( - message_arena, hlo_module, submessage_arena); - } - - } else { - - } - hlo_module_ = hlo_module; - // @@protoc_insertion_point(field_set_allocated:xla.HloProto.hlo_module) -} - -// .xla.BufferAssignmentProto buffer_assignment = 3; -inline bool HloProto::has_buffer_assignment() const { - return this != internal_default_instance() && buffer_assignment_ != NULL; -} -inline void HloProto::clear_buffer_assignment() { - if (GetArenaNoVirtual() == NULL && buffer_assignment_ != NULL) { - delete buffer_assignment_; - } - buffer_assignment_ = NULL; -} -inline const ::xla::BufferAssignmentProto& HloProto::_internal_buffer_assignment() const { - return *buffer_assignment_; -} -inline const ::xla::BufferAssignmentProto& HloProto::buffer_assignment() const { - const ::xla::BufferAssignmentProto* p = buffer_assignment_; - // @@protoc_insertion_point(field_get:xla.HloProto.buffer_assignment) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_BufferAssignmentProto_default_instance_); -} -inline ::xla::BufferAssignmentProto* HloProto::release_buffer_assignment() { - // @@protoc_insertion_point(field_release:xla.HloProto.buffer_assignment) - - ::xla::BufferAssignmentProto* temp = buffer_assignment_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - buffer_assignment_ = NULL; - return temp; -} -inline ::xla::BufferAssignmentProto* HloProto::unsafe_arena_release_buffer_assignment() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloProto.buffer_assignment) - - ::xla::BufferAssignmentProto* temp = buffer_assignment_; - buffer_assignment_ = NULL; - return temp; -} -inline ::xla::BufferAssignmentProto* HloProto::mutable_buffer_assignment() { - - if (buffer_assignment_ == NULL) { - auto* p = CreateMaybeMessage<::xla::BufferAssignmentProto>(GetArenaNoVirtual()); - buffer_assignment_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloProto.buffer_assignment) - return buffer_assignment_; -} -inline void HloProto::set_allocated_buffer_assignment(::xla::BufferAssignmentProto* buffer_assignment) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete buffer_assignment_; - } - if (buffer_assignment) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(buffer_assignment); - if (message_arena != submessage_arena) { - buffer_assignment = ::google::protobuf::internal::GetOwnedMessage( - message_arena, buffer_assignment, submessage_arena); - } - - } else { - - } - buffer_assignment_ = buffer_assignment; - // @@protoc_insertion_point(field_set_allocated:xla.HloProto.buffer_assignment) -} - -// ------------------------------------------------------------------- - -// HloSnapshot - -// .xla.HloProto hlo = 1; -inline bool HloSnapshot::has_hlo() const { - return this != internal_default_instance() && hlo_ != NULL; -} -inline void HloSnapshot::clear_hlo() { - if (GetArenaNoVirtual() == NULL && hlo_ != NULL) { - delete hlo_; - } - hlo_ = NULL; -} -inline const ::xla::HloProto& HloSnapshot::_internal_hlo() const { - return *hlo_; -} -inline const ::xla::HloProto& HloSnapshot::hlo() const { - const ::xla::HloProto* p = hlo_; - // @@protoc_insertion_point(field_get:xla.HloSnapshot.hlo) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_HloProto_default_instance_); -} -inline ::xla::HloProto* HloSnapshot::release_hlo() { - // @@protoc_insertion_point(field_release:xla.HloSnapshot.hlo) - - ::xla::HloProto* temp = hlo_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - hlo_ = NULL; - return temp; -} -inline ::xla::HloProto* HloSnapshot::unsafe_arena_release_hlo() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloSnapshot.hlo) - - ::xla::HloProto* temp = hlo_; - hlo_ = NULL; - return temp; -} -inline ::xla::HloProto* HloSnapshot::mutable_hlo() { - - if (hlo_ == NULL) { - auto* p = CreateMaybeMessage<::xla::HloProto>(GetArenaNoVirtual()); - hlo_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloSnapshot.hlo) - return hlo_; -} -inline void HloSnapshot::set_allocated_hlo(::xla::HloProto* hlo) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete hlo_; - } - if (hlo) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(hlo); - if (message_arena != submessage_arena) { - hlo = ::google::protobuf::internal::GetOwnedMessage( - message_arena, hlo, submessage_arena); - } - - } else { - - } - hlo_ = hlo; - // @@protoc_insertion_point(field_set_allocated:xla.HloSnapshot.hlo) -} - -// repeated .xla.LiteralProto arguments = 2; -inline int HloSnapshot::arguments_size() const { - return arguments_.size(); -} -inline ::xla::LiteralProto* HloSnapshot::mutable_arguments(int index) { - // @@protoc_insertion_point(field_mutable:xla.HloSnapshot.arguments) - return arguments_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::LiteralProto >* -HloSnapshot::mutable_arguments() { - // @@protoc_insertion_point(field_mutable_list:xla.HloSnapshot.arguments) - return &arguments_; -} -inline const ::xla::LiteralProto& HloSnapshot::arguments(int index) const { - // @@protoc_insertion_point(field_get:xla.HloSnapshot.arguments) - return arguments_.Get(index); -} -inline ::xla::LiteralProto* HloSnapshot::add_arguments() { - // @@protoc_insertion_point(field_add:xla.HloSnapshot.arguments) - return arguments_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::LiteralProto >& -HloSnapshot::arguments() const { - // @@protoc_insertion_point(field_list:xla.HloSnapshot.arguments) - return arguments_; -} - -// .xla.LiteralProto result = 3; -inline bool HloSnapshot::has_result() const { - return this != internal_default_instance() && result_ != NULL; -} -inline const ::xla::LiteralProto& HloSnapshot::_internal_result() const { - return *result_; -} -inline const ::xla::LiteralProto& HloSnapshot::result() const { - const ::xla::LiteralProto* p = result_; - // @@protoc_insertion_point(field_get:xla.HloSnapshot.result) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_LiteralProto_default_instance_); -} -inline ::xla::LiteralProto* HloSnapshot::release_result() { - // @@protoc_insertion_point(field_release:xla.HloSnapshot.result) - - ::xla::LiteralProto* temp = result_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - result_ = NULL; - return temp; -} -inline ::xla::LiteralProto* HloSnapshot::unsafe_arena_release_result() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloSnapshot.result) - - ::xla::LiteralProto* temp = result_; - result_ = NULL; - return temp; -} -inline ::xla::LiteralProto* HloSnapshot::mutable_result() { - - if (result_ == NULL) { - auto* p = CreateMaybeMessage<::xla::LiteralProto>(GetArenaNoVirtual()); - result_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.HloSnapshot.result) - return result_; -} -inline void HloSnapshot::set_allocated_result(::xla::LiteralProto* result) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(result_); - } - if (result) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(result)->GetArena(); - if (message_arena != submessage_arena) { - result = ::google::protobuf::internal::GetOwnedMessage( - message_arena, result, submessage_arena); - } - - } else { - - } - result_ = result; - // @@protoc_insertion_point(field_set_allocated:xla.HloSnapshot.result) -} - -// string execution_platform = 4; -inline void HloSnapshot::clear_execution_platform() { - execution_platform_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloSnapshot::execution_platform() const { - // @@protoc_insertion_point(field_get:xla.HloSnapshot.execution_platform) - return execution_platform_.Get(); -} -inline void HloSnapshot::set_execution_platform(const ::std::string& value) { - - execution_platform_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloSnapshot.execution_platform) -} -#if LANG_CXX11 -inline void HloSnapshot::set_execution_platform(::std::string&& value) { - - execution_platform_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloSnapshot.execution_platform) -} -#endif -inline void HloSnapshot::set_execution_platform(const char* value) { - GOOGLE_DCHECK(value != NULL); - - execution_platform_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloSnapshot.execution_platform) -} -inline void HloSnapshot::set_execution_platform(const char* value, - size_t size) { - - execution_platform_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloSnapshot.execution_platform) -} -inline ::std::string* HloSnapshot::mutable_execution_platform() { - - // @@protoc_insertion_point(field_mutable:xla.HloSnapshot.execution_platform) - return execution_platform_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloSnapshot::release_execution_platform() { - // @@protoc_insertion_point(field_release:xla.HloSnapshot.execution_platform) - - return execution_platform_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloSnapshot::set_allocated_execution_platform(::std::string* execution_platform) { - if (execution_platform != NULL) { - - } else { - - } - execution_platform_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), execution_platform, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloSnapshot.execution_platform) -} -inline ::std::string* HloSnapshot::unsafe_arena_release_execution_platform() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloSnapshot.execution_platform) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return execution_platform_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloSnapshot::unsafe_arena_set_allocated_execution_platform( - ::std::string* execution_platform) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (execution_platform != NULL) { - - } else { - - } - execution_platform_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - execution_platform, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloSnapshot.execution_platform) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace xla - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::xla::HeapSimulatorTrace_Event_Kind> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::xla::HeapSimulatorTrace_Event_Kind>() { - return ::xla::HeapSimulatorTrace_Event_Kind_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_2eproto diff --git a/linux/include/tensorflow/compiler/xla/service/hlo_profile_printer_data.pb.h b/linux/include/tensorflow/compiler/xla/service/hlo_profile_printer_data.pb.h deleted file mode 100755 index d7e2bb533..000000000 --- a/linux/include/tensorflow/compiler/xla/service/hlo_profile_printer_data.pb.h +++ /dev/null @@ -1,1066 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/compiler/xla/service/hlo_profile_printer_data.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_5fprofile_5fprinter_5fdata_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_5fprofile_5fprinter_5fdata_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_5fprofile_5fprinter_5fdata_2eproto - -namespace protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_5fprofile_5fprinter_5fdata_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[3]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_5fprofile_5fprinter_5fdata_2eproto -namespace xla { -class HloProfilePrinterData; -class HloProfilePrinterDataDefaultTypeInternal; -extern HloProfilePrinterDataDefaultTypeInternal _HloProfilePrinterData_default_instance_; -class HloProfilePrinterData_HloComputationInfo; -class HloProfilePrinterData_HloComputationInfoDefaultTypeInternal; -extern HloProfilePrinterData_HloComputationInfoDefaultTypeInternal _HloProfilePrinterData_HloComputationInfo_default_instance_; -class HloProfilePrinterData_HloInstructionInfo; -class HloProfilePrinterData_HloInstructionInfoDefaultTypeInternal; -extern HloProfilePrinterData_HloInstructionInfoDefaultTypeInternal _HloProfilePrinterData_HloInstructionInfo_default_instance_; -} // namespace xla -namespace google { -namespace protobuf { -template<> ::xla::HloProfilePrinterData* Arena::CreateMaybeMessage<::xla::HloProfilePrinterData>(Arena*); -template<> ::xla::HloProfilePrinterData_HloComputationInfo* Arena::CreateMaybeMessage<::xla::HloProfilePrinterData_HloComputationInfo>(Arena*); -template<> ::xla::HloProfilePrinterData_HloInstructionInfo* Arena::CreateMaybeMessage<::xla::HloProfilePrinterData_HloInstructionInfo>(Arena*); -} // namespace protobuf -} // namespace google -namespace xla { - -// =================================================================== - -class HloProfilePrinterData_HloInstructionInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloProfilePrinterData.HloInstructionInfo) */ { - public: - HloProfilePrinterData_HloInstructionInfo(); - virtual ~HloProfilePrinterData_HloInstructionInfo(); - - HloProfilePrinterData_HloInstructionInfo(const HloProfilePrinterData_HloInstructionInfo& from); - - inline HloProfilePrinterData_HloInstructionInfo& operator=(const HloProfilePrinterData_HloInstructionInfo& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HloProfilePrinterData_HloInstructionInfo(HloProfilePrinterData_HloInstructionInfo&& from) noexcept - : HloProfilePrinterData_HloInstructionInfo() { - *this = ::std::move(from); - } - - inline HloProfilePrinterData_HloInstructionInfo& operator=(HloProfilePrinterData_HloInstructionInfo&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const HloProfilePrinterData_HloInstructionInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HloProfilePrinterData_HloInstructionInfo* internal_default_instance() { - return reinterpret_cast( - &_HloProfilePrinterData_HloInstructionInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(HloProfilePrinterData_HloInstructionInfo* other); - void Swap(HloProfilePrinterData_HloInstructionInfo* other); - friend void swap(HloProfilePrinterData_HloInstructionInfo& a, HloProfilePrinterData_HloInstructionInfo& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HloProfilePrinterData_HloInstructionInfo* New() const final { - return CreateMaybeMessage(NULL); - } - - HloProfilePrinterData_HloInstructionInfo* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HloProfilePrinterData_HloInstructionInfo& from); - void MergeFrom(const HloProfilePrinterData_HloInstructionInfo& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HloProfilePrinterData_HloInstructionInfo* other); - protected: - explicit HloProfilePrinterData_HloInstructionInfo(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string long_name = 1; - void clear_long_name(); - static const int kLongNameFieldNumber = 1; - const ::std::string& long_name() const; - void set_long_name(const ::std::string& value); - #if LANG_CXX11 - void set_long_name(::std::string&& value); - #endif - void set_long_name(const char* value); - void set_long_name(const char* value, size_t size); - ::std::string* mutable_long_name(); - ::std::string* release_long_name(); - void set_allocated_long_name(::std::string* long_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_long_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_long_name( - ::std::string* long_name); - - // string short_name = 2; - void clear_short_name(); - static const int kShortNameFieldNumber = 2; - const ::std::string& short_name() const; - void set_short_name(const ::std::string& value); - #if LANG_CXX11 - void set_short_name(::std::string&& value); - #endif - void set_short_name(const char* value); - void set_short_name(const char* value, size_t size); - ::std::string* mutable_short_name(); - ::std::string* release_short_name(); - void set_allocated_short_name(::std::string* short_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_short_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_short_name( - ::std::string* short_name); - - // string category = 3; - void clear_category(); - static const int kCategoryFieldNumber = 3; - const ::std::string& category() const; - void set_category(const ::std::string& value); - #if LANG_CXX11 - void set_category(::std::string&& value); - #endif - void set_category(const char* value); - void set_category(const char* value, size_t size); - ::std::string* mutable_category(); - ::std::string* release_category(); - void set_allocated_category(::std::string* category); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_category(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_category( - ::std::string* category); - - // float flop_count = 4; - void clear_flop_count(); - static const int kFlopCountFieldNumber = 4; - float flop_count() const; - void set_flop_count(float value); - - // float transcendental_count = 5; - void clear_transcendental_count(); - static const int kTranscendentalCountFieldNumber = 5; - float transcendental_count() const; - void set_transcendental_count(float value); - - // float bytes_accessed = 6; - void clear_bytes_accessed(); - static const int kBytesAccessedFieldNumber = 6; - float bytes_accessed() const; - void set_bytes_accessed(float value); - - // float optimal_seconds = 7; - void clear_optimal_seconds(); - static const int kOptimalSecondsFieldNumber = 7; - float optimal_seconds() const; - void set_optimal_seconds(float value); - - // int64 profile_index = 8; - void clear_profile_index(); - static const int kProfileIndexFieldNumber = 8; - ::google::protobuf::int64 profile_index() const; - void set_profile_index(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.HloProfilePrinterData.HloInstructionInfo) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr long_name_; - ::google::protobuf::internal::ArenaStringPtr short_name_; - ::google::protobuf::internal::ArenaStringPtr category_; - float flop_count_; - float transcendental_count_; - float bytes_accessed_; - float optimal_seconds_; - ::google::protobuf::int64 profile_index_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_5fprofile_5fprinter_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class HloProfilePrinterData_HloComputationInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloProfilePrinterData.HloComputationInfo) */ { - public: - HloProfilePrinterData_HloComputationInfo(); - virtual ~HloProfilePrinterData_HloComputationInfo(); - - HloProfilePrinterData_HloComputationInfo(const HloProfilePrinterData_HloComputationInfo& from); - - inline HloProfilePrinterData_HloComputationInfo& operator=(const HloProfilePrinterData_HloComputationInfo& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HloProfilePrinterData_HloComputationInfo(HloProfilePrinterData_HloComputationInfo&& from) noexcept - : HloProfilePrinterData_HloComputationInfo() { - *this = ::std::move(from); - } - - inline HloProfilePrinterData_HloComputationInfo& operator=(HloProfilePrinterData_HloComputationInfo&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const HloProfilePrinterData_HloComputationInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HloProfilePrinterData_HloComputationInfo* internal_default_instance() { - return reinterpret_cast( - &_HloProfilePrinterData_HloComputationInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(HloProfilePrinterData_HloComputationInfo* other); - void Swap(HloProfilePrinterData_HloComputationInfo* other); - friend void swap(HloProfilePrinterData_HloComputationInfo& a, HloProfilePrinterData_HloComputationInfo& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HloProfilePrinterData_HloComputationInfo* New() const final { - return CreateMaybeMessage(NULL); - } - - HloProfilePrinterData_HloComputationInfo* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HloProfilePrinterData_HloComputationInfo& from); - void MergeFrom(const HloProfilePrinterData_HloComputationInfo& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HloProfilePrinterData_HloComputationInfo* other); - protected: - explicit HloProfilePrinterData_HloComputationInfo(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; - int instruction_infos_size() const; - void clear_instruction_infos(); - static const int kInstructionInfosFieldNumber = 3; - ::xla::HloProfilePrinterData_HloInstructionInfo* mutable_instruction_infos(int index); - ::google::protobuf::RepeatedPtrField< ::xla::HloProfilePrinterData_HloInstructionInfo >* - mutable_instruction_infos(); - const ::xla::HloProfilePrinterData_HloInstructionInfo& instruction_infos(int index) const; - ::xla::HloProfilePrinterData_HloInstructionInfo* add_instruction_infos(); - const ::google::protobuf::RepeatedPtrField< ::xla::HloProfilePrinterData_HloInstructionInfo >& - instruction_infos() const; - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // int64 profile_index = 2; - void clear_profile_index(); - static const int kProfileIndexFieldNumber = 2; - ::google::protobuf::int64 profile_index() const; - void set_profile_index(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.HloProfilePrinterData.HloComputationInfo) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::xla::HloProfilePrinterData_HloInstructionInfo > instruction_infos_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::int64 profile_index_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_5fprofile_5fprinter_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class HloProfilePrinterData : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloProfilePrinterData) */ { - public: - HloProfilePrinterData(); - virtual ~HloProfilePrinterData(); - - HloProfilePrinterData(const HloProfilePrinterData& from); - - inline HloProfilePrinterData& operator=(const HloProfilePrinterData& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HloProfilePrinterData(HloProfilePrinterData&& from) noexcept - : HloProfilePrinterData() { - *this = ::std::move(from); - } - - inline HloProfilePrinterData& operator=(HloProfilePrinterData&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const HloProfilePrinterData& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HloProfilePrinterData* internal_default_instance() { - return reinterpret_cast( - &_HloProfilePrinterData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void UnsafeArenaSwap(HloProfilePrinterData* other); - void Swap(HloProfilePrinterData* other); - friend void swap(HloProfilePrinterData& a, HloProfilePrinterData& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HloProfilePrinterData* New() const final { - return CreateMaybeMessage(NULL); - } - - HloProfilePrinterData* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HloProfilePrinterData& from); - void MergeFrom(const HloProfilePrinterData& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HloProfilePrinterData* other); - protected: - explicit HloProfilePrinterData(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef HloProfilePrinterData_HloInstructionInfo HloInstructionInfo; - typedef HloProfilePrinterData_HloComputationInfo HloComputationInfo; - - // accessors ------------------------------------------------------- - - // repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; - int computation_infos_size() const; - void clear_computation_infos(); - static const int kComputationInfosFieldNumber = 1; - ::xla::HloProfilePrinterData_HloComputationInfo* mutable_computation_infos(int index); - ::google::protobuf::RepeatedPtrField< ::xla::HloProfilePrinterData_HloComputationInfo >* - mutable_computation_infos(); - const ::xla::HloProfilePrinterData_HloComputationInfo& computation_infos(int index) const; - ::xla::HloProfilePrinterData_HloComputationInfo* add_computation_infos(); - const ::google::protobuf::RepeatedPtrField< ::xla::HloProfilePrinterData_HloComputationInfo >& - computation_infos() const; - - // int64 profile_counters_size = 2; - void clear_profile_counters_size(); - static const int kProfileCountersSizeFieldNumber = 2; - ::google::protobuf::int64 profile_counters_size() const; - void set_profile_counters_size(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.HloProfilePrinterData) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::xla::HloProfilePrinterData_HloComputationInfo > computation_infos_; - ::google::protobuf::int64 profile_counters_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_5fprofile_5fprinter_5fdata_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// HloProfilePrinterData_HloInstructionInfo - -// string long_name = 1; -inline void HloProfilePrinterData_HloInstructionInfo::clear_long_name() { - long_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloProfilePrinterData_HloInstructionInfo::long_name() const { - // @@protoc_insertion_point(field_get:xla.HloProfilePrinterData.HloInstructionInfo.long_name) - return long_name_.Get(); -} -inline void HloProfilePrinterData_HloInstructionInfo::set_long_name(const ::std::string& value) { - - long_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloProfilePrinterData.HloInstructionInfo.long_name) -} -#if LANG_CXX11 -inline void HloProfilePrinterData_HloInstructionInfo::set_long_name(::std::string&& value) { - - long_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloProfilePrinterData.HloInstructionInfo.long_name) -} -#endif -inline void HloProfilePrinterData_HloInstructionInfo::set_long_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - long_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloProfilePrinterData.HloInstructionInfo.long_name) -} -inline void HloProfilePrinterData_HloInstructionInfo::set_long_name(const char* value, - size_t size) { - - long_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloProfilePrinterData.HloInstructionInfo.long_name) -} -inline ::std::string* HloProfilePrinterData_HloInstructionInfo::mutable_long_name() { - - // @@protoc_insertion_point(field_mutable:xla.HloProfilePrinterData.HloInstructionInfo.long_name) - return long_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloProfilePrinterData_HloInstructionInfo::release_long_name() { - // @@protoc_insertion_point(field_release:xla.HloProfilePrinterData.HloInstructionInfo.long_name) - - return long_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloProfilePrinterData_HloInstructionInfo::set_allocated_long_name(::std::string* long_name) { - if (long_name != NULL) { - - } else { - - } - long_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), long_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloProfilePrinterData.HloInstructionInfo.long_name) -} -inline ::std::string* HloProfilePrinterData_HloInstructionInfo::unsafe_arena_release_long_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloProfilePrinterData.HloInstructionInfo.long_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return long_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloProfilePrinterData_HloInstructionInfo::unsafe_arena_set_allocated_long_name( - ::std::string* long_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (long_name != NULL) { - - } else { - - } - long_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - long_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloProfilePrinterData.HloInstructionInfo.long_name) -} - -// string short_name = 2; -inline void HloProfilePrinterData_HloInstructionInfo::clear_short_name() { - short_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloProfilePrinterData_HloInstructionInfo::short_name() const { - // @@protoc_insertion_point(field_get:xla.HloProfilePrinterData.HloInstructionInfo.short_name) - return short_name_.Get(); -} -inline void HloProfilePrinterData_HloInstructionInfo::set_short_name(const ::std::string& value) { - - short_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloProfilePrinterData.HloInstructionInfo.short_name) -} -#if LANG_CXX11 -inline void HloProfilePrinterData_HloInstructionInfo::set_short_name(::std::string&& value) { - - short_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloProfilePrinterData.HloInstructionInfo.short_name) -} -#endif -inline void HloProfilePrinterData_HloInstructionInfo::set_short_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - short_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloProfilePrinterData.HloInstructionInfo.short_name) -} -inline void HloProfilePrinterData_HloInstructionInfo::set_short_name(const char* value, - size_t size) { - - short_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloProfilePrinterData.HloInstructionInfo.short_name) -} -inline ::std::string* HloProfilePrinterData_HloInstructionInfo::mutable_short_name() { - - // @@protoc_insertion_point(field_mutable:xla.HloProfilePrinterData.HloInstructionInfo.short_name) - return short_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloProfilePrinterData_HloInstructionInfo::release_short_name() { - // @@protoc_insertion_point(field_release:xla.HloProfilePrinterData.HloInstructionInfo.short_name) - - return short_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloProfilePrinterData_HloInstructionInfo::set_allocated_short_name(::std::string* short_name) { - if (short_name != NULL) { - - } else { - - } - short_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), short_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloProfilePrinterData.HloInstructionInfo.short_name) -} -inline ::std::string* HloProfilePrinterData_HloInstructionInfo::unsafe_arena_release_short_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloProfilePrinterData.HloInstructionInfo.short_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return short_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloProfilePrinterData_HloInstructionInfo::unsafe_arena_set_allocated_short_name( - ::std::string* short_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (short_name != NULL) { - - } else { - - } - short_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - short_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloProfilePrinterData.HloInstructionInfo.short_name) -} - -// string category = 3; -inline void HloProfilePrinterData_HloInstructionInfo::clear_category() { - category_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloProfilePrinterData_HloInstructionInfo::category() const { - // @@protoc_insertion_point(field_get:xla.HloProfilePrinterData.HloInstructionInfo.category) - return category_.Get(); -} -inline void HloProfilePrinterData_HloInstructionInfo::set_category(const ::std::string& value) { - - category_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloProfilePrinterData.HloInstructionInfo.category) -} -#if LANG_CXX11 -inline void HloProfilePrinterData_HloInstructionInfo::set_category(::std::string&& value) { - - category_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloProfilePrinterData.HloInstructionInfo.category) -} -#endif -inline void HloProfilePrinterData_HloInstructionInfo::set_category(const char* value) { - GOOGLE_DCHECK(value != NULL); - - category_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloProfilePrinterData.HloInstructionInfo.category) -} -inline void HloProfilePrinterData_HloInstructionInfo::set_category(const char* value, - size_t size) { - - category_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloProfilePrinterData.HloInstructionInfo.category) -} -inline ::std::string* HloProfilePrinterData_HloInstructionInfo::mutable_category() { - - // @@protoc_insertion_point(field_mutable:xla.HloProfilePrinterData.HloInstructionInfo.category) - return category_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloProfilePrinterData_HloInstructionInfo::release_category() { - // @@protoc_insertion_point(field_release:xla.HloProfilePrinterData.HloInstructionInfo.category) - - return category_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloProfilePrinterData_HloInstructionInfo::set_allocated_category(::std::string* category) { - if (category != NULL) { - - } else { - - } - category_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), category, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloProfilePrinterData.HloInstructionInfo.category) -} -inline ::std::string* HloProfilePrinterData_HloInstructionInfo::unsafe_arena_release_category() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloProfilePrinterData.HloInstructionInfo.category) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return category_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloProfilePrinterData_HloInstructionInfo::unsafe_arena_set_allocated_category( - ::std::string* category) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (category != NULL) { - - } else { - - } - category_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - category, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloProfilePrinterData.HloInstructionInfo.category) -} - -// float flop_count = 4; -inline void HloProfilePrinterData_HloInstructionInfo::clear_flop_count() { - flop_count_ = 0; -} -inline float HloProfilePrinterData_HloInstructionInfo::flop_count() const { - // @@protoc_insertion_point(field_get:xla.HloProfilePrinterData.HloInstructionInfo.flop_count) - return flop_count_; -} -inline void HloProfilePrinterData_HloInstructionInfo::set_flop_count(float value) { - - flop_count_ = value; - // @@protoc_insertion_point(field_set:xla.HloProfilePrinterData.HloInstructionInfo.flop_count) -} - -// float transcendental_count = 5; -inline void HloProfilePrinterData_HloInstructionInfo::clear_transcendental_count() { - transcendental_count_ = 0; -} -inline float HloProfilePrinterData_HloInstructionInfo::transcendental_count() const { - // @@protoc_insertion_point(field_get:xla.HloProfilePrinterData.HloInstructionInfo.transcendental_count) - return transcendental_count_; -} -inline void HloProfilePrinterData_HloInstructionInfo::set_transcendental_count(float value) { - - transcendental_count_ = value; - // @@protoc_insertion_point(field_set:xla.HloProfilePrinterData.HloInstructionInfo.transcendental_count) -} - -// float bytes_accessed = 6; -inline void HloProfilePrinterData_HloInstructionInfo::clear_bytes_accessed() { - bytes_accessed_ = 0; -} -inline float HloProfilePrinterData_HloInstructionInfo::bytes_accessed() const { - // @@protoc_insertion_point(field_get:xla.HloProfilePrinterData.HloInstructionInfo.bytes_accessed) - return bytes_accessed_; -} -inline void HloProfilePrinterData_HloInstructionInfo::set_bytes_accessed(float value) { - - bytes_accessed_ = value; - // @@protoc_insertion_point(field_set:xla.HloProfilePrinterData.HloInstructionInfo.bytes_accessed) -} - -// float optimal_seconds = 7; -inline void HloProfilePrinterData_HloInstructionInfo::clear_optimal_seconds() { - optimal_seconds_ = 0; -} -inline float HloProfilePrinterData_HloInstructionInfo::optimal_seconds() const { - // @@protoc_insertion_point(field_get:xla.HloProfilePrinterData.HloInstructionInfo.optimal_seconds) - return optimal_seconds_; -} -inline void HloProfilePrinterData_HloInstructionInfo::set_optimal_seconds(float value) { - - optimal_seconds_ = value; - // @@protoc_insertion_point(field_set:xla.HloProfilePrinterData.HloInstructionInfo.optimal_seconds) -} - -// int64 profile_index = 8; -inline void HloProfilePrinterData_HloInstructionInfo::clear_profile_index() { - profile_index_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HloProfilePrinterData_HloInstructionInfo::profile_index() const { - // @@protoc_insertion_point(field_get:xla.HloProfilePrinterData.HloInstructionInfo.profile_index) - return profile_index_; -} -inline void HloProfilePrinterData_HloInstructionInfo::set_profile_index(::google::protobuf::int64 value) { - - profile_index_ = value; - // @@protoc_insertion_point(field_set:xla.HloProfilePrinterData.HloInstructionInfo.profile_index) -} - -// ------------------------------------------------------------------- - -// HloProfilePrinterData_HloComputationInfo - -// string name = 1; -inline void HloProfilePrinterData_HloComputationInfo::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& HloProfilePrinterData_HloComputationInfo::name() const { - // @@protoc_insertion_point(field_get:xla.HloProfilePrinterData.HloComputationInfo.name) - return name_.Get(); -} -inline void HloProfilePrinterData_HloComputationInfo::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.HloProfilePrinterData.HloComputationInfo.name) -} -#if LANG_CXX11 -inline void HloProfilePrinterData_HloComputationInfo::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.HloProfilePrinterData.HloComputationInfo.name) -} -#endif -inline void HloProfilePrinterData_HloComputationInfo::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.HloProfilePrinterData.HloComputationInfo.name) -} -inline void HloProfilePrinterData_HloComputationInfo::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.HloProfilePrinterData.HloComputationInfo.name) -} -inline ::std::string* HloProfilePrinterData_HloComputationInfo::mutable_name() { - - // @@protoc_insertion_point(field_mutable:xla.HloProfilePrinterData.HloComputationInfo.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* HloProfilePrinterData_HloComputationInfo::release_name() { - // @@protoc_insertion_point(field_release:xla.HloProfilePrinterData.HloComputationInfo.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void HloProfilePrinterData_HloComputationInfo::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.HloProfilePrinterData.HloComputationInfo.name) -} -inline ::std::string* HloProfilePrinterData_HloComputationInfo::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.HloProfilePrinterData.HloComputationInfo.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void HloProfilePrinterData_HloComputationInfo::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.HloProfilePrinterData.HloComputationInfo.name) -} - -// int64 profile_index = 2; -inline void HloProfilePrinterData_HloComputationInfo::clear_profile_index() { - profile_index_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HloProfilePrinterData_HloComputationInfo::profile_index() const { - // @@protoc_insertion_point(field_get:xla.HloProfilePrinterData.HloComputationInfo.profile_index) - return profile_index_; -} -inline void HloProfilePrinterData_HloComputationInfo::set_profile_index(::google::protobuf::int64 value) { - - profile_index_ = value; - // @@protoc_insertion_point(field_set:xla.HloProfilePrinterData.HloComputationInfo.profile_index) -} - -// repeated .xla.HloProfilePrinterData.HloInstructionInfo instruction_infos = 3; -inline int HloProfilePrinterData_HloComputationInfo::instruction_infos_size() const { - return instruction_infos_.size(); -} -inline void HloProfilePrinterData_HloComputationInfo::clear_instruction_infos() { - instruction_infos_.Clear(); -} -inline ::xla::HloProfilePrinterData_HloInstructionInfo* HloProfilePrinterData_HloComputationInfo::mutable_instruction_infos(int index) { - // @@protoc_insertion_point(field_mutable:xla.HloProfilePrinterData.HloComputationInfo.instruction_infos) - return instruction_infos_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::HloProfilePrinterData_HloInstructionInfo >* -HloProfilePrinterData_HloComputationInfo::mutable_instruction_infos() { - // @@protoc_insertion_point(field_mutable_list:xla.HloProfilePrinterData.HloComputationInfo.instruction_infos) - return &instruction_infos_; -} -inline const ::xla::HloProfilePrinterData_HloInstructionInfo& HloProfilePrinterData_HloComputationInfo::instruction_infos(int index) const { - // @@protoc_insertion_point(field_get:xla.HloProfilePrinterData.HloComputationInfo.instruction_infos) - return instruction_infos_.Get(index); -} -inline ::xla::HloProfilePrinterData_HloInstructionInfo* HloProfilePrinterData_HloComputationInfo::add_instruction_infos() { - // @@protoc_insertion_point(field_add:xla.HloProfilePrinterData.HloComputationInfo.instruction_infos) - return instruction_infos_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::HloProfilePrinterData_HloInstructionInfo >& -HloProfilePrinterData_HloComputationInfo::instruction_infos() const { - // @@protoc_insertion_point(field_list:xla.HloProfilePrinterData.HloComputationInfo.instruction_infos) - return instruction_infos_; -} - -// ------------------------------------------------------------------- - -// HloProfilePrinterData - -// repeated .xla.HloProfilePrinterData.HloComputationInfo computation_infos = 1; -inline int HloProfilePrinterData::computation_infos_size() const { - return computation_infos_.size(); -} -inline void HloProfilePrinterData::clear_computation_infos() { - computation_infos_.Clear(); -} -inline ::xla::HloProfilePrinterData_HloComputationInfo* HloProfilePrinterData::mutable_computation_infos(int index) { - // @@protoc_insertion_point(field_mutable:xla.HloProfilePrinterData.computation_infos) - return computation_infos_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::HloProfilePrinterData_HloComputationInfo >* -HloProfilePrinterData::mutable_computation_infos() { - // @@protoc_insertion_point(field_mutable_list:xla.HloProfilePrinterData.computation_infos) - return &computation_infos_; -} -inline const ::xla::HloProfilePrinterData_HloComputationInfo& HloProfilePrinterData::computation_infos(int index) const { - // @@protoc_insertion_point(field_get:xla.HloProfilePrinterData.computation_infos) - return computation_infos_.Get(index); -} -inline ::xla::HloProfilePrinterData_HloComputationInfo* HloProfilePrinterData::add_computation_infos() { - // @@protoc_insertion_point(field_add:xla.HloProfilePrinterData.computation_infos) - return computation_infos_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::HloProfilePrinterData_HloComputationInfo >& -HloProfilePrinterData::computation_infos() const { - // @@protoc_insertion_point(field_list:xla.HloProfilePrinterData.computation_infos) - return computation_infos_; -} - -// int64 profile_counters_size = 2; -inline void HloProfilePrinterData::clear_profile_counters_size() { - profile_counters_size_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 HloProfilePrinterData::profile_counters_size() const { - // @@protoc_insertion_point(field_get:xla.HloProfilePrinterData.profile_counters_size) - return profile_counters_size_; -} -inline void HloProfilePrinterData::set_profile_counters_size(::google::protobuf::int64 value) { - - profile_counters_size_ = value; - // @@protoc_insertion_point(field_set:xla.HloProfilePrinterData.profile_counters_size) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace xla - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcompiler_2fxla_2fservice_2fhlo_5fprofile_5fprinter_5fdata_2eproto diff --git a/linux/include/tensorflow/compiler/xla/xla.pb.h b/linux/include/tensorflow/compiler/xla/xla.pb.h deleted file mode 100755 index 7e5586806..000000000 --- a/linux/include/tensorflow/compiler/xla/xla.pb.h +++ /dev/null @@ -1,8616 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/compiler/xla/xla.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcompiler_2fxla_2fxla_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcompiler_2fxla_2fxla_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include -#include "tensorflow/compiler/xla/xla_data.pb.h" -#include "tensorflow/compiler/xla/service/hlo.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto - -namespace protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[38]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto -namespace xla { -class ComputationGraphStatsRequest; -class ComputationGraphStatsRequestDefaultTypeInternal; -extern ComputationGraphStatsRequestDefaultTypeInternal _ComputationGraphStatsRequest_default_instance_; -class ComputationStatsResponse; -class ComputationStatsResponseDefaultTypeInternal; -extern ComputationStatsResponseDefaultTypeInternal _ComputationStatsResponse_default_instance_; -class ComputeConstantGraphRequest; -class ComputeConstantGraphRequestDefaultTypeInternal; -extern ComputeConstantGraphRequestDefaultTypeInternal _ComputeConstantGraphRequest_default_instance_; -class ComputeConstantResponse; -class ComputeConstantResponseDefaultTypeInternal; -extern ComputeConstantResponseDefaultTypeInternal _ComputeConstantResponse_default_instance_; -class CreateChannelHandleRequest; -class CreateChannelHandleRequestDefaultTypeInternal; -extern CreateChannelHandleRequestDefaultTypeInternal _CreateChannelHandleRequest_default_instance_; -class CreateChannelHandleResponse; -class CreateChannelHandleResponseDefaultTypeInternal; -extern CreateChannelHandleResponseDefaultTypeInternal _CreateChannelHandleResponse_default_instance_; -class DebugOptions; -class DebugOptionsDefaultTypeInternal; -extern DebugOptionsDefaultTypeInternal _DebugOptions_default_instance_; -class DebugOptions_XlaBackendExtraOptionsEntry_DoNotUse; -class DebugOptions_XlaBackendExtraOptionsEntry_DoNotUseDefaultTypeInternal; -extern DebugOptions_XlaBackendExtraOptionsEntry_DoNotUseDefaultTypeInternal _DebugOptions_XlaBackendExtraOptionsEntry_DoNotUse_default_instance_; -class DeconstructTupleRequest; -class DeconstructTupleRequestDefaultTypeInternal; -extern DeconstructTupleRequestDefaultTypeInternal _DeconstructTupleRequest_default_instance_; -class DeconstructTupleResponse; -class DeconstructTupleResponseDefaultTypeInternal; -extern DeconstructTupleResponseDefaultTypeInternal _DeconstructTupleResponse_default_instance_; -class ExecuteGraphParallelRequest; -class ExecuteGraphParallelRequestDefaultTypeInternal; -extern ExecuteGraphParallelRequestDefaultTypeInternal _ExecuteGraphParallelRequest_default_instance_; -class ExecuteGraphRequest; -class ExecuteGraphRequestDefaultTypeInternal; -extern ExecuteGraphRequestDefaultTypeInternal _ExecuteGraphRequest_default_instance_; -class ExecuteParallelResponse; -class ExecuteParallelResponseDefaultTypeInternal; -extern ExecuteParallelResponseDefaultTypeInternal _ExecuteParallelResponse_default_instance_; -class ExecuteResponse; -class ExecuteResponseDefaultTypeInternal; -extern ExecuteResponseDefaultTypeInternal _ExecuteResponse_default_instance_; -class ExecutionOptions; -class ExecutionOptionsDefaultTypeInternal; -extern ExecutionOptionsDefaultTypeInternal _ExecutionOptions_default_instance_; -class GetDeviceHandlesRequest; -class GetDeviceHandlesRequestDefaultTypeInternal; -extern GetDeviceHandlesRequestDefaultTypeInternal _GetDeviceHandlesRequest_default_instance_; -class GetDeviceHandlesResponse; -class GetDeviceHandlesResponseDefaultTypeInternal; -extern GetDeviceHandlesResponseDefaultTypeInternal _GetDeviceHandlesResponse_default_instance_; -class GetShapeRequest; -class GetShapeRequestDefaultTypeInternal; -extern GetShapeRequestDefaultTypeInternal _GetShapeRequest_default_instance_; -class GetShapeResponse; -class GetShapeResponseDefaultTypeInternal; -extern GetShapeResponseDefaultTypeInternal _GetShapeResponse_default_instance_; -class HloReducePrecisionOptions; -class HloReducePrecisionOptionsDefaultTypeInternal; -extern HloReducePrecisionOptionsDefaultTypeInternal _HloReducePrecisionOptions_default_instance_; -class LoadDataRequest; -class LoadDataRequestDefaultTypeInternal; -extern LoadDataRequestDefaultTypeInternal _LoadDataRequest_default_instance_; -class LoadDataResponse; -class LoadDataResponseDefaultTypeInternal; -extern LoadDataResponseDefaultTypeInternal _LoadDataResponse_default_instance_; -class ResetDeviceRequest; -class ResetDeviceRequestDefaultTypeInternal; -extern ResetDeviceRequestDefaultTypeInternal _ResetDeviceRequest_default_instance_; -class ResetDeviceResponse; -class ResetDeviceResponseDefaultTypeInternal; -extern ResetDeviceResponseDefaultTypeInternal _ResetDeviceResponse_default_instance_; -class TransferFromOutfeedRequest; -class TransferFromOutfeedRequestDefaultTypeInternal; -extern TransferFromOutfeedRequestDefaultTypeInternal _TransferFromOutfeedRequest_default_instance_; -class TransferFromOutfeedResponse; -class TransferFromOutfeedResponseDefaultTypeInternal; -extern TransferFromOutfeedResponseDefaultTypeInternal _TransferFromOutfeedResponse_default_instance_; -class TransferToClientRequest; -class TransferToClientRequestDefaultTypeInternal; -extern TransferToClientRequestDefaultTypeInternal _TransferToClientRequest_default_instance_; -class TransferToClientResponse; -class TransferToClientResponseDefaultTypeInternal; -extern TransferToClientResponseDefaultTypeInternal _TransferToClientResponse_default_instance_; -class TransferToInfeedRequest; -class TransferToInfeedRequestDefaultTypeInternal; -extern TransferToInfeedRequestDefaultTypeInternal _TransferToInfeedRequest_default_instance_; -class TransferToInfeedResponse; -class TransferToInfeedResponseDefaultTypeInternal; -extern TransferToInfeedResponseDefaultTypeInternal _TransferToInfeedResponse_default_instance_; -class TransferToServerRequest; -class TransferToServerRequestDefaultTypeInternal; -extern TransferToServerRequestDefaultTypeInternal _TransferToServerRequest_default_instance_; -class TransferToServerResponse; -class TransferToServerResponseDefaultTypeInternal; -extern TransferToServerResponseDefaultTypeInternal _TransferToServerResponse_default_instance_; -class UnpackRequest; -class UnpackRequestDefaultTypeInternal; -extern UnpackRequestDefaultTypeInternal _UnpackRequest_default_instance_; -class UnpackResponse; -class UnpackResponseDefaultTypeInternal; -extern UnpackResponseDefaultTypeInternal _UnpackResponse_default_instance_; -class UnregisterRequest; -class UnregisterRequestDefaultTypeInternal; -extern UnregisterRequestDefaultTypeInternal _UnregisterRequest_default_instance_; -class UnregisterResponse; -class UnregisterResponseDefaultTypeInternal; -extern UnregisterResponseDefaultTypeInternal _UnregisterResponse_default_instance_; -class WaitForExecutionRequest; -class WaitForExecutionRequestDefaultTypeInternal; -extern WaitForExecutionRequestDefaultTypeInternal _WaitForExecutionRequest_default_instance_; -class WaitForExecutionResponse; -class WaitForExecutionResponseDefaultTypeInternal; -extern WaitForExecutionResponseDefaultTypeInternal _WaitForExecutionResponse_default_instance_; -} // namespace xla -namespace google { -namespace protobuf { -template<> ::xla::ComputationGraphStatsRequest* Arena::CreateMaybeMessage<::xla::ComputationGraphStatsRequest>(Arena*); -template<> ::xla::ComputationStatsResponse* Arena::CreateMaybeMessage<::xla::ComputationStatsResponse>(Arena*); -template<> ::xla::ComputeConstantGraphRequest* Arena::CreateMaybeMessage<::xla::ComputeConstantGraphRequest>(Arena*); -template<> ::xla::ComputeConstantResponse* Arena::CreateMaybeMessage<::xla::ComputeConstantResponse>(Arena*); -template<> ::xla::CreateChannelHandleRequest* Arena::CreateMaybeMessage<::xla::CreateChannelHandleRequest>(Arena*); -template<> ::xla::CreateChannelHandleResponse* Arena::CreateMaybeMessage<::xla::CreateChannelHandleResponse>(Arena*); -template<> ::xla::DebugOptions* Arena::CreateMaybeMessage<::xla::DebugOptions>(Arena*); -template<> ::xla::DebugOptions_XlaBackendExtraOptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::xla::DebugOptions_XlaBackendExtraOptionsEntry_DoNotUse>(Arena*); -template<> ::xla::DeconstructTupleRequest* Arena::CreateMaybeMessage<::xla::DeconstructTupleRequest>(Arena*); -template<> ::xla::DeconstructTupleResponse* Arena::CreateMaybeMessage<::xla::DeconstructTupleResponse>(Arena*); -template<> ::xla::ExecuteGraphParallelRequest* Arena::CreateMaybeMessage<::xla::ExecuteGraphParallelRequest>(Arena*); -template<> ::xla::ExecuteGraphRequest* Arena::CreateMaybeMessage<::xla::ExecuteGraphRequest>(Arena*); -template<> ::xla::ExecuteParallelResponse* Arena::CreateMaybeMessage<::xla::ExecuteParallelResponse>(Arena*); -template<> ::xla::ExecuteResponse* Arena::CreateMaybeMessage<::xla::ExecuteResponse>(Arena*); -template<> ::xla::ExecutionOptions* Arena::CreateMaybeMessage<::xla::ExecutionOptions>(Arena*); -template<> ::xla::GetDeviceHandlesRequest* Arena::CreateMaybeMessage<::xla::GetDeviceHandlesRequest>(Arena*); -template<> ::xla::GetDeviceHandlesResponse* Arena::CreateMaybeMessage<::xla::GetDeviceHandlesResponse>(Arena*); -template<> ::xla::GetShapeRequest* Arena::CreateMaybeMessage<::xla::GetShapeRequest>(Arena*); -template<> ::xla::GetShapeResponse* Arena::CreateMaybeMessage<::xla::GetShapeResponse>(Arena*); -template<> ::xla::HloReducePrecisionOptions* Arena::CreateMaybeMessage<::xla::HloReducePrecisionOptions>(Arena*); -template<> ::xla::LoadDataRequest* Arena::CreateMaybeMessage<::xla::LoadDataRequest>(Arena*); -template<> ::xla::LoadDataResponse* Arena::CreateMaybeMessage<::xla::LoadDataResponse>(Arena*); -template<> ::xla::ResetDeviceRequest* Arena::CreateMaybeMessage<::xla::ResetDeviceRequest>(Arena*); -template<> ::xla::ResetDeviceResponse* Arena::CreateMaybeMessage<::xla::ResetDeviceResponse>(Arena*); -template<> ::xla::TransferFromOutfeedRequest* Arena::CreateMaybeMessage<::xla::TransferFromOutfeedRequest>(Arena*); -template<> ::xla::TransferFromOutfeedResponse* Arena::CreateMaybeMessage<::xla::TransferFromOutfeedResponse>(Arena*); -template<> ::xla::TransferToClientRequest* Arena::CreateMaybeMessage<::xla::TransferToClientRequest>(Arena*); -template<> ::xla::TransferToClientResponse* Arena::CreateMaybeMessage<::xla::TransferToClientResponse>(Arena*); -template<> ::xla::TransferToInfeedRequest* Arena::CreateMaybeMessage<::xla::TransferToInfeedRequest>(Arena*); -template<> ::xla::TransferToInfeedResponse* Arena::CreateMaybeMessage<::xla::TransferToInfeedResponse>(Arena*); -template<> ::xla::TransferToServerRequest* Arena::CreateMaybeMessage<::xla::TransferToServerRequest>(Arena*); -template<> ::xla::TransferToServerResponse* Arena::CreateMaybeMessage<::xla::TransferToServerResponse>(Arena*); -template<> ::xla::UnpackRequest* Arena::CreateMaybeMessage<::xla::UnpackRequest>(Arena*); -template<> ::xla::UnpackResponse* Arena::CreateMaybeMessage<::xla::UnpackResponse>(Arena*); -template<> ::xla::UnregisterRequest* Arena::CreateMaybeMessage<::xla::UnregisterRequest>(Arena*); -template<> ::xla::UnregisterResponse* Arena::CreateMaybeMessage<::xla::UnregisterResponse>(Arena*); -template<> ::xla::WaitForExecutionRequest* Arena::CreateMaybeMessage<::xla::WaitForExecutionRequest>(Arena*); -template<> ::xla::WaitForExecutionResponse* Arena::CreateMaybeMessage<::xla::WaitForExecutionResponse>(Arena*); -} // namespace protobuf -} // namespace google -namespace xla { - -enum HloReducePrecisionOptions_Location { - HloReducePrecisionOptions_Location_OP_INPUTS = 0, - HloReducePrecisionOptions_Location_OP_OUTPUTS = 1, - HloReducePrecisionOptions_Location_UNFUSED_OP_OUTPUTS = 2, - HloReducePrecisionOptions_Location_FUSION_INPUTS_BY_CONTENT = 3, - HloReducePrecisionOptions_Location_FUSION_OUTPUTS_BY_CONTENT = 4, - HloReducePrecisionOptions_Location_HloReducePrecisionOptions_Location_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - HloReducePrecisionOptions_Location_HloReducePrecisionOptions_Location_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool HloReducePrecisionOptions_Location_IsValid(int value); -const HloReducePrecisionOptions_Location HloReducePrecisionOptions_Location_Location_MIN = HloReducePrecisionOptions_Location_OP_INPUTS; -const HloReducePrecisionOptions_Location HloReducePrecisionOptions_Location_Location_MAX = HloReducePrecisionOptions_Location_FUSION_OUTPUTS_BY_CONTENT; -const int HloReducePrecisionOptions_Location_Location_ARRAYSIZE = HloReducePrecisionOptions_Location_Location_MAX + 1; - -const ::google::protobuf::EnumDescriptor* HloReducePrecisionOptions_Location_descriptor(); -inline const ::std::string& HloReducePrecisionOptions_Location_Name(HloReducePrecisionOptions_Location value) { - return ::google::protobuf::internal::NameOfEnum( - HloReducePrecisionOptions_Location_descriptor(), value); -} -inline bool HloReducePrecisionOptions_Location_Parse( - const ::std::string& name, HloReducePrecisionOptions_Location* value) { - return ::google::protobuf::internal::ParseNamedEnum( - HloReducePrecisionOptions_Location_descriptor(), name, value); -} -// =================================================================== - -class HloReducePrecisionOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.HloReducePrecisionOptions) */ { - public: - HloReducePrecisionOptions(); - virtual ~HloReducePrecisionOptions(); - - HloReducePrecisionOptions(const HloReducePrecisionOptions& from); - - inline HloReducePrecisionOptions& operator=(const HloReducePrecisionOptions& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HloReducePrecisionOptions(HloReducePrecisionOptions&& from) noexcept - : HloReducePrecisionOptions() { - *this = ::std::move(from); - } - - inline HloReducePrecisionOptions& operator=(HloReducePrecisionOptions&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const HloReducePrecisionOptions& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HloReducePrecisionOptions* internal_default_instance() { - return reinterpret_cast( - &_HloReducePrecisionOptions_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(HloReducePrecisionOptions* other); - friend void swap(HloReducePrecisionOptions& a, HloReducePrecisionOptions& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HloReducePrecisionOptions* New() const final { - return CreateMaybeMessage(NULL); - } - - HloReducePrecisionOptions* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HloReducePrecisionOptions& from); - void MergeFrom(const HloReducePrecisionOptions& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HloReducePrecisionOptions* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef HloReducePrecisionOptions_Location Location; - static const Location OP_INPUTS = - HloReducePrecisionOptions_Location_OP_INPUTS; - static const Location OP_OUTPUTS = - HloReducePrecisionOptions_Location_OP_OUTPUTS; - static const Location UNFUSED_OP_OUTPUTS = - HloReducePrecisionOptions_Location_UNFUSED_OP_OUTPUTS; - static const Location FUSION_INPUTS_BY_CONTENT = - HloReducePrecisionOptions_Location_FUSION_INPUTS_BY_CONTENT; - static const Location FUSION_OUTPUTS_BY_CONTENT = - HloReducePrecisionOptions_Location_FUSION_OUTPUTS_BY_CONTENT; - static inline bool Location_IsValid(int value) { - return HloReducePrecisionOptions_Location_IsValid(value); - } - static const Location Location_MIN = - HloReducePrecisionOptions_Location_Location_MIN; - static const Location Location_MAX = - HloReducePrecisionOptions_Location_Location_MAX; - static const int Location_ARRAYSIZE = - HloReducePrecisionOptions_Location_Location_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Location_descriptor() { - return HloReducePrecisionOptions_Location_descriptor(); - } - static inline const ::std::string& Location_Name(Location value) { - return HloReducePrecisionOptions_Location_Name(value); - } - static inline bool Location_Parse(const ::std::string& name, - Location* value) { - return HloReducePrecisionOptions_Location_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // repeated uint32 opcodes_to_suffix = 4; - int opcodes_to_suffix_size() const; - void clear_opcodes_to_suffix(); - static const int kOpcodesToSuffixFieldNumber = 4; - ::google::protobuf::uint32 opcodes_to_suffix(int index) const; - void set_opcodes_to_suffix(int index, ::google::protobuf::uint32 value); - void add_opcodes_to_suffix(::google::protobuf::uint32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - opcodes_to_suffix() const; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_opcodes_to_suffix(); - - // repeated string opname_substrings_to_suffix = 5; - int opname_substrings_to_suffix_size() const; - void clear_opname_substrings_to_suffix(); - static const int kOpnameSubstringsToSuffixFieldNumber = 5; - const ::std::string& opname_substrings_to_suffix(int index) const; - ::std::string* mutable_opname_substrings_to_suffix(int index); - void set_opname_substrings_to_suffix(int index, const ::std::string& value); - #if LANG_CXX11 - void set_opname_substrings_to_suffix(int index, ::std::string&& value); - #endif - void set_opname_substrings_to_suffix(int index, const char* value); - void set_opname_substrings_to_suffix(int index, const char* value, size_t size); - ::std::string* add_opname_substrings_to_suffix(); - void add_opname_substrings_to_suffix(const ::std::string& value); - #if LANG_CXX11 - void add_opname_substrings_to_suffix(::std::string&& value); - #endif - void add_opname_substrings_to_suffix(const char* value); - void add_opname_substrings_to_suffix(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& opname_substrings_to_suffix() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_opname_substrings_to_suffix(); - - // .xla.HloReducePrecisionOptions.Location location = 1; - void clear_location(); - static const int kLocationFieldNumber = 1; - ::xla::HloReducePrecisionOptions_Location location() const; - void set_location(::xla::HloReducePrecisionOptions_Location value); - - // uint32 exponent_bits = 2; - void clear_exponent_bits(); - static const int kExponentBitsFieldNumber = 2; - ::google::protobuf::uint32 exponent_bits() const; - void set_exponent_bits(::google::protobuf::uint32 value); - - // uint32 mantissa_bits = 3; - void clear_mantissa_bits(); - static const int kMantissaBitsFieldNumber = 3; - ::google::protobuf::uint32 mantissa_bits() const; - void set_mantissa_bits(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:xla.HloReducePrecisionOptions) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > opcodes_to_suffix_; - mutable int _opcodes_to_suffix_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::std::string> opname_substrings_to_suffix_; - int location_; - ::google::protobuf::uint32 exponent_bits_; - ::google::protobuf::uint32 mantissa_bits_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class DebugOptions_XlaBackendExtraOptionsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: - typedef ::google::protobuf::internal::MapEntry SuperType; - DebugOptions_XlaBackendExtraOptionsEntry_DoNotUse(); - DebugOptions_XlaBackendExtraOptionsEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const DebugOptions_XlaBackendExtraOptionsEntry_DoNotUse& other); - static const DebugOptions_XlaBackendExtraOptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_DebugOptions_XlaBackendExtraOptionsEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class DebugOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.DebugOptions) */ { - public: - DebugOptions(); - virtual ~DebugOptions(); - - DebugOptions(const DebugOptions& from); - - inline DebugOptions& operator=(const DebugOptions& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DebugOptions(DebugOptions&& from) noexcept - : DebugOptions() { - *this = ::std::move(from); - } - - inline DebugOptions& operator=(DebugOptions&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const DebugOptions& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DebugOptions* internal_default_instance() { - return reinterpret_cast( - &_DebugOptions_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(DebugOptions* other); - friend void swap(DebugOptions& a, DebugOptions& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DebugOptions* New() const final { - return CreateMaybeMessage(NULL); - } - - DebugOptions* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const DebugOptions& from); - void MergeFrom(const DebugOptions& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DebugOptions* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - // repeated string xla_disable_hlo_passes = 30; - int xla_disable_hlo_passes_size() const; - void clear_xla_disable_hlo_passes(); - static const int kXlaDisableHloPassesFieldNumber = 30; - const ::std::string& xla_disable_hlo_passes(int index) const; - ::std::string* mutable_xla_disable_hlo_passes(int index); - void set_xla_disable_hlo_passes(int index, const ::std::string& value); - #if LANG_CXX11 - void set_xla_disable_hlo_passes(int index, ::std::string&& value); - #endif - void set_xla_disable_hlo_passes(int index, const char* value); - void set_xla_disable_hlo_passes(int index, const char* value, size_t size); - ::std::string* add_xla_disable_hlo_passes(); - void add_xla_disable_hlo_passes(const ::std::string& value); - #if LANG_CXX11 - void add_xla_disable_hlo_passes(::std::string&& value); - #endif - void add_xla_disable_hlo_passes(const char* value); - void add_xla_disable_hlo_passes(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& xla_disable_hlo_passes() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_xla_disable_hlo_passes(); - - // repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80; - int hlo_reduce_precision_options_size() const; - void clear_hlo_reduce_precision_options(); - static const int kHloReducePrecisionOptionsFieldNumber = 80; - ::xla::HloReducePrecisionOptions* mutable_hlo_reduce_precision_options(int index); - ::google::protobuf::RepeatedPtrField< ::xla::HloReducePrecisionOptions >* - mutable_hlo_reduce_precision_options(); - const ::xla::HloReducePrecisionOptions& hlo_reduce_precision_options(int index) const; - ::xla::HloReducePrecisionOptions* add_hlo_reduce_precision_options(); - const ::google::protobuf::RepeatedPtrField< ::xla::HloReducePrecisionOptions >& - hlo_reduce_precision_options() const; - - // map xla_backend_extra_options = 500; - int xla_backend_extra_options_size() const; - void clear_xla_backend_extra_options(); - static const int kXlaBackendExtraOptionsFieldNumber = 500; - const ::google::protobuf::Map< ::std::string, ::std::string >& - xla_backend_extra_options() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_xla_backend_extra_options(); - - // string xla_generate_hlo_graph = 1; - void clear_xla_generate_hlo_graph(); - static const int kXlaGenerateHloGraphFieldNumber = 1; - const ::std::string& xla_generate_hlo_graph() const; - void set_xla_generate_hlo_graph(const ::std::string& value); - #if LANG_CXX11 - void set_xla_generate_hlo_graph(::std::string&& value); - #endif - void set_xla_generate_hlo_graph(const char* value); - void set_xla_generate_hlo_graph(const char* value, size_t size); - ::std::string* mutable_xla_generate_hlo_graph(); - ::std::string* release_xla_generate_hlo_graph(); - void set_allocated_xla_generate_hlo_graph(::std::string* xla_generate_hlo_graph); - - // string xla_hlo_graph_path = 4; - void clear_xla_hlo_graph_path(); - static const int kXlaHloGraphPathFieldNumber = 4; - const ::std::string& xla_hlo_graph_path() const; - void set_xla_hlo_graph_path(const ::std::string& value); - #if LANG_CXX11 - void set_xla_hlo_graph_path(::std::string&& value); - #endif - void set_xla_hlo_graph_path(const char* value); - void set_xla_hlo_graph_path(const char* value, size_t size); - ::std::string* mutable_xla_hlo_graph_path(); - ::std::string* release_xla_hlo_graph_path(); - void set_allocated_xla_hlo_graph_path(::std::string* xla_hlo_graph_path); - - // string xla_log_hlo_text = 6; - void clear_xla_log_hlo_text(); - static const int kXlaLogHloTextFieldNumber = 6; - const ::std::string& xla_log_hlo_text() const; - void set_xla_log_hlo_text(const ::std::string& value); - #if LANG_CXX11 - void set_xla_log_hlo_text(::std::string&& value); - #endif - void set_xla_log_hlo_text(const char* value); - void set_xla_log_hlo_text(const char* value, size_t size); - ::std::string* mutable_xla_log_hlo_text(); - ::std::string* release_xla_log_hlo_text(); - void set_allocated_xla_log_hlo_text(::std::string* xla_log_hlo_text); - - // string xla_generate_hlo_text_to = 7; - void clear_xla_generate_hlo_text_to(); - static const int kXlaGenerateHloTextToFieldNumber = 7; - const ::std::string& xla_generate_hlo_text_to() const; - void set_xla_generate_hlo_text_to(const ::std::string& value); - #if LANG_CXX11 - void set_xla_generate_hlo_text_to(::std::string&& value); - #endif - void set_xla_generate_hlo_text_to(const char* value); - void set_xla_generate_hlo_text_to(const char* value, size_t size); - ::std::string* mutable_xla_generate_hlo_text_to(); - ::std::string* release_xla_generate_hlo_text_to(); - void set_allocated_xla_generate_hlo_text_to(::std::string* xla_generate_hlo_text_to); - - // string xla_dump_optimized_hlo_proto_to = 8; - void clear_xla_dump_optimized_hlo_proto_to(); - static const int kXlaDumpOptimizedHloProtoToFieldNumber = 8; - const ::std::string& xla_dump_optimized_hlo_proto_to() const; - void set_xla_dump_optimized_hlo_proto_to(const ::std::string& value); - #if LANG_CXX11 - void set_xla_dump_optimized_hlo_proto_to(::std::string&& value); - #endif - void set_xla_dump_optimized_hlo_proto_to(const char* value); - void set_xla_dump_optimized_hlo_proto_to(const char* value, size_t size); - ::std::string* mutable_xla_dump_optimized_hlo_proto_to(); - ::std::string* release_xla_dump_optimized_hlo_proto_to(); - void set_allocated_xla_dump_optimized_hlo_proto_to(::std::string* xla_dump_optimized_hlo_proto_to); - - // string xla_dump_computations_to = 10; - void clear_xla_dump_computations_to(); - static const int kXlaDumpComputationsToFieldNumber = 10; - const ::std::string& xla_dump_computations_to() const; - void set_xla_dump_computations_to(const ::std::string& value); - #if LANG_CXX11 - void set_xla_dump_computations_to(::std::string&& value); - #endif - void set_xla_dump_computations_to(const char* value); - void set_xla_dump_computations_to(const char* value, size_t size); - ::std::string* mutable_xla_dump_computations_to(); - ::std::string* release_xla_dump_computations_to(); - void set_allocated_xla_dump_computations_to(::std::string* xla_dump_computations_to); - - // string xla_dump_executions_to = 11; - void clear_xla_dump_executions_to(); - static const int kXlaDumpExecutionsToFieldNumber = 11; - const ::std::string& xla_dump_executions_to() const; - void set_xla_dump_executions_to(const ::std::string& value); - #if LANG_CXX11 - void set_xla_dump_executions_to(::std::string&& value); - #endif - void set_xla_dump_executions_to(const char* value); - void set_xla_dump_executions_to(const char* value, size_t size); - ::std::string* mutable_xla_dump_executions_to(); - ::std::string* release_xla_dump_executions_to(); - void set_allocated_xla_dump_executions_to(::std::string* xla_dump_executions_to); - - // string xla_dump_ir_to = 34; - void clear_xla_dump_ir_to(); - static const int kXlaDumpIrToFieldNumber = 34; - const ::std::string& xla_dump_ir_to() const; - void set_xla_dump_ir_to(const ::std::string& value); - #if LANG_CXX11 - void set_xla_dump_ir_to(::std::string&& value); - #endif - void set_xla_dump_ir_to(const char* value); - void set_xla_dump_ir_to(const char* value, size_t size); - ::std::string* mutable_xla_dump_ir_to(); - ::std::string* release_xla_dump_ir_to(); - void set_allocated_xla_dump_ir_to(::std::string* xla_dump_ir_to); - - // string xla_gpu_cuda_data_dir = 61; - void clear_xla_gpu_cuda_data_dir(); - static const int kXlaGpuCudaDataDirFieldNumber = 61; - const ::std::string& xla_gpu_cuda_data_dir() const; - void set_xla_gpu_cuda_data_dir(const ::std::string& value); - #if LANG_CXX11 - void set_xla_gpu_cuda_data_dir(::std::string&& value); - #endif - void set_xla_gpu_cuda_data_dir(const char* value); - void set_xla_gpu_cuda_data_dir(const char* value, size_t size); - ::std::string* mutable_xla_gpu_cuda_data_dir(); - ::std::string* release_xla_gpu_cuda_data_dir(); - void set_allocated_xla_gpu_cuda_data_dir(::std::string* xla_gpu_cuda_data_dir); - - // string xla_dump_unoptimized_hlo_proto_to = 95; - void clear_xla_dump_unoptimized_hlo_proto_to(); - static const int kXlaDumpUnoptimizedHloProtoToFieldNumber = 95; - const ::std::string& xla_dump_unoptimized_hlo_proto_to() const; - void set_xla_dump_unoptimized_hlo_proto_to(const ::std::string& value); - #if LANG_CXX11 - void set_xla_dump_unoptimized_hlo_proto_to(::std::string&& value); - #endif - void set_xla_dump_unoptimized_hlo_proto_to(const char* value); - void set_xla_dump_unoptimized_hlo_proto_to(const char* value, size_t size); - ::std::string* mutable_xla_dump_unoptimized_hlo_proto_to(); - ::std::string* release_xla_dump_unoptimized_hlo_proto_to(); - void set_allocated_xla_dump_unoptimized_hlo_proto_to(::std::string* xla_dump_unoptimized_hlo_proto_to); - - // string xla_dump_per_pass_hlo_proto_to = 96; - void clear_xla_dump_per_pass_hlo_proto_to(); - static const int kXlaDumpPerPassHloProtoToFieldNumber = 96; - const ::std::string& xla_dump_per_pass_hlo_proto_to() const; - void set_xla_dump_per_pass_hlo_proto_to(const ::std::string& value); - #if LANG_CXX11 - void set_xla_dump_per_pass_hlo_proto_to(::std::string&& value); - #endif - void set_xla_dump_per_pass_hlo_proto_to(const char* value); - void set_xla_dump_per_pass_hlo_proto_to(const char* value, size_t size); - ::std::string* mutable_xla_dump_per_pass_hlo_proto_to(); - ::std::string* release_xla_dump_per_pass_hlo_proto_to(); - void set_allocated_xla_dump_per_pass_hlo_proto_to(::std::string* xla_dump_per_pass_hlo_proto_to); - - // bool xla_hlo_graph_addresses = 2; - void clear_xla_hlo_graph_addresses(); - static const int kXlaHloGraphAddressesFieldNumber = 2; - bool xla_hlo_graph_addresses() const; - void set_xla_hlo_graph_addresses(bool value); - - // bool xla_hlo_dump_as_graphdef = 5; - void clear_xla_hlo_dump_as_graphdef(); - static const int kXlaHloDumpAsGraphdefFieldNumber = 5; - bool xla_hlo_dump_as_graphdef() const; - void set_xla_hlo_dump_as_graphdef(bool value); - - // bool xla_hlo_profile = 9; - void clear_xla_hlo_profile(); - static const int kXlaHloProfileFieldNumber = 9; - bool xla_hlo_profile() const; - void set_xla_hlo_profile(bool value); - - // bool xla_embed_ir_in_executable = 33; - void clear_xla_embed_ir_in_executable(); - static const int kXlaEmbedIrInExecutableFieldNumber = 33; - bool xla_embed_ir_in_executable() const; - void set_xla_embed_ir_in_executable(bool value); - - // int32 xla_backend_optimization_level = 31; - void clear_xla_backend_optimization_level(); - static const int kXlaBackendOptimizationLevelFieldNumber = 31; - ::google::protobuf::int32 xla_backend_optimization_level() const; - void set_xla_backend_optimization_level(::google::protobuf::int32 value); - - // int32 xla_force_host_platform_device_count = 102; - void clear_xla_force_host_platform_device_count(); - static const int kXlaForceHostPlatformDeviceCountFieldNumber = 102; - ::google::protobuf::int32 xla_force_host_platform_device_count() const; - void set_xla_force_host_platform_device_count(::google::protobuf::int32 value); - - // bool xla_eliminate_hlo_implicit_broadcast = 35; - void clear_xla_eliminate_hlo_implicit_broadcast(); - static const int kXlaEliminateHloImplicitBroadcastFieldNumber = 35; - bool xla_eliminate_hlo_implicit_broadcast() const; - void set_xla_eliminate_hlo_implicit_broadcast(bool value); - - // bool xla_cpu_multi_thread_eigen = 60; - void clear_xla_cpu_multi_thread_eigen(); - static const int kXlaCpuMultiThreadEigenFieldNumber = 60; - bool xla_cpu_multi_thread_eigen() const; - void set_xla_cpu_multi_thread_eigen(bool value); - - // bool xla_gpu_ftz = 62; - void clear_xla_gpu_ftz(); - static const int kXlaGpuFtzFieldNumber = 62; - bool xla_gpu_ftz() const; - void set_xla_gpu_ftz(bool value); - - // bool xla_gpu_disable_multi_streaming = 63; - void clear_xla_gpu_disable_multi_streaming(); - static const int kXlaGpuDisableMultiStreamingFieldNumber = 63; - bool xla_gpu_disable_multi_streaming() const; - void set_xla_gpu_disable_multi_streaming(bool value); - - // bool xla_llvm_enable_alias_scope_metadata = 70; - void clear_xla_llvm_enable_alias_scope_metadata(); - static const int kXlaLlvmEnableAliasScopeMetadataFieldNumber = 70; - bool xla_llvm_enable_alias_scope_metadata() const; - void set_xla_llvm_enable_alias_scope_metadata(bool value); - - // bool xla_llvm_enable_noalias_metadata = 71; - void clear_xla_llvm_enable_noalias_metadata(); - static const int kXlaLlvmEnableNoaliasMetadataFieldNumber = 71; - bool xla_llvm_enable_noalias_metadata() const; - void set_xla_llvm_enable_noalias_metadata(bool value); - - // bool xla_llvm_enable_invariant_load_metadata = 72; - void clear_xla_llvm_enable_invariant_load_metadata(); - static const int kXlaLlvmEnableInvariantLoadMetadataFieldNumber = 72; - bool xla_llvm_enable_invariant_load_metadata() const; - void set_xla_llvm_enable_invariant_load_metadata(bool value); - - // bool xla_llvm_disable_expensive_passes = 73; - void clear_xla_llvm_disable_expensive_passes(); - static const int kXlaLlvmDisableExpensivePassesFieldNumber = 73; - bool xla_llvm_disable_expensive_passes() const; - void set_xla_llvm_disable_expensive_passes(bool value); - - // bool xla_test_all_output_layouts = 90; - void clear_xla_test_all_output_layouts(); - static const int kXlaTestAllOutputLayoutsFieldNumber = 90; - bool xla_test_all_output_layouts() const; - void set_xla_test_all_output_layouts(bool value); - - // bool xla_test_all_input_layouts = 91; - void clear_xla_test_all_input_layouts(); - static const int kXlaTestAllInputLayoutsFieldNumber = 91; - bool xla_test_all_input_layouts() const; - void set_xla_test_all_input_layouts(bool value); - - // bool xla_hlo_graph_sharding_color = 92; - void clear_xla_hlo_graph_sharding_color(); - static const int kXlaHloGraphShardingColorFieldNumber = 92; - bool xla_hlo_graph_sharding_color() const; - void set_xla_hlo_graph_sharding_color(bool value); - - // bool xla_hlo_tfgraph_device_scopes = 93; - void clear_xla_hlo_tfgraph_device_scopes(); - static const int kXlaHloTfgraphDeviceScopesFieldNumber = 93; - bool xla_hlo_tfgraph_device_scopes() const; - void set_xla_hlo_tfgraph_device_scopes(bool value); - - // bool xla_gpu_use_cudnn_batchnorm = 94; - void clear_xla_gpu_use_cudnn_batchnorm(); - static const int kXlaGpuUseCudnnBatchnormFieldNumber = 94; - bool xla_gpu_use_cudnn_batchnorm() const; - void set_xla_gpu_use_cudnn_batchnorm(bool value); - - // bool xla_cpu_use_mkl_dnn = 97; - void clear_xla_cpu_use_mkl_dnn(); - static const int kXlaCpuUseMklDnnFieldNumber = 97; - bool xla_cpu_use_mkl_dnn() const; - void set_xla_cpu_use_mkl_dnn(bool value); - - // bool xla_cpu_enable_fast_math = 99; - void clear_xla_cpu_enable_fast_math(); - static const int kXlaCpuEnableFastMathFieldNumber = 99; - bool xla_cpu_enable_fast_math() const; - void set_xla_cpu_enable_fast_math(bool value); - - // bool xla_gpu_enable_fast_math = 100; - void clear_xla_gpu_enable_fast_math(); - static const int kXlaGpuEnableFastMathFieldNumber = 100; - bool xla_gpu_enable_fast_math() const; - void set_xla_gpu_enable_fast_math(bool value); - - // int32 xla_gpu_max_kernel_unroll_factor = 98; - void clear_xla_gpu_max_kernel_unroll_factor(); - static const int kXlaGpuMaxKernelUnrollFactorFieldNumber = 98; - ::google::protobuf::int32 xla_gpu_max_kernel_unroll_factor() const; - void set_xla_gpu_max_kernel_unroll_factor(::google::protobuf::int32 value); - - // bool xla_gpu_crash_on_verification_failures = 101; - void clear_xla_gpu_crash_on_verification_failures(); - static const int kXlaGpuCrashOnVerificationFailuresFieldNumber = 101; - bool xla_gpu_crash_on_verification_failures() const; - void set_xla_gpu_crash_on_verification_failures(bool value); - - // @@protoc_insertion_point(class_scope:xla.DebugOptions) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::std::string> xla_disable_hlo_passes_; - ::google::protobuf::RepeatedPtrField< ::xla::HloReducePrecisionOptions > hlo_reduce_precision_options_; - ::google::protobuf::internal::MapField< - DebugOptions_XlaBackendExtraOptionsEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > xla_backend_extra_options_; - ::google::protobuf::internal::ArenaStringPtr xla_generate_hlo_graph_; - ::google::protobuf::internal::ArenaStringPtr xla_hlo_graph_path_; - ::google::protobuf::internal::ArenaStringPtr xla_log_hlo_text_; - ::google::protobuf::internal::ArenaStringPtr xla_generate_hlo_text_to_; - ::google::protobuf::internal::ArenaStringPtr xla_dump_optimized_hlo_proto_to_; - ::google::protobuf::internal::ArenaStringPtr xla_dump_computations_to_; - ::google::protobuf::internal::ArenaStringPtr xla_dump_executions_to_; - ::google::protobuf::internal::ArenaStringPtr xla_dump_ir_to_; - ::google::protobuf::internal::ArenaStringPtr xla_gpu_cuda_data_dir_; - ::google::protobuf::internal::ArenaStringPtr xla_dump_unoptimized_hlo_proto_to_; - ::google::protobuf::internal::ArenaStringPtr xla_dump_per_pass_hlo_proto_to_; - bool xla_hlo_graph_addresses_; - bool xla_hlo_dump_as_graphdef_; - bool xla_hlo_profile_; - bool xla_embed_ir_in_executable_; - ::google::protobuf::int32 xla_backend_optimization_level_; - ::google::protobuf::int32 xla_force_host_platform_device_count_; - bool xla_eliminate_hlo_implicit_broadcast_; - bool xla_cpu_multi_thread_eigen_; - bool xla_gpu_ftz_; - bool xla_gpu_disable_multi_streaming_; - bool xla_llvm_enable_alias_scope_metadata_; - bool xla_llvm_enable_noalias_metadata_; - bool xla_llvm_enable_invariant_load_metadata_; - bool xla_llvm_disable_expensive_passes_; - bool xla_test_all_output_layouts_; - bool xla_test_all_input_layouts_; - bool xla_hlo_graph_sharding_color_; - bool xla_hlo_tfgraph_device_scopes_; - bool xla_gpu_use_cudnn_batchnorm_; - bool xla_cpu_use_mkl_dnn_; - bool xla_cpu_enable_fast_math_; - bool xla_gpu_enable_fast_math_; - ::google::protobuf::int32 xla_gpu_max_kernel_unroll_factor_; - bool xla_gpu_crash_on_verification_failures_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ExecutionOptions : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ExecutionOptions) */ { - public: - ExecutionOptions(); - virtual ~ExecutionOptions(); - - ExecutionOptions(const ExecutionOptions& from); - - inline ExecutionOptions& operator=(const ExecutionOptions& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionOptions(ExecutionOptions&& from) noexcept - : ExecutionOptions() { - *this = ::std::move(from); - } - - inline ExecutionOptions& operator=(ExecutionOptions&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const ExecutionOptions& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionOptions* internal_default_instance() { - return reinterpret_cast( - &_ExecutionOptions_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(ExecutionOptions* other); - friend void swap(ExecutionOptions& a, ExecutionOptions& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionOptions* New() const final { - return CreateMaybeMessage(NULL); - } - - ExecutionOptions* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ExecutionOptions& from); - void MergeFrom(const ExecutionOptions& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ExecutionOptions* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .xla.DeviceHandle device_handles = 5; - int device_handles_size() const; - void clear_device_handles(); - static const int kDeviceHandlesFieldNumber = 5; - ::xla::DeviceHandle* mutable_device_handles(int index); - ::google::protobuf::RepeatedPtrField< ::xla::DeviceHandle >* - mutable_device_handles(); - const ::xla::DeviceHandle& device_handles(int index) const; - ::xla::DeviceHandle* add_device_handles(); - const ::google::protobuf::RepeatedPtrField< ::xla::DeviceHandle >& - device_handles() const; - - // .xla.Shape shape_with_output_layout = 2; - bool has_shape_with_output_layout() const; - void clear_shape_with_output_layout(); - static const int kShapeWithOutputLayoutFieldNumber = 2; - private: - const ::xla::Shape& _internal_shape_with_output_layout() const; - public: - const ::xla::Shape& shape_with_output_layout() const; - ::xla::Shape* release_shape_with_output_layout(); - ::xla::Shape* mutable_shape_with_output_layout(); - void set_allocated_shape_with_output_layout(::xla::Shape* shape_with_output_layout); - - // .xla.DebugOptions debug_options = 4; - bool has_debug_options() const; - void clear_debug_options(); - static const int kDebugOptionsFieldNumber = 4; - private: - const ::xla::DebugOptions& _internal_debug_options() const; - public: - const ::xla::DebugOptions& debug_options() const; - ::xla::DebugOptions* release_debug_options(); - ::xla::DebugOptions* mutable_debug_options(); - void set_allocated_debug_options(::xla::DebugOptions* debug_options); - - // uint64 seed = 3; - void clear_seed(); - static const int kSeedFieldNumber = 3; - ::google::protobuf::uint64 seed() const; - void set_seed(::google::protobuf::uint64 value); - - // @@protoc_insertion_point(class_scope:xla.ExecutionOptions) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::xla::DeviceHandle > device_handles_; - ::xla::Shape* shape_with_output_layout_; - ::xla::DebugOptions* debug_options_; - ::google::protobuf::uint64 seed_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GetDeviceHandlesRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.GetDeviceHandlesRequest) */ { - public: - GetDeviceHandlesRequest(); - virtual ~GetDeviceHandlesRequest(); - - GetDeviceHandlesRequest(const GetDeviceHandlesRequest& from); - - inline GetDeviceHandlesRequest& operator=(const GetDeviceHandlesRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetDeviceHandlesRequest(GetDeviceHandlesRequest&& from) noexcept - : GetDeviceHandlesRequest() { - *this = ::std::move(from); - } - - inline GetDeviceHandlesRequest& operator=(GetDeviceHandlesRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const GetDeviceHandlesRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetDeviceHandlesRequest* internal_default_instance() { - return reinterpret_cast( - &_GetDeviceHandlesRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void Swap(GetDeviceHandlesRequest* other); - friend void swap(GetDeviceHandlesRequest& a, GetDeviceHandlesRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetDeviceHandlesRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - GetDeviceHandlesRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GetDeviceHandlesRequest& from); - void MergeFrom(const GetDeviceHandlesRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetDeviceHandlesRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 device_count = 1; - void clear_device_count(); - static const int kDeviceCountFieldNumber = 1; - ::google::protobuf::int64 device_count() const; - void set_device_count(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.GetDeviceHandlesRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::int64 device_count_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GetDeviceHandlesResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.GetDeviceHandlesResponse) */ { - public: - GetDeviceHandlesResponse(); - virtual ~GetDeviceHandlesResponse(); - - GetDeviceHandlesResponse(const GetDeviceHandlesResponse& from); - - inline GetDeviceHandlesResponse& operator=(const GetDeviceHandlesResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetDeviceHandlesResponse(GetDeviceHandlesResponse&& from) noexcept - : GetDeviceHandlesResponse() { - *this = ::std::move(from); - } - - inline GetDeviceHandlesResponse& operator=(GetDeviceHandlesResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const GetDeviceHandlesResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetDeviceHandlesResponse* internal_default_instance() { - return reinterpret_cast( - &_GetDeviceHandlesResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void Swap(GetDeviceHandlesResponse* other); - friend void swap(GetDeviceHandlesResponse& a, GetDeviceHandlesResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetDeviceHandlesResponse* New() const final { - return CreateMaybeMessage(NULL); - } - - GetDeviceHandlesResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GetDeviceHandlesResponse& from); - void MergeFrom(const GetDeviceHandlesResponse& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetDeviceHandlesResponse* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .xla.DeviceHandle device_handles = 1; - int device_handles_size() const; - void clear_device_handles(); - static const int kDeviceHandlesFieldNumber = 1; - ::xla::DeviceHandle* mutable_device_handles(int index); - ::google::protobuf::RepeatedPtrField< ::xla::DeviceHandle >* - mutable_device_handles(); - const ::xla::DeviceHandle& device_handles(int index) const; - ::xla::DeviceHandle* add_device_handles(); - const ::google::protobuf::RepeatedPtrField< ::xla::DeviceHandle >& - device_handles() const; - - // @@protoc_insertion_point(class_scope:xla.GetDeviceHandlesResponse) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::xla::DeviceHandle > device_handles_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class TransferToClientRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.TransferToClientRequest) */ { - public: - TransferToClientRequest(); - virtual ~TransferToClientRequest(); - - TransferToClientRequest(const TransferToClientRequest& from); - - inline TransferToClientRequest& operator=(const TransferToClientRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TransferToClientRequest(TransferToClientRequest&& from) noexcept - : TransferToClientRequest() { - *this = ::std::move(from); - } - - inline TransferToClientRequest& operator=(TransferToClientRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const TransferToClientRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TransferToClientRequest* internal_default_instance() { - return reinterpret_cast( - &_TransferToClientRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void Swap(TransferToClientRequest* other); - friend void swap(TransferToClientRequest& a, TransferToClientRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TransferToClientRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - TransferToClientRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TransferToClientRequest& from); - void MergeFrom(const TransferToClientRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TransferToClientRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.GlobalDataHandle data = 1; - bool has_data() const; - void clear_data(); - static const int kDataFieldNumber = 1; - private: - const ::xla::GlobalDataHandle& _internal_data() const; - public: - const ::xla::GlobalDataHandle& data() const; - ::xla::GlobalDataHandle* release_data(); - ::xla::GlobalDataHandle* mutable_data(); - void set_allocated_data(::xla::GlobalDataHandle* data); - - // .xla.Shape shape_with_layout = 2; - bool has_shape_with_layout() const; - void clear_shape_with_layout(); - static const int kShapeWithLayoutFieldNumber = 2; - private: - const ::xla::Shape& _internal_shape_with_layout() const; - public: - const ::xla::Shape& shape_with_layout() const; - ::xla::Shape* release_shape_with_layout(); - ::xla::Shape* mutable_shape_with_layout(); - void set_allocated_shape_with_layout(::xla::Shape* shape_with_layout); - - // @@protoc_insertion_point(class_scope:xla.TransferToClientRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::GlobalDataHandle* data_; - ::xla::Shape* shape_with_layout_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class TransferToClientResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.TransferToClientResponse) */ { - public: - TransferToClientResponse(); - virtual ~TransferToClientResponse(); - - TransferToClientResponse(const TransferToClientResponse& from); - - inline TransferToClientResponse& operator=(const TransferToClientResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TransferToClientResponse(TransferToClientResponse&& from) noexcept - : TransferToClientResponse() { - *this = ::std::move(from); - } - - inline TransferToClientResponse& operator=(TransferToClientResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const TransferToClientResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TransferToClientResponse* internal_default_instance() { - return reinterpret_cast( - &_TransferToClientResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void Swap(TransferToClientResponse* other); - friend void swap(TransferToClientResponse& a, TransferToClientResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TransferToClientResponse* New() const final { - return CreateMaybeMessage(NULL); - } - - TransferToClientResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TransferToClientResponse& from); - void MergeFrom(const TransferToClientResponse& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TransferToClientResponse* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.LiteralProto literal = 1; - bool has_literal() const; - void clear_literal(); - static const int kLiteralFieldNumber = 1; - private: - const ::xla::LiteralProto& _internal_literal() const; - public: - const ::xla::LiteralProto& literal() const; - ::xla::LiteralProto* release_literal(); - ::xla::LiteralProto* mutable_literal(); - void set_allocated_literal(::xla::LiteralProto* literal); - - // @@protoc_insertion_point(class_scope:xla.TransferToClientResponse) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::LiteralProto* literal_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class TransferToServerRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.TransferToServerRequest) */ { - public: - TransferToServerRequest(); - virtual ~TransferToServerRequest(); - - TransferToServerRequest(const TransferToServerRequest& from); - - inline TransferToServerRequest& operator=(const TransferToServerRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TransferToServerRequest(TransferToServerRequest&& from) noexcept - : TransferToServerRequest() { - *this = ::std::move(from); - } - - inline TransferToServerRequest& operator=(TransferToServerRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const TransferToServerRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TransferToServerRequest* internal_default_instance() { - return reinterpret_cast( - &_TransferToServerRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void Swap(TransferToServerRequest* other); - friend void swap(TransferToServerRequest& a, TransferToServerRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TransferToServerRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - TransferToServerRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TransferToServerRequest& from); - void MergeFrom(const TransferToServerRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TransferToServerRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.LiteralProto literal = 1; - bool has_literal() const; - void clear_literal(); - static const int kLiteralFieldNumber = 1; - private: - const ::xla::LiteralProto& _internal_literal() const; - public: - const ::xla::LiteralProto& literal() const; - ::xla::LiteralProto* release_literal(); - ::xla::LiteralProto* mutable_literal(); - void set_allocated_literal(::xla::LiteralProto* literal); - - // .xla.DeviceHandle device_handle = 2; - bool has_device_handle() const; - void clear_device_handle(); - static const int kDeviceHandleFieldNumber = 2; - private: - const ::xla::DeviceHandle& _internal_device_handle() const; - public: - const ::xla::DeviceHandle& device_handle() const; - ::xla::DeviceHandle* release_device_handle(); - ::xla::DeviceHandle* mutable_device_handle(); - void set_allocated_device_handle(::xla::DeviceHandle* device_handle); - - // @@protoc_insertion_point(class_scope:xla.TransferToServerRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::LiteralProto* literal_; - ::xla::DeviceHandle* device_handle_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class TransferToServerResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.TransferToServerResponse) */ { - public: - TransferToServerResponse(); - virtual ~TransferToServerResponse(); - - TransferToServerResponse(const TransferToServerResponse& from); - - inline TransferToServerResponse& operator=(const TransferToServerResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TransferToServerResponse(TransferToServerResponse&& from) noexcept - : TransferToServerResponse() { - *this = ::std::move(from); - } - - inline TransferToServerResponse& operator=(TransferToServerResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const TransferToServerResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TransferToServerResponse* internal_default_instance() { - return reinterpret_cast( - &_TransferToServerResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void Swap(TransferToServerResponse* other); - friend void swap(TransferToServerResponse& a, TransferToServerResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TransferToServerResponse* New() const final { - return CreateMaybeMessage(NULL); - } - - TransferToServerResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TransferToServerResponse& from); - void MergeFrom(const TransferToServerResponse& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TransferToServerResponse* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.GlobalDataHandle data = 1; - bool has_data() const; - void clear_data(); - static const int kDataFieldNumber = 1; - private: - const ::xla::GlobalDataHandle& _internal_data() const; - public: - const ::xla::GlobalDataHandle& data() const; - ::xla::GlobalDataHandle* release_data(); - ::xla::GlobalDataHandle* mutable_data(); - void set_allocated_data(::xla::GlobalDataHandle* data); - - // @@protoc_insertion_point(class_scope:xla.TransferToServerResponse) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::GlobalDataHandle* data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class TransferToInfeedRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.TransferToInfeedRequest) */ { - public: - TransferToInfeedRequest(); - virtual ~TransferToInfeedRequest(); - - TransferToInfeedRequest(const TransferToInfeedRequest& from); - - inline TransferToInfeedRequest& operator=(const TransferToInfeedRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TransferToInfeedRequest(TransferToInfeedRequest&& from) noexcept - : TransferToInfeedRequest() { - *this = ::std::move(from); - } - - inline TransferToInfeedRequest& operator=(TransferToInfeedRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const TransferToInfeedRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TransferToInfeedRequest* internal_default_instance() { - return reinterpret_cast( - &_TransferToInfeedRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - void Swap(TransferToInfeedRequest* other); - friend void swap(TransferToInfeedRequest& a, TransferToInfeedRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TransferToInfeedRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - TransferToInfeedRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TransferToInfeedRequest& from); - void MergeFrom(const TransferToInfeedRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TransferToInfeedRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.LiteralProto literal = 1; - bool has_literal() const; - void clear_literal(); - static const int kLiteralFieldNumber = 1; - private: - const ::xla::LiteralProto& _internal_literal() const; - public: - const ::xla::LiteralProto& literal() const; - ::xla::LiteralProto* release_literal(); - ::xla::LiteralProto* mutable_literal(); - void set_allocated_literal(::xla::LiteralProto* literal); - - // .xla.DeviceHandle device_handle = 3; - bool has_device_handle() const; - void clear_device_handle(); - static const int kDeviceHandleFieldNumber = 3; - private: - const ::xla::DeviceHandle& _internal_device_handle() const; - public: - const ::xla::DeviceHandle& device_handle() const; - ::xla::DeviceHandle* release_device_handle(); - ::xla::DeviceHandle* mutable_device_handle(); - void set_allocated_device_handle(::xla::DeviceHandle* device_handle); - - // int64 replica_id = 2; - void clear_replica_id(); - static const int kReplicaIdFieldNumber = 2; - ::google::protobuf::int64 replica_id() const; - void set_replica_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.TransferToInfeedRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::LiteralProto* literal_; - ::xla::DeviceHandle* device_handle_; - ::google::protobuf::int64 replica_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class TransferToInfeedResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.TransferToInfeedResponse) */ { - public: - TransferToInfeedResponse(); - virtual ~TransferToInfeedResponse(); - - TransferToInfeedResponse(const TransferToInfeedResponse& from); - - inline TransferToInfeedResponse& operator=(const TransferToInfeedResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TransferToInfeedResponse(TransferToInfeedResponse&& from) noexcept - : TransferToInfeedResponse() { - *this = ::std::move(from); - } - - inline TransferToInfeedResponse& operator=(TransferToInfeedResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const TransferToInfeedResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TransferToInfeedResponse* internal_default_instance() { - return reinterpret_cast( - &_TransferToInfeedResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void Swap(TransferToInfeedResponse* other); - friend void swap(TransferToInfeedResponse& a, TransferToInfeedResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TransferToInfeedResponse* New() const final { - return CreateMaybeMessage(NULL); - } - - TransferToInfeedResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TransferToInfeedResponse& from); - void MergeFrom(const TransferToInfeedResponse& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TransferToInfeedResponse* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:xla.TransferToInfeedResponse) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class TransferFromOutfeedRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.TransferFromOutfeedRequest) */ { - public: - TransferFromOutfeedRequest(); - virtual ~TransferFromOutfeedRequest(); - - TransferFromOutfeedRequest(const TransferFromOutfeedRequest& from); - - inline TransferFromOutfeedRequest& operator=(const TransferFromOutfeedRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TransferFromOutfeedRequest(TransferFromOutfeedRequest&& from) noexcept - : TransferFromOutfeedRequest() { - *this = ::std::move(from); - } - - inline TransferFromOutfeedRequest& operator=(TransferFromOutfeedRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const TransferFromOutfeedRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TransferFromOutfeedRequest* internal_default_instance() { - return reinterpret_cast( - &_TransferFromOutfeedRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - void Swap(TransferFromOutfeedRequest* other); - friend void swap(TransferFromOutfeedRequest& a, TransferFromOutfeedRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TransferFromOutfeedRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - TransferFromOutfeedRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TransferFromOutfeedRequest& from); - void MergeFrom(const TransferFromOutfeedRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TransferFromOutfeedRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.Shape shape_with_layout = 1; - bool has_shape_with_layout() const; - void clear_shape_with_layout(); - static const int kShapeWithLayoutFieldNumber = 1; - private: - const ::xla::Shape& _internal_shape_with_layout() const; - public: - const ::xla::Shape& shape_with_layout() const; - ::xla::Shape* release_shape_with_layout(); - ::xla::Shape* mutable_shape_with_layout(); - void set_allocated_shape_with_layout(::xla::Shape* shape_with_layout); - - // .xla.DeviceHandle device_handle = 3; - bool has_device_handle() const; - void clear_device_handle(); - static const int kDeviceHandleFieldNumber = 3; - private: - const ::xla::DeviceHandle& _internal_device_handle() const; - public: - const ::xla::DeviceHandle& device_handle() const; - ::xla::DeviceHandle* release_device_handle(); - ::xla::DeviceHandle* mutable_device_handle(); - void set_allocated_device_handle(::xla::DeviceHandle* device_handle); - - // int64 replica_id = 2; - void clear_replica_id(); - static const int kReplicaIdFieldNumber = 2; - ::google::protobuf::int64 replica_id() const; - void set_replica_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.TransferFromOutfeedRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::Shape* shape_with_layout_; - ::xla::DeviceHandle* device_handle_; - ::google::protobuf::int64 replica_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class TransferFromOutfeedResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.TransferFromOutfeedResponse) */ { - public: - TransferFromOutfeedResponse(); - virtual ~TransferFromOutfeedResponse(); - - TransferFromOutfeedResponse(const TransferFromOutfeedResponse& from); - - inline TransferFromOutfeedResponse& operator=(const TransferFromOutfeedResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TransferFromOutfeedResponse(TransferFromOutfeedResponse&& from) noexcept - : TransferFromOutfeedResponse() { - *this = ::std::move(from); - } - - inline TransferFromOutfeedResponse& operator=(TransferFromOutfeedResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const TransferFromOutfeedResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TransferFromOutfeedResponse* internal_default_instance() { - return reinterpret_cast( - &_TransferFromOutfeedResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - void Swap(TransferFromOutfeedResponse* other); - friend void swap(TransferFromOutfeedResponse& a, TransferFromOutfeedResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TransferFromOutfeedResponse* New() const final { - return CreateMaybeMessage(NULL); - } - - TransferFromOutfeedResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TransferFromOutfeedResponse& from); - void MergeFrom(const TransferFromOutfeedResponse& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TransferFromOutfeedResponse* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.LiteralProto literal = 1; - bool has_literal() const; - void clear_literal(); - static const int kLiteralFieldNumber = 1; - private: - const ::xla::LiteralProto& _internal_literal() const; - public: - const ::xla::LiteralProto& literal() const; - ::xla::LiteralProto* release_literal(); - ::xla::LiteralProto* mutable_literal(); - void set_allocated_literal(::xla::LiteralProto* literal); - - // @@protoc_insertion_point(class_scope:xla.TransferFromOutfeedResponse) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::LiteralProto* literal_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ResetDeviceRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ResetDeviceRequest) */ { - public: - ResetDeviceRequest(); - virtual ~ResetDeviceRequest(); - - ResetDeviceRequest(const ResetDeviceRequest& from); - - inline ResetDeviceRequest& operator=(const ResetDeviceRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ResetDeviceRequest(ResetDeviceRequest&& from) noexcept - : ResetDeviceRequest() { - *this = ::std::move(from); - } - - inline ResetDeviceRequest& operator=(ResetDeviceRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const ResetDeviceRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ResetDeviceRequest* internal_default_instance() { - return reinterpret_cast( - &_ResetDeviceRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - void Swap(ResetDeviceRequest* other); - friend void swap(ResetDeviceRequest& a, ResetDeviceRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ResetDeviceRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - ResetDeviceRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ResetDeviceRequest& from); - void MergeFrom(const ResetDeviceRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ResetDeviceRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.DeviceHandle device_handle = 1; - bool has_device_handle() const; - void clear_device_handle(); - static const int kDeviceHandleFieldNumber = 1; - private: - const ::xla::DeviceHandle& _internal_device_handle() const; - public: - const ::xla::DeviceHandle& device_handle() const; - ::xla::DeviceHandle* release_device_handle(); - ::xla::DeviceHandle* mutable_device_handle(); - void set_allocated_device_handle(::xla::DeviceHandle* device_handle); - - // @@protoc_insertion_point(class_scope:xla.ResetDeviceRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::DeviceHandle* device_handle_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ResetDeviceResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ResetDeviceResponse) */ { - public: - ResetDeviceResponse(); - virtual ~ResetDeviceResponse(); - - ResetDeviceResponse(const ResetDeviceResponse& from); - - inline ResetDeviceResponse& operator=(const ResetDeviceResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ResetDeviceResponse(ResetDeviceResponse&& from) noexcept - : ResetDeviceResponse() { - *this = ::std::move(from); - } - - inline ResetDeviceResponse& operator=(ResetDeviceResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const ResetDeviceResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ResetDeviceResponse* internal_default_instance() { - return reinterpret_cast( - &_ResetDeviceResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - void Swap(ResetDeviceResponse* other); - friend void swap(ResetDeviceResponse& a, ResetDeviceResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ResetDeviceResponse* New() const final { - return CreateMaybeMessage(NULL); - } - - ResetDeviceResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ResetDeviceResponse& from); - void MergeFrom(const ResetDeviceResponse& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ResetDeviceResponse* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:xla.ResetDeviceResponse) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ComputationGraphStatsRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ComputationGraphStatsRequest) */ { - public: - ComputationGraphStatsRequest(); - virtual ~ComputationGraphStatsRequest(); - - ComputationGraphStatsRequest(const ComputationGraphStatsRequest& from); - - inline ComputationGraphStatsRequest& operator=(const ComputationGraphStatsRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ComputationGraphStatsRequest(ComputationGraphStatsRequest&& from) noexcept - : ComputationGraphStatsRequest() { - *this = ::std::move(from); - } - - inline ComputationGraphStatsRequest& operator=(ComputationGraphStatsRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const ComputationGraphStatsRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ComputationGraphStatsRequest* internal_default_instance() { - return reinterpret_cast( - &_ComputationGraphStatsRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - void Swap(ComputationGraphStatsRequest* other); - friend void swap(ComputationGraphStatsRequest& a, ComputationGraphStatsRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ComputationGraphStatsRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - ComputationGraphStatsRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ComputationGraphStatsRequest& from); - void MergeFrom(const ComputationGraphStatsRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ComputationGraphStatsRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.HloModuleProto computation = 1; - bool has_computation() const; - void clear_computation(); - static const int kComputationFieldNumber = 1; - private: - const ::xla::HloModuleProto& _internal_computation() const; - public: - const ::xla::HloModuleProto& computation() const; - ::xla::HloModuleProto* release_computation(); - ::xla::HloModuleProto* mutable_computation(); - void set_allocated_computation(::xla::HloModuleProto* computation); - - // .xla.DebugOptions debug_options = 2; - bool has_debug_options() const; - void clear_debug_options(); - static const int kDebugOptionsFieldNumber = 2; - private: - const ::xla::DebugOptions& _internal_debug_options() const; - public: - const ::xla::DebugOptions& debug_options() const; - ::xla::DebugOptions* release_debug_options(); - ::xla::DebugOptions* mutable_debug_options(); - void set_allocated_debug_options(::xla::DebugOptions* debug_options); - - // @@protoc_insertion_point(class_scope:xla.ComputationGraphStatsRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::HloModuleProto* computation_; - ::xla::DebugOptions* debug_options_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ComputationStatsResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ComputationStatsResponse) */ { - public: - ComputationStatsResponse(); - virtual ~ComputationStatsResponse(); - - ComputationStatsResponse(const ComputationStatsResponse& from); - - inline ComputationStatsResponse& operator=(const ComputationStatsResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ComputationStatsResponse(ComputationStatsResponse&& from) noexcept - : ComputationStatsResponse() { - *this = ::std::move(from); - } - - inline ComputationStatsResponse& operator=(ComputationStatsResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const ComputationStatsResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ComputationStatsResponse* internal_default_instance() { - return reinterpret_cast( - &_ComputationStatsResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - void Swap(ComputationStatsResponse* other); - friend void swap(ComputationStatsResponse& a, ComputationStatsResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ComputationStatsResponse* New() const final { - return CreateMaybeMessage(NULL); - } - - ComputationStatsResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ComputationStatsResponse& from); - void MergeFrom(const ComputationStatsResponse& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ComputationStatsResponse* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.ComputationStats stats = 1; - bool has_stats() const; - void clear_stats(); - static const int kStatsFieldNumber = 1; - private: - const ::xla::ComputationStats& _internal_stats() const; - public: - const ::xla::ComputationStats& stats() const; - ::xla::ComputationStats* release_stats(); - ::xla::ComputationStats* mutable_stats(); - void set_allocated_stats(::xla::ComputationStats* stats); - - // @@protoc_insertion_point(class_scope:xla.ComputationStatsResponse) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::ComputationStats* stats_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class CreateChannelHandleRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.CreateChannelHandleRequest) */ { - public: - CreateChannelHandleRequest(); - virtual ~CreateChannelHandleRequest(); - - CreateChannelHandleRequest(const CreateChannelHandleRequest& from); - - inline CreateChannelHandleRequest& operator=(const CreateChannelHandleRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CreateChannelHandleRequest(CreateChannelHandleRequest&& from) noexcept - : CreateChannelHandleRequest() { - *this = ::std::move(from); - } - - inline CreateChannelHandleRequest& operator=(CreateChannelHandleRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const CreateChannelHandleRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateChannelHandleRequest* internal_default_instance() { - return reinterpret_cast( - &_CreateChannelHandleRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - void Swap(CreateChannelHandleRequest* other); - friend void swap(CreateChannelHandleRequest& a, CreateChannelHandleRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CreateChannelHandleRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - CreateChannelHandleRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const CreateChannelHandleRequest& from); - void MergeFrom(const CreateChannelHandleRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateChannelHandleRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.ChannelHandle.ChannelType channel_type = 1; - void clear_channel_type(); - static const int kChannelTypeFieldNumber = 1; - ::xla::ChannelHandle_ChannelType channel_type() const; - void set_channel_type(::xla::ChannelHandle_ChannelType value); - - // @@protoc_insertion_point(class_scope:xla.CreateChannelHandleRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - int channel_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class CreateChannelHandleResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.CreateChannelHandleResponse) */ { - public: - CreateChannelHandleResponse(); - virtual ~CreateChannelHandleResponse(); - - CreateChannelHandleResponse(const CreateChannelHandleResponse& from); - - inline CreateChannelHandleResponse& operator=(const CreateChannelHandleResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CreateChannelHandleResponse(CreateChannelHandleResponse&& from) noexcept - : CreateChannelHandleResponse() { - *this = ::std::move(from); - } - - inline CreateChannelHandleResponse& operator=(CreateChannelHandleResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const CreateChannelHandleResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CreateChannelHandleResponse* internal_default_instance() { - return reinterpret_cast( - &_CreateChannelHandleResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - void Swap(CreateChannelHandleResponse* other); - friend void swap(CreateChannelHandleResponse& a, CreateChannelHandleResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CreateChannelHandleResponse* New() const final { - return CreateMaybeMessage(NULL); - } - - CreateChannelHandleResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const CreateChannelHandleResponse& from); - void MergeFrom(const CreateChannelHandleResponse& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CreateChannelHandleResponse* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.ChannelHandle channel = 1; - bool has_channel() const; - void clear_channel(); - static const int kChannelFieldNumber = 1; - private: - const ::xla::ChannelHandle& _internal_channel() const; - public: - const ::xla::ChannelHandle& channel() const; - ::xla::ChannelHandle* release_channel(); - ::xla::ChannelHandle* mutable_channel(); - void set_allocated_channel(::xla::ChannelHandle* channel); - - // @@protoc_insertion_point(class_scope:xla.CreateChannelHandleResponse) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::ChannelHandle* channel_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class UnregisterRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.UnregisterRequest) */ { - public: - UnregisterRequest(); - virtual ~UnregisterRequest(); - - UnregisterRequest(const UnregisterRequest& from); - - inline UnregisterRequest& operator=(const UnregisterRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - UnregisterRequest(UnregisterRequest&& from) noexcept - : UnregisterRequest() { - *this = ::std::move(from); - } - - inline UnregisterRequest& operator=(UnregisterRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const UnregisterRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const UnregisterRequest* internal_default_instance() { - return reinterpret_cast( - &_UnregisterRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - void Swap(UnregisterRequest* other); - friend void swap(UnregisterRequest& a, UnregisterRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline UnregisterRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - UnregisterRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const UnregisterRequest& from); - void MergeFrom(const UnregisterRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(UnregisterRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.GlobalDataHandle data = 1; - bool has_data() const; - void clear_data(); - static const int kDataFieldNumber = 1; - private: - const ::xla::GlobalDataHandle& _internal_data() const; - public: - const ::xla::GlobalDataHandle& data() const; - ::xla::GlobalDataHandle* release_data(); - ::xla::GlobalDataHandle* mutable_data(); - void set_allocated_data(::xla::GlobalDataHandle* data); - - // @@protoc_insertion_point(class_scope:xla.UnregisterRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::GlobalDataHandle* data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class UnregisterResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.UnregisterResponse) */ { - public: - UnregisterResponse(); - virtual ~UnregisterResponse(); - - UnregisterResponse(const UnregisterResponse& from); - - inline UnregisterResponse& operator=(const UnregisterResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - UnregisterResponse(UnregisterResponse&& from) noexcept - : UnregisterResponse() { - *this = ::std::move(from); - } - - inline UnregisterResponse& operator=(UnregisterResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const UnregisterResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const UnregisterResponse* internal_default_instance() { - return reinterpret_cast( - &_UnregisterResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - void Swap(UnregisterResponse* other); - friend void swap(UnregisterResponse& a, UnregisterResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline UnregisterResponse* New() const final { - return CreateMaybeMessage(NULL); - } - - UnregisterResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const UnregisterResponse& from); - void MergeFrom(const UnregisterResponse& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(UnregisterResponse* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:xla.UnregisterResponse) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ExecuteGraphRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ExecuteGraphRequest) */ { - public: - ExecuteGraphRequest(); - virtual ~ExecuteGraphRequest(); - - ExecuteGraphRequest(const ExecuteGraphRequest& from); - - inline ExecuteGraphRequest& operator=(const ExecuteGraphRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecuteGraphRequest(ExecuteGraphRequest&& from) noexcept - : ExecuteGraphRequest() { - *this = ::std::move(from); - } - - inline ExecuteGraphRequest& operator=(ExecuteGraphRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const ExecuteGraphRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecuteGraphRequest* internal_default_instance() { - return reinterpret_cast( - &_ExecuteGraphRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - void Swap(ExecuteGraphRequest* other); - friend void swap(ExecuteGraphRequest& a, ExecuteGraphRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecuteGraphRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - ExecuteGraphRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ExecuteGraphRequest& from); - void MergeFrom(const ExecuteGraphRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ExecuteGraphRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .xla.GlobalDataHandle arguments = 2; - int arguments_size() const; - void clear_arguments(); - static const int kArgumentsFieldNumber = 2; - ::xla::GlobalDataHandle* mutable_arguments(int index); - ::google::protobuf::RepeatedPtrField< ::xla::GlobalDataHandle >* - mutable_arguments(); - const ::xla::GlobalDataHandle& arguments(int index) const; - ::xla::GlobalDataHandle* add_arguments(); - const ::google::protobuf::RepeatedPtrField< ::xla::GlobalDataHandle >& - arguments() const; - - // .xla.HloModuleProto computation = 1; - bool has_computation() const; - void clear_computation(); - static const int kComputationFieldNumber = 1; - private: - const ::xla::HloModuleProto& _internal_computation() const; - public: - const ::xla::HloModuleProto& computation() const; - ::xla::HloModuleProto* release_computation(); - ::xla::HloModuleProto* mutable_computation(); - void set_allocated_computation(::xla::HloModuleProto* computation); - - // .xla.ExecutionOptions execution_options = 3; - bool has_execution_options() const; - void clear_execution_options(); - static const int kExecutionOptionsFieldNumber = 3; - private: - const ::xla::ExecutionOptions& _internal_execution_options() const; - public: - const ::xla::ExecutionOptions& execution_options() const; - ::xla::ExecutionOptions* release_execution_options(); - ::xla::ExecutionOptions* mutable_execution_options(); - void set_allocated_execution_options(::xla::ExecutionOptions* execution_options); - - // @@protoc_insertion_point(class_scope:xla.ExecuteGraphRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::xla::GlobalDataHandle > arguments_; - ::xla::HloModuleProto* computation_; - ::xla::ExecutionOptions* execution_options_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ExecuteGraphParallelRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ExecuteGraphParallelRequest) */ { - public: - ExecuteGraphParallelRequest(); - virtual ~ExecuteGraphParallelRequest(); - - ExecuteGraphParallelRequest(const ExecuteGraphParallelRequest& from); - - inline ExecuteGraphParallelRequest& operator=(const ExecuteGraphParallelRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecuteGraphParallelRequest(ExecuteGraphParallelRequest&& from) noexcept - : ExecuteGraphParallelRequest() { - *this = ::std::move(from); - } - - inline ExecuteGraphParallelRequest& operator=(ExecuteGraphParallelRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const ExecuteGraphParallelRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecuteGraphParallelRequest* internal_default_instance() { - return reinterpret_cast( - &_ExecuteGraphParallelRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - void Swap(ExecuteGraphParallelRequest* other); - friend void swap(ExecuteGraphParallelRequest& a, ExecuteGraphParallelRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecuteGraphParallelRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - ExecuteGraphParallelRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ExecuteGraphParallelRequest& from); - void MergeFrom(const ExecuteGraphParallelRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ExecuteGraphParallelRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .xla.ExecuteGraphRequest requests = 1; - int requests_size() const; - void clear_requests(); - static const int kRequestsFieldNumber = 1; - ::xla::ExecuteGraphRequest* mutable_requests(int index); - ::google::protobuf::RepeatedPtrField< ::xla::ExecuteGraphRequest >* - mutable_requests(); - const ::xla::ExecuteGraphRequest& requests(int index) const; - ::xla::ExecuteGraphRequest* add_requests(); - const ::google::protobuf::RepeatedPtrField< ::xla::ExecuteGraphRequest >& - requests() const; - - // @@protoc_insertion_point(class_scope:xla.ExecuteGraphParallelRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::xla::ExecuteGraphRequest > requests_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ExecuteResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ExecuteResponse) */ { - public: - ExecuteResponse(); - virtual ~ExecuteResponse(); - - ExecuteResponse(const ExecuteResponse& from); - - inline ExecuteResponse& operator=(const ExecuteResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecuteResponse(ExecuteResponse&& from) noexcept - : ExecuteResponse() { - *this = ::std::move(from); - } - - inline ExecuteResponse& operator=(ExecuteResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const ExecuteResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecuteResponse* internal_default_instance() { - return reinterpret_cast( - &_ExecuteResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - void Swap(ExecuteResponse* other); - friend void swap(ExecuteResponse& a, ExecuteResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecuteResponse* New() const final { - return CreateMaybeMessage(NULL); - } - - ExecuteResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ExecuteResponse& from); - void MergeFrom(const ExecuteResponse& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ExecuteResponse* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.GlobalDataHandle output = 1; - bool has_output() const; - void clear_output(); - static const int kOutputFieldNumber = 1; - private: - const ::xla::GlobalDataHandle& _internal_output() const; - public: - const ::xla::GlobalDataHandle& output() const; - ::xla::GlobalDataHandle* release_output(); - ::xla::GlobalDataHandle* mutable_output(); - void set_allocated_output(::xla::GlobalDataHandle* output); - - // .xla.ExecutionProfile profile = 2; - bool has_profile() const; - void clear_profile(); - static const int kProfileFieldNumber = 2; - private: - const ::xla::ExecutionProfile& _internal_profile() const; - public: - const ::xla::ExecutionProfile& profile() const; - ::xla::ExecutionProfile* release_profile(); - ::xla::ExecutionProfile* mutable_profile(); - void set_allocated_profile(::xla::ExecutionProfile* profile); - - // @@protoc_insertion_point(class_scope:xla.ExecuteResponse) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::GlobalDataHandle* output_; - ::xla::ExecutionProfile* profile_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ExecuteParallelResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ExecuteParallelResponse) */ { - public: - ExecuteParallelResponse(); - virtual ~ExecuteParallelResponse(); - - ExecuteParallelResponse(const ExecuteParallelResponse& from); - - inline ExecuteParallelResponse& operator=(const ExecuteParallelResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecuteParallelResponse(ExecuteParallelResponse&& from) noexcept - : ExecuteParallelResponse() { - *this = ::std::move(from); - } - - inline ExecuteParallelResponse& operator=(ExecuteParallelResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const ExecuteParallelResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecuteParallelResponse* internal_default_instance() { - return reinterpret_cast( - &_ExecuteParallelResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 25; - - void Swap(ExecuteParallelResponse* other); - friend void swap(ExecuteParallelResponse& a, ExecuteParallelResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecuteParallelResponse* New() const final { - return CreateMaybeMessage(NULL); - } - - ExecuteParallelResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ExecuteParallelResponse& from); - void MergeFrom(const ExecuteParallelResponse& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ExecuteParallelResponse* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .xla.ExecuteResponse responses = 1; - int responses_size() const; - void clear_responses(); - static const int kResponsesFieldNumber = 1; - ::xla::ExecuteResponse* mutable_responses(int index); - ::google::protobuf::RepeatedPtrField< ::xla::ExecuteResponse >* - mutable_responses(); - const ::xla::ExecuteResponse& responses(int index) const; - ::xla::ExecuteResponse* add_responses(); - const ::google::protobuf::RepeatedPtrField< ::xla::ExecuteResponse >& - responses() const; - - // @@protoc_insertion_point(class_scope:xla.ExecuteParallelResponse) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::xla::ExecuteResponse > responses_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class WaitForExecutionRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.WaitForExecutionRequest) */ { - public: - WaitForExecutionRequest(); - virtual ~WaitForExecutionRequest(); - - WaitForExecutionRequest(const WaitForExecutionRequest& from); - - inline WaitForExecutionRequest& operator=(const WaitForExecutionRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WaitForExecutionRequest(WaitForExecutionRequest&& from) noexcept - : WaitForExecutionRequest() { - *this = ::std::move(from); - } - - inline WaitForExecutionRequest& operator=(WaitForExecutionRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const WaitForExecutionRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WaitForExecutionRequest* internal_default_instance() { - return reinterpret_cast( - &_WaitForExecutionRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 26; - - void Swap(WaitForExecutionRequest* other); - friend void swap(WaitForExecutionRequest& a, WaitForExecutionRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WaitForExecutionRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - WaitForExecutionRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const WaitForExecutionRequest& from); - void MergeFrom(const WaitForExecutionRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(WaitForExecutionRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.ExecutionHandle execution = 1; - bool has_execution() const; - void clear_execution(); - static const int kExecutionFieldNumber = 1; - private: - const ::xla::ExecutionHandle& _internal_execution() const; - public: - const ::xla::ExecutionHandle& execution() const; - ::xla::ExecutionHandle* release_execution(); - ::xla::ExecutionHandle* mutable_execution(); - void set_allocated_execution(::xla::ExecutionHandle* execution); - - // @@protoc_insertion_point(class_scope:xla.WaitForExecutionRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::ExecutionHandle* execution_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class WaitForExecutionResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.WaitForExecutionResponse) */ { - public: - WaitForExecutionResponse(); - virtual ~WaitForExecutionResponse(); - - WaitForExecutionResponse(const WaitForExecutionResponse& from); - - inline WaitForExecutionResponse& operator=(const WaitForExecutionResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WaitForExecutionResponse(WaitForExecutionResponse&& from) noexcept - : WaitForExecutionResponse() { - *this = ::std::move(from); - } - - inline WaitForExecutionResponse& operator=(WaitForExecutionResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const WaitForExecutionResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WaitForExecutionResponse* internal_default_instance() { - return reinterpret_cast( - &_WaitForExecutionResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 27; - - void Swap(WaitForExecutionResponse* other); - friend void swap(WaitForExecutionResponse& a, WaitForExecutionResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WaitForExecutionResponse* New() const final { - return CreateMaybeMessage(NULL); - } - - WaitForExecutionResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const WaitForExecutionResponse& from); - void MergeFrom(const WaitForExecutionResponse& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(WaitForExecutionResponse* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.GlobalDataHandle output = 1; - bool has_output() const; - void clear_output(); - static const int kOutputFieldNumber = 1; - private: - const ::xla::GlobalDataHandle& _internal_output() const; - public: - const ::xla::GlobalDataHandle& output() const; - ::xla::GlobalDataHandle* release_output(); - ::xla::GlobalDataHandle* mutable_output(); - void set_allocated_output(::xla::GlobalDataHandle* output); - - // .xla.ExecutionProfile profile = 2; - bool has_profile() const; - void clear_profile(); - static const int kProfileFieldNumber = 2; - private: - const ::xla::ExecutionProfile& _internal_profile() const; - public: - const ::xla::ExecutionProfile& profile() const; - ::xla::ExecutionProfile* release_profile(); - ::xla::ExecutionProfile* mutable_profile(); - void set_allocated_profile(::xla::ExecutionProfile* profile); - - // @@protoc_insertion_point(class_scope:xla.WaitForExecutionResponse) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::GlobalDataHandle* output_; - ::xla::ExecutionProfile* profile_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ComputeConstantGraphRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ComputeConstantGraphRequest) */ { - public: - ComputeConstantGraphRequest(); - virtual ~ComputeConstantGraphRequest(); - - ComputeConstantGraphRequest(const ComputeConstantGraphRequest& from); - - inline ComputeConstantGraphRequest& operator=(const ComputeConstantGraphRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ComputeConstantGraphRequest(ComputeConstantGraphRequest&& from) noexcept - : ComputeConstantGraphRequest() { - *this = ::std::move(from); - } - - inline ComputeConstantGraphRequest& operator=(ComputeConstantGraphRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const ComputeConstantGraphRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ComputeConstantGraphRequest* internal_default_instance() { - return reinterpret_cast( - &_ComputeConstantGraphRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 28; - - void Swap(ComputeConstantGraphRequest* other); - friend void swap(ComputeConstantGraphRequest& a, ComputeConstantGraphRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ComputeConstantGraphRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - ComputeConstantGraphRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ComputeConstantGraphRequest& from); - void MergeFrom(const ComputeConstantGraphRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ComputeConstantGraphRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.HloModuleProto computation = 1; - bool has_computation() const; - void clear_computation(); - static const int kComputationFieldNumber = 1; - private: - const ::xla::HloModuleProto& _internal_computation() const; - public: - const ::xla::HloModuleProto& computation() const; - ::xla::HloModuleProto* release_computation(); - ::xla::HloModuleProto* mutable_computation(); - void set_allocated_computation(::xla::HloModuleProto* computation); - - // .xla.Layout output_layout = 2; - bool has_output_layout() const; - void clear_output_layout(); - static const int kOutputLayoutFieldNumber = 2; - private: - const ::xla::Layout& _internal_output_layout() const; - public: - const ::xla::Layout& output_layout() const; - ::xla::Layout* release_output_layout(); - ::xla::Layout* mutable_output_layout(); - void set_allocated_output_layout(::xla::Layout* output_layout); - - // @@protoc_insertion_point(class_scope:xla.ComputeConstantGraphRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::HloModuleProto* computation_; - ::xla::Layout* output_layout_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ComputeConstantResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ComputeConstantResponse) */ { - public: - ComputeConstantResponse(); - virtual ~ComputeConstantResponse(); - - ComputeConstantResponse(const ComputeConstantResponse& from); - - inline ComputeConstantResponse& operator=(const ComputeConstantResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ComputeConstantResponse(ComputeConstantResponse&& from) noexcept - : ComputeConstantResponse() { - *this = ::std::move(from); - } - - inline ComputeConstantResponse& operator=(ComputeConstantResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const ComputeConstantResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ComputeConstantResponse* internal_default_instance() { - return reinterpret_cast( - &_ComputeConstantResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 29; - - void Swap(ComputeConstantResponse* other); - friend void swap(ComputeConstantResponse& a, ComputeConstantResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ComputeConstantResponse* New() const final { - return CreateMaybeMessage(NULL); - } - - ComputeConstantResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ComputeConstantResponse& from); - void MergeFrom(const ComputeConstantResponse& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ComputeConstantResponse* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.LiteralProto literal = 1; - bool has_literal() const; - void clear_literal(); - static const int kLiteralFieldNumber = 1; - private: - const ::xla::LiteralProto& _internal_literal() const; - public: - const ::xla::LiteralProto& literal() const; - ::xla::LiteralProto* release_literal(); - ::xla::LiteralProto* mutable_literal(); - void set_allocated_literal(::xla::LiteralProto* literal); - - // @@protoc_insertion_point(class_scope:xla.ComputeConstantResponse) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::LiteralProto* literal_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class DeconstructTupleRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.DeconstructTupleRequest) */ { - public: - DeconstructTupleRequest(); - virtual ~DeconstructTupleRequest(); - - DeconstructTupleRequest(const DeconstructTupleRequest& from); - - inline DeconstructTupleRequest& operator=(const DeconstructTupleRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DeconstructTupleRequest(DeconstructTupleRequest&& from) noexcept - : DeconstructTupleRequest() { - *this = ::std::move(from); - } - - inline DeconstructTupleRequest& operator=(DeconstructTupleRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const DeconstructTupleRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DeconstructTupleRequest* internal_default_instance() { - return reinterpret_cast( - &_DeconstructTupleRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 30; - - void Swap(DeconstructTupleRequest* other); - friend void swap(DeconstructTupleRequest& a, DeconstructTupleRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DeconstructTupleRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - DeconstructTupleRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const DeconstructTupleRequest& from); - void MergeFrom(const DeconstructTupleRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DeconstructTupleRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.GlobalDataHandle tuple_handle = 2; - bool has_tuple_handle() const; - void clear_tuple_handle(); - static const int kTupleHandleFieldNumber = 2; - private: - const ::xla::GlobalDataHandle& _internal_tuple_handle() const; - public: - const ::xla::GlobalDataHandle& tuple_handle() const; - ::xla::GlobalDataHandle* release_tuple_handle(); - ::xla::GlobalDataHandle* mutable_tuple_handle(); - void set_allocated_tuple_handle(::xla::GlobalDataHandle* tuple_handle); - - // @@protoc_insertion_point(class_scope:xla.DeconstructTupleRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::GlobalDataHandle* tuple_handle_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class DeconstructTupleResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.DeconstructTupleResponse) */ { - public: - DeconstructTupleResponse(); - virtual ~DeconstructTupleResponse(); - - DeconstructTupleResponse(const DeconstructTupleResponse& from); - - inline DeconstructTupleResponse& operator=(const DeconstructTupleResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DeconstructTupleResponse(DeconstructTupleResponse&& from) noexcept - : DeconstructTupleResponse() { - *this = ::std::move(from); - } - - inline DeconstructTupleResponse& operator=(DeconstructTupleResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const DeconstructTupleResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DeconstructTupleResponse* internal_default_instance() { - return reinterpret_cast( - &_DeconstructTupleResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 31; - - void Swap(DeconstructTupleResponse* other); - friend void swap(DeconstructTupleResponse& a, DeconstructTupleResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DeconstructTupleResponse* New() const final { - return CreateMaybeMessage(NULL); - } - - DeconstructTupleResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const DeconstructTupleResponse& from); - void MergeFrom(const DeconstructTupleResponse& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DeconstructTupleResponse* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .xla.GlobalDataHandle element_handles = 1; - int element_handles_size() const; - void clear_element_handles(); - static const int kElementHandlesFieldNumber = 1; - ::xla::GlobalDataHandle* mutable_element_handles(int index); - ::google::protobuf::RepeatedPtrField< ::xla::GlobalDataHandle >* - mutable_element_handles(); - const ::xla::GlobalDataHandle& element_handles(int index) const; - ::xla::GlobalDataHandle* add_element_handles(); - const ::google::protobuf::RepeatedPtrField< ::xla::GlobalDataHandle >& - element_handles() const; - - // @@protoc_insertion_point(class_scope:xla.DeconstructTupleResponse) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::xla::GlobalDataHandle > element_handles_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class LoadDataRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.LoadDataRequest) */ { - public: - LoadDataRequest(); - virtual ~LoadDataRequest(); - - LoadDataRequest(const LoadDataRequest& from); - - inline LoadDataRequest& operator=(const LoadDataRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LoadDataRequest(LoadDataRequest&& from) noexcept - : LoadDataRequest() { - *this = ::std::move(from); - } - - inline LoadDataRequest& operator=(LoadDataRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const LoadDataRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LoadDataRequest* internal_default_instance() { - return reinterpret_cast( - &_LoadDataRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 32; - - void Swap(LoadDataRequest* other); - friend void swap(LoadDataRequest& a, LoadDataRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LoadDataRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - LoadDataRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const LoadDataRequest& from); - void MergeFrom(const LoadDataRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LoadDataRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string columnio_tablet_path = 1; - void clear_columnio_tablet_path(); - static const int kColumnioTabletPathFieldNumber = 1; - const ::std::string& columnio_tablet_path() const; - void set_columnio_tablet_path(const ::std::string& value); - #if LANG_CXX11 - void set_columnio_tablet_path(::std::string&& value); - #endif - void set_columnio_tablet_path(const char* value); - void set_columnio_tablet_path(const char* value, size_t size); - ::std::string* mutable_columnio_tablet_path(); - ::std::string* release_columnio_tablet_path(); - void set_allocated_columnio_tablet_path(::std::string* columnio_tablet_path); - - // string columnio_field = 2; - void clear_columnio_field(); - static const int kColumnioFieldFieldNumber = 2; - const ::std::string& columnio_field() const; - void set_columnio_field(const ::std::string& value); - #if LANG_CXX11 - void set_columnio_field(::std::string&& value); - #endif - void set_columnio_field(const char* value); - void set_columnio_field(const char* value, size_t size); - ::std::string* mutable_columnio_field(); - ::std::string* release_columnio_field(); - void set_allocated_columnio_field(::std::string* columnio_field); - - // .xla.Shape element_shape = 3; - bool has_element_shape() const; - void clear_element_shape(); - static const int kElementShapeFieldNumber = 3; - private: - const ::xla::Shape& _internal_element_shape() const; - public: - const ::xla::Shape& element_shape() const; - ::xla::Shape* release_element_shape(); - ::xla::Shape* mutable_element_shape(); - void set_allocated_element_shape(::xla::Shape* element_shape); - - // int64 offset = 4; - void clear_offset(); - static const int kOffsetFieldNumber = 4; - ::google::protobuf::int64 offset() const; - void set_offset(::google::protobuf::int64 value); - - // int64 limit = 5; - void clear_limit(); - static const int kLimitFieldNumber = 5; - ::google::protobuf::int64 limit() const; - void set_limit(::google::protobuf::int64 value); - - // bool zip = 6; - void clear_zip(); - static const int kZipFieldNumber = 6; - bool zip() const; - void set_zip(bool value); - - // @@protoc_insertion_point(class_scope:xla.LoadDataRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::internal::ArenaStringPtr columnio_tablet_path_; - ::google::protobuf::internal::ArenaStringPtr columnio_field_; - ::xla::Shape* element_shape_; - ::google::protobuf::int64 offset_; - ::google::protobuf::int64 limit_; - bool zip_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class LoadDataResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.LoadDataResponse) */ { - public: - LoadDataResponse(); - virtual ~LoadDataResponse(); - - LoadDataResponse(const LoadDataResponse& from); - - inline LoadDataResponse& operator=(const LoadDataResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LoadDataResponse(LoadDataResponse&& from) noexcept - : LoadDataResponse() { - *this = ::std::move(from); - } - - inline LoadDataResponse& operator=(LoadDataResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const LoadDataResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LoadDataResponse* internal_default_instance() { - return reinterpret_cast( - &_LoadDataResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 33; - - void Swap(LoadDataResponse* other); - friend void swap(LoadDataResponse& a, LoadDataResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LoadDataResponse* New() const final { - return CreateMaybeMessage(NULL); - } - - LoadDataResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const LoadDataResponse& from); - void MergeFrom(const LoadDataResponse& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LoadDataResponse* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.GlobalDataHandle data = 1; - bool has_data() const; - void clear_data(); - static const int kDataFieldNumber = 1; - private: - const ::xla::GlobalDataHandle& _internal_data() const; - public: - const ::xla::GlobalDataHandle& data() const; - ::xla::GlobalDataHandle* release_data(); - ::xla::GlobalDataHandle* mutable_data(); - void set_allocated_data(::xla::GlobalDataHandle* data); - - // .xla.Shape data_shape = 2; - bool has_data_shape() const; - void clear_data_shape(); - static const int kDataShapeFieldNumber = 2; - private: - const ::xla::Shape& _internal_data_shape() const; - public: - const ::xla::Shape& data_shape() const; - ::xla::Shape* release_data_shape(); - ::xla::Shape* mutable_data_shape(); - void set_allocated_data_shape(::xla::Shape* data_shape); - - // int64 available_rows = 3; - void clear_available_rows(); - static const int kAvailableRowsFieldNumber = 3; - ::google::protobuf::int64 available_rows() const; - void set_available_rows(::google::protobuf::int64 value); - - // int64 rows_loaded = 4; - void clear_rows_loaded(); - static const int kRowsLoadedFieldNumber = 4; - ::google::protobuf::int64 rows_loaded() const; - void set_rows_loaded(::google::protobuf::int64 value); - - // int64 nanoseconds = 5; - void clear_nanoseconds(); - static const int kNanosecondsFieldNumber = 5; - ::google::protobuf::int64 nanoseconds() const; - void set_nanoseconds(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.LoadDataResponse) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::GlobalDataHandle* data_; - ::xla::Shape* data_shape_; - ::google::protobuf::int64 available_rows_; - ::google::protobuf::int64 rows_loaded_; - ::google::protobuf::int64 nanoseconds_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GetShapeRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.GetShapeRequest) */ { - public: - GetShapeRequest(); - virtual ~GetShapeRequest(); - - GetShapeRequest(const GetShapeRequest& from); - - inline GetShapeRequest& operator=(const GetShapeRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetShapeRequest(GetShapeRequest&& from) noexcept - : GetShapeRequest() { - *this = ::std::move(from); - } - - inline GetShapeRequest& operator=(GetShapeRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const GetShapeRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetShapeRequest* internal_default_instance() { - return reinterpret_cast( - &_GetShapeRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 34; - - void Swap(GetShapeRequest* other); - friend void swap(GetShapeRequest& a, GetShapeRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetShapeRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - GetShapeRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GetShapeRequest& from); - void MergeFrom(const GetShapeRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetShapeRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.GlobalDataHandle data = 1; - bool has_data() const; - void clear_data(); - static const int kDataFieldNumber = 1; - private: - const ::xla::GlobalDataHandle& _internal_data() const; - public: - const ::xla::GlobalDataHandle& data() const; - ::xla::GlobalDataHandle* release_data(); - ::xla::GlobalDataHandle* mutable_data(); - void set_allocated_data(::xla::GlobalDataHandle* data); - - // @@protoc_insertion_point(class_scope:xla.GetShapeRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::GlobalDataHandle* data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GetShapeResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.GetShapeResponse) */ { - public: - GetShapeResponse(); - virtual ~GetShapeResponse(); - - GetShapeResponse(const GetShapeResponse& from); - - inline GetShapeResponse& operator=(const GetShapeResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GetShapeResponse(GetShapeResponse&& from) noexcept - : GetShapeResponse() { - *this = ::std::move(from); - } - - inline GetShapeResponse& operator=(GetShapeResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const GetShapeResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GetShapeResponse* internal_default_instance() { - return reinterpret_cast( - &_GetShapeResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 35; - - void Swap(GetShapeResponse* other); - friend void swap(GetShapeResponse& a, GetShapeResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GetShapeResponse* New() const final { - return CreateMaybeMessage(NULL); - } - - GetShapeResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GetShapeResponse& from); - void MergeFrom(const GetShapeResponse& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GetShapeResponse* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.Shape shape = 1; - bool has_shape() const; - void clear_shape(); - static const int kShapeFieldNumber = 1; - private: - const ::xla::Shape& _internal_shape() const; - public: - const ::xla::Shape& shape() const; - ::xla::Shape* release_shape(); - ::xla::Shape* mutable_shape(); - void set_allocated_shape(::xla::Shape* shape); - - // @@protoc_insertion_point(class_scope:xla.GetShapeResponse) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::Shape* shape_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class UnpackRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.UnpackRequest) */ { - public: - UnpackRequest(); - virtual ~UnpackRequest(); - - UnpackRequest(const UnpackRequest& from); - - inline UnpackRequest& operator=(const UnpackRequest& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - UnpackRequest(UnpackRequest&& from) noexcept - : UnpackRequest() { - *this = ::std::move(from); - } - - inline UnpackRequest& operator=(UnpackRequest&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const UnpackRequest& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const UnpackRequest* internal_default_instance() { - return reinterpret_cast( - &_UnpackRequest_default_instance_); - } - static constexpr int kIndexInFileMessages = - 36; - - void Swap(UnpackRequest* other); - friend void swap(UnpackRequest& a, UnpackRequest& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline UnpackRequest* New() const final { - return CreateMaybeMessage(NULL); - } - - UnpackRequest* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const UnpackRequest& from); - void MergeFrom(const UnpackRequest& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(UnpackRequest* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .xla.GlobalDataHandle data = 1; - bool has_data() const; - void clear_data(); - static const int kDataFieldNumber = 1; - private: - const ::xla::GlobalDataHandle& _internal_data() const; - public: - const ::xla::GlobalDataHandle& data() const; - ::xla::GlobalDataHandle* release_data(); - ::xla::GlobalDataHandle* mutable_data(); - void set_allocated_data(::xla::GlobalDataHandle* data); - - // @@protoc_insertion_point(class_scope:xla.UnpackRequest) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::xla::GlobalDataHandle* data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class UnpackResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.UnpackResponse) */ { - public: - UnpackResponse(); - virtual ~UnpackResponse(); - - UnpackResponse(const UnpackResponse& from); - - inline UnpackResponse& operator=(const UnpackResponse& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - UnpackResponse(UnpackResponse&& from) noexcept - : UnpackResponse() { - *this = ::std::move(from); - } - - inline UnpackResponse& operator=(UnpackResponse&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const UnpackResponse& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const UnpackResponse* internal_default_instance() { - return reinterpret_cast( - &_UnpackResponse_default_instance_); - } - static constexpr int kIndexInFileMessages = - 37; - - void Swap(UnpackResponse* other); - friend void swap(UnpackResponse& a, UnpackResponse& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline UnpackResponse* New() const final { - return CreateMaybeMessage(NULL); - } - - UnpackResponse* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const UnpackResponse& from); - void MergeFrom(const UnpackResponse& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(UnpackResponse* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .xla.GlobalDataHandle tied_data = 1; - int tied_data_size() const; - void clear_tied_data(); - static const int kTiedDataFieldNumber = 1; - ::xla::GlobalDataHandle* mutable_tied_data(int index); - ::google::protobuf::RepeatedPtrField< ::xla::GlobalDataHandle >* - mutable_tied_data(); - const ::xla::GlobalDataHandle& tied_data(int index) const; - ::xla::GlobalDataHandle* add_tied_data(); - const ::google::protobuf::RepeatedPtrField< ::xla::GlobalDataHandle >& - tied_data() const; - - // @@protoc_insertion_point(class_scope:xla.UnpackResponse) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::xla::GlobalDataHandle > tied_data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// HloReducePrecisionOptions - -// .xla.HloReducePrecisionOptions.Location location = 1; -inline void HloReducePrecisionOptions::clear_location() { - location_ = 0; -} -inline ::xla::HloReducePrecisionOptions_Location HloReducePrecisionOptions::location() const { - // @@protoc_insertion_point(field_get:xla.HloReducePrecisionOptions.location) - return static_cast< ::xla::HloReducePrecisionOptions_Location >(location_); -} -inline void HloReducePrecisionOptions::set_location(::xla::HloReducePrecisionOptions_Location value) { - - location_ = value; - // @@protoc_insertion_point(field_set:xla.HloReducePrecisionOptions.location) -} - -// uint32 exponent_bits = 2; -inline void HloReducePrecisionOptions::clear_exponent_bits() { - exponent_bits_ = 0u; -} -inline ::google::protobuf::uint32 HloReducePrecisionOptions::exponent_bits() const { - // @@protoc_insertion_point(field_get:xla.HloReducePrecisionOptions.exponent_bits) - return exponent_bits_; -} -inline void HloReducePrecisionOptions::set_exponent_bits(::google::protobuf::uint32 value) { - - exponent_bits_ = value; - // @@protoc_insertion_point(field_set:xla.HloReducePrecisionOptions.exponent_bits) -} - -// uint32 mantissa_bits = 3; -inline void HloReducePrecisionOptions::clear_mantissa_bits() { - mantissa_bits_ = 0u; -} -inline ::google::protobuf::uint32 HloReducePrecisionOptions::mantissa_bits() const { - // @@protoc_insertion_point(field_get:xla.HloReducePrecisionOptions.mantissa_bits) - return mantissa_bits_; -} -inline void HloReducePrecisionOptions::set_mantissa_bits(::google::protobuf::uint32 value) { - - mantissa_bits_ = value; - // @@protoc_insertion_point(field_set:xla.HloReducePrecisionOptions.mantissa_bits) -} - -// repeated uint32 opcodes_to_suffix = 4; -inline int HloReducePrecisionOptions::opcodes_to_suffix_size() const { - return opcodes_to_suffix_.size(); -} -inline void HloReducePrecisionOptions::clear_opcodes_to_suffix() { - opcodes_to_suffix_.Clear(); -} -inline ::google::protobuf::uint32 HloReducePrecisionOptions::opcodes_to_suffix(int index) const { - // @@protoc_insertion_point(field_get:xla.HloReducePrecisionOptions.opcodes_to_suffix) - return opcodes_to_suffix_.Get(index); -} -inline void HloReducePrecisionOptions::set_opcodes_to_suffix(int index, ::google::protobuf::uint32 value) { - opcodes_to_suffix_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.HloReducePrecisionOptions.opcodes_to_suffix) -} -inline void HloReducePrecisionOptions::add_opcodes_to_suffix(::google::protobuf::uint32 value) { - opcodes_to_suffix_.Add(value); - // @@protoc_insertion_point(field_add:xla.HloReducePrecisionOptions.opcodes_to_suffix) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -HloReducePrecisionOptions::opcodes_to_suffix() const { - // @@protoc_insertion_point(field_list:xla.HloReducePrecisionOptions.opcodes_to_suffix) - return opcodes_to_suffix_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -HloReducePrecisionOptions::mutable_opcodes_to_suffix() { - // @@protoc_insertion_point(field_mutable_list:xla.HloReducePrecisionOptions.opcodes_to_suffix) - return &opcodes_to_suffix_; -} - -// repeated string opname_substrings_to_suffix = 5; -inline int HloReducePrecisionOptions::opname_substrings_to_suffix_size() const { - return opname_substrings_to_suffix_.size(); -} -inline void HloReducePrecisionOptions::clear_opname_substrings_to_suffix() { - opname_substrings_to_suffix_.Clear(); -} -inline const ::std::string& HloReducePrecisionOptions::opname_substrings_to_suffix(int index) const { - // @@protoc_insertion_point(field_get:xla.HloReducePrecisionOptions.opname_substrings_to_suffix) - return opname_substrings_to_suffix_.Get(index); -} -inline ::std::string* HloReducePrecisionOptions::mutable_opname_substrings_to_suffix(int index) { - // @@protoc_insertion_point(field_mutable:xla.HloReducePrecisionOptions.opname_substrings_to_suffix) - return opname_substrings_to_suffix_.Mutable(index); -} -inline void HloReducePrecisionOptions::set_opname_substrings_to_suffix(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:xla.HloReducePrecisionOptions.opname_substrings_to_suffix) - opname_substrings_to_suffix_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void HloReducePrecisionOptions::set_opname_substrings_to_suffix(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:xla.HloReducePrecisionOptions.opname_substrings_to_suffix) - opname_substrings_to_suffix_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void HloReducePrecisionOptions::set_opname_substrings_to_suffix(int index, const char* value) { - GOOGLE_DCHECK(value != NULL); - opname_substrings_to_suffix_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:xla.HloReducePrecisionOptions.opname_substrings_to_suffix) -} -inline void HloReducePrecisionOptions::set_opname_substrings_to_suffix(int index, const char* value, size_t size) { - opname_substrings_to_suffix_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:xla.HloReducePrecisionOptions.opname_substrings_to_suffix) -} -inline ::std::string* HloReducePrecisionOptions::add_opname_substrings_to_suffix() { - // @@protoc_insertion_point(field_add_mutable:xla.HloReducePrecisionOptions.opname_substrings_to_suffix) - return opname_substrings_to_suffix_.Add(); -} -inline void HloReducePrecisionOptions::add_opname_substrings_to_suffix(const ::std::string& value) { - opname_substrings_to_suffix_.Add()->assign(value); - // @@protoc_insertion_point(field_add:xla.HloReducePrecisionOptions.opname_substrings_to_suffix) -} -#if LANG_CXX11 -inline void HloReducePrecisionOptions::add_opname_substrings_to_suffix(::std::string&& value) { - opname_substrings_to_suffix_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:xla.HloReducePrecisionOptions.opname_substrings_to_suffix) -} -#endif -inline void HloReducePrecisionOptions::add_opname_substrings_to_suffix(const char* value) { - GOOGLE_DCHECK(value != NULL); - opname_substrings_to_suffix_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:xla.HloReducePrecisionOptions.opname_substrings_to_suffix) -} -inline void HloReducePrecisionOptions::add_opname_substrings_to_suffix(const char* value, size_t size) { - opname_substrings_to_suffix_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:xla.HloReducePrecisionOptions.opname_substrings_to_suffix) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -HloReducePrecisionOptions::opname_substrings_to_suffix() const { - // @@protoc_insertion_point(field_list:xla.HloReducePrecisionOptions.opname_substrings_to_suffix) - return opname_substrings_to_suffix_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -HloReducePrecisionOptions::mutable_opname_substrings_to_suffix() { - // @@protoc_insertion_point(field_mutable_list:xla.HloReducePrecisionOptions.opname_substrings_to_suffix) - return &opname_substrings_to_suffix_; -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// DebugOptions - -// string xla_generate_hlo_graph = 1; -inline void DebugOptions::clear_xla_generate_hlo_graph() { - xla_generate_hlo_graph_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DebugOptions::xla_generate_hlo_graph() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_generate_hlo_graph) - return xla_generate_hlo_graph_.GetNoArena(); -} -inline void DebugOptions::set_xla_generate_hlo_graph(const ::std::string& value) { - - xla_generate_hlo_graph_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_generate_hlo_graph) -} -#if LANG_CXX11 -inline void DebugOptions::set_xla_generate_hlo_graph(::std::string&& value) { - - xla_generate_hlo_graph_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:xla.DebugOptions.xla_generate_hlo_graph) -} -#endif -inline void DebugOptions::set_xla_generate_hlo_graph(const char* value) { - GOOGLE_DCHECK(value != NULL); - - xla_generate_hlo_graph_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:xla.DebugOptions.xla_generate_hlo_graph) -} -inline void DebugOptions::set_xla_generate_hlo_graph(const char* value, size_t size) { - - xla_generate_hlo_graph_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:xla.DebugOptions.xla_generate_hlo_graph) -} -inline ::std::string* DebugOptions::mutable_xla_generate_hlo_graph() { - - // @@protoc_insertion_point(field_mutable:xla.DebugOptions.xla_generate_hlo_graph) - return xla_generate_hlo_graph_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DebugOptions::release_xla_generate_hlo_graph() { - // @@protoc_insertion_point(field_release:xla.DebugOptions.xla_generate_hlo_graph) - - return xla_generate_hlo_graph_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DebugOptions::set_allocated_xla_generate_hlo_graph(::std::string* xla_generate_hlo_graph) { - if (xla_generate_hlo_graph != NULL) { - - } else { - - } - xla_generate_hlo_graph_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), xla_generate_hlo_graph); - // @@protoc_insertion_point(field_set_allocated:xla.DebugOptions.xla_generate_hlo_graph) -} - -// bool xla_hlo_graph_addresses = 2; -inline void DebugOptions::clear_xla_hlo_graph_addresses() { - xla_hlo_graph_addresses_ = false; -} -inline bool DebugOptions::xla_hlo_graph_addresses() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_hlo_graph_addresses) - return xla_hlo_graph_addresses_; -} -inline void DebugOptions::set_xla_hlo_graph_addresses(bool value) { - - xla_hlo_graph_addresses_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_hlo_graph_addresses) -} - -// string xla_hlo_graph_path = 4; -inline void DebugOptions::clear_xla_hlo_graph_path() { - xla_hlo_graph_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DebugOptions::xla_hlo_graph_path() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_hlo_graph_path) - return xla_hlo_graph_path_.GetNoArena(); -} -inline void DebugOptions::set_xla_hlo_graph_path(const ::std::string& value) { - - xla_hlo_graph_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_hlo_graph_path) -} -#if LANG_CXX11 -inline void DebugOptions::set_xla_hlo_graph_path(::std::string&& value) { - - xla_hlo_graph_path_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:xla.DebugOptions.xla_hlo_graph_path) -} -#endif -inline void DebugOptions::set_xla_hlo_graph_path(const char* value) { - GOOGLE_DCHECK(value != NULL); - - xla_hlo_graph_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:xla.DebugOptions.xla_hlo_graph_path) -} -inline void DebugOptions::set_xla_hlo_graph_path(const char* value, size_t size) { - - xla_hlo_graph_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:xla.DebugOptions.xla_hlo_graph_path) -} -inline ::std::string* DebugOptions::mutable_xla_hlo_graph_path() { - - // @@protoc_insertion_point(field_mutable:xla.DebugOptions.xla_hlo_graph_path) - return xla_hlo_graph_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DebugOptions::release_xla_hlo_graph_path() { - // @@protoc_insertion_point(field_release:xla.DebugOptions.xla_hlo_graph_path) - - return xla_hlo_graph_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DebugOptions::set_allocated_xla_hlo_graph_path(::std::string* xla_hlo_graph_path) { - if (xla_hlo_graph_path != NULL) { - - } else { - - } - xla_hlo_graph_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), xla_hlo_graph_path); - // @@protoc_insertion_point(field_set_allocated:xla.DebugOptions.xla_hlo_graph_path) -} - -// bool xla_hlo_dump_as_graphdef = 5; -inline void DebugOptions::clear_xla_hlo_dump_as_graphdef() { - xla_hlo_dump_as_graphdef_ = false; -} -inline bool DebugOptions::xla_hlo_dump_as_graphdef() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_hlo_dump_as_graphdef) - return xla_hlo_dump_as_graphdef_; -} -inline void DebugOptions::set_xla_hlo_dump_as_graphdef(bool value) { - - xla_hlo_dump_as_graphdef_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_hlo_dump_as_graphdef) -} - -// string xla_log_hlo_text = 6; -inline void DebugOptions::clear_xla_log_hlo_text() { - xla_log_hlo_text_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DebugOptions::xla_log_hlo_text() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_log_hlo_text) - return xla_log_hlo_text_.GetNoArena(); -} -inline void DebugOptions::set_xla_log_hlo_text(const ::std::string& value) { - - xla_log_hlo_text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_log_hlo_text) -} -#if LANG_CXX11 -inline void DebugOptions::set_xla_log_hlo_text(::std::string&& value) { - - xla_log_hlo_text_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:xla.DebugOptions.xla_log_hlo_text) -} -#endif -inline void DebugOptions::set_xla_log_hlo_text(const char* value) { - GOOGLE_DCHECK(value != NULL); - - xla_log_hlo_text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:xla.DebugOptions.xla_log_hlo_text) -} -inline void DebugOptions::set_xla_log_hlo_text(const char* value, size_t size) { - - xla_log_hlo_text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:xla.DebugOptions.xla_log_hlo_text) -} -inline ::std::string* DebugOptions::mutable_xla_log_hlo_text() { - - // @@protoc_insertion_point(field_mutable:xla.DebugOptions.xla_log_hlo_text) - return xla_log_hlo_text_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DebugOptions::release_xla_log_hlo_text() { - // @@protoc_insertion_point(field_release:xla.DebugOptions.xla_log_hlo_text) - - return xla_log_hlo_text_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DebugOptions::set_allocated_xla_log_hlo_text(::std::string* xla_log_hlo_text) { - if (xla_log_hlo_text != NULL) { - - } else { - - } - xla_log_hlo_text_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), xla_log_hlo_text); - // @@protoc_insertion_point(field_set_allocated:xla.DebugOptions.xla_log_hlo_text) -} - -// string xla_generate_hlo_text_to = 7; -inline void DebugOptions::clear_xla_generate_hlo_text_to() { - xla_generate_hlo_text_to_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DebugOptions::xla_generate_hlo_text_to() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_generate_hlo_text_to) - return xla_generate_hlo_text_to_.GetNoArena(); -} -inline void DebugOptions::set_xla_generate_hlo_text_to(const ::std::string& value) { - - xla_generate_hlo_text_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_generate_hlo_text_to) -} -#if LANG_CXX11 -inline void DebugOptions::set_xla_generate_hlo_text_to(::std::string&& value) { - - xla_generate_hlo_text_to_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:xla.DebugOptions.xla_generate_hlo_text_to) -} -#endif -inline void DebugOptions::set_xla_generate_hlo_text_to(const char* value) { - GOOGLE_DCHECK(value != NULL); - - xla_generate_hlo_text_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:xla.DebugOptions.xla_generate_hlo_text_to) -} -inline void DebugOptions::set_xla_generate_hlo_text_to(const char* value, size_t size) { - - xla_generate_hlo_text_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:xla.DebugOptions.xla_generate_hlo_text_to) -} -inline ::std::string* DebugOptions::mutable_xla_generate_hlo_text_to() { - - // @@protoc_insertion_point(field_mutable:xla.DebugOptions.xla_generate_hlo_text_to) - return xla_generate_hlo_text_to_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DebugOptions::release_xla_generate_hlo_text_to() { - // @@protoc_insertion_point(field_release:xla.DebugOptions.xla_generate_hlo_text_to) - - return xla_generate_hlo_text_to_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DebugOptions::set_allocated_xla_generate_hlo_text_to(::std::string* xla_generate_hlo_text_to) { - if (xla_generate_hlo_text_to != NULL) { - - } else { - - } - xla_generate_hlo_text_to_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), xla_generate_hlo_text_to); - // @@protoc_insertion_point(field_set_allocated:xla.DebugOptions.xla_generate_hlo_text_to) -} - -// string xla_dump_optimized_hlo_proto_to = 8; -inline void DebugOptions::clear_xla_dump_optimized_hlo_proto_to() { - xla_dump_optimized_hlo_proto_to_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DebugOptions::xla_dump_optimized_hlo_proto_to() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_dump_optimized_hlo_proto_to) - return xla_dump_optimized_hlo_proto_to_.GetNoArena(); -} -inline void DebugOptions::set_xla_dump_optimized_hlo_proto_to(const ::std::string& value) { - - xla_dump_optimized_hlo_proto_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_dump_optimized_hlo_proto_to) -} -#if LANG_CXX11 -inline void DebugOptions::set_xla_dump_optimized_hlo_proto_to(::std::string&& value) { - - xla_dump_optimized_hlo_proto_to_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:xla.DebugOptions.xla_dump_optimized_hlo_proto_to) -} -#endif -inline void DebugOptions::set_xla_dump_optimized_hlo_proto_to(const char* value) { - GOOGLE_DCHECK(value != NULL); - - xla_dump_optimized_hlo_proto_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:xla.DebugOptions.xla_dump_optimized_hlo_proto_to) -} -inline void DebugOptions::set_xla_dump_optimized_hlo_proto_to(const char* value, size_t size) { - - xla_dump_optimized_hlo_proto_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:xla.DebugOptions.xla_dump_optimized_hlo_proto_to) -} -inline ::std::string* DebugOptions::mutable_xla_dump_optimized_hlo_proto_to() { - - // @@protoc_insertion_point(field_mutable:xla.DebugOptions.xla_dump_optimized_hlo_proto_to) - return xla_dump_optimized_hlo_proto_to_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DebugOptions::release_xla_dump_optimized_hlo_proto_to() { - // @@protoc_insertion_point(field_release:xla.DebugOptions.xla_dump_optimized_hlo_proto_to) - - return xla_dump_optimized_hlo_proto_to_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DebugOptions::set_allocated_xla_dump_optimized_hlo_proto_to(::std::string* xla_dump_optimized_hlo_proto_to) { - if (xla_dump_optimized_hlo_proto_to != NULL) { - - } else { - - } - xla_dump_optimized_hlo_proto_to_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), xla_dump_optimized_hlo_proto_to); - // @@protoc_insertion_point(field_set_allocated:xla.DebugOptions.xla_dump_optimized_hlo_proto_to) -} - -// bool xla_hlo_profile = 9; -inline void DebugOptions::clear_xla_hlo_profile() { - xla_hlo_profile_ = false; -} -inline bool DebugOptions::xla_hlo_profile() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_hlo_profile) - return xla_hlo_profile_; -} -inline void DebugOptions::set_xla_hlo_profile(bool value) { - - xla_hlo_profile_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_hlo_profile) -} - -// string xla_dump_computations_to = 10; -inline void DebugOptions::clear_xla_dump_computations_to() { - xla_dump_computations_to_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DebugOptions::xla_dump_computations_to() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_dump_computations_to) - return xla_dump_computations_to_.GetNoArena(); -} -inline void DebugOptions::set_xla_dump_computations_to(const ::std::string& value) { - - xla_dump_computations_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_dump_computations_to) -} -#if LANG_CXX11 -inline void DebugOptions::set_xla_dump_computations_to(::std::string&& value) { - - xla_dump_computations_to_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:xla.DebugOptions.xla_dump_computations_to) -} -#endif -inline void DebugOptions::set_xla_dump_computations_to(const char* value) { - GOOGLE_DCHECK(value != NULL); - - xla_dump_computations_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:xla.DebugOptions.xla_dump_computations_to) -} -inline void DebugOptions::set_xla_dump_computations_to(const char* value, size_t size) { - - xla_dump_computations_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:xla.DebugOptions.xla_dump_computations_to) -} -inline ::std::string* DebugOptions::mutable_xla_dump_computations_to() { - - // @@protoc_insertion_point(field_mutable:xla.DebugOptions.xla_dump_computations_to) - return xla_dump_computations_to_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DebugOptions::release_xla_dump_computations_to() { - // @@protoc_insertion_point(field_release:xla.DebugOptions.xla_dump_computations_to) - - return xla_dump_computations_to_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DebugOptions::set_allocated_xla_dump_computations_to(::std::string* xla_dump_computations_to) { - if (xla_dump_computations_to != NULL) { - - } else { - - } - xla_dump_computations_to_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), xla_dump_computations_to); - // @@protoc_insertion_point(field_set_allocated:xla.DebugOptions.xla_dump_computations_to) -} - -// string xla_dump_executions_to = 11; -inline void DebugOptions::clear_xla_dump_executions_to() { - xla_dump_executions_to_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DebugOptions::xla_dump_executions_to() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_dump_executions_to) - return xla_dump_executions_to_.GetNoArena(); -} -inline void DebugOptions::set_xla_dump_executions_to(const ::std::string& value) { - - xla_dump_executions_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_dump_executions_to) -} -#if LANG_CXX11 -inline void DebugOptions::set_xla_dump_executions_to(::std::string&& value) { - - xla_dump_executions_to_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:xla.DebugOptions.xla_dump_executions_to) -} -#endif -inline void DebugOptions::set_xla_dump_executions_to(const char* value) { - GOOGLE_DCHECK(value != NULL); - - xla_dump_executions_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:xla.DebugOptions.xla_dump_executions_to) -} -inline void DebugOptions::set_xla_dump_executions_to(const char* value, size_t size) { - - xla_dump_executions_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:xla.DebugOptions.xla_dump_executions_to) -} -inline ::std::string* DebugOptions::mutable_xla_dump_executions_to() { - - // @@protoc_insertion_point(field_mutable:xla.DebugOptions.xla_dump_executions_to) - return xla_dump_executions_to_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DebugOptions::release_xla_dump_executions_to() { - // @@protoc_insertion_point(field_release:xla.DebugOptions.xla_dump_executions_to) - - return xla_dump_executions_to_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DebugOptions::set_allocated_xla_dump_executions_to(::std::string* xla_dump_executions_to) { - if (xla_dump_executions_to != NULL) { - - } else { - - } - xla_dump_executions_to_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), xla_dump_executions_to); - // @@protoc_insertion_point(field_set_allocated:xla.DebugOptions.xla_dump_executions_to) -} - -// repeated string xla_disable_hlo_passes = 30; -inline int DebugOptions::xla_disable_hlo_passes_size() const { - return xla_disable_hlo_passes_.size(); -} -inline void DebugOptions::clear_xla_disable_hlo_passes() { - xla_disable_hlo_passes_.Clear(); -} -inline const ::std::string& DebugOptions::xla_disable_hlo_passes(int index) const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_disable_hlo_passes) - return xla_disable_hlo_passes_.Get(index); -} -inline ::std::string* DebugOptions::mutable_xla_disable_hlo_passes(int index) { - // @@protoc_insertion_point(field_mutable:xla.DebugOptions.xla_disable_hlo_passes) - return xla_disable_hlo_passes_.Mutable(index); -} -inline void DebugOptions::set_xla_disable_hlo_passes(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_disable_hlo_passes) - xla_disable_hlo_passes_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void DebugOptions::set_xla_disable_hlo_passes(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_disable_hlo_passes) - xla_disable_hlo_passes_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void DebugOptions::set_xla_disable_hlo_passes(int index, const char* value) { - GOOGLE_DCHECK(value != NULL); - xla_disable_hlo_passes_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:xla.DebugOptions.xla_disable_hlo_passes) -} -inline void DebugOptions::set_xla_disable_hlo_passes(int index, const char* value, size_t size) { - xla_disable_hlo_passes_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:xla.DebugOptions.xla_disable_hlo_passes) -} -inline ::std::string* DebugOptions::add_xla_disable_hlo_passes() { - // @@protoc_insertion_point(field_add_mutable:xla.DebugOptions.xla_disable_hlo_passes) - return xla_disable_hlo_passes_.Add(); -} -inline void DebugOptions::add_xla_disable_hlo_passes(const ::std::string& value) { - xla_disable_hlo_passes_.Add()->assign(value); - // @@protoc_insertion_point(field_add:xla.DebugOptions.xla_disable_hlo_passes) -} -#if LANG_CXX11 -inline void DebugOptions::add_xla_disable_hlo_passes(::std::string&& value) { - xla_disable_hlo_passes_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:xla.DebugOptions.xla_disable_hlo_passes) -} -#endif -inline void DebugOptions::add_xla_disable_hlo_passes(const char* value) { - GOOGLE_DCHECK(value != NULL); - xla_disable_hlo_passes_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:xla.DebugOptions.xla_disable_hlo_passes) -} -inline void DebugOptions::add_xla_disable_hlo_passes(const char* value, size_t size) { - xla_disable_hlo_passes_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:xla.DebugOptions.xla_disable_hlo_passes) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -DebugOptions::xla_disable_hlo_passes() const { - // @@protoc_insertion_point(field_list:xla.DebugOptions.xla_disable_hlo_passes) - return xla_disable_hlo_passes_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -DebugOptions::mutable_xla_disable_hlo_passes() { - // @@protoc_insertion_point(field_mutable_list:xla.DebugOptions.xla_disable_hlo_passes) - return &xla_disable_hlo_passes_; -} - -// int32 xla_backend_optimization_level = 31; -inline void DebugOptions::clear_xla_backend_optimization_level() { - xla_backend_optimization_level_ = 0; -} -inline ::google::protobuf::int32 DebugOptions::xla_backend_optimization_level() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_backend_optimization_level) - return xla_backend_optimization_level_; -} -inline void DebugOptions::set_xla_backend_optimization_level(::google::protobuf::int32 value) { - - xla_backend_optimization_level_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_backend_optimization_level) -} - -// bool xla_embed_ir_in_executable = 33; -inline void DebugOptions::clear_xla_embed_ir_in_executable() { - xla_embed_ir_in_executable_ = false; -} -inline bool DebugOptions::xla_embed_ir_in_executable() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_embed_ir_in_executable) - return xla_embed_ir_in_executable_; -} -inline void DebugOptions::set_xla_embed_ir_in_executable(bool value) { - - xla_embed_ir_in_executable_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_embed_ir_in_executable) -} - -// string xla_dump_ir_to = 34; -inline void DebugOptions::clear_xla_dump_ir_to() { - xla_dump_ir_to_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DebugOptions::xla_dump_ir_to() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_dump_ir_to) - return xla_dump_ir_to_.GetNoArena(); -} -inline void DebugOptions::set_xla_dump_ir_to(const ::std::string& value) { - - xla_dump_ir_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_dump_ir_to) -} -#if LANG_CXX11 -inline void DebugOptions::set_xla_dump_ir_to(::std::string&& value) { - - xla_dump_ir_to_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:xla.DebugOptions.xla_dump_ir_to) -} -#endif -inline void DebugOptions::set_xla_dump_ir_to(const char* value) { - GOOGLE_DCHECK(value != NULL); - - xla_dump_ir_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:xla.DebugOptions.xla_dump_ir_to) -} -inline void DebugOptions::set_xla_dump_ir_to(const char* value, size_t size) { - - xla_dump_ir_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:xla.DebugOptions.xla_dump_ir_to) -} -inline ::std::string* DebugOptions::mutable_xla_dump_ir_to() { - - // @@protoc_insertion_point(field_mutable:xla.DebugOptions.xla_dump_ir_to) - return xla_dump_ir_to_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DebugOptions::release_xla_dump_ir_to() { - // @@protoc_insertion_point(field_release:xla.DebugOptions.xla_dump_ir_to) - - return xla_dump_ir_to_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DebugOptions::set_allocated_xla_dump_ir_to(::std::string* xla_dump_ir_to) { - if (xla_dump_ir_to != NULL) { - - } else { - - } - xla_dump_ir_to_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), xla_dump_ir_to); - // @@protoc_insertion_point(field_set_allocated:xla.DebugOptions.xla_dump_ir_to) -} - -// bool xla_eliminate_hlo_implicit_broadcast = 35; -inline void DebugOptions::clear_xla_eliminate_hlo_implicit_broadcast() { - xla_eliminate_hlo_implicit_broadcast_ = false; -} -inline bool DebugOptions::xla_eliminate_hlo_implicit_broadcast() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_eliminate_hlo_implicit_broadcast) - return xla_eliminate_hlo_implicit_broadcast_; -} -inline void DebugOptions::set_xla_eliminate_hlo_implicit_broadcast(bool value) { - - xla_eliminate_hlo_implicit_broadcast_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_eliminate_hlo_implicit_broadcast) -} - -// bool xla_cpu_multi_thread_eigen = 60; -inline void DebugOptions::clear_xla_cpu_multi_thread_eigen() { - xla_cpu_multi_thread_eigen_ = false; -} -inline bool DebugOptions::xla_cpu_multi_thread_eigen() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_cpu_multi_thread_eigen) - return xla_cpu_multi_thread_eigen_; -} -inline void DebugOptions::set_xla_cpu_multi_thread_eigen(bool value) { - - xla_cpu_multi_thread_eigen_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_cpu_multi_thread_eigen) -} - -// string xla_gpu_cuda_data_dir = 61; -inline void DebugOptions::clear_xla_gpu_cuda_data_dir() { - xla_gpu_cuda_data_dir_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DebugOptions::xla_gpu_cuda_data_dir() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_gpu_cuda_data_dir) - return xla_gpu_cuda_data_dir_.GetNoArena(); -} -inline void DebugOptions::set_xla_gpu_cuda_data_dir(const ::std::string& value) { - - xla_gpu_cuda_data_dir_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_gpu_cuda_data_dir) -} -#if LANG_CXX11 -inline void DebugOptions::set_xla_gpu_cuda_data_dir(::std::string&& value) { - - xla_gpu_cuda_data_dir_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:xla.DebugOptions.xla_gpu_cuda_data_dir) -} -#endif -inline void DebugOptions::set_xla_gpu_cuda_data_dir(const char* value) { - GOOGLE_DCHECK(value != NULL); - - xla_gpu_cuda_data_dir_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:xla.DebugOptions.xla_gpu_cuda_data_dir) -} -inline void DebugOptions::set_xla_gpu_cuda_data_dir(const char* value, size_t size) { - - xla_gpu_cuda_data_dir_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:xla.DebugOptions.xla_gpu_cuda_data_dir) -} -inline ::std::string* DebugOptions::mutable_xla_gpu_cuda_data_dir() { - - // @@protoc_insertion_point(field_mutable:xla.DebugOptions.xla_gpu_cuda_data_dir) - return xla_gpu_cuda_data_dir_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DebugOptions::release_xla_gpu_cuda_data_dir() { - // @@protoc_insertion_point(field_release:xla.DebugOptions.xla_gpu_cuda_data_dir) - - return xla_gpu_cuda_data_dir_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DebugOptions::set_allocated_xla_gpu_cuda_data_dir(::std::string* xla_gpu_cuda_data_dir) { - if (xla_gpu_cuda_data_dir != NULL) { - - } else { - - } - xla_gpu_cuda_data_dir_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), xla_gpu_cuda_data_dir); - // @@protoc_insertion_point(field_set_allocated:xla.DebugOptions.xla_gpu_cuda_data_dir) -} - -// bool xla_gpu_ftz = 62; -inline void DebugOptions::clear_xla_gpu_ftz() { - xla_gpu_ftz_ = false; -} -inline bool DebugOptions::xla_gpu_ftz() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_gpu_ftz) - return xla_gpu_ftz_; -} -inline void DebugOptions::set_xla_gpu_ftz(bool value) { - - xla_gpu_ftz_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_gpu_ftz) -} - -// bool xla_gpu_disable_multi_streaming = 63; -inline void DebugOptions::clear_xla_gpu_disable_multi_streaming() { - xla_gpu_disable_multi_streaming_ = false; -} -inline bool DebugOptions::xla_gpu_disable_multi_streaming() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_gpu_disable_multi_streaming) - return xla_gpu_disable_multi_streaming_; -} -inline void DebugOptions::set_xla_gpu_disable_multi_streaming(bool value) { - - xla_gpu_disable_multi_streaming_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_gpu_disable_multi_streaming) -} - -// bool xla_llvm_enable_alias_scope_metadata = 70; -inline void DebugOptions::clear_xla_llvm_enable_alias_scope_metadata() { - xla_llvm_enable_alias_scope_metadata_ = false; -} -inline bool DebugOptions::xla_llvm_enable_alias_scope_metadata() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_llvm_enable_alias_scope_metadata) - return xla_llvm_enable_alias_scope_metadata_; -} -inline void DebugOptions::set_xla_llvm_enable_alias_scope_metadata(bool value) { - - xla_llvm_enable_alias_scope_metadata_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_llvm_enable_alias_scope_metadata) -} - -// bool xla_llvm_enable_noalias_metadata = 71; -inline void DebugOptions::clear_xla_llvm_enable_noalias_metadata() { - xla_llvm_enable_noalias_metadata_ = false; -} -inline bool DebugOptions::xla_llvm_enable_noalias_metadata() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_llvm_enable_noalias_metadata) - return xla_llvm_enable_noalias_metadata_; -} -inline void DebugOptions::set_xla_llvm_enable_noalias_metadata(bool value) { - - xla_llvm_enable_noalias_metadata_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_llvm_enable_noalias_metadata) -} - -// bool xla_llvm_enable_invariant_load_metadata = 72; -inline void DebugOptions::clear_xla_llvm_enable_invariant_load_metadata() { - xla_llvm_enable_invariant_load_metadata_ = false; -} -inline bool DebugOptions::xla_llvm_enable_invariant_load_metadata() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_llvm_enable_invariant_load_metadata) - return xla_llvm_enable_invariant_load_metadata_; -} -inline void DebugOptions::set_xla_llvm_enable_invariant_load_metadata(bool value) { - - xla_llvm_enable_invariant_load_metadata_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_llvm_enable_invariant_load_metadata) -} - -// bool xla_llvm_disable_expensive_passes = 73; -inline void DebugOptions::clear_xla_llvm_disable_expensive_passes() { - xla_llvm_disable_expensive_passes_ = false; -} -inline bool DebugOptions::xla_llvm_disable_expensive_passes() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_llvm_disable_expensive_passes) - return xla_llvm_disable_expensive_passes_; -} -inline void DebugOptions::set_xla_llvm_disable_expensive_passes(bool value) { - - xla_llvm_disable_expensive_passes_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_llvm_disable_expensive_passes) -} - -// repeated .xla.HloReducePrecisionOptions hlo_reduce_precision_options = 80; -inline int DebugOptions::hlo_reduce_precision_options_size() const { - return hlo_reduce_precision_options_.size(); -} -inline void DebugOptions::clear_hlo_reduce_precision_options() { - hlo_reduce_precision_options_.Clear(); -} -inline ::xla::HloReducePrecisionOptions* DebugOptions::mutable_hlo_reduce_precision_options(int index) { - // @@protoc_insertion_point(field_mutable:xla.DebugOptions.hlo_reduce_precision_options) - return hlo_reduce_precision_options_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::HloReducePrecisionOptions >* -DebugOptions::mutable_hlo_reduce_precision_options() { - // @@protoc_insertion_point(field_mutable_list:xla.DebugOptions.hlo_reduce_precision_options) - return &hlo_reduce_precision_options_; -} -inline const ::xla::HloReducePrecisionOptions& DebugOptions::hlo_reduce_precision_options(int index) const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.hlo_reduce_precision_options) - return hlo_reduce_precision_options_.Get(index); -} -inline ::xla::HloReducePrecisionOptions* DebugOptions::add_hlo_reduce_precision_options() { - // @@protoc_insertion_point(field_add:xla.DebugOptions.hlo_reduce_precision_options) - return hlo_reduce_precision_options_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::HloReducePrecisionOptions >& -DebugOptions::hlo_reduce_precision_options() const { - // @@protoc_insertion_point(field_list:xla.DebugOptions.hlo_reduce_precision_options) - return hlo_reduce_precision_options_; -} - -// bool xla_test_all_output_layouts = 90; -inline void DebugOptions::clear_xla_test_all_output_layouts() { - xla_test_all_output_layouts_ = false; -} -inline bool DebugOptions::xla_test_all_output_layouts() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_test_all_output_layouts) - return xla_test_all_output_layouts_; -} -inline void DebugOptions::set_xla_test_all_output_layouts(bool value) { - - xla_test_all_output_layouts_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_test_all_output_layouts) -} - -// bool xla_test_all_input_layouts = 91; -inline void DebugOptions::clear_xla_test_all_input_layouts() { - xla_test_all_input_layouts_ = false; -} -inline bool DebugOptions::xla_test_all_input_layouts() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_test_all_input_layouts) - return xla_test_all_input_layouts_; -} -inline void DebugOptions::set_xla_test_all_input_layouts(bool value) { - - xla_test_all_input_layouts_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_test_all_input_layouts) -} - -// bool xla_hlo_graph_sharding_color = 92; -inline void DebugOptions::clear_xla_hlo_graph_sharding_color() { - xla_hlo_graph_sharding_color_ = false; -} -inline bool DebugOptions::xla_hlo_graph_sharding_color() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_hlo_graph_sharding_color) - return xla_hlo_graph_sharding_color_; -} -inline void DebugOptions::set_xla_hlo_graph_sharding_color(bool value) { - - xla_hlo_graph_sharding_color_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_hlo_graph_sharding_color) -} - -// bool xla_hlo_tfgraph_device_scopes = 93; -inline void DebugOptions::clear_xla_hlo_tfgraph_device_scopes() { - xla_hlo_tfgraph_device_scopes_ = false; -} -inline bool DebugOptions::xla_hlo_tfgraph_device_scopes() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_hlo_tfgraph_device_scopes) - return xla_hlo_tfgraph_device_scopes_; -} -inline void DebugOptions::set_xla_hlo_tfgraph_device_scopes(bool value) { - - xla_hlo_tfgraph_device_scopes_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_hlo_tfgraph_device_scopes) -} - -// bool xla_gpu_use_cudnn_batchnorm = 94; -inline void DebugOptions::clear_xla_gpu_use_cudnn_batchnorm() { - xla_gpu_use_cudnn_batchnorm_ = false; -} -inline bool DebugOptions::xla_gpu_use_cudnn_batchnorm() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_gpu_use_cudnn_batchnorm) - return xla_gpu_use_cudnn_batchnorm_; -} -inline void DebugOptions::set_xla_gpu_use_cudnn_batchnorm(bool value) { - - xla_gpu_use_cudnn_batchnorm_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_gpu_use_cudnn_batchnorm) -} - -// string xla_dump_unoptimized_hlo_proto_to = 95; -inline void DebugOptions::clear_xla_dump_unoptimized_hlo_proto_to() { - xla_dump_unoptimized_hlo_proto_to_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DebugOptions::xla_dump_unoptimized_hlo_proto_to() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_dump_unoptimized_hlo_proto_to) - return xla_dump_unoptimized_hlo_proto_to_.GetNoArena(); -} -inline void DebugOptions::set_xla_dump_unoptimized_hlo_proto_to(const ::std::string& value) { - - xla_dump_unoptimized_hlo_proto_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_dump_unoptimized_hlo_proto_to) -} -#if LANG_CXX11 -inline void DebugOptions::set_xla_dump_unoptimized_hlo_proto_to(::std::string&& value) { - - xla_dump_unoptimized_hlo_proto_to_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:xla.DebugOptions.xla_dump_unoptimized_hlo_proto_to) -} -#endif -inline void DebugOptions::set_xla_dump_unoptimized_hlo_proto_to(const char* value) { - GOOGLE_DCHECK(value != NULL); - - xla_dump_unoptimized_hlo_proto_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:xla.DebugOptions.xla_dump_unoptimized_hlo_proto_to) -} -inline void DebugOptions::set_xla_dump_unoptimized_hlo_proto_to(const char* value, size_t size) { - - xla_dump_unoptimized_hlo_proto_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:xla.DebugOptions.xla_dump_unoptimized_hlo_proto_to) -} -inline ::std::string* DebugOptions::mutable_xla_dump_unoptimized_hlo_proto_to() { - - // @@protoc_insertion_point(field_mutable:xla.DebugOptions.xla_dump_unoptimized_hlo_proto_to) - return xla_dump_unoptimized_hlo_proto_to_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DebugOptions::release_xla_dump_unoptimized_hlo_proto_to() { - // @@protoc_insertion_point(field_release:xla.DebugOptions.xla_dump_unoptimized_hlo_proto_to) - - return xla_dump_unoptimized_hlo_proto_to_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DebugOptions::set_allocated_xla_dump_unoptimized_hlo_proto_to(::std::string* xla_dump_unoptimized_hlo_proto_to) { - if (xla_dump_unoptimized_hlo_proto_to != NULL) { - - } else { - - } - xla_dump_unoptimized_hlo_proto_to_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), xla_dump_unoptimized_hlo_proto_to); - // @@protoc_insertion_point(field_set_allocated:xla.DebugOptions.xla_dump_unoptimized_hlo_proto_to) -} - -// string xla_dump_per_pass_hlo_proto_to = 96; -inline void DebugOptions::clear_xla_dump_per_pass_hlo_proto_to() { - xla_dump_per_pass_hlo_proto_to_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& DebugOptions::xla_dump_per_pass_hlo_proto_to() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_dump_per_pass_hlo_proto_to) - return xla_dump_per_pass_hlo_proto_to_.GetNoArena(); -} -inline void DebugOptions::set_xla_dump_per_pass_hlo_proto_to(const ::std::string& value) { - - xla_dump_per_pass_hlo_proto_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_dump_per_pass_hlo_proto_to) -} -#if LANG_CXX11 -inline void DebugOptions::set_xla_dump_per_pass_hlo_proto_to(::std::string&& value) { - - xla_dump_per_pass_hlo_proto_to_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:xla.DebugOptions.xla_dump_per_pass_hlo_proto_to) -} -#endif -inline void DebugOptions::set_xla_dump_per_pass_hlo_proto_to(const char* value) { - GOOGLE_DCHECK(value != NULL); - - xla_dump_per_pass_hlo_proto_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:xla.DebugOptions.xla_dump_per_pass_hlo_proto_to) -} -inline void DebugOptions::set_xla_dump_per_pass_hlo_proto_to(const char* value, size_t size) { - - xla_dump_per_pass_hlo_proto_to_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:xla.DebugOptions.xla_dump_per_pass_hlo_proto_to) -} -inline ::std::string* DebugOptions::mutable_xla_dump_per_pass_hlo_proto_to() { - - // @@protoc_insertion_point(field_mutable:xla.DebugOptions.xla_dump_per_pass_hlo_proto_to) - return xla_dump_per_pass_hlo_proto_to_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* DebugOptions::release_xla_dump_per_pass_hlo_proto_to() { - // @@protoc_insertion_point(field_release:xla.DebugOptions.xla_dump_per_pass_hlo_proto_to) - - return xla_dump_per_pass_hlo_proto_to_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void DebugOptions::set_allocated_xla_dump_per_pass_hlo_proto_to(::std::string* xla_dump_per_pass_hlo_proto_to) { - if (xla_dump_per_pass_hlo_proto_to != NULL) { - - } else { - - } - xla_dump_per_pass_hlo_proto_to_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), xla_dump_per_pass_hlo_proto_to); - // @@protoc_insertion_point(field_set_allocated:xla.DebugOptions.xla_dump_per_pass_hlo_proto_to) -} - -// bool xla_cpu_use_mkl_dnn = 97; -inline void DebugOptions::clear_xla_cpu_use_mkl_dnn() { - xla_cpu_use_mkl_dnn_ = false; -} -inline bool DebugOptions::xla_cpu_use_mkl_dnn() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_cpu_use_mkl_dnn) - return xla_cpu_use_mkl_dnn_; -} -inline void DebugOptions::set_xla_cpu_use_mkl_dnn(bool value) { - - xla_cpu_use_mkl_dnn_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_cpu_use_mkl_dnn) -} - -// int32 xla_gpu_max_kernel_unroll_factor = 98; -inline void DebugOptions::clear_xla_gpu_max_kernel_unroll_factor() { - xla_gpu_max_kernel_unroll_factor_ = 0; -} -inline ::google::protobuf::int32 DebugOptions::xla_gpu_max_kernel_unroll_factor() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_gpu_max_kernel_unroll_factor) - return xla_gpu_max_kernel_unroll_factor_; -} -inline void DebugOptions::set_xla_gpu_max_kernel_unroll_factor(::google::protobuf::int32 value) { - - xla_gpu_max_kernel_unroll_factor_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_gpu_max_kernel_unroll_factor) -} - -// bool xla_cpu_enable_fast_math = 99; -inline void DebugOptions::clear_xla_cpu_enable_fast_math() { - xla_cpu_enable_fast_math_ = false; -} -inline bool DebugOptions::xla_cpu_enable_fast_math() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_cpu_enable_fast_math) - return xla_cpu_enable_fast_math_; -} -inline void DebugOptions::set_xla_cpu_enable_fast_math(bool value) { - - xla_cpu_enable_fast_math_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_cpu_enable_fast_math) -} - -// bool xla_gpu_enable_fast_math = 100; -inline void DebugOptions::clear_xla_gpu_enable_fast_math() { - xla_gpu_enable_fast_math_ = false; -} -inline bool DebugOptions::xla_gpu_enable_fast_math() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_gpu_enable_fast_math) - return xla_gpu_enable_fast_math_; -} -inline void DebugOptions::set_xla_gpu_enable_fast_math(bool value) { - - xla_gpu_enable_fast_math_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_gpu_enable_fast_math) -} - -// bool xla_gpu_crash_on_verification_failures = 101; -inline void DebugOptions::clear_xla_gpu_crash_on_verification_failures() { - xla_gpu_crash_on_verification_failures_ = false; -} -inline bool DebugOptions::xla_gpu_crash_on_verification_failures() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_gpu_crash_on_verification_failures) - return xla_gpu_crash_on_verification_failures_; -} -inline void DebugOptions::set_xla_gpu_crash_on_verification_failures(bool value) { - - xla_gpu_crash_on_verification_failures_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_gpu_crash_on_verification_failures) -} - -// int32 xla_force_host_platform_device_count = 102; -inline void DebugOptions::clear_xla_force_host_platform_device_count() { - xla_force_host_platform_device_count_ = 0; -} -inline ::google::protobuf::int32 DebugOptions::xla_force_host_platform_device_count() const { - // @@protoc_insertion_point(field_get:xla.DebugOptions.xla_force_host_platform_device_count) - return xla_force_host_platform_device_count_; -} -inline void DebugOptions::set_xla_force_host_platform_device_count(::google::protobuf::int32 value) { - - xla_force_host_platform_device_count_ = value; - // @@protoc_insertion_point(field_set:xla.DebugOptions.xla_force_host_platform_device_count) -} - -// map xla_backend_extra_options = 500; -inline int DebugOptions::xla_backend_extra_options_size() const { - return xla_backend_extra_options_.size(); -} -inline void DebugOptions::clear_xla_backend_extra_options() { - xla_backend_extra_options_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -DebugOptions::xla_backend_extra_options() const { - // @@protoc_insertion_point(field_map:xla.DebugOptions.xla_backend_extra_options) - return xla_backend_extra_options_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -DebugOptions::mutable_xla_backend_extra_options() { - // @@protoc_insertion_point(field_mutable_map:xla.DebugOptions.xla_backend_extra_options) - return xla_backend_extra_options_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// ExecutionOptions - -// .xla.Shape shape_with_output_layout = 2; -inline bool ExecutionOptions::has_shape_with_output_layout() const { - return this != internal_default_instance() && shape_with_output_layout_ != NULL; -} -inline const ::xla::Shape& ExecutionOptions::_internal_shape_with_output_layout() const { - return *shape_with_output_layout_; -} -inline const ::xla::Shape& ExecutionOptions::shape_with_output_layout() const { - const ::xla::Shape* p = shape_with_output_layout_; - // @@protoc_insertion_point(field_get:xla.ExecutionOptions.shape_with_output_layout) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_Shape_default_instance_); -} -inline ::xla::Shape* ExecutionOptions::release_shape_with_output_layout() { - // @@protoc_insertion_point(field_release:xla.ExecutionOptions.shape_with_output_layout) - - ::xla::Shape* temp = shape_with_output_layout_; - shape_with_output_layout_ = NULL; - return temp; -} -inline ::xla::Shape* ExecutionOptions::mutable_shape_with_output_layout() { - - if (shape_with_output_layout_ == NULL) { - auto* p = CreateMaybeMessage<::xla::Shape>(GetArenaNoVirtual()); - shape_with_output_layout_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.ExecutionOptions.shape_with_output_layout) - return shape_with_output_layout_; -} -inline void ExecutionOptions::set_allocated_shape_with_output_layout(::xla::Shape* shape_with_output_layout) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(shape_with_output_layout_); - } - if (shape_with_output_layout) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(shape_with_output_layout)->GetArena(); - if (message_arena != submessage_arena) { - shape_with_output_layout = ::google::protobuf::internal::GetOwnedMessage( - message_arena, shape_with_output_layout, submessage_arena); - } - - } else { - - } - shape_with_output_layout_ = shape_with_output_layout; - // @@protoc_insertion_point(field_set_allocated:xla.ExecutionOptions.shape_with_output_layout) -} - -// uint64 seed = 3; -inline void ExecutionOptions::clear_seed() { - seed_ = GOOGLE_ULONGLONG(0); -} -inline ::google::protobuf::uint64 ExecutionOptions::seed() const { - // @@protoc_insertion_point(field_get:xla.ExecutionOptions.seed) - return seed_; -} -inline void ExecutionOptions::set_seed(::google::protobuf::uint64 value) { - - seed_ = value; - // @@protoc_insertion_point(field_set:xla.ExecutionOptions.seed) -} - -// .xla.DebugOptions debug_options = 4; -inline bool ExecutionOptions::has_debug_options() const { - return this != internal_default_instance() && debug_options_ != NULL; -} -inline void ExecutionOptions::clear_debug_options() { - if (GetArenaNoVirtual() == NULL && debug_options_ != NULL) { - delete debug_options_; - } - debug_options_ = NULL; -} -inline const ::xla::DebugOptions& ExecutionOptions::_internal_debug_options() const { - return *debug_options_; -} -inline const ::xla::DebugOptions& ExecutionOptions::debug_options() const { - const ::xla::DebugOptions* p = debug_options_; - // @@protoc_insertion_point(field_get:xla.ExecutionOptions.debug_options) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_DebugOptions_default_instance_); -} -inline ::xla::DebugOptions* ExecutionOptions::release_debug_options() { - // @@protoc_insertion_point(field_release:xla.ExecutionOptions.debug_options) - - ::xla::DebugOptions* temp = debug_options_; - debug_options_ = NULL; - return temp; -} -inline ::xla::DebugOptions* ExecutionOptions::mutable_debug_options() { - - if (debug_options_ == NULL) { - auto* p = CreateMaybeMessage<::xla::DebugOptions>(GetArenaNoVirtual()); - debug_options_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.ExecutionOptions.debug_options) - return debug_options_; -} -inline void ExecutionOptions::set_allocated_debug_options(::xla::DebugOptions* debug_options) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete debug_options_; - } - if (debug_options) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - debug_options = ::google::protobuf::internal::GetOwnedMessage( - message_arena, debug_options, submessage_arena); - } - - } else { - - } - debug_options_ = debug_options; - // @@protoc_insertion_point(field_set_allocated:xla.ExecutionOptions.debug_options) -} - -// repeated .xla.DeviceHandle device_handles = 5; -inline int ExecutionOptions::device_handles_size() const { - return device_handles_.size(); -} -inline ::xla::DeviceHandle* ExecutionOptions::mutable_device_handles(int index) { - // @@protoc_insertion_point(field_mutable:xla.ExecutionOptions.device_handles) - return device_handles_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::DeviceHandle >* -ExecutionOptions::mutable_device_handles() { - // @@protoc_insertion_point(field_mutable_list:xla.ExecutionOptions.device_handles) - return &device_handles_; -} -inline const ::xla::DeviceHandle& ExecutionOptions::device_handles(int index) const { - // @@protoc_insertion_point(field_get:xla.ExecutionOptions.device_handles) - return device_handles_.Get(index); -} -inline ::xla::DeviceHandle* ExecutionOptions::add_device_handles() { - // @@protoc_insertion_point(field_add:xla.ExecutionOptions.device_handles) - return device_handles_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::DeviceHandle >& -ExecutionOptions::device_handles() const { - // @@protoc_insertion_point(field_list:xla.ExecutionOptions.device_handles) - return device_handles_; -} - -// ------------------------------------------------------------------- - -// GetDeviceHandlesRequest - -// int64 device_count = 1; -inline void GetDeviceHandlesRequest::clear_device_count() { - device_count_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 GetDeviceHandlesRequest::device_count() const { - // @@protoc_insertion_point(field_get:xla.GetDeviceHandlesRequest.device_count) - return device_count_; -} -inline void GetDeviceHandlesRequest::set_device_count(::google::protobuf::int64 value) { - - device_count_ = value; - // @@protoc_insertion_point(field_set:xla.GetDeviceHandlesRequest.device_count) -} - -// ------------------------------------------------------------------- - -// GetDeviceHandlesResponse - -// repeated .xla.DeviceHandle device_handles = 1; -inline int GetDeviceHandlesResponse::device_handles_size() const { - return device_handles_.size(); -} -inline ::xla::DeviceHandle* GetDeviceHandlesResponse::mutable_device_handles(int index) { - // @@protoc_insertion_point(field_mutable:xla.GetDeviceHandlesResponse.device_handles) - return device_handles_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::DeviceHandle >* -GetDeviceHandlesResponse::mutable_device_handles() { - // @@protoc_insertion_point(field_mutable_list:xla.GetDeviceHandlesResponse.device_handles) - return &device_handles_; -} -inline const ::xla::DeviceHandle& GetDeviceHandlesResponse::device_handles(int index) const { - // @@protoc_insertion_point(field_get:xla.GetDeviceHandlesResponse.device_handles) - return device_handles_.Get(index); -} -inline ::xla::DeviceHandle* GetDeviceHandlesResponse::add_device_handles() { - // @@protoc_insertion_point(field_add:xla.GetDeviceHandlesResponse.device_handles) - return device_handles_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::DeviceHandle >& -GetDeviceHandlesResponse::device_handles() const { - // @@protoc_insertion_point(field_list:xla.GetDeviceHandlesResponse.device_handles) - return device_handles_; -} - -// ------------------------------------------------------------------- - -// TransferToClientRequest - -// .xla.GlobalDataHandle data = 1; -inline bool TransferToClientRequest::has_data() const { - return this != internal_default_instance() && data_ != NULL; -} -inline const ::xla::GlobalDataHandle& TransferToClientRequest::_internal_data() const { - return *data_; -} -inline const ::xla::GlobalDataHandle& TransferToClientRequest::data() const { - const ::xla::GlobalDataHandle* p = data_; - // @@protoc_insertion_point(field_get:xla.TransferToClientRequest.data) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_GlobalDataHandle_default_instance_); -} -inline ::xla::GlobalDataHandle* TransferToClientRequest::release_data() { - // @@protoc_insertion_point(field_release:xla.TransferToClientRequest.data) - - ::xla::GlobalDataHandle* temp = data_; - data_ = NULL; - return temp; -} -inline ::xla::GlobalDataHandle* TransferToClientRequest::mutable_data() { - - if (data_ == NULL) { - auto* p = CreateMaybeMessage<::xla::GlobalDataHandle>(GetArenaNoVirtual()); - data_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.TransferToClientRequest.data) - return data_; -} -inline void TransferToClientRequest::set_allocated_data(::xla::GlobalDataHandle* data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(data_); - } - if (data) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(data)->GetArena(); - if (message_arena != submessage_arena) { - data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, data, submessage_arena); - } - - } else { - - } - data_ = data; - // @@protoc_insertion_point(field_set_allocated:xla.TransferToClientRequest.data) -} - -// .xla.Shape shape_with_layout = 2; -inline bool TransferToClientRequest::has_shape_with_layout() const { - return this != internal_default_instance() && shape_with_layout_ != NULL; -} -inline const ::xla::Shape& TransferToClientRequest::_internal_shape_with_layout() const { - return *shape_with_layout_; -} -inline const ::xla::Shape& TransferToClientRequest::shape_with_layout() const { - const ::xla::Shape* p = shape_with_layout_; - // @@protoc_insertion_point(field_get:xla.TransferToClientRequest.shape_with_layout) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_Shape_default_instance_); -} -inline ::xla::Shape* TransferToClientRequest::release_shape_with_layout() { - // @@protoc_insertion_point(field_release:xla.TransferToClientRequest.shape_with_layout) - - ::xla::Shape* temp = shape_with_layout_; - shape_with_layout_ = NULL; - return temp; -} -inline ::xla::Shape* TransferToClientRequest::mutable_shape_with_layout() { - - if (shape_with_layout_ == NULL) { - auto* p = CreateMaybeMessage<::xla::Shape>(GetArenaNoVirtual()); - shape_with_layout_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.TransferToClientRequest.shape_with_layout) - return shape_with_layout_; -} -inline void TransferToClientRequest::set_allocated_shape_with_layout(::xla::Shape* shape_with_layout) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(shape_with_layout_); - } - if (shape_with_layout) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(shape_with_layout)->GetArena(); - if (message_arena != submessage_arena) { - shape_with_layout = ::google::protobuf::internal::GetOwnedMessage( - message_arena, shape_with_layout, submessage_arena); - } - - } else { - - } - shape_with_layout_ = shape_with_layout; - // @@protoc_insertion_point(field_set_allocated:xla.TransferToClientRequest.shape_with_layout) -} - -// ------------------------------------------------------------------- - -// TransferToClientResponse - -// .xla.LiteralProto literal = 1; -inline bool TransferToClientResponse::has_literal() const { - return this != internal_default_instance() && literal_ != NULL; -} -inline const ::xla::LiteralProto& TransferToClientResponse::_internal_literal() const { - return *literal_; -} -inline const ::xla::LiteralProto& TransferToClientResponse::literal() const { - const ::xla::LiteralProto* p = literal_; - // @@protoc_insertion_point(field_get:xla.TransferToClientResponse.literal) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_LiteralProto_default_instance_); -} -inline ::xla::LiteralProto* TransferToClientResponse::release_literal() { - // @@protoc_insertion_point(field_release:xla.TransferToClientResponse.literal) - - ::xla::LiteralProto* temp = literal_; - literal_ = NULL; - return temp; -} -inline ::xla::LiteralProto* TransferToClientResponse::mutable_literal() { - - if (literal_ == NULL) { - auto* p = CreateMaybeMessage<::xla::LiteralProto>(GetArenaNoVirtual()); - literal_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.TransferToClientResponse.literal) - return literal_; -} -inline void TransferToClientResponse::set_allocated_literal(::xla::LiteralProto* literal) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(literal_); - } - if (literal) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(literal)->GetArena(); - if (message_arena != submessage_arena) { - literal = ::google::protobuf::internal::GetOwnedMessage( - message_arena, literal, submessage_arena); - } - - } else { - - } - literal_ = literal; - // @@protoc_insertion_point(field_set_allocated:xla.TransferToClientResponse.literal) -} - -// ------------------------------------------------------------------- - -// TransferToServerRequest - -// .xla.LiteralProto literal = 1; -inline bool TransferToServerRequest::has_literal() const { - return this != internal_default_instance() && literal_ != NULL; -} -inline const ::xla::LiteralProto& TransferToServerRequest::_internal_literal() const { - return *literal_; -} -inline const ::xla::LiteralProto& TransferToServerRequest::literal() const { - const ::xla::LiteralProto* p = literal_; - // @@protoc_insertion_point(field_get:xla.TransferToServerRequest.literal) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_LiteralProto_default_instance_); -} -inline ::xla::LiteralProto* TransferToServerRequest::release_literal() { - // @@protoc_insertion_point(field_release:xla.TransferToServerRequest.literal) - - ::xla::LiteralProto* temp = literal_; - literal_ = NULL; - return temp; -} -inline ::xla::LiteralProto* TransferToServerRequest::mutable_literal() { - - if (literal_ == NULL) { - auto* p = CreateMaybeMessage<::xla::LiteralProto>(GetArenaNoVirtual()); - literal_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.TransferToServerRequest.literal) - return literal_; -} -inline void TransferToServerRequest::set_allocated_literal(::xla::LiteralProto* literal) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(literal_); - } - if (literal) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(literal)->GetArena(); - if (message_arena != submessage_arena) { - literal = ::google::protobuf::internal::GetOwnedMessage( - message_arena, literal, submessage_arena); - } - - } else { - - } - literal_ = literal; - // @@protoc_insertion_point(field_set_allocated:xla.TransferToServerRequest.literal) -} - -// .xla.DeviceHandle device_handle = 2; -inline bool TransferToServerRequest::has_device_handle() const { - return this != internal_default_instance() && device_handle_ != NULL; -} -inline const ::xla::DeviceHandle& TransferToServerRequest::_internal_device_handle() const { - return *device_handle_; -} -inline const ::xla::DeviceHandle& TransferToServerRequest::device_handle() const { - const ::xla::DeviceHandle* p = device_handle_; - // @@protoc_insertion_point(field_get:xla.TransferToServerRequest.device_handle) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_DeviceHandle_default_instance_); -} -inline ::xla::DeviceHandle* TransferToServerRequest::release_device_handle() { - // @@protoc_insertion_point(field_release:xla.TransferToServerRequest.device_handle) - - ::xla::DeviceHandle* temp = device_handle_; - device_handle_ = NULL; - return temp; -} -inline ::xla::DeviceHandle* TransferToServerRequest::mutable_device_handle() { - - if (device_handle_ == NULL) { - auto* p = CreateMaybeMessage<::xla::DeviceHandle>(GetArenaNoVirtual()); - device_handle_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.TransferToServerRequest.device_handle) - return device_handle_; -} -inline void TransferToServerRequest::set_allocated_device_handle(::xla::DeviceHandle* device_handle) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(device_handle_); - } - if (device_handle) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(device_handle)->GetArena(); - if (message_arena != submessage_arena) { - device_handle = ::google::protobuf::internal::GetOwnedMessage( - message_arena, device_handle, submessage_arena); - } - - } else { - - } - device_handle_ = device_handle; - // @@protoc_insertion_point(field_set_allocated:xla.TransferToServerRequest.device_handle) -} - -// ------------------------------------------------------------------- - -// TransferToServerResponse - -// .xla.GlobalDataHandle data = 1; -inline bool TransferToServerResponse::has_data() const { - return this != internal_default_instance() && data_ != NULL; -} -inline const ::xla::GlobalDataHandle& TransferToServerResponse::_internal_data() const { - return *data_; -} -inline const ::xla::GlobalDataHandle& TransferToServerResponse::data() const { - const ::xla::GlobalDataHandle* p = data_; - // @@protoc_insertion_point(field_get:xla.TransferToServerResponse.data) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_GlobalDataHandle_default_instance_); -} -inline ::xla::GlobalDataHandle* TransferToServerResponse::release_data() { - // @@protoc_insertion_point(field_release:xla.TransferToServerResponse.data) - - ::xla::GlobalDataHandle* temp = data_; - data_ = NULL; - return temp; -} -inline ::xla::GlobalDataHandle* TransferToServerResponse::mutable_data() { - - if (data_ == NULL) { - auto* p = CreateMaybeMessage<::xla::GlobalDataHandle>(GetArenaNoVirtual()); - data_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.TransferToServerResponse.data) - return data_; -} -inline void TransferToServerResponse::set_allocated_data(::xla::GlobalDataHandle* data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(data_); - } - if (data) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(data)->GetArena(); - if (message_arena != submessage_arena) { - data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, data, submessage_arena); - } - - } else { - - } - data_ = data; - // @@protoc_insertion_point(field_set_allocated:xla.TransferToServerResponse.data) -} - -// ------------------------------------------------------------------- - -// TransferToInfeedRequest - -// .xla.LiteralProto literal = 1; -inline bool TransferToInfeedRequest::has_literal() const { - return this != internal_default_instance() && literal_ != NULL; -} -inline const ::xla::LiteralProto& TransferToInfeedRequest::_internal_literal() const { - return *literal_; -} -inline const ::xla::LiteralProto& TransferToInfeedRequest::literal() const { - const ::xla::LiteralProto* p = literal_; - // @@protoc_insertion_point(field_get:xla.TransferToInfeedRequest.literal) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_LiteralProto_default_instance_); -} -inline ::xla::LiteralProto* TransferToInfeedRequest::release_literal() { - // @@protoc_insertion_point(field_release:xla.TransferToInfeedRequest.literal) - - ::xla::LiteralProto* temp = literal_; - literal_ = NULL; - return temp; -} -inline ::xla::LiteralProto* TransferToInfeedRequest::mutable_literal() { - - if (literal_ == NULL) { - auto* p = CreateMaybeMessage<::xla::LiteralProto>(GetArenaNoVirtual()); - literal_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.TransferToInfeedRequest.literal) - return literal_; -} -inline void TransferToInfeedRequest::set_allocated_literal(::xla::LiteralProto* literal) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(literal_); - } - if (literal) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(literal)->GetArena(); - if (message_arena != submessage_arena) { - literal = ::google::protobuf::internal::GetOwnedMessage( - message_arena, literal, submessage_arena); - } - - } else { - - } - literal_ = literal; - // @@protoc_insertion_point(field_set_allocated:xla.TransferToInfeedRequest.literal) -} - -// int64 replica_id = 2; -inline void TransferToInfeedRequest::clear_replica_id() { - replica_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 TransferToInfeedRequest::replica_id() const { - // @@protoc_insertion_point(field_get:xla.TransferToInfeedRequest.replica_id) - return replica_id_; -} -inline void TransferToInfeedRequest::set_replica_id(::google::protobuf::int64 value) { - - replica_id_ = value; - // @@protoc_insertion_point(field_set:xla.TransferToInfeedRequest.replica_id) -} - -// .xla.DeviceHandle device_handle = 3; -inline bool TransferToInfeedRequest::has_device_handle() const { - return this != internal_default_instance() && device_handle_ != NULL; -} -inline const ::xla::DeviceHandle& TransferToInfeedRequest::_internal_device_handle() const { - return *device_handle_; -} -inline const ::xla::DeviceHandle& TransferToInfeedRequest::device_handle() const { - const ::xla::DeviceHandle* p = device_handle_; - // @@protoc_insertion_point(field_get:xla.TransferToInfeedRequest.device_handle) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_DeviceHandle_default_instance_); -} -inline ::xla::DeviceHandle* TransferToInfeedRequest::release_device_handle() { - // @@protoc_insertion_point(field_release:xla.TransferToInfeedRequest.device_handle) - - ::xla::DeviceHandle* temp = device_handle_; - device_handle_ = NULL; - return temp; -} -inline ::xla::DeviceHandle* TransferToInfeedRequest::mutable_device_handle() { - - if (device_handle_ == NULL) { - auto* p = CreateMaybeMessage<::xla::DeviceHandle>(GetArenaNoVirtual()); - device_handle_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.TransferToInfeedRequest.device_handle) - return device_handle_; -} -inline void TransferToInfeedRequest::set_allocated_device_handle(::xla::DeviceHandle* device_handle) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(device_handle_); - } - if (device_handle) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(device_handle)->GetArena(); - if (message_arena != submessage_arena) { - device_handle = ::google::protobuf::internal::GetOwnedMessage( - message_arena, device_handle, submessage_arena); - } - - } else { - - } - device_handle_ = device_handle; - // @@protoc_insertion_point(field_set_allocated:xla.TransferToInfeedRequest.device_handle) -} - -// ------------------------------------------------------------------- - -// TransferToInfeedResponse - -// ------------------------------------------------------------------- - -// TransferFromOutfeedRequest - -// .xla.Shape shape_with_layout = 1; -inline bool TransferFromOutfeedRequest::has_shape_with_layout() const { - return this != internal_default_instance() && shape_with_layout_ != NULL; -} -inline const ::xla::Shape& TransferFromOutfeedRequest::_internal_shape_with_layout() const { - return *shape_with_layout_; -} -inline const ::xla::Shape& TransferFromOutfeedRequest::shape_with_layout() const { - const ::xla::Shape* p = shape_with_layout_; - // @@protoc_insertion_point(field_get:xla.TransferFromOutfeedRequest.shape_with_layout) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_Shape_default_instance_); -} -inline ::xla::Shape* TransferFromOutfeedRequest::release_shape_with_layout() { - // @@protoc_insertion_point(field_release:xla.TransferFromOutfeedRequest.shape_with_layout) - - ::xla::Shape* temp = shape_with_layout_; - shape_with_layout_ = NULL; - return temp; -} -inline ::xla::Shape* TransferFromOutfeedRequest::mutable_shape_with_layout() { - - if (shape_with_layout_ == NULL) { - auto* p = CreateMaybeMessage<::xla::Shape>(GetArenaNoVirtual()); - shape_with_layout_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.TransferFromOutfeedRequest.shape_with_layout) - return shape_with_layout_; -} -inline void TransferFromOutfeedRequest::set_allocated_shape_with_layout(::xla::Shape* shape_with_layout) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(shape_with_layout_); - } - if (shape_with_layout) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(shape_with_layout)->GetArena(); - if (message_arena != submessage_arena) { - shape_with_layout = ::google::protobuf::internal::GetOwnedMessage( - message_arena, shape_with_layout, submessage_arena); - } - - } else { - - } - shape_with_layout_ = shape_with_layout; - // @@protoc_insertion_point(field_set_allocated:xla.TransferFromOutfeedRequest.shape_with_layout) -} - -// int64 replica_id = 2; -inline void TransferFromOutfeedRequest::clear_replica_id() { - replica_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 TransferFromOutfeedRequest::replica_id() const { - // @@protoc_insertion_point(field_get:xla.TransferFromOutfeedRequest.replica_id) - return replica_id_; -} -inline void TransferFromOutfeedRequest::set_replica_id(::google::protobuf::int64 value) { - - replica_id_ = value; - // @@protoc_insertion_point(field_set:xla.TransferFromOutfeedRequest.replica_id) -} - -// .xla.DeviceHandle device_handle = 3; -inline bool TransferFromOutfeedRequest::has_device_handle() const { - return this != internal_default_instance() && device_handle_ != NULL; -} -inline const ::xla::DeviceHandle& TransferFromOutfeedRequest::_internal_device_handle() const { - return *device_handle_; -} -inline const ::xla::DeviceHandle& TransferFromOutfeedRequest::device_handle() const { - const ::xla::DeviceHandle* p = device_handle_; - // @@protoc_insertion_point(field_get:xla.TransferFromOutfeedRequest.device_handle) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_DeviceHandle_default_instance_); -} -inline ::xla::DeviceHandle* TransferFromOutfeedRequest::release_device_handle() { - // @@protoc_insertion_point(field_release:xla.TransferFromOutfeedRequest.device_handle) - - ::xla::DeviceHandle* temp = device_handle_; - device_handle_ = NULL; - return temp; -} -inline ::xla::DeviceHandle* TransferFromOutfeedRequest::mutable_device_handle() { - - if (device_handle_ == NULL) { - auto* p = CreateMaybeMessage<::xla::DeviceHandle>(GetArenaNoVirtual()); - device_handle_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.TransferFromOutfeedRequest.device_handle) - return device_handle_; -} -inline void TransferFromOutfeedRequest::set_allocated_device_handle(::xla::DeviceHandle* device_handle) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(device_handle_); - } - if (device_handle) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(device_handle)->GetArena(); - if (message_arena != submessage_arena) { - device_handle = ::google::protobuf::internal::GetOwnedMessage( - message_arena, device_handle, submessage_arena); - } - - } else { - - } - device_handle_ = device_handle; - // @@protoc_insertion_point(field_set_allocated:xla.TransferFromOutfeedRequest.device_handle) -} - -// ------------------------------------------------------------------- - -// TransferFromOutfeedResponse - -// .xla.LiteralProto literal = 1; -inline bool TransferFromOutfeedResponse::has_literal() const { - return this != internal_default_instance() && literal_ != NULL; -} -inline const ::xla::LiteralProto& TransferFromOutfeedResponse::_internal_literal() const { - return *literal_; -} -inline const ::xla::LiteralProto& TransferFromOutfeedResponse::literal() const { - const ::xla::LiteralProto* p = literal_; - // @@protoc_insertion_point(field_get:xla.TransferFromOutfeedResponse.literal) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_LiteralProto_default_instance_); -} -inline ::xla::LiteralProto* TransferFromOutfeedResponse::release_literal() { - // @@protoc_insertion_point(field_release:xla.TransferFromOutfeedResponse.literal) - - ::xla::LiteralProto* temp = literal_; - literal_ = NULL; - return temp; -} -inline ::xla::LiteralProto* TransferFromOutfeedResponse::mutable_literal() { - - if (literal_ == NULL) { - auto* p = CreateMaybeMessage<::xla::LiteralProto>(GetArenaNoVirtual()); - literal_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.TransferFromOutfeedResponse.literal) - return literal_; -} -inline void TransferFromOutfeedResponse::set_allocated_literal(::xla::LiteralProto* literal) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(literal_); - } - if (literal) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(literal)->GetArena(); - if (message_arena != submessage_arena) { - literal = ::google::protobuf::internal::GetOwnedMessage( - message_arena, literal, submessage_arena); - } - - } else { - - } - literal_ = literal; - // @@protoc_insertion_point(field_set_allocated:xla.TransferFromOutfeedResponse.literal) -} - -// ------------------------------------------------------------------- - -// ResetDeviceRequest - -// .xla.DeviceHandle device_handle = 1; -inline bool ResetDeviceRequest::has_device_handle() const { - return this != internal_default_instance() && device_handle_ != NULL; -} -inline const ::xla::DeviceHandle& ResetDeviceRequest::_internal_device_handle() const { - return *device_handle_; -} -inline const ::xla::DeviceHandle& ResetDeviceRequest::device_handle() const { - const ::xla::DeviceHandle* p = device_handle_; - // @@protoc_insertion_point(field_get:xla.ResetDeviceRequest.device_handle) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_DeviceHandle_default_instance_); -} -inline ::xla::DeviceHandle* ResetDeviceRequest::release_device_handle() { - // @@protoc_insertion_point(field_release:xla.ResetDeviceRequest.device_handle) - - ::xla::DeviceHandle* temp = device_handle_; - device_handle_ = NULL; - return temp; -} -inline ::xla::DeviceHandle* ResetDeviceRequest::mutable_device_handle() { - - if (device_handle_ == NULL) { - auto* p = CreateMaybeMessage<::xla::DeviceHandle>(GetArenaNoVirtual()); - device_handle_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.ResetDeviceRequest.device_handle) - return device_handle_; -} -inline void ResetDeviceRequest::set_allocated_device_handle(::xla::DeviceHandle* device_handle) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(device_handle_); - } - if (device_handle) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(device_handle)->GetArena(); - if (message_arena != submessage_arena) { - device_handle = ::google::protobuf::internal::GetOwnedMessage( - message_arena, device_handle, submessage_arena); - } - - } else { - - } - device_handle_ = device_handle; - // @@protoc_insertion_point(field_set_allocated:xla.ResetDeviceRequest.device_handle) -} - -// ------------------------------------------------------------------- - -// ResetDeviceResponse - -// ------------------------------------------------------------------- - -// ComputationGraphStatsRequest - -// .xla.HloModuleProto computation = 1; -inline bool ComputationGraphStatsRequest::has_computation() const { - return this != internal_default_instance() && computation_ != NULL; -} -inline const ::xla::HloModuleProto& ComputationGraphStatsRequest::_internal_computation() const { - return *computation_; -} -inline const ::xla::HloModuleProto& ComputationGraphStatsRequest::computation() const { - const ::xla::HloModuleProto* p = computation_; - // @@protoc_insertion_point(field_get:xla.ComputationGraphStatsRequest.computation) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_HloModuleProto_default_instance_); -} -inline ::xla::HloModuleProto* ComputationGraphStatsRequest::release_computation() { - // @@protoc_insertion_point(field_release:xla.ComputationGraphStatsRequest.computation) - - ::xla::HloModuleProto* temp = computation_; - computation_ = NULL; - return temp; -} -inline ::xla::HloModuleProto* ComputationGraphStatsRequest::mutable_computation() { - - if (computation_ == NULL) { - auto* p = CreateMaybeMessage<::xla::HloModuleProto>(GetArenaNoVirtual()); - computation_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.ComputationGraphStatsRequest.computation) - return computation_; -} -inline void ComputationGraphStatsRequest::set_allocated_computation(::xla::HloModuleProto* computation) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(computation_); - } - if (computation) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(computation)->GetArena(); - if (message_arena != submessage_arena) { - computation = ::google::protobuf::internal::GetOwnedMessage( - message_arena, computation, submessage_arena); - } - - } else { - - } - computation_ = computation; - // @@protoc_insertion_point(field_set_allocated:xla.ComputationGraphStatsRequest.computation) -} - -// .xla.DebugOptions debug_options = 2; -inline bool ComputationGraphStatsRequest::has_debug_options() const { - return this != internal_default_instance() && debug_options_ != NULL; -} -inline void ComputationGraphStatsRequest::clear_debug_options() { - if (GetArenaNoVirtual() == NULL && debug_options_ != NULL) { - delete debug_options_; - } - debug_options_ = NULL; -} -inline const ::xla::DebugOptions& ComputationGraphStatsRequest::_internal_debug_options() const { - return *debug_options_; -} -inline const ::xla::DebugOptions& ComputationGraphStatsRequest::debug_options() const { - const ::xla::DebugOptions* p = debug_options_; - // @@protoc_insertion_point(field_get:xla.ComputationGraphStatsRequest.debug_options) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_DebugOptions_default_instance_); -} -inline ::xla::DebugOptions* ComputationGraphStatsRequest::release_debug_options() { - // @@protoc_insertion_point(field_release:xla.ComputationGraphStatsRequest.debug_options) - - ::xla::DebugOptions* temp = debug_options_; - debug_options_ = NULL; - return temp; -} -inline ::xla::DebugOptions* ComputationGraphStatsRequest::mutable_debug_options() { - - if (debug_options_ == NULL) { - auto* p = CreateMaybeMessage<::xla::DebugOptions>(GetArenaNoVirtual()); - debug_options_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.ComputationGraphStatsRequest.debug_options) - return debug_options_; -} -inline void ComputationGraphStatsRequest::set_allocated_debug_options(::xla::DebugOptions* debug_options) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete debug_options_; - } - if (debug_options) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - debug_options = ::google::protobuf::internal::GetOwnedMessage( - message_arena, debug_options, submessage_arena); - } - - } else { - - } - debug_options_ = debug_options; - // @@protoc_insertion_point(field_set_allocated:xla.ComputationGraphStatsRequest.debug_options) -} - -// ------------------------------------------------------------------- - -// ComputationStatsResponse - -// .xla.ComputationStats stats = 1; -inline bool ComputationStatsResponse::has_stats() const { - return this != internal_default_instance() && stats_ != NULL; -} -inline const ::xla::ComputationStats& ComputationStatsResponse::_internal_stats() const { - return *stats_; -} -inline const ::xla::ComputationStats& ComputationStatsResponse::stats() const { - const ::xla::ComputationStats* p = stats_; - // @@protoc_insertion_point(field_get:xla.ComputationStatsResponse.stats) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_ComputationStats_default_instance_); -} -inline ::xla::ComputationStats* ComputationStatsResponse::release_stats() { - // @@protoc_insertion_point(field_release:xla.ComputationStatsResponse.stats) - - ::xla::ComputationStats* temp = stats_; - stats_ = NULL; - return temp; -} -inline ::xla::ComputationStats* ComputationStatsResponse::mutable_stats() { - - if (stats_ == NULL) { - auto* p = CreateMaybeMessage<::xla::ComputationStats>(GetArenaNoVirtual()); - stats_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.ComputationStatsResponse.stats) - return stats_; -} -inline void ComputationStatsResponse::set_allocated_stats(::xla::ComputationStats* stats) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(stats_); - } - if (stats) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(stats)->GetArena(); - if (message_arena != submessage_arena) { - stats = ::google::protobuf::internal::GetOwnedMessage( - message_arena, stats, submessage_arena); - } - - } else { - - } - stats_ = stats; - // @@protoc_insertion_point(field_set_allocated:xla.ComputationStatsResponse.stats) -} - -// ------------------------------------------------------------------- - -// CreateChannelHandleRequest - -// .xla.ChannelHandle.ChannelType channel_type = 1; -inline void CreateChannelHandleRequest::clear_channel_type() { - channel_type_ = 0; -} -inline ::xla::ChannelHandle_ChannelType CreateChannelHandleRequest::channel_type() const { - // @@protoc_insertion_point(field_get:xla.CreateChannelHandleRequest.channel_type) - return static_cast< ::xla::ChannelHandle_ChannelType >(channel_type_); -} -inline void CreateChannelHandleRequest::set_channel_type(::xla::ChannelHandle_ChannelType value) { - - channel_type_ = value; - // @@protoc_insertion_point(field_set:xla.CreateChannelHandleRequest.channel_type) -} - -// ------------------------------------------------------------------- - -// CreateChannelHandleResponse - -// .xla.ChannelHandle channel = 1; -inline bool CreateChannelHandleResponse::has_channel() const { - return this != internal_default_instance() && channel_ != NULL; -} -inline const ::xla::ChannelHandle& CreateChannelHandleResponse::_internal_channel() const { - return *channel_; -} -inline const ::xla::ChannelHandle& CreateChannelHandleResponse::channel() const { - const ::xla::ChannelHandle* p = channel_; - // @@protoc_insertion_point(field_get:xla.CreateChannelHandleResponse.channel) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_ChannelHandle_default_instance_); -} -inline ::xla::ChannelHandle* CreateChannelHandleResponse::release_channel() { - // @@protoc_insertion_point(field_release:xla.CreateChannelHandleResponse.channel) - - ::xla::ChannelHandle* temp = channel_; - channel_ = NULL; - return temp; -} -inline ::xla::ChannelHandle* CreateChannelHandleResponse::mutable_channel() { - - if (channel_ == NULL) { - auto* p = CreateMaybeMessage<::xla::ChannelHandle>(GetArenaNoVirtual()); - channel_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.CreateChannelHandleResponse.channel) - return channel_; -} -inline void CreateChannelHandleResponse::set_allocated_channel(::xla::ChannelHandle* channel) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(channel_); - } - if (channel) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(channel)->GetArena(); - if (message_arena != submessage_arena) { - channel = ::google::protobuf::internal::GetOwnedMessage( - message_arena, channel, submessage_arena); - } - - } else { - - } - channel_ = channel; - // @@protoc_insertion_point(field_set_allocated:xla.CreateChannelHandleResponse.channel) -} - -// ------------------------------------------------------------------- - -// UnregisterRequest - -// .xla.GlobalDataHandle data = 1; -inline bool UnregisterRequest::has_data() const { - return this != internal_default_instance() && data_ != NULL; -} -inline const ::xla::GlobalDataHandle& UnregisterRequest::_internal_data() const { - return *data_; -} -inline const ::xla::GlobalDataHandle& UnregisterRequest::data() const { - const ::xla::GlobalDataHandle* p = data_; - // @@protoc_insertion_point(field_get:xla.UnregisterRequest.data) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_GlobalDataHandle_default_instance_); -} -inline ::xla::GlobalDataHandle* UnregisterRequest::release_data() { - // @@protoc_insertion_point(field_release:xla.UnregisterRequest.data) - - ::xla::GlobalDataHandle* temp = data_; - data_ = NULL; - return temp; -} -inline ::xla::GlobalDataHandle* UnregisterRequest::mutable_data() { - - if (data_ == NULL) { - auto* p = CreateMaybeMessage<::xla::GlobalDataHandle>(GetArenaNoVirtual()); - data_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.UnregisterRequest.data) - return data_; -} -inline void UnregisterRequest::set_allocated_data(::xla::GlobalDataHandle* data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(data_); - } - if (data) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(data)->GetArena(); - if (message_arena != submessage_arena) { - data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, data, submessage_arena); - } - - } else { - - } - data_ = data; - // @@protoc_insertion_point(field_set_allocated:xla.UnregisterRequest.data) -} - -// ------------------------------------------------------------------- - -// UnregisterResponse - -// ------------------------------------------------------------------- - -// ExecuteGraphRequest - -// .xla.HloModuleProto computation = 1; -inline bool ExecuteGraphRequest::has_computation() const { - return this != internal_default_instance() && computation_ != NULL; -} -inline const ::xla::HloModuleProto& ExecuteGraphRequest::_internal_computation() const { - return *computation_; -} -inline const ::xla::HloModuleProto& ExecuteGraphRequest::computation() const { - const ::xla::HloModuleProto* p = computation_; - // @@protoc_insertion_point(field_get:xla.ExecuteGraphRequest.computation) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_HloModuleProto_default_instance_); -} -inline ::xla::HloModuleProto* ExecuteGraphRequest::release_computation() { - // @@protoc_insertion_point(field_release:xla.ExecuteGraphRequest.computation) - - ::xla::HloModuleProto* temp = computation_; - computation_ = NULL; - return temp; -} -inline ::xla::HloModuleProto* ExecuteGraphRequest::mutable_computation() { - - if (computation_ == NULL) { - auto* p = CreateMaybeMessage<::xla::HloModuleProto>(GetArenaNoVirtual()); - computation_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.ExecuteGraphRequest.computation) - return computation_; -} -inline void ExecuteGraphRequest::set_allocated_computation(::xla::HloModuleProto* computation) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(computation_); - } - if (computation) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(computation)->GetArena(); - if (message_arena != submessage_arena) { - computation = ::google::protobuf::internal::GetOwnedMessage( - message_arena, computation, submessage_arena); - } - - } else { - - } - computation_ = computation; - // @@protoc_insertion_point(field_set_allocated:xla.ExecuteGraphRequest.computation) -} - -// repeated .xla.GlobalDataHandle arguments = 2; -inline int ExecuteGraphRequest::arguments_size() const { - return arguments_.size(); -} -inline ::xla::GlobalDataHandle* ExecuteGraphRequest::mutable_arguments(int index) { - // @@protoc_insertion_point(field_mutable:xla.ExecuteGraphRequest.arguments) - return arguments_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::GlobalDataHandle >* -ExecuteGraphRequest::mutable_arguments() { - // @@protoc_insertion_point(field_mutable_list:xla.ExecuteGraphRequest.arguments) - return &arguments_; -} -inline const ::xla::GlobalDataHandle& ExecuteGraphRequest::arguments(int index) const { - // @@protoc_insertion_point(field_get:xla.ExecuteGraphRequest.arguments) - return arguments_.Get(index); -} -inline ::xla::GlobalDataHandle* ExecuteGraphRequest::add_arguments() { - // @@protoc_insertion_point(field_add:xla.ExecuteGraphRequest.arguments) - return arguments_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::GlobalDataHandle >& -ExecuteGraphRequest::arguments() const { - // @@protoc_insertion_point(field_list:xla.ExecuteGraphRequest.arguments) - return arguments_; -} - -// .xla.ExecutionOptions execution_options = 3; -inline bool ExecuteGraphRequest::has_execution_options() const { - return this != internal_default_instance() && execution_options_ != NULL; -} -inline void ExecuteGraphRequest::clear_execution_options() { - if (GetArenaNoVirtual() == NULL && execution_options_ != NULL) { - delete execution_options_; - } - execution_options_ = NULL; -} -inline const ::xla::ExecutionOptions& ExecuteGraphRequest::_internal_execution_options() const { - return *execution_options_; -} -inline const ::xla::ExecutionOptions& ExecuteGraphRequest::execution_options() const { - const ::xla::ExecutionOptions* p = execution_options_; - // @@protoc_insertion_point(field_get:xla.ExecuteGraphRequest.execution_options) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_ExecutionOptions_default_instance_); -} -inline ::xla::ExecutionOptions* ExecuteGraphRequest::release_execution_options() { - // @@protoc_insertion_point(field_release:xla.ExecuteGraphRequest.execution_options) - - ::xla::ExecutionOptions* temp = execution_options_; - execution_options_ = NULL; - return temp; -} -inline ::xla::ExecutionOptions* ExecuteGraphRequest::mutable_execution_options() { - - if (execution_options_ == NULL) { - auto* p = CreateMaybeMessage<::xla::ExecutionOptions>(GetArenaNoVirtual()); - execution_options_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.ExecuteGraphRequest.execution_options) - return execution_options_; -} -inline void ExecuteGraphRequest::set_allocated_execution_options(::xla::ExecutionOptions* execution_options) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete execution_options_; - } - if (execution_options) { - ::google::protobuf::Arena* submessage_arena = NULL; - if (message_arena != submessage_arena) { - execution_options = ::google::protobuf::internal::GetOwnedMessage( - message_arena, execution_options, submessage_arena); - } - - } else { - - } - execution_options_ = execution_options; - // @@protoc_insertion_point(field_set_allocated:xla.ExecuteGraphRequest.execution_options) -} - -// ------------------------------------------------------------------- - -// ExecuteGraphParallelRequest - -// repeated .xla.ExecuteGraphRequest requests = 1; -inline int ExecuteGraphParallelRequest::requests_size() const { - return requests_.size(); -} -inline void ExecuteGraphParallelRequest::clear_requests() { - requests_.Clear(); -} -inline ::xla::ExecuteGraphRequest* ExecuteGraphParallelRequest::mutable_requests(int index) { - // @@protoc_insertion_point(field_mutable:xla.ExecuteGraphParallelRequest.requests) - return requests_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::ExecuteGraphRequest >* -ExecuteGraphParallelRequest::mutable_requests() { - // @@protoc_insertion_point(field_mutable_list:xla.ExecuteGraphParallelRequest.requests) - return &requests_; -} -inline const ::xla::ExecuteGraphRequest& ExecuteGraphParallelRequest::requests(int index) const { - // @@protoc_insertion_point(field_get:xla.ExecuteGraphParallelRequest.requests) - return requests_.Get(index); -} -inline ::xla::ExecuteGraphRequest* ExecuteGraphParallelRequest::add_requests() { - // @@protoc_insertion_point(field_add:xla.ExecuteGraphParallelRequest.requests) - return requests_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::ExecuteGraphRequest >& -ExecuteGraphParallelRequest::requests() const { - // @@protoc_insertion_point(field_list:xla.ExecuteGraphParallelRequest.requests) - return requests_; -} - -// ------------------------------------------------------------------- - -// ExecuteResponse - -// .xla.GlobalDataHandle output = 1; -inline bool ExecuteResponse::has_output() const { - return this != internal_default_instance() && output_ != NULL; -} -inline const ::xla::GlobalDataHandle& ExecuteResponse::_internal_output() const { - return *output_; -} -inline const ::xla::GlobalDataHandle& ExecuteResponse::output() const { - const ::xla::GlobalDataHandle* p = output_; - // @@protoc_insertion_point(field_get:xla.ExecuteResponse.output) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_GlobalDataHandle_default_instance_); -} -inline ::xla::GlobalDataHandle* ExecuteResponse::release_output() { - // @@protoc_insertion_point(field_release:xla.ExecuteResponse.output) - - ::xla::GlobalDataHandle* temp = output_; - output_ = NULL; - return temp; -} -inline ::xla::GlobalDataHandle* ExecuteResponse::mutable_output() { - - if (output_ == NULL) { - auto* p = CreateMaybeMessage<::xla::GlobalDataHandle>(GetArenaNoVirtual()); - output_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.ExecuteResponse.output) - return output_; -} -inline void ExecuteResponse::set_allocated_output(::xla::GlobalDataHandle* output) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(output_); - } - if (output) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(output)->GetArena(); - if (message_arena != submessage_arena) { - output = ::google::protobuf::internal::GetOwnedMessage( - message_arena, output, submessage_arena); - } - - } else { - - } - output_ = output; - // @@protoc_insertion_point(field_set_allocated:xla.ExecuteResponse.output) -} - -// .xla.ExecutionProfile profile = 2; -inline bool ExecuteResponse::has_profile() const { - return this != internal_default_instance() && profile_ != NULL; -} -inline const ::xla::ExecutionProfile& ExecuteResponse::_internal_profile() const { - return *profile_; -} -inline const ::xla::ExecutionProfile& ExecuteResponse::profile() const { - const ::xla::ExecutionProfile* p = profile_; - // @@protoc_insertion_point(field_get:xla.ExecuteResponse.profile) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_ExecutionProfile_default_instance_); -} -inline ::xla::ExecutionProfile* ExecuteResponse::release_profile() { - // @@protoc_insertion_point(field_release:xla.ExecuteResponse.profile) - - ::xla::ExecutionProfile* temp = profile_; - profile_ = NULL; - return temp; -} -inline ::xla::ExecutionProfile* ExecuteResponse::mutable_profile() { - - if (profile_ == NULL) { - auto* p = CreateMaybeMessage<::xla::ExecutionProfile>(GetArenaNoVirtual()); - profile_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.ExecuteResponse.profile) - return profile_; -} -inline void ExecuteResponse::set_allocated_profile(::xla::ExecutionProfile* profile) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(profile_); - } - if (profile) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(profile)->GetArena(); - if (message_arena != submessage_arena) { - profile = ::google::protobuf::internal::GetOwnedMessage( - message_arena, profile, submessage_arena); - } - - } else { - - } - profile_ = profile; - // @@protoc_insertion_point(field_set_allocated:xla.ExecuteResponse.profile) -} - -// ------------------------------------------------------------------- - -// ExecuteParallelResponse - -// repeated .xla.ExecuteResponse responses = 1; -inline int ExecuteParallelResponse::responses_size() const { - return responses_.size(); -} -inline void ExecuteParallelResponse::clear_responses() { - responses_.Clear(); -} -inline ::xla::ExecuteResponse* ExecuteParallelResponse::mutable_responses(int index) { - // @@protoc_insertion_point(field_mutable:xla.ExecuteParallelResponse.responses) - return responses_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::ExecuteResponse >* -ExecuteParallelResponse::mutable_responses() { - // @@protoc_insertion_point(field_mutable_list:xla.ExecuteParallelResponse.responses) - return &responses_; -} -inline const ::xla::ExecuteResponse& ExecuteParallelResponse::responses(int index) const { - // @@protoc_insertion_point(field_get:xla.ExecuteParallelResponse.responses) - return responses_.Get(index); -} -inline ::xla::ExecuteResponse* ExecuteParallelResponse::add_responses() { - // @@protoc_insertion_point(field_add:xla.ExecuteParallelResponse.responses) - return responses_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::ExecuteResponse >& -ExecuteParallelResponse::responses() const { - // @@protoc_insertion_point(field_list:xla.ExecuteParallelResponse.responses) - return responses_; -} - -// ------------------------------------------------------------------- - -// WaitForExecutionRequest - -// .xla.ExecutionHandle execution = 1; -inline bool WaitForExecutionRequest::has_execution() const { - return this != internal_default_instance() && execution_ != NULL; -} -inline const ::xla::ExecutionHandle& WaitForExecutionRequest::_internal_execution() const { - return *execution_; -} -inline const ::xla::ExecutionHandle& WaitForExecutionRequest::execution() const { - const ::xla::ExecutionHandle* p = execution_; - // @@protoc_insertion_point(field_get:xla.WaitForExecutionRequest.execution) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_ExecutionHandle_default_instance_); -} -inline ::xla::ExecutionHandle* WaitForExecutionRequest::release_execution() { - // @@protoc_insertion_point(field_release:xla.WaitForExecutionRequest.execution) - - ::xla::ExecutionHandle* temp = execution_; - execution_ = NULL; - return temp; -} -inline ::xla::ExecutionHandle* WaitForExecutionRequest::mutable_execution() { - - if (execution_ == NULL) { - auto* p = CreateMaybeMessage<::xla::ExecutionHandle>(GetArenaNoVirtual()); - execution_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.WaitForExecutionRequest.execution) - return execution_; -} -inline void WaitForExecutionRequest::set_allocated_execution(::xla::ExecutionHandle* execution) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(execution_); - } - if (execution) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(execution)->GetArena(); - if (message_arena != submessage_arena) { - execution = ::google::protobuf::internal::GetOwnedMessage( - message_arena, execution, submessage_arena); - } - - } else { - - } - execution_ = execution; - // @@protoc_insertion_point(field_set_allocated:xla.WaitForExecutionRequest.execution) -} - -// ------------------------------------------------------------------- - -// WaitForExecutionResponse - -// .xla.GlobalDataHandle output = 1; -inline bool WaitForExecutionResponse::has_output() const { - return this != internal_default_instance() && output_ != NULL; -} -inline const ::xla::GlobalDataHandle& WaitForExecutionResponse::_internal_output() const { - return *output_; -} -inline const ::xla::GlobalDataHandle& WaitForExecutionResponse::output() const { - const ::xla::GlobalDataHandle* p = output_; - // @@protoc_insertion_point(field_get:xla.WaitForExecutionResponse.output) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_GlobalDataHandle_default_instance_); -} -inline ::xla::GlobalDataHandle* WaitForExecutionResponse::release_output() { - // @@protoc_insertion_point(field_release:xla.WaitForExecutionResponse.output) - - ::xla::GlobalDataHandle* temp = output_; - output_ = NULL; - return temp; -} -inline ::xla::GlobalDataHandle* WaitForExecutionResponse::mutable_output() { - - if (output_ == NULL) { - auto* p = CreateMaybeMessage<::xla::GlobalDataHandle>(GetArenaNoVirtual()); - output_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.WaitForExecutionResponse.output) - return output_; -} -inline void WaitForExecutionResponse::set_allocated_output(::xla::GlobalDataHandle* output) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(output_); - } - if (output) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(output)->GetArena(); - if (message_arena != submessage_arena) { - output = ::google::protobuf::internal::GetOwnedMessage( - message_arena, output, submessage_arena); - } - - } else { - - } - output_ = output; - // @@protoc_insertion_point(field_set_allocated:xla.WaitForExecutionResponse.output) -} - -// .xla.ExecutionProfile profile = 2; -inline bool WaitForExecutionResponse::has_profile() const { - return this != internal_default_instance() && profile_ != NULL; -} -inline const ::xla::ExecutionProfile& WaitForExecutionResponse::_internal_profile() const { - return *profile_; -} -inline const ::xla::ExecutionProfile& WaitForExecutionResponse::profile() const { - const ::xla::ExecutionProfile* p = profile_; - // @@protoc_insertion_point(field_get:xla.WaitForExecutionResponse.profile) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_ExecutionProfile_default_instance_); -} -inline ::xla::ExecutionProfile* WaitForExecutionResponse::release_profile() { - // @@protoc_insertion_point(field_release:xla.WaitForExecutionResponse.profile) - - ::xla::ExecutionProfile* temp = profile_; - profile_ = NULL; - return temp; -} -inline ::xla::ExecutionProfile* WaitForExecutionResponse::mutable_profile() { - - if (profile_ == NULL) { - auto* p = CreateMaybeMessage<::xla::ExecutionProfile>(GetArenaNoVirtual()); - profile_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.WaitForExecutionResponse.profile) - return profile_; -} -inline void WaitForExecutionResponse::set_allocated_profile(::xla::ExecutionProfile* profile) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(profile_); - } - if (profile) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(profile)->GetArena(); - if (message_arena != submessage_arena) { - profile = ::google::protobuf::internal::GetOwnedMessage( - message_arena, profile, submessage_arena); - } - - } else { - - } - profile_ = profile; - // @@protoc_insertion_point(field_set_allocated:xla.WaitForExecutionResponse.profile) -} - -// ------------------------------------------------------------------- - -// ComputeConstantGraphRequest - -// .xla.HloModuleProto computation = 1; -inline bool ComputeConstantGraphRequest::has_computation() const { - return this != internal_default_instance() && computation_ != NULL; -} -inline const ::xla::HloModuleProto& ComputeConstantGraphRequest::_internal_computation() const { - return *computation_; -} -inline const ::xla::HloModuleProto& ComputeConstantGraphRequest::computation() const { - const ::xla::HloModuleProto* p = computation_; - // @@protoc_insertion_point(field_get:xla.ComputeConstantGraphRequest.computation) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_HloModuleProto_default_instance_); -} -inline ::xla::HloModuleProto* ComputeConstantGraphRequest::release_computation() { - // @@protoc_insertion_point(field_release:xla.ComputeConstantGraphRequest.computation) - - ::xla::HloModuleProto* temp = computation_; - computation_ = NULL; - return temp; -} -inline ::xla::HloModuleProto* ComputeConstantGraphRequest::mutable_computation() { - - if (computation_ == NULL) { - auto* p = CreateMaybeMessage<::xla::HloModuleProto>(GetArenaNoVirtual()); - computation_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.ComputeConstantGraphRequest.computation) - return computation_; -} -inline void ComputeConstantGraphRequest::set_allocated_computation(::xla::HloModuleProto* computation) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(computation_); - } - if (computation) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(computation)->GetArena(); - if (message_arena != submessage_arena) { - computation = ::google::protobuf::internal::GetOwnedMessage( - message_arena, computation, submessage_arena); - } - - } else { - - } - computation_ = computation; - // @@protoc_insertion_point(field_set_allocated:xla.ComputeConstantGraphRequest.computation) -} - -// .xla.Layout output_layout = 2; -inline bool ComputeConstantGraphRequest::has_output_layout() const { - return this != internal_default_instance() && output_layout_ != NULL; -} -inline const ::xla::Layout& ComputeConstantGraphRequest::_internal_output_layout() const { - return *output_layout_; -} -inline const ::xla::Layout& ComputeConstantGraphRequest::output_layout() const { - const ::xla::Layout* p = output_layout_; - // @@protoc_insertion_point(field_get:xla.ComputeConstantGraphRequest.output_layout) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_Layout_default_instance_); -} -inline ::xla::Layout* ComputeConstantGraphRequest::release_output_layout() { - // @@protoc_insertion_point(field_release:xla.ComputeConstantGraphRequest.output_layout) - - ::xla::Layout* temp = output_layout_; - output_layout_ = NULL; - return temp; -} -inline ::xla::Layout* ComputeConstantGraphRequest::mutable_output_layout() { - - if (output_layout_ == NULL) { - auto* p = CreateMaybeMessage<::xla::Layout>(GetArenaNoVirtual()); - output_layout_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.ComputeConstantGraphRequest.output_layout) - return output_layout_; -} -inline void ComputeConstantGraphRequest::set_allocated_output_layout(::xla::Layout* output_layout) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(output_layout_); - } - if (output_layout) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(output_layout)->GetArena(); - if (message_arena != submessage_arena) { - output_layout = ::google::protobuf::internal::GetOwnedMessage( - message_arena, output_layout, submessage_arena); - } - - } else { - - } - output_layout_ = output_layout; - // @@protoc_insertion_point(field_set_allocated:xla.ComputeConstantGraphRequest.output_layout) -} - -// ------------------------------------------------------------------- - -// ComputeConstantResponse - -// .xla.LiteralProto literal = 1; -inline bool ComputeConstantResponse::has_literal() const { - return this != internal_default_instance() && literal_ != NULL; -} -inline const ::xla::LiteralProto& ComputeConstantResponse::_internal_literal() const { - return *literal_; -} -inline const ::xla::LiteralProto& ComputeConstantResponse::literal() const { - const ::xla::LiteralProto* p = literal_; - // @@protoc_insertion_point(field_get:xla.ComputeConstantResponse.literal) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_LiteralProto_default_instance_); -} -inline ::xla::LiteralProto* ComputeConstantResponse::release_literal() { - // @@protoc_insertion_point(field_release:xla.ComputeConstantResponse.literal) - - ::xla::LiteralProto* temp = literal_; - literal_ = NULL; - return temp; -} -inline ::xla::LiteralProto* ComputeConstantResponse::mutable_literal() { - - if (literal_ == NULL) { - auto* p = CreateMaybeMessage<::xla::LiteralProto>(GetArenaNoVirtual()); - literal_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.ComputeConstantResponse.literal) - return literal_; -} -inline void ComputeConstantResponse::set_allocated_literal(::xla::LiteralProto* literal) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(literal_); - } - if (literal) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(literal)->GetArena(); - if (message_arena != submessage_arena) { - literal = ::google::protobuf::internal::GetOwnedMessage( - message_arena, literal, submessage_arena); - } - - } else { - - } - literal_ = literal; - // @@protoc_insertion_point(field_set_allocated:xla.ComputeConstantResponse.literal) -} - -// ------------------------------------------------------------------- - -// DeconstructTupleRequest - -// .xla.GlobalDataHandle tuple_handle = 2; -inline bool DeconstructTupleRequest::has_tuple_handle() const { - return this != internal_default_instance() && tuple_handle_ != NULL; -} -inline const ::xla::GlobalDataHandle& DeconstructTupleRequest::_internal_tuple_handle() const { - return *tuple_handle_; -} -inline const ::xla::GlobalDataHandle& DeconstructTupleRequest::tuple_handle() const { - const ::xla::GlobalDataHandle* p = tuple_handle_; - // @@protoc_insertion_point(field_get:xla.DeconstructTupleRequest.tuple_handle) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_GlobalDataHandle_default_instance_); -} -inline ::xla::GlobalDataHandle* DeconstructTupleRequest::release_tuple_handle() { - // @@protoc_insertion_point(field_release:xla.DeconstructTupleRequest.tuple_handle) - - ::xla::GlobalDataHandle* temp = tuple_handle_; - tuple_handle_ = NULL; - return temp; -} -inline ::xla::GlobalDataHandle* DeconstructTupleRequest::mutable_tuple_handle() { - - if (tuple_handle_ == NULL) { - auto* p = CreateMaybeMessage<::xla::GlobalDataHandle>(GetArenaNoVirtual()); - tuple_handle_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.DeconstructTupleRequest.tuple_handle) - return tuple_handle_; -} -inline void DeconstructTupleRequest::set_allocated_tuple_handle(::xla::GlobalDataHandle* tuple_handle) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(tuple_handle_); - } - if (tuple_handle) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(tuple_handle)->GetArena(); - if (message_arena != submessage_arena) { - tuple_handle = ::google::protobuf::internal::GetOwnedMessage( - message_arena, tuple_handle, submessage_arena); - } - - } else { - - } - tuple_handle_ = tuple_handle; - // @@protoc_insertion_point(field_set_allocated:xla.DeconstructTupleRequest.tuple_handle) -} - -// ------------------------------------------------------------------- - -// DeconstructTupleResponse - -// repeated .xla.GlobalDataHandle element_handles = 1; -inline int DeconstructTupleResponse::element_handles_size() const { - return element_handles_.size(); -} -inline ::xla::GlobalDataHandle* DeconstructTupleResponse::mutable_element_handles(int index) { - // @@protoc_insertion_point(field_mutable:xla.DeconstructTupleResponse.element_handles) - return element_handles_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::GlobalDataHandle >* -DeconstructTupleResponse::mutable_element_handles() { - // @@protoc_insertion_point(field_mutable_list:xla.DeconstructTupleResponse.element_handles) - return &element_handles_; -} -inline const ::xla::GlobalDataHandle& DeconstructTupleResponse::element_handles(int index) const { - // @@protoc_insertion_point(field_get:xla.DeconstructTupleResponse.element_handles) - return element_handles_.Get(index); -} -inline ::xla::GlobalDataHandle* DeconstructTupleResponse::add_element_handles() { - // @@protoc_insertion_point(field_add:xla.DeconstructTupleResponse.element_handles) - return element_handles_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::GlobalDataHandle >& -DeconstructTupleResponse::element_handles() const { - // @@protoc_insertion_point(field_list:xla.DeconstructTupleResponse.element_handles) - return element_handles_; -} - -// ------------------------------------------------------------------- - -// LoadDataRequest - -// string columnio_tablet_path = 1; -inline void LoadDataRequest::clear_columnio_tablet_path() { - columnio_tablet_path_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& LoadDataRequest::columnio_tablet_path() const { - // @@protoc_insertion_point(field_get:xla.LoadDataRequest.columnio_tablet_path) - return columnio_tablet_path_.GetNoArena(); -} -inline void LoadDataRequest::set_columnio_tablet_path(const ::std::string& value) { - - columnio_tablet_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:xla.LoadDataRequest.columnio_tablet_path) -} -#if LANG_CXX11 -inline void LoadDataRequest::set_columnio_tablet_path(::std::string&& value) { - - columnio_tablet_path_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:xla.LoadDataRequest.columnio_tablet_path) -} -#endif -inline void LoadDataRequest::set_columnio_tablet_path(const char* value) { - GOOGLE_DCHECK(value != NULL); - - columnio_tablet_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:xla.LoadDataRequest.columnio_tablet_path) -} -inline void LoadDataRequest::set_columnio_tablet_path(const char* value, size_t size) { - - columnio_tablet_path_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:xla.LoadDataRequest.columnio_tablet_path) -} -inline ::std::string* LoadDataRequest::mutable_columnio_tablet_path() { - - // @@protoc_insertion_point(field_mutable:xla.LoadDataRequest.columnio_tablet_path) - return columnio_tablet_path_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* LoadDataRequest::release_columnio_tablet_path() { - // @@protoc_insertion_point(field_release:xla.LoadDataRequest.columnio_tablet_path) - - return columnio_tablet_path_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void LoadDataRequest::set_allocated_columnio_tablet_path(::std::string* columnio_tablet_path) { - if (columnio_tablet_path != NULL) { - - } else { - - } - columnio_tablet_path_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), columnio_tablet_path); - // @@protoc_insertion_point(field_set_allocated:xla.LoadDataRequest.columnio_tablet_path) -} - -// string columnio_field = 2; -inline void LoadDataRequest::clear_columnio_field() { - columnio_field_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline const ::std::string& LoadDataRequest::columnio_field() const { - // @@protoc_insertion_point(field_get:xla.LoadDataRequest.columnio_field) - return columnio_field_.GetNoArena(); -} -inline void LoadDataRequest::set_columnio_field(const ::std::string& value) { - - columnio_field_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); - // @@protoc_insertion_point(field_set:xla.LoadDataRequest.columnio_field) -} -#if LANG_CXX11 -inline void LoadDataRequest::set_columnio_field(::std::string&& value) { - - columnio_field_.SetNoArena( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); - // @@protoc_insertion_point(field_set_rvalue:xla.LoadDataRequest.columnio_field) -} -#endif -inline void LoadDataRequest::set_columnio_field(const char* value) { - GOOGLE_DCHECK(value != NULL); - - columnio_field_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); - // @@protoc_insertion_point(field_set_char:xla.LoadDataRequest.columnio_field) -} -inline void LoadDataRequest::set_columnio_field(const char* value, size_t size) { - - columnio_field_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(reinterpret_cast(value), size)); - // @@protoc_insertion_point(field_set_pointer:xla.LoadDataRequest.columnio_field) -} -inline ::std::string* LoadDataRequest::mutable_columnio_field() { - - // @@protoc_insertion_point(field_mutable:xla.LoadDataRequest.columnio_field) - return columnio_field_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline ::std::string* LoadDataRequest::release_columnio_field() { - // @@protoc_insertion_point(field_release:xla.LoadDataRequest.columnio_field) - - return columnio_field_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); -} -inline void LoadDataRequest::set_allocated_columnio_field(::std::string* columnio_field) { - if (columnio_field != NULL) { - - } else { - - } - columnio_field_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), columnio_field); - // @@protoc_insertion_point(field_set_allocated:xla.LoadDataRequest.columnio_field) -} - -// .xla.Shape element_shape = 3; -inline bool LoadDataRequest::has_element_shape() const { - return this != internal_default_instance() && element_shape_ != NULL; -} -inline const ::xla::Shape& LoadDataRequest::_internal_element_shape() const { - return *element_shape_; -} -inline const ::xla::Shape& LoadDataRequest::element_shape() const { - const ::xla::Shape* p = element_shape_; - // @@protoc_insertion_point(field_get:xla.LoadDataRequest.element_shape) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_Shape_default_instance_); -} -inline ::xla::Shape* LoadDataRequest::release_element_shape() { - // @@protoc_insertion_point(field_release:xla.LoadDataRequest.element_shape) - - ::xla::Shape* temp = element_shape_; - element_shape_ = NULL; - return temp; -} -inline ::xla::Shape* LoadDataRequest::mutable_element_shape() { - - if (element_shape_ == NULL) { - auto* p = CreateMaybeMessage<::xla::Shape>(GetArenaNoVirtual()); - element_shape_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.LoadDataRequest.element_shape) - return element_shape_; -} -inline void LoadDataRequest::set_allocated_element_shape(::xla::Shape* element_shape) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(element_shape_); - } - if (element_shape) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(element_shape)->GetArena(); - if (message_arena != submessage_arena) { - element_shape = ::google::protobuf::internal::GetOwnedMessage( - message_arena, element_shape, submessage_arena); - } - - } else { - - } - element_shape_ = element_shape; - // @@protoc_insertion_point(field_set_allocated:xla.LoadDataRequest.element_shape) -} - -// int64 offset = 4; -inline void LoadDataRequest::clear_offset() { - offset_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 LoadDataRequest::offset() const { - // @@protoc_insertion_point(field_get:xla.LoadDataRequest.offset) - return offset_; -} -inline void LoadDataRequest::set_offset(::google::protobuf::int64 value) { - - offset_ = value; - // @@protoc_insertion_point(field_set:xla.LoadDataRequest.offset) -} - -// int64 limit = 5; -inline void LoadDataRequest::clear_limit() { - limit_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 LoadDataRequest::limit() const { - // @@protoc_insertion_point(field_get:xla.LoadDataRequest.limit) - return limit_; -} -inline void LoadDataRequest::set_limit(::google::protobuf::int64 value) { - - limit_ = value; - // @@protoc_insertion_point(field_set:xla.LoadDataRequest.limit) -} - -// bool zip = 6; -inline void LoadDataRequest::clear_zip() { - zip_ = false; -} -inline bool LoadDataRequest::zip() const { - // @@protoc_insertion_point(field_get:xla.LoadDataRequest.zip) - return zip_; -} -inline void LoadDataRequest::set_zip(bool value) { - - zip_ = value; - // @@protoc_insertion_point(field_set:xla.LoadDataRequest.zip) -} - -// ------------------------------------------------------------------- - -// LoadDataResponse - -// .xla.GlobalDataHandle data = 1; -inline bool LoadDataResponse::has_data() const { - return this != internal_default_instance() && data_ != NULL; -} -inline const ::xla::GlobalDataHandle& LoadDataResponse::_internal_data() const { - return *data_; -} -inline const ::xla::GlobalDataHandle& LoadDataResponse::data() const { - const ::xla::GlobalDataHandle* p = data_; - // @@protoc_insertion_point(field_get:xla.LoadDataResponse.data) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_GlobalDataHandle_default_instance_); -} -inline ::xla::GlobalDataHandle* LoadDataResponse::release_data() { - // @@protoc_insertion_point(field_release:xla.LoadDataResponse.data) - - ::xla::GlobalDataHandle* temp = data_; - data_ = NULL; - return temp; -} -inline ::xla::GlobalDataHandle* LoadDataResponse::mutable_data() { - - if (data_ == NULL) { - auto* p = CreateMaybeMessage<::xla::GlobalDataHandle>(GetArenaNoVirtual()); - data_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.LoadDataResponse.data) - return data_; -} -inline void LoadDataResponse::set_allocated_data(::xla::GlobalDataHandle* data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(data_); - } - if (data) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(data)->GetArena(); - if (message_arena != submessage_arena) { - data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, data, submessage_arena); - } - - } else { - - } - data_ = data; - // @@protoc_insertion_point(field_set_allocated:xla.LoadDataResponse.data) -} - -// .xla.Shape data_shape = 2; -inline bool LoadDataResponse::has_data_shape() const { - return this != internal_default_instance() && data_shape_ != NULL; -} -inline const ::xla::Shape& LoadDataResponse::_internal_data_shape() const { - return *data_shape_; -} -inline const ::xla::Shape& LoadDataResponse::data_shape() const { - const ::xla::Shape* p = data_shape_; - // @@protoc_insertion_point(field_get:xla.LoadDataResponse.data_shape) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_Shape_default_instance_); -} -inline ::xla::Shape* LoadDataResponse::release_data_shape() { - // @@protoc_insertion_point(field_release:xla.LoadDataResponse.data_shape) - - ::xla::Shape* temp = data_shape_; - data_shape_ = NULL; - return temp; -} -inline ::xla::Shape* LoadDataResponse::mutable_data_shape() { - - if (data_shape_ == NULL) { - auto* p = CreateMaybeMessage<::xla::Shape>(GetArenaNoVirtual()); - data_shape_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.LoadDataResponse.data_shape) - return data_shape_; -} -inline void LoadDataResponse::set_allocated_data_shape(::xla::Shape* data_shape) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(data_shape_); - } - if (data_shape) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(data_shape)->GetArena(); - if (message_arena != submessage_arena) { - data_shape = ::google::protobuf::internal::GetOwnedMessage( - message_arena, data_shape, submessage_arena); - } - - } else { - - } - data_shape_ = data_shape; - // @@protoc_insertion_point(field_set_allocated:xla.LoadDataResponse.data_shape) -} - -// int64 available_rows = 3; -inline void LoadDataResponse::clear_available_rows() { - available_rows_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 LoadDataResponse::available_rows() const { - // @@protoc_insertion_point(field_get:xla.LoadDataResponse.available_rows) - return available_rows_; -} -inline void LoadDataResponse::set_available_rows(::google::protobuf::int64 value) { - - available_rows_ = value; - // @@protoc_insertion_point(field_set:xla.LoadDataResponse.available_rows) -} - -// int64 rows_loaded = 4; -inline void LoadDataResponse::clear_rows_loaded() { - rows_loaded_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 LoadDataResponse::rows_loaded() const { - // @@protoc_insertion_point(field_get:xla.LoadDataResponse.rows_loaded) - return rows_loaded_; -} -inline void LoadDataResponse::set_rows_loaded(::google::protobuf::int64 value) { - - rows_loaded_ = value; - // @@protoc_insertion_point(field_set:xla.LoadDataResponse.rows_loaded) -} - -// int64 nanoseconds = 5; -inline void LoadDataResponse::clear_nanoseconds() { - nanoseconds_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 LoadDataResponse::nanoseconds() const { - // @@protoc_insertion_point(field_get:xla.LoadDataResponse.nanoseconds) - return nanoseconds_; -} -inline void LoadDataResponse::set_nanoseconds(::google::protobuf::int64 value) { - - nanoseconds_ = value; - // @@protoc_insertion_point(field_set:xla.LoadDataResponse.nanoseconds) -} - -// ------------------------------------------------------------------- - -// GetShapeRequest - -// .xla.GlobalDataHandle data = 1; -inline bool GetShapeRequest::has_data() const { - return this != internal_default_instance() && data_ != NULL; -} -inline const ::xla::GlobalDataHandle& GetShapeRequest::_internal_data() const { - return *data_; -} -inline const ::xla::GlobalDataHandle& GetShapeRequest::data() const { - const ::xla::GlobalDataHandle* p = data_; - // @@protoc_insertion_point(field_get:xla.GetShapeRequest.data) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_GlobalDataHandle_default_instance_); -} -inline ::xla::GlobalDataHandle* GetShapeRequest::release_data() { - // @@protoc_insertion_point(field_release:xla.GetShapeRequest.data) - - ::xla::GlobalDataHandle* temp = data_; - data_ = NULL; - return temp; -} -inline ::xla::GlobalDataHandle* GetShapeRequest::mutable_data() { - - if (data_ == NULL) { - auto* p = CreateMaybeMessage<::xla::GlobalDataHandle>(GetArenaNoVirtual()); - data_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.GetShapeRequest.data) - return data_; -} -inline void GetShapeRequest::set_allocated_data(::xla::GlobalDataHandle* data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(data_); - } - if (data) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(data)->GetArena(); - if (message_arena != submessage_arena) { - data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, data, submessage_arena); - } - - } else { - - } - data_ = data; - // @@protoc_insertion_point(field_set_allocated:xla.GetShapeRequest.data) -} - -// ------------------------------------------------------------------- - -// GetShapeResponse - -// .xla.Shape shape = 1; -inline bool GetShapeResponse::has_shape() const { - return this != internal_default_instance() && shape_ != NULL; -} -inline const ::xla::Shape& GetShapeResponse::_internal_shape() const { - return *shape_; -} -inline const ::xla::Shape& GetShapeResponse::shape() const { - const ::xla::Shape* p = shape_; - // @@protoc_insertion_point(field_get:xla.GetShapeResponse.shape) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_Shape_default_instance_); -} -inline ::xla::Shape* GetShapeResponse::release_shape() { - // @@protoc_insertion_point(field_release:xla.GetShapeResponse.shape) - - ::xla::Shape* temp = shape_; - shape_ = NULL; - return temp; -} -inline ::xla::Shape* GetShapeResponse::mutable_shape() { - - if (shape_ == NULL) { - auto* p = CreateMaybeMessage<::xla::Shape>(GetArenaNoVirtual()); - shape_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.GetShapeResponse.shape) - return shape_; -} -inline void GetShapeResponse::set_allocated_shape(::xla::Shape* shape) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(shape_); - } - if (shape) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(shape)->GetArena(); - if (message_arena != submessage_arena) { - shape = ::google::protobuf::internal::GetOwnedMessage( - message_arena, shape, submessage_arena); - } - - } else { - - } - shape_ = shape; - // @@protoc_insertion_point(field_set_allocated:xla.GetShapeResponse.shape) -} - -// ------------------------------------------------------------------- - -// UnpackRequest - -// .xla.GlobalDataHandle data = 1; -inline bool UnpackRequest::has_data() const { - return this != internal_default_instance() && data_ != NULL; -} -inline const ::xla::GlobalDataHandle& UnpackRequest::_internal_data() const { - return *data_; -} -inline const ::xla::GlobalDataHandle& UnpackRequest::data() const { - const ::xla::GlobalDataHandle* p = data_; - // @@protoc_insertion_point(field_get:xla.UnpackRequest.data) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_GlobalDataHandle_default_instance_); -} -inline ::xla::GlobalDataHandle* UnpackRequest::release_data() { - // @@protoc_insertion_point(field_release:xla.UnpackRequest.data) - - ::xla::GlobalDataHandle* temp = data_; - data_ = NULL; - return temp; -} -inline ::xla::GlobalDataHandle* UnpackRequest::mutable_data() { - - if (data_ == NULL) { - auto* p = CreateMaybeMessage<::xla::GlobalDataHandle>(GetArenaNoVirtual()); - data_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.UnpackRequest.data) - return data_; -} -inline void UnpackRequest::set_allocated_data(::xla::GlobalDataHandle* data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(data_); - } - if (data) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(data)->GetArena(); - if (message_arena != submessage_arena) { - data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, data, submessage_arena); - } - - } else { - - } - data_ = data; - // @@protoc_insertion_point(field_set_allocated:xla.UnpackRequest.data) -} - -// ------------------------------------------------------------------- - -// UnpackResponse - -// repeated .xla.GlobalDataHandle tied_data = 1; -inline int UnpackResponse::tied_data_size() const { - return tied_data_.size(); -} -inline ::xla::GlobalDataHandle* UnpackResponse::mutable_tied_data(int index) { - // @@protoc_insertion_point(field_mutable:xla.UnpackResponse.tied_data) - return tied_data_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::GlobalDataHandle >* -UnpackResponse::mutable_tied_data() { - // @@protoc_insertion_point(field_mutable_list:xla.UnpackResponse.tied_data) - return &tied_data_; -} -inline const ::xla::GlobalDataHandle& UnpackResponse::tied_data(int index) const { - // @@protoc_insertion_point(field_get:xla.UnpackResponse.tied_data) - return tied_data_.Get(index); -} -inline ::xla::GlobalDataHandle* UnpackResponse::add_tied_data() { - // @@protoc_insertion_point(field_add:xla.UnpackResponse.tied_data) - return tied_data_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::GlobalDataHandle >& -UnpackResponse::tied_data() const { - // @@protoc_insertion_point(field_list:xla.UnpackResponse.tied_data) - return tied_data_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace xla - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::xla::HloReducePrecisionOptions_Location> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::xla::HloReducePrecisionOptions_Location>() { - return ::xla::HloReducePrecisionOptions_Location_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcompiler_2fxla_2fxla_2eproto diff --git a/linux/include/tensorflow/compiler/xla/xla_data.pb.h b/linux/include/tensorflow/compiler/xla/xla_data.pb.h deleted file mode 100755 index a7be5e768..000000000 --- a/linux/include/tensorflow/compiler/xla/xla_data.pb.h +++ /dev/null @@ -1,7043 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/compiler/xla/xla_data.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto - -namespace protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[25]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto -namespace xla { -class ChannelHandle; -class ChannelHandleDefaultTypeInternal; -extern ChannelHandleDefaultTypeInternal _ChannelHandle_default_instance_; -class ComputationStats; -class ComputationStatsDefaultTypeInternal; -extern ComputationStatsDefaultTypeInternal _ComputationStats_default_instance_; -class ConvolutionDimensionNumbers; -class ConvolutionDimensionNumbersDefaultTypeInternal; -extern ConvolutionDimensionNumbersDefaultTypeInternal _ConvolutionDimensionNumbers_default_instance_; -class DeviceAssignmentProto; -class DeviceAssignmentProtoDefaultTypeInternal; -extern DeviceAssignmentProtoDefaultTypeInternal _DeviceAssignmentProto_default_instance_; -class DeviceAssignmentProto_ComputationDevice; -class DeviceAssignmentProto_ComputationDeviceDefaultTypeInternal; -extern DeviceAssignmentProto_ComputationDeviceDefaultTypeInternal _DeviceAssignmentProto_ComputationDevice_default_instance_; -class DeviceHandle; -class DeviceHandleDefaultTypeInternal; -extern DeviceHandleDefaultTypeInternal _DeviceHandle_default_instance_; -class DotDimensionNumbers; -class DotDimensionNumbersDefaultTypeInternal; -extern DotDimensionNumbersDefaultTypeInternal _DotDimensionNumbers_default_instance_; -class ExecutionHandle; -class ExecutionHandleDefaultTypeInternal; -extern ExecutionHandleDefaultTypeInternal _ExecutionHandle_default_instance_; -class ExecutionProfile; -class ExecutionProfileDefaultTypeInternal; -extern ExecutionProfileDefaultTypeInternal _ExecutionProfile_default_instance_; -class GatherDimensionNumbers; -class GatherDimensionNumbersDefaultTypeInternal; -extern GatherDimensionNumbersDefaultTypeInternal _GatherDimensionNumbers_default_instance_; -class GlobalDataHandle; -class GlobalDataHandleDefaultTypeInternal; -extern GlobalDataHandleDefaultTypeInternal _GlobalDataHandle_default_instance_; -class Layout; -class LayoutDefaultTypeInternal; -extern LayoutDefaultTypeInternal _Layout_default_instance_; -class LiteralProto; -class LiteralProtoDefaultTypeInternal; -extern LiteralProtoDefaultTypeInternal _LiteralProto_default_instance_; -class OpMetadata; -class OpMetadataDefaultTypeInternal; -extern OpMetadataDefaultTypeInternal _OpMetadata_default_instance_; -class OpSharding; -class OpShardingDefaultTypeInternal; -extern OpShardingDefaultTypeInternal _OpSharding_default_instance_; -class PaddingConfig; -class PaddingConfigDefaultTypeInternal; -extern PaddingConfigDefaultTypeInternal _PaddingConfig_default_instance_; -class PaddingConfig_PaddingConfigDimension; -class PaddingConfig_PaddingConfigDimensionDefaultTypeInternal; -extern PaddingConfig_PaddingConfigDimensionDefaultTypeInternal _PaddingConfig_PaddingConfigDimension_default_instance_; -class PrecisionConfig; -class PrecisionConfigDefaultTypeInternal; -extern PrecisionConfigDefaultTypeInternal _PrecisionConfig_default_instance_; -class ProgramShape; -class ProgramShapeDefaultTypeInternal; -extern ProgramShapeDefaultTypeInternal _ProgramShape_default_instance_; -class ReplicaGroup; -class ReplicaGroupDefaultTypeInternal; -extern ReplicaGroupDefaultTypeInternal _ReplicaGroup_default_instance_; -class ScatterDimensionNumbers; -class ScatterDimensionNumbersDefaultTypeInternal; -extern ScatterDimensionNumbersDefaultTypeInternal _ScatterDimensionNumbers_default_instance_; -class Shape; -class ShapeDefaultTypeInternal; -extern ShapeDefaultTypeInternal _Shape_default_instance_; -class SourceTarget; -class SourceTargetDefaultTypeInternal; -extern SourceTargetDefaultTypeInternal _SourceTarget_default_instance_; -class Window; -class WindowDefaultTypeInternal; -extern WindowDefaultTypeInternal _Window_default_instance_; -class WindowDimension; -class WindowDimensionDefaultTypeInternal; -extern WindowDimensionDefaultTypeInternal _WindowDimension_default_instance_; -} // namespace xla -namespace google { -namespace protobuf { -template<> ::xla::ChannelHandle* Arena::CreateMaybeMessage<::xla::ChannelHandle>(Arena*); -template<> ::xla::ComputationStats* Arena::CreateMaybeMessage<::xla::ComputationStats>(Arena*); -template<> ::xla::ConvolutionDimensionNumbers* Arena::CreateMaybeMessage<::xla::ConvolutionDimensionNumbers>(Arena*); -template<> ::xla::DeviceAssignmentProto* Arena::CreateMaybeMessage<::xla::DeviceAssignmentProto>(Arena*); -template<> ::xla::DeviceAssignmentProto_ComputationDevice* Arena::CreateMaybeMessage<::xla::DeviceAssignmentProto_ComputationDevice>(Arena*); -template<> ::xla::DeviceHandle* Arena::CreateMaybeMessage<::xla::DeviceHandle>(Arena*); -template<> ::xla::DotDimensionNumbers* Arena::CreateMaybeMessage<::xla::DotDimensionNumbers>(Arena*); -template<> ::xla::ExecutionHandle* Arena::CreateMaybeMessage<::xla::ExecutionHandle>(Arena*); -template<> ::xla::ExecutionProfile* Arena::CreateMaybeMessage<::xla::ExecutionProfile>(Arena*); -template<> ::xla::GatherDimensionNumbers* Arena::CreateMaybeMessage<::xla::GatherDimensionNumbers>(Arena*); -template<> ::xla::GlobalDataHandle* Arena::CreateMaybeMessage<::xla::GlobalDataHandle>(Arena*); -template<> ::xla::Layout* Arena::CreateMaybeMessage<::xla::Layout>(Arena*); -template<> ::xla::LiteralProto* Arena::CreateMaybeMessage<::xla::LiteralProto>(Arena*); -template<> ::xla::OpMetadata* Arena::CreateMaybeMessage<::xla::OpMetadata>(Arena*); -template<> ::xla::OpSharding* Arena::CreateMaybeMessage<::xla::OpSharding>(Arena*); -template<> ::xla::PaddingConfig* Arena::CreateMaybeMessage<::xla::PaddingConfig>(Arena*); -template<> ::xla::PaddingConfig_PaddingConfigDimension* Arena::CreateMaybeMessage<::xla::PaddingConfig_PaddingConfigDimension>(Arena*); -template<> ::xla::PrecisionConfig* Arena::CreateMaybeMessage<::xla::PrecisionConfig>(Arena*); -template<> ::xla::ProgramShape* Arena::CreateMaybeMessage<::xla::ProgramShape>(Arena*); -template<> ::xla::ReplicaGroup* Arena::CreateMaybeMessage<::xla::ReplicaGroup>(Arena*); -template<> ::xla::ScatterDimensionNumbers* Arena::CreateMaybeMessage<::xla::ScatterDimensionNumbers>(Arena*); -template<> ::xla::Shape* Arena::CreateMaybeMessage<::xla::Shape>(Arena*); -template<> ::xla::SourceTarget* Arena::CreateMaybeMessage<::xla::SourceTarget>(Arena*); -template<> ::xla::Window* Arena::CreateMaybeMessage<::xla::Window>(Arena*); -template<> ::xla::WindowDimension* Arena::CreateMaybeMessage<::xla::WindowDimension>(Arena*); -} // namespace protobuf -} // namespace google -namespace xla { - -enum ChannelHandle_ChannelType { - ChannelHandle_ChannelType_CHANNEL_TYPE_INVALID = 0, - ChannelHandle_ChannelType_DEVICE_TO_DEVICE = 1, - ChannelHandle_ChannelType_DEVICE_TO_HOST = 2, - ChannelHandle_ChannelType_HOST_TO_DEVICE = 3, - ChannelHandle_ChannelType_ChannelHandle_ChannelType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - ChannelHandle_ChannelType_ChannelHandle_ChannelType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool ChannelHandle_ChannelType_IsValid(int value); -const ChannelHandle_ChannelType ChannelHandle_ChannelType_ChannelType_MIN = ChannelHandle_ChannelType_CHANNEL_TYPE_INVALID; -const ChannelHandle_ChannelType ChannelHandle_ChannelType_ChannelType_MAX = ChannelHandle_ChannelType_HOST_TO_DEVICE; -const int ChannelHandle_ChannelType_ChannelType_ARRAYSIZE = ChannelHandle_ChannelType_ChannelType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ChannelHandle_ChannelType_descriptor(); -inline const ::std::string& ChannelHandle_ChannelType_Name(ChannelHandle_ChannelType value) { - return ::google::protobuf::internal::NameOfEnum( - ChannelHandle_ChannelType_descriptor(), value); -} -inline bool ChannelHandle_ChannelType_Parse( - const ::std::string& name, ChannelHandle_ChannelType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ChannelHandle_ChannelType_descriptor(), name, value); -} -enum OpSharding_Type { - OpSharding_Type_REPLICATED = 0, - OpSharding_Type_MAXIMAL = 1, - OpSharding_Type_TUPLE = 2, - OpSharding_Type_OTHER = 3, - OpSharding_Type_OpSharding_Type_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - OpSharding_Type_OpSharding_Type_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool OpSharding_Type_IsValid(int value); -const OpSharding_Type OpSharding_Type_Type_MIN = OpSharding_Type_REPLICATED; -const OpSharding_Type OpSharding_Type_Type_MAX = OpSharding_Type_OTHER; -const int OpSharding_Type_Type_ARRAYSIZE = OpSharding_Type_Type_MAX + 1; - -const ::google::protobuf::EnumDescriptor* OpSharding_Type_descriptor(); -inline const ::std::string& OpSharding_Type_Name(OpSharding_Type value) { - return ::google::protobuf::internal::NameOfEnum( - OpSharding_Type_descriptor(), value); -} -inline bool OpSharding_Type_Parse( - const ::std::string& name, OpSharding_Type* value) { - return ::google::protobuf::internal::ParseNamedEnum( - OpSharding_Type_descriptor(), name, value); -} -enum PrecisionConfig_Precision { - PrecisionConfig_Precision_DEFAULT = 0, - PrecisionConfig_Precision_HIGH = 1, - PrecisionConfig_Precision_HIGHEST = 2, - PrecisionConfig_Precision_PrecisionConfig_Precision_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - PrecisionConfig_Precision_PrecisionConfig_Precision_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool PrecisionConfig_Precision_IsValid(int value); -const PrecisionConfig_Precision PrecisionConfig_Precision_Precision_MIN = PrecisionConfig_Precision_DEFAULT; -const PrecisionConfig_Precision PrecisionConfig_Precision_Precision_MAX = PrecisionConfig_Precision_HIGHEST; -const int PrecisionConfig_Precision_Precision_ARRAYSIZE = PrecisionConfig_Precision_Precision_MAX + 1; - -const ::google::protobuf::EnumDescriptor* PrecisionConfig_Precision_descriptor(); -inline const ::std::string& PrecisionConfig_Precision_Name(PrecisionConfig_Precision value) { - return ::google::protobuf::internal::NameOfEnum( - PrecisionConfig_Precision_descriptor(), value); -} -inline bool PrecisionConfig_Precision_Parse( - const ::std::string& name, PrecisionConfig_Precision* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PrecisionConfig_Precision_descriptor(), name, value); -} -enum PrimitiveType { - PRIMITIVE_TYPE_INVALID = 0, - PRED = 1, - S8 = 2, - S16 = 3, - S32 = 4, - S64 = 5, - U8 = 6, - U16 = 7, - U32 = 8, - U64 = 9, - F16 = 10, - F32 = 11, - BF16 = 16, - F64 = 12, - C64 = 15, - TUPLE = 13, - OPAQUE = 14, - TOKEN = 17, - PrimitiveType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - PrimitiveType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool PrimitiveType_IsValid(int value); -const PrimitiveType PrimitiveType_MIN = PRIMITIVE_TYPE_INVALID; -const PrimitiveType PrimitiveType_MAX = TOKEN; -const int PrimitiveType_ARRAYSIZE = PrimitiveType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* PrimitiveType_descriptor(); -inline const ::std::string& PrimitiveType_Name(PrimitiveType value) { - return ::google::protobuf::internal::NameOfEnum( - PrimitiveType_descriptor(), value); -} -inline bool PrimitiveType_Parse( - const ::std::string& name, PrimitiveType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PrimitiveType_descriptor(), name, value); -} -enum PaddingValue { - INVALID_PAD = 0, - ZERO_PAD = 1, - ONE_PAD = 2, - LOWEST_PAD = 3, - HIGHEST_PAD = 4, - UNKNOWN_PAD = 5, - PaddingValue_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - PaddingValue_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool PaddingValue_IsValid(int value); -const PaddingValue PaddingValue_MIN = INVALID_PAD; -const PaddingValue PaddingValue_MAX = UNKNOWN_PAD; -const int PaddingValue_ARRAYSIZE = PaddingValue_MAX + 1; - -const ::google::protobuf::EnumDescriptor* PaddingValue_descriptor(); -inline const ::std::string& PaddingValue_Name(PaddingValue value) { - return ::google::protobuf::internal::NameOfEnum( - PaddingValue_descriptor(), value); -} -inline bool PaddingValue_Parse( - const ::std::string& name, PaddingValue* value) { - return ::google::protobuf::internal::ParseNamedEnum( - PaddingValue_descriptor(), name, value); -} -enum Format { - INVALID_FORMAT = 0, - DENSE = 1, - SPARSE = 2, - Format_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - Format_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool Format_IsValid(int value); -const Format Format_MIN = INVALID_FORMAT; -const Format Format_MAX = SPARSE; -const int Format_ARRAYSIZE = Format_MAX + 1; - -const ::google::protobuf::EnumDescriptor* Format_descriptor(); -inline const ::std::string& Format_Name(Format value) { - return ::google::protobuf::internal::NameOfEnum( - Format_descriptor(), value); -} -inline bool Format_Parse( - const ::std::string& name, Format* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Format_descriptor(), name, value); -} -enum FftType { - FFT = 0, - IFFT = 1, - RFFT = 2, - IRFFT = 3, - FftType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - FftType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool FftType_IsValid(int value); -const FftType FftType_MIN = FFT; -const FftType FftType_MAX = IRFFT; -const int FftType_ARRAYSIZE = FftType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* FftType_descriptor(); -inline const ::std::string& FftType_Name(FftType value) { - return ::google::protobuf::internal::NameOfEnum( - FftType_descriptor(), value); -} -inline bool FftType_Parse( - const ::std::string& name, FftType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - FftType_descriptor(), name, value); -} -enum RandomDistribution { - RNG_INVALID = 0, - RNG_UNIFORM = 1, - RNG_NORMAL = 2, - RandomDistribution_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - RandomDistribution_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool RandomDistribution_IsValid(int value); -const RandomDistribution RandomDistribution_MIN = RNG_INVALID; -const RandomDistribution RandomDistribution_MAX = RNG_NORMAL; -const int RandomDistribution_ARRAYSIZE = RandomDistribution_MAX + 1; - -const ::google::protobuf::EnumDescriptor* RandomDistribution_descriptor(); -inline const ::std::string& RandomDistribution_Name(RandomDistribution value) { - return ::google::protobuf::internal::NameOfEnum( - RandomDistribution_descriptor(), value); -} -inline bool RandomDistribution_Parse( - const ::std::string& name, RandomDistribution* value) { - return ::google::protobuf::internal::ParseNamedEnum( - RandomDistribution_descriptor(), name, value); -} -// =================================================================== - -class PaddingConfig_PaddingConfigDimension : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.PaddingConfig.PaddingConfigDimension) */ { - public: - PaddingConfig_PaddingConfigDimension(); - virtual ~PaddingConfig_PaddingConfigDimension(); - - PaddingConfig_PaddingConfigDimension(const PaddingConfig_PaddingConfigDimension& from); - - inline PaddingConfig_PaddingConfigDimension& operator=(const PaddingConfig_PaddingConfigDimension& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - PaddingConfig_PaddingConfigDimension(PaddingConfig_PaddingConfigDimension&& from) noexcept - : PaddingConfig_PaddingConfigDimension() { - *this = ::std::move(from); - } - - inline PaddingConfig_PaddingConfigDimension& operator=(PaddingConfig_PaddingConfigDimension&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const PaddingConfig_PaddingConfigDimension& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PaddingConfig_PaddingConfigDimension* internal_default_instance() { - return reinterpret_cast( - &_PaddingConfig_PaddingConfigDimension_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(PaddingConfig_PaddingConfigDimension* other); - void Swap(PaddingConfig_PaddingConfigDimension* other); - friend void swap(PaddingConfig_PaddingConfigDimension& a, PaddingConfig_PaddingConfigDimension& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline PaddingConfig_PaddingConfigDimension* New() const final { - return CreateMaybeMessage(NULL); - } - - PaddingConfig_PaddingConfigDimension* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const PaddingConfig_PaddingConfigDimension& from); - void MergeFrom(const PaddingConfig_PaddingConfigDimension& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PaddingConfig_PaddingConfigDimension* other); - protected: - explicit PaddingConfig_PaddingConfigDimension(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 edge_padding_low = 1; - void clear_edge_padding_low(); - static const int kEdgePaddingLowFieldNumber = 1; - ::google::protobuf::int64 edge_padding_low() const; - void set_edge_padding_low(::google::protobuf::int64 value); - - // int64 edge_padding_high = 2; - void clear_edge_padding_high(); - static const int kEdgePaddingHighFieldNumber = 2; - ::google::protobuf::int64 edge_padding_high() const; - void set_edge_padding_high(::google::protobuf::int64 value); - - // int64 interior_padding = 3; - void clear_interior_padding(); - static const int kInteriorPaddingFieldNumber = 3; - ::google::protobuf::int64 interior_padding() const; - void set_interior_padding(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.PaddingConfig.PaddingConfigDimension) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int64 edge_padding_low_; - ::google::protobuf::int64 edge_padding_high_; - ::google::protobuf::int64 interior_padding_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class PaddingConfig : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.PaddingConfig) */ { - public: - PaddingConfig(); - virtual ~PaddingConfig(); - - PaddingConfig(const PaddingConfig& from); - - inline PaddingConfig& operator=(const PaddingConfig& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - PaddingConfig(PaddingConfig&& from) noexcept - : PaddingConfig() { - *this = ::std::move(from); - } - - inline PaddingConfig& operator=(PaddingConfig&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const PaddingConfig& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PaddingConfig* internal_default_instance() { - return reinterpret_cast( - &_PaddingConfig_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(PaddingConfig* other); - void Swap(PaddingConfig* other); - friend void swap(PaddingConfig& a, PaddingConfig& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline PaddingConfig* New() const final { - return CreateMaybeMessage(NULL); - } - - PaddingConfig* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const PaddingConfig& from); - void MergeFrom(const PaddingConfig& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PaddingConfig* other); - protected: - explicit PaddingConfig(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef PaddingConfig_PaddingConfigDimension PaddingConfigDimension; - - // accessors ------------------------------------------------------- - - // repeated .xla.PaddingConfig.PaddingConfigDimension dimensions = 1; - int dimensions_size() const; - void clear_dimensions(); - static const int kDimensionsFieldNumber = 1; - ::xla::PaddingConfig_PaddingConfigDimension* mutable_dimensions(int index); - ::google::protobuf::RepeatedPtrField< ::xla::PaddingConfig_PaddingConfigDimension >* - mutable_dimensions(); - const ::xla::PaddingConfig_PaddingConfigDimension& dimensions(int index) const; - ::xla::PaddingConfig_PaddingConfigDimension* add_dimensions(); - const ::google::protobuf::RepeatedPtrField< ::xla::PaddingConfig_PaddingConfigDimension >& - dimensions() const; - - // @@protoc_insertion_point(class_scope:xla.PaddingConfig) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::xla::PaddingConfig_PaddingConfigDimension > dimensions_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Layout : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.Layout) */ { - public: - Layout(); - virtual ~Layout(); - - Layout(const Layout& from); - - inline Layout& operator=(const Layout& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Layout(Layout&& from) noexcept - : Layout() { - *this = ::std::move(from); - } - - inline Layout& operator=(Layout&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const Layout& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Layout* internal_default_instance() { - return reinterpret_cast( - &_Layout_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void UnsafeArenaSwap(Layout* other); - void Swap(Layout* other); - friend void swap(Layout& a, Layout& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Layout* New() const final { - return CreateMaybeMessage(NULL); - } - - Layout* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Layout& from); - void MergeFrom(const Layout& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Layout* other); - protected: - explicit Layout(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int64 minor_to_major = 1; - int minor_to_major_size() const; - void clear_minor_to_major(); - static const int kMinorToMajorFieldNumber = 1; - ::google::protobuf::int64 minor_to_major(int index) const; - void set_minor_to_major(int index, ::google::protobuf::int64 value); - void add_minor_to_major(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - minor_to_major() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_minor_to_major(); - - // repeated int64 padded_dimensions = 2; - int padded_dimensions_size() const; - void clear_padded_dimensions(); - static const int kPaddedDimensionsFieldNumber = 2; - ::google::protobuf::int64 padded_dimensions(int index) const; - void set_padded_dimensions(int index, ::google::protobuf::int64 value); - void add_padded_dimensions(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - padded_dimensions() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_padded_dimensions(); - - // .xla.PaddingValue padding_value = 3; - void clear_padding_value(); - static const int kPaddingValueFieldNumber = 3; - ::xla::PaddingValue padding_value() const; - void set_padding_value(::xla::PaddingValue value); - - // .xla.Format format = 4; - void clear_format(); - static const int kFormatFieldNumber = 4; - ::xla::Format format() const; - void set_format(::xla::Format value); - - // int64 max_sparse_elements = 5; - void clear_max_sparse_elements(); - static const int kMaxSparseElementsFieldNumber = 5; - ::google::protobuf::int64 max_sparse_elements() const; - void set_max_sparse_elements(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.Layout) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > minor_to_major_; - mutable int _minor_to_major_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > padded_dimensions_; - mutable int _padded_dimensions_cached_byte_size_; - int padding_value_; - int format_; - ::google::protobuf::int64 max_sparse_elements_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Shape : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.Shape) */ { - public: - Shape(); - virtual ~Shape(); - - Shape(const Shape& from); - - inline Shape& operator=(const Shape& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Shape(Shape&& from) noexcept - : Shape() { - *this = ::std::move(from); - } - - inline Shape& operator=(Shape&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const Shape& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Shape* internal_default_instance() { - return reinterpret_cast( - &_Shape_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void UnsafeArenaSwap(Shape* other); - void Swap(Shape* other); - friend void swap(Shape& a, Shape& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Shape* New() const final { - return CreateMaybeMessage(NULL); - } - - Shape* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Shape& from); - void MergeFrom(const Shape& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Shape* other); - protected: - explicit Shape(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int64 dimensions = 3; - int dimensions_size() const; - void clear_dimensions(); - static const int kDimensionsFieldNumber = 3; - ::google::protobuf::int64 dimensions(int index) const; - void set_dimensions(int index, ::google::protobuf::int64 value); - void add_dimensions(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - dimensions() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_dimensions(); - - // repeated .xla.Shape tuple_shapes = 4; - int tuple_shapes_size() const; - void clear_tuple_shapes(); - static const int kTupleShapesFieldNumber = 4; - ::xla::Shape* mutable_tuple_shapes(int index); - ::google::protobuf::RepeatedPtrField< ::xla::Shape >* - mutable_tuple_shapes(); - const ::xla::Shape& tuple_shapes(int index) const; - ::xla::Shape* add_tuple_shapes(); - const ::google::protobuf::RepeatedPtrField< ::xla::Shape >& - tuple_shapes() const; - - // .xla.Layout layout = 5; - bool has_layout() const; - void clear_layout(); - static const int kLayoutFieldNumber = 5; - private: - const ::xla::Layout& _internal_layout() const; - public: - const ::xla::Layout& layout() const; - ::xla::Layout* release_layout(); - ::xla::Layout* mutable_layout(); - void set_allocated_layout(::xla::Layout* layout); - void unsafe_arena_set_allocated_layout( - ::xla::Layout* layout); - ::xla::Layout* unsafe_arena_release_layout(); - - // .xla.PrimitiveType element_type = 2; - void clear_element_type(); - static const int kElementTypeFieldNumber = 2; - ::xla::PrimitiveType element_type() const; - void set_element_type(::xla::PrimitiveType value); - - // @@protoc_insertion_point(class_scope:xla.Shape) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > dimensions_; - mutable int _dimensions_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::xla::Shape > tuple_shapes_; - ::xla::Layout* layout_; - int element_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ProgramShape : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ProgramShape) */ { - public: - ProgramShape(); - virtual ~ProgramShape(); - - ProgramShape(const ProgramShape& from); - - inline ProgramShape& operator=(const ProgramShape& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ProgramShape(ProgramShape&& from) noexcept - : ProgramShape() { - *this = ::std::move(from); - } - - inline ProgramShape& operator=(ProgramShape&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const ProgramShape& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ProgramShape* internal_default_instance() { - return reinterpret_cast( - &_ProgramShape_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void UnsafeArenaSwap(ProgramShape* other); - void Swap(ProgramShape* other); - friend void swap(ProgramShape& a, ProgramShape& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ProgramShape* New() const final { - return CreateMaybeMessage(NULL); - } - - ProgramShape* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ProgramShape& from); - void MergeFrom(const ProgramShape& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ProgramShape* other); - protected: - explicit ProgramShape(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .xla.Shape parameters = 1; - int parameters_size() const; - void clear_parameters(); - static const int kParametersFieldNumber = 1; - ::xla::Shape* mutable_parameters(int index); - ::google::protobuf::RepeatedPtrField< ::xla::Shape >* - mutable_parameters(); - const ::xla::Shape& parameters(int index) const; - ::xla::Shape* add_parameters(); - const ::google::protobuf::RepeatedPtrField< ::xla::Shape >& - parameters() const; - - // repeated string parameter_names = 3; - int parameter_names_size() const; - void clear_parameter_names(); - static const int kParameterNamesFieldNumber = 3; - const ::std::string& parameter_names(int index) const; - ::std::string* mutable_parameter_names(int index); - void set_parameter_names(int index, const ::std::string& value); - #if LANG_CXX11 - void set_parameter_names(int index, ::std::string&& value); - #endif - void set_parameter_names(int index, const char* value); - void set_parameter_names(int index, const char* value, size_t size); - ::std::string* add_parameter_names(); - void add_parameter_names(const ::std::string& value); - #if LANG_CXX11 - void add_parameter_names(::std::string&& value); - #endif - void add_parameter_names(const char* value); - void add_parameter_names(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& parameter_names() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_parameter_names(); - - // .xla.Shape result = 2; - bool has_result() const; - void clear_result(); - static const int kResultFieldNumber = 2; - private: - const ::xla::Shape& _internal_result() const; - public: - const ::xla::Shape& result() const; - ::xla::Shape* release_result(); - ::xla::Shape* mutable_result(); - void set_allocated_result(::xla::Shape* result); - void unsafe_arena_set_allocated_result( - ::xla::Shape* result); - ::xla::Shape* unsafe_arena_release_result(); - - // @@protoc_insertion_point(class_scope:xla.ProgramShape) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::xla::Shape > parameters_; - ::google::protobuf::RepeatedPtrField< ::std::string> parameter_names_; - ::xla::Shape* result_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ComputationStats : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ComputationStats) */ { - public: - ComputationStats(); - virtual ~ComputationStats(); - - ComputationStats(const ComputationStats& from); - - inline ComputationStats& operator=(const ComputationStats& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ComputationStats(ComputationStats&& from) noexcept - : ComputationStats() { - *this = ::std::move(from); - } - - inline ComputationStats& operator=(ComputationStats&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const ComputationStats& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ComputationStats* internal_default_instance() { - return reinterpret_cast( - &_ComputationStats_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void UnsafeArenaSwap(ComputationStats* other); - void Swap(ComputationStats* other); - friend void swap(ComputationStats& a, ComputationStats& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ComputationStats* New() const final { - return CreateMaybeMessage(NULL); - } - - ComputationStats* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ComputationStats& from); - void MergeFrom(const ComputationStats& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ComputationStats* other); - protected: - explicit ComputationStats(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // double flop_count = 1; - void clear_flop_count(); - static const int kFlopCountFieldNumber = 1; - double flop_count() const; - void set_flop_count(double value); - - // double transcendental_count = 2; - void clear_transcendental_count(); - static const int kTranscendentalCountFieldNumber = 2; - double transcendental_count() const; - void set_transcendental_count(double value); - - // @@protoc_insertion_point(class_scope:xla.ComputationStats) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - double flop_count_; - double transcendental_count_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class OpMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.OpMetadata) */ { - public: - OpMetadata(); - virtual ~OpMetadata(); - - OpMetadata(const OpMetadata& from); - - inline OpMetadata& operator=(const OpMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - OpMetadata(OpMetadata&& from) noexcept - : OpMetadata() { - *this = ::std::move(from); - } - - inline OpMetadata& operator=(OpMetadata&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const OpMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const OpMetadata* internal_default_instance() { - return reinterpret_cast( - &_OpMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void UnsafeArenaSwap(OpMetadata* other); - void Swap(OpMetadata* other); - friend void swap(OpMetadata& a, OpMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline OpMetadata* New() const final { - return CreateMaybeMessage(NULL); - } - - OpMetadata* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const OpMetadata& from); - void MergeFrom(const OpMetadata& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OpMetadata* other); - protected: - explicit OpMetadata(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string op_type = 1; - void clear_op_type(); - static const int kOpTypeFieldNumber = 1; - const ::std::string& op_type() const; - void set_op_type(const ::std::string& value); - #if LANG_CXX11 - void set_op_type(::std::string&& value); - #endif - void set_op_type(const char* value); - void set_op_type(const char* value, size_t size); - ::std::string* mutable_op_type(); - ::std::string* release_op_type(); - void set_allocated_op_type(::std::string* op_type); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_op_type(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_op_type( - ::std::string* op_type); - - // string op_name = 2; - void clear_op_name(); - static const int kOpNameFieldNumber = 2; - const ::std::string& op_name() const; - void set_op_name(const ::std::string& value); - #if LANG_CXX11 - void set_op_name(::std::string&& value); - #endif - void set_op_name(const char* value); - void set_op_name(const char* value, size_t size); - ::std::string* mutable_op_name(); - ::std::string* release_op_name(); - void set_allocated_op_name(::std::string* op_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_op_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_op_name( - ::std::string* op_name); - - // string source_file = 3; - void clear_source_file(); - static const int kSourceFileFieldNumber = 3; - const ::std::string& source_file() const; - void set_source_file(const ::std::string& value); - #if LANG_CXX11 - void set_source_file(::std::string&& value); - #endif - void set_source_file(const char* value); - void set_source_file(const char* value, size_t size); - ::std::string* mutable_source_file(); - ::std::string* release_source_file(); - void set_allocated_source_file(::std::string* source_file); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_source_file(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_source_file( - ::std::string* source_file); - - // int32 source_line = 4; - void clear_source_line(); - static const int kSourceLineFieldNumber = 4; - ::google::protobuf::int32 source_line() const; - void set_source_line(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:xla.OpMetadata) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr op_type_; - ::google::protobuf::internal::ArenaStringPtr op_name_; - ::google::protobuf::internal::ArenaStringPtr source_file_; - ::google::protobuf::int32 source_line_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ExecutionProfile : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ExecutionProfile) */ { - public: - ExecutionProfile(); - virtual ~ExecutionProfile(); - - ExecutionProfile(const ExecutionProfile& from); - - inline ExecutionProfile& operator=(const ExecutionProfile& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionProfile(ExecutionProfile&& from) noexcept - : ExecutionProfile() { - *this = ::std::move(from); - } - - inline ExecutionProfile& operator=(ExecutionProfile&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const ExecutionProfile& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionProfile* internal_default_instance() { - return reinterpret_cast( - &_ExecutionProfile_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void UnsafeArenaSwap(ExecutionProfile* other); - void Swap(ExecutionProfile* other); - friend void swap(ExecutionProfile& a, ExecutionProfile& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionProfile* New() const final { - return CreateMaybeMessage(NULL); - } - - ExecutionProfile* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ExecutionProfile& from); - void MergeFrom(const ExecutionProfile& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ExecutionProfile* other); - protected: - explicit ExecutionProfile(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 compile_time_ms = 2; - void clear_compile_time_ms(); - static const int kCompileTimeMsFieldNumber = 2; - ::google::protobuf::int64 compile_time_ms() const; - void set_compile_time_ms(::google::protobuf::int64 value); - - // int64 compute_cycle_count = 3; - void clear_compute_cycle_count(); - static const int kComputeCycleCountFieldNumber = 3; - ::google::protobuf::int64 compute_cycle_count() const; - void set_compute_cycle_count(::google::protobuf::int64 value); - - // int64 compute_time_ns = 4; - void clear_compute_time_ns(); - static const int kComputeTimeNsFieldNumber = 4; - ::google::protobuf::int64 compute_time_ns() const; - void set_compute_time_ns(::google::protobuf::int64 value); - - // int64 compute_and_transfer_time_ns = 5; - void clear_compute_and_transfer_time_ns(); - static const int kComputeAndTransferTimeNsFieldNumber = 5; - ::google::protobuf::int64 compute_and_transfer_time_ns() const; - void set_compute_and_transfer_time_ns(::google::protobuf::int64 value); - - // int64 executable_size_in_bytes = 6; - void clear_executable_size_in_bytes(); - static const int kExecutableSizeInBytesFieldNumber = 6; - ::google::protobuf::int64 executable_size_in_bytes() const; - void set_executable_size_in_bytes(::google::protobuf::int64 value); - - // bool compilation_cache_hit = 1; - void clear_compilation_cache_hit(); - static const int kCompilationCacheHitFieldNumber = 1; - bool compilation_cache_hit() const; - void set_compilation_cache_hit(bool value); - - // @@protoc_insertion_point(class_scope:xla.ExecutionProfile) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int64 compile_time_ms_; - ::google::protobuf::int64 compute_cycle_count_; - ::google::protobuf::int64 compute_time_ns_; - ::google::protobuf::int64 compute_and_transfer_time_ns_; - ::google::protobuf::int64 executable_size_in_bytes_; - bool compilation_cache_hit_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ExecutionHandle : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ExecutionHandle) */ { - public: - ExecutionHandle(); - virtual ~ExecutionHandle(); - - ExecutionHandle(const ExecutionHandle& from); - - inline ExecutionHandle& operator=(const ExecutionHandle& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExecutionHandle(ExecutionHandle&& from) noexcept - : ExecutionHandle() { - *this = ::std::move(from); - } - - inline ExecutionHandle& operator=(ExecutionHandle&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const ExecutionHandle& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExecutionHandle* internal_default_instance() { - return reinterpret_cast( - &_ExecutionHandle_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void UnsafeArenaSwap(ExecutionHandle* other); - void Swap(ExecutionHandle* other); - friend void swap(ExecutionHandle& a, ExecutionHandle& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExecutionHandle* New() const final { - return CreateMaybeMessage(NULL); - } - - ExecutionHandle* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ExecutionHandle& from); - void MergeFrom(const ExecutionHandle& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ExecutionHandle* other); - protected: - explicit ExecutionHandle(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 handle = 1; - void clear_handle(); - static const int kHandleFieldNumber = 1; - ::google::protobuf::int64 handle() const; - void set_handle(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.ExecutionHandle) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int64 handle_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GlobalDataHandle : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.GlobalDataHandle) */ { - public: - GlobalDataHandle(); - virtual ~GlobalDataHandle(); - - GlobalDataHandle(const GlobalDataHandle& from); - - inline GlobalDataHandle& operator=(const GlobalDataHandle& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GlobalDataHandle(GlobalDataHandle&& from) noexcept - : GlobalDataHandle() { - *this = ::std::move(from); - } - - inline GlobalDataHandle& operator=(GlobalDataHandle&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const GlobalDataHandle& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GlobalDataHandle* internal_default_instance() { - return reinterpret_cast( - &_GlobalDataHandle_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void UnsafeArenaSwap(GlobalDataHandle* other); - void Swap(GlobalDataHandle* other); - friend void swap(GlobalDataHandle& a, GlobalDataHandle& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GlobalDataHandle* New() const final { - return CreateMaybeMessage(NULL); - } - - GlobalDataHandle* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GlobalDataHandle& from); - void MergeFrom(const GlobalDataHandle& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GlobalDataHandle* other); - protected: - explicit GlobalDataHandle(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 handle = 1; - void clear_handle(); - static const int kHandleFieldNumber = 1; - ::google::protobuf::int64 handle() const; - void set_handle(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.GlobalDataHandle) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int64 handle_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class DeviceHandle : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.DeviceHandle) */ { - public: - DeviceHandle(); - virtual ~DeviceHandle(); - - DeviceHandle(const DeviceHandle& from); - - inline DeviceHandle& operator=(const DeviceHandle& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DeviceHandle(DeviceHandle&& from) noexcept - : DeviceHandle() { - *this = ::std::move(from); - } - - inline DeviceHandle& operator=(DeviceHandle&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const DeviceHandle& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DeviceHandle* internal_default_instance() { - return reinterpret_cast( - &_DeviceHandle_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - void UnsafeArenaSwap(DeviceHandle* other); - void Swap(DeviceHandle* other); - friend void swap(DeviceHandle& a, DeviceHandle& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DeviceHandle* New() const final { - return CreateMaybeMessage(NULL); - } - - DeviceHandle* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const DeviceHandle& from); - void MergeFrom(const DeviceHandle& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DeviceHandle* other); - protected: - explicit DeviceHandle(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 handle = 1; - void clear_handle(); - static const int kHandleFieldNumber = 1; - ::google::protobuf::int64 handle() const; - void set_handle(::google::protobuf::int64 value); - - // int64 device_count = 2; - void clear_device_count(); - static const int kDeviceCountFieldNumber = 2; - ::google::protobuf::int64 device_count() const; - void set_device_count(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.DeviceHandle) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int64 handle_; - ::google::protobuf::int64 device_count_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ChannelHandle : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ChannelHandle) */ { - public: - ChannelHandle(); - virtual ~ChannelHandle(); - - ChannelHandle(const ChannelHandle& from); - - inline ChannelHandle& operator=(const ChannelHandle& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ChannelHandle(ChannelHandle&& from) noexcept - : ChannelHandle() { - *this = ::std::move(from); - } - - inline ChannelHandle& operator=(ChannelHandle&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const ChannelHandle& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ChannelHandle* internal_default_instance() { - return reinterpret_cast( - &_ChannelHandle_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void UnsafeArenaSwap(ChannelHandle* other); - void Swap(ChannelHandle* other); - friend void swap(ChannelHandle& a, ChannelHandle& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ChannelHandle* New() const final { - return CreateMaybeMessage(NULL); - } - - ChannelHandle* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ChannelHandle& from); - void MergeFrom(const ChannelHandle& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ChannelHandle* other); - protected: - explicit ChannelHandle(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef ChannelHandle_ChannelType ChannelType; - static const ChannelType CHANNEL_TYPE_INVALID = - ChannelHandle_ChannelType_CHANNEL_TYPE_INVALID; - static const ChannelType DEVICE_TO_DEVICE = - ChannelHandle_ChannelType_DEVICE_TO_DEVICE; - static const ChannelType DEVICE_TO_HOST = - ChannelHandle_ChannelType_DEVICE_TO_HOST; - static const ChannelType HOST_TO_DEVICE = - ChannelHandle_ChannelType_HOST_TO_DEVICE; - static inline bool ChannelType_IsValid(int value) { - return ChannelHandle_ChannelType_IsValid(value); - } - static const ChannelType ChannelType_MIN = - ChannelHandle_ChannelType_ChannelType_MIN; - static const ChannelType ChannelType_MAX = - ChannelHandle_ChannelType_ChannelType_MAX; - static const int ChannelType_ARRAYSIZE = - ChannelHandle_ChannelType_ChannelType_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - ChannelType_descriptor() { - return ChannelHandle_ChannelType_descriptor(); - } - static inline const ::std::string& ChannelType_Name(ChannelType value) { - return ChannelHandle_ChannelType_Name(value); - } - static inline bool ChannelType_Parse(const ::std::string& name, - ChannelType* value) { - return ChannelHandle_ChannelType_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // int64 handle = 1; - void clear_handle(); - static const int kHandleFieldNumber = 1; - ::google::protobuf::int64 handle() const; - void set_handle(::google::protobuf::int64 value); - - // .xla.ChannelHandle.ChannelType type = 2; - void clear_type(); - static const int kTypeFieldNumber = 2; - ::xla::ChannelHandle_ChannelType type() const; - void set_type(::xla::ChannelHandle_ChannelType value); - - // @@protoc_insertion_point(class_scope:xla.ChannelHandle) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int64 handle_; - int type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class DeviceAssignmentProto_ComputationDevice : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.DeviceAssignmentProto.ComputationDevice) */ { - public: - DeviceAssignmentProto_ComputationDevice(); - virtual ~DeviceAssignmentProto_ComputationDevice(); - - DeviceAssignmentProto_ComputationDevice(const DeviceAssignmentProto_ComputationDevice& from); - - inline DeviceAssignmentProto_ComputationDevice& operator=(const DeviceAssignmentProto_ComputationDevice& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DeviceAssignmentProto_ComputationDevice(DeviceAssignmentProto_ComputationDevice&& from) noexcept - : DeviceAssignmentProto_ComputationDevice() { - *this = ::std::move(from); - } - - inline DeviceAssignmentProto_ComputationDevice& operator=(DeviceAssignmentProto_ComputationDevice&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const DeviceAssignmentProto_ComputationDevice& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DeviceAssignmentProto_ComputationDevice* internal_default_instance() { - return reinterpret_cast( - &_DeviceAssignmentProto_ComputationDevice_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - void UnsafeArenaSwap(DeviceAssignmentProto_ComputationDevice* other); - void Swap(DeviceAssignmentProto_ComputationDevice* other); - friend void swap(DeviceAssignmentProto_ComputationDevice& a, DeviceAssignmentProto_ComputationDevice& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DeviceAssignmentProto_ComputationDevice* New() const final { - return CreateMaybeMessage(NULL); - } - - DeviceAssignmentProto_ComputationDevice* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const DeviceAssignmentProto_ComputationDevice& from); - void MergeFrom(const DeviceAssignmentProto_ComputationDevice& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DeviceAssignmentProto_ComputationDevice* other); - protected: - explicit DeviceAssignmentProto_ComputationDevice(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int32 replica_device_ids = 1; - int replica_device_ids_size() const; - void clear_replica_device_ids(); - static const int kReplicaDeviceIdsFieldNumber = 1; - ::google::protobuf::int32 replica_device_ids(int index) const; - void set_replica_device_ids(int index, ::google::protobuf::int32 value); - void add_replica_device_ids(::google::protobuf::int32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& - replica_device_ids() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* - mutable_replica_device_ids(); - - // @@protoc_insertion_point(class_scope:xla.DeviceAssignmentProto.ComputationDevice) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 > replica_device_ids_; - mutable int _replica_device_ids_cached_byte_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class DeviceAssignmentProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.DeviceAssignmentProto) */ { - public: - DeviceAssignmentProto(); - virtual ~DeviceAssignmentProto(); - - DeviceAssignmentProto(const DeviceAssignmentProto& from); - - inline DeviceAssignmentProto& operator=(const DeviceAssignmentProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DeviceAssignmentProto(DeviceAssignmentProto&& from) noexcept - : DeviceAssignmentProto() { - *this = ::std::move(from); - } - - inline DeviceAssignmentProto& operator=(DeviceAssignmentProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const DeviceAssignmentProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DeviceAssignmentProto* internal_default_instance() { - return reinterpret_cast( - &_DeviceAssignmentProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 13; - - void UnsafeArenaSwap(DeviceAssignmentProto* other); - void Swap(DeviceAssignmentProto* other); - friend void swap(DeviceAssignmentProto& a, DeviceAssignmentProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DeviceAssignmentProto* New() const final { - return CreateMaybeMessage(NULL); - } - - DeviceAssignmentProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const DeviceAssignmentProto& from); - void MergeFrom(const DeviceAssignmentProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DeviceAssignmentProto* other); - protected: - explicit DeviceAssignmentProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef DeviceAssignmentProto_ComputationDevice ComputationDevice; - - // accessors ------------------------------------------------------- - - // repeated .xla.DeviceAssignmentProto.ComputationDevice computation_devices = 3; - int computation_devices_size() const; - void clear_computation_devices(); - static const int kComputationDevicesFieldNumber = 3; - ::xla::DeviceAssignmentProto_ComputationDevice* mutable_computation_devices(int index); - ::google::protobuf::RepeatedPtrField< ::xla::DeviceAssignmentProto_ComputationDevice >* - mutable_computation_devices(); - const ::xla::DeviceAssignmentProto_ComputationDevice& computation_devices(int index) const; - ::xla::DeviceAssignmentProto_ComputationDevice* add_computation_devices(); - const ::google::protobuf::RepeatedPtrField< ::xla::DeviceAssignmentProto_ComputationDevice >& - computation_devices() const; - - // int32 replica_count = 1; - void clear_replica_count(); - static const int kReplicaCountFieldNumber = 1; - ::google::protobuf::int32 replica_count() const; - void set_replica_count(::google::protobuf::int32 value); - - // int32 computation_count = 2; - void clear_computation_count(); - static const int kComputationCountFieldNumber = 2; - ::google::protobuf::int32 computation_count() const; - void set_computation_count(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:xla.DeviceAssignmentProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::xla::DeviceAssignmentProto_ComputationDevice > computation_devices_; - ::google::protobuf::int32 replica_count_; - ::google::protobuf::int32 computation_count_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class LiteralProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.LiteralProto) */ { - public: - LiteralProto(); - virtual ~LiteralProto(); - - LiteralProto(const LiteralProto& from); - - inline LiteralProto& operator=(const LiteralProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LiteralProto(LiteralProto&& from) noexcept - : LiteralProto() { - *this = ::std::move(from); - } - - inline LiteralProto& operator=(LiteralProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const LiteralProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LiteralProto* internal_default_instance() { - return reinterpret_cast( - &_LiteralProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 14; - - void UnsafeArenaSwap(LiteralProto* other); - void Swap(LiteralProto* other); - friend void swap(LiteralProto& a, LiteralProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LiteralProto* New() const final { - return CreateMaybeMessage(NULL); - } - - LiteralProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const LiteralProto& from); - void MergeFrom(const LiteralProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LiteralProto* other); - protected: - explicit LiteralProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated bool preds = 2; - int preds_size() const; - void clear_preds(); - static const int kPredsFieldNumber = 2; - bool preds(int index) const; - void set_preds(int index, bool value); - void add_preds(bool value); - const ::google::protobuf::RepeatedField< bool >& - preds() const; - ::google::protobuf::RepeatedField< bool >* - mutable_preds(); - - // repeated int32 s32s = 4; - int s32s_size() const; - void clear_s32s(); - static const int kS32SFieldNumber = 4; - ::google::protobuf::int32 s32s(int index) const; - void set_s32s(int index, ::google::protobuf::int32 value); - void add_s32s(::google::protobuf::int32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& - s32s() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* - mutable_s32s(); - - // repeated int64 s64s = 5; - int s64s_size() const; - void clear_s64s(); - static const int kS64SFieldNumber = 5; - ::google::protobuf::int64 s64s(int index) const; - void set_s64s(int index, ::google::protobuf::int64 value); - void add_s64s(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - s64s() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_s64s(); - - // repeated uint32 u32s = 6; - int u32s_size() const; - void clear_u32s(); - static const int kU32SFieldNumber = 6; - ::google::protobuf::uint32 u32s(int index) const; - void set_u32s(int index, ::google::protobuf::uint32 value); - void add_u32s(::google::protobuf::uint32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - u32s() const; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_u32s(); - - // repeated uint64 u64s = 7; - int u64s_size() const; - void clear_u64s(); - static const int kU64SFieldNumber = 7; - ::google::protobuf::uint64 u64s(int index) const; - void set_u64s(int index, ::google::protobuf::uint64 value); - void add_u64s(::google::protobuf::uint64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& - u64s() const; - ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* - mutable_u64s(); - - // repeated float f32s = 8; - int f32s_size() const; - void clear_f32s(); - static const int kF32SFieldNumber = 8; - float f32s(int index) const; - void set_f32s(int index, float value); - void add_f32s(float value); - const ::google::protobuf::RepeatedField< float >& - f32s() const; - ::google::protobuf::RepeatedField< float >* - mutable_f32s(); - - // repeated double f64s = 9; - int f64s_size() const; - void clear_f64s(); - static const int kF64SFieldNumber = 9; - double f64s(int index) const; - void set_f64s(int index, double value); - void add_f64s(double value); - const ::google::protobuf::RepeatedField< double >& - f64s() const; - ::google::protobuf::RepeatedField< double >* - mutable_f64s(); - - // repeated .xla.LiteralProto tuple_literals = 10; - int tuple_literals_size() const; - void clear_tuple_literals(); - static const int kTupleLiteralsFieldNumber = 10; - ::xla::LiteralProto* mutable_tuple_literals(int index); - ::google::protobuf::RepeatedPtrField< ::xla::LiteralProto >* - mutable_tuple_literals(); - const ::xla::LiteralProto& tuple_literals(int index) const; - ::xla::LiteralProto* add_tuple_literals(); - const ::google::protobuf::RepeatedPtrField< ::xla::LiteralProto >& - tuple_literals() const; - - // repeated float c64s = 12; - int c64s_size() const; - void clear_c64s(); - static const int kC64SFieldNumber = 12; - float c64s(int index) const; - void set_c64s(int index, float value); - void add_c64s(float value); - const ::google::protobuf::RepeatedField< float >& - c64s() const; - ::google::protobuf::RepeatedField< float >* - mutable_c64s(); - - // repeated int64 sparse_indices = 14; - int sparse_indices_size() const; - void clear_sparse_indices(); - static const int kSparseIndicesFieldNumber = 14; - ::google::protobuf::int64 sparse_indices(int index) const; - void set_sparse_indices(int index, ::google::protobuf::int64 value); - void add_sparse_indices(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - sparse_indices() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_sparse_indices(); - - // bytes u8s = 3; - void clear_u8s(); - static const int kU8SFieldNumber = 3; - const ::std::string& u8s() const; - void set_u8s(const ::std::string& value); - #if LANG_CXX11 - void set_u8s(::std::string&& value); - #endif - void set_u8s(const char* value); - void set_u8s(const void* value, size_t size); - ::std::string* mutable_u8s(); - ::std::string* release_u8s(); - void set_allocated_u8s(::std::string* u8s); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_u8s(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_u8s( - ::std::string* u8s); - - // bytes f16s = 11; - void clear_f16s(); - static const int kF16SFieldNumber = 11; - const ::std::string& f16s() const; - void set_f16s(const ::std::string& value); - #if LANG_CXX11 - void set_f16s(::std::string&& value); - #endif - void set_f16s(const char* value); - void set_f16s(const void* value, size_t size); - ::std::string* mutable_f16s(); - ::std::string* release_f16s(); - void set_allocated_f16s(::std::string* f16s); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_f16s(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_f16s( - ::std::string* f16s); - - // bytes bf16s = 13; - void clear_bf16s(); - static const int kBf16SFieldNumber = 13; - const ::std::string& bf16s() const; - void set_bf16s(const ::std::string& value); - #if LANG_CXX11 - void set_bf16s(::std::string&& value); - #endif - void set_bf16s(const char* value); - void set_bf16s(const void* value, size_t size); - ::std::string* mutable_bf16s(); - ::std::string* release_bf16s(); - void set_allocated_bf16s(::std::string* bf16s); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_bf16s(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_bf16s( - ::std::string* bf16s); - - // bytes s8s = 15; - void clear_s8s(); - static const int kS8SFieldNumber = 15; - const ::std::string& s8s() const; - void set_s8s(const ::std::string& value); - #if LANG_CXX11 - void set_s8s(::std::string&& value); - #endif - void set_s8s(const char* value); - void set_s8s(const void* value, size_t size); - ::std::string* mutable_s8s(); - ::std::string* release_s8s(); - void set_allocated_s8s(::std::string* s8s); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_s8s(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_s8s( - ::std::string* s8s); - - // .xla.Shape shape = 1; - bool has_shape() const; - void clear_shape(); - static const int kShapeFieldNumber = 1; - private: - const ::xla::Shape& _internal_shape() const; - public: - const ::xla::Shape& shape() const; - ::xla::Shape* release_shape(); - ::xla::Shape* mutable_shape(); - void set_allocated_shape(::xla::Shape* shape); - void unsafe_arena_set_allocated_shape( - ::xla::Shape* shape); - ::xla::Shape* unsafe_arena_release_shape(); - - // @@protoc_insertion_point(class_scope:xla.LiteralProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< bool > preds_; - mutable int _preds_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 > s32s_; - mutable int _s32s_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > s64s_; - mutable int _s64s_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > u32s_; - mutable int _u32s_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > u64s_; - mutable int _u64s_cached_byte_size_; - ::google::protobuf::RepeatedField< float > f32s_; - mutable int _f32s_cached_byte_size_; - ::google::protobuf::RepeatedField< double > f64s_; - mutable int _f64s_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::xla::LiteralProto > tuple_literals_; - ::google::protobuf::RepeatedField< float > c64s_; - mutable int _c64s_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > sparse_indices_; - mutable int _sparse_indices_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr u8s_; - ::google::protobuf::internal::ArenaStringPtr f16s_; - ::google::protobuf::internal::ArenaStringPtr bf16s_; - ::google::protobuf::internal::ArenaStringPtr s8s_; - ::xla::Shape* shape_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class WindowDimension : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.WindowDimension) */ { - public: - WindowDimension(); - virtual ~WindowDimension(); - - WindowDimension(const WindowDimension& from); - - inline WindowDimension& operator=(const WindowDimension& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - WindowDimension(WindowDimension&& from) noexcept - : WindowDimension() { - *this = ::std::move(from); - } - - inline WindowDimension& operator=(WindowDimension&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const WindowDimension& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const WindowDimension* internal_default_instance() { - return reinterpret_cast( - &_WindowDimension_default_instance_); - } - static constexpr int kIndexInFileMessages = - 15; - - void UnsafeArenaSwap(WindowDimension* other); - void Swap(WindowDimension* other); - friend void swap(WindowDimension& a, WindowDimension& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline WindowDimension* New() const final { - return CreateMaybeMessage(NULL); - } - - WindowDimension* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const WindowDimension& from); - void MergeFrom(const WindowDimension& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(WindowDimension* other); - protected: - explicit WindowDimension(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 size = 1; - void clear_size(); - static const int kSizeFieldNumber = 1; - ::google::protobuf::int64 size() const; - void set_size(::google::protobuf::int64 value); - - // int64 stride = 2; - void clear_stride(); - static const int kStrideFieldNumber = 2; - ::google::protobuf::int64 stride() const; - void set_stride(::google::protobuf::int64 value); - - // int64 padding_low = 3; - void clear_padding_low(); - static const int kPaddingLowFieldNumber = 3; - ::google::protobuf::int64 padding_low() const; - void set_padding_low(::google::protobuf::int64 value); - - // int64 padding_high = 4; - void clear_padding_high(); - static const int kPaddingHighFieldNumber = 4; - ::google::protobuf::int64 padding_high() const; - void set_padding_high(::google::protobuf::int64 value); - - // int64 window_dilation = 5; - void clear_window_dilation(); - static const int kWindowDilationFieldNumber = 5; - ::google::protobuf::int64 window_dilation() const; - void set_window_dilation(::google::protobuf::int64 value); - - // int64 base_dilation = 6; - void clear_base_dilation(); - static const int kBaseDilationFieldNumber = 6; - ::google::protobuf::int64 base_dilation() const; - void set_base_dilation(::google::protobuf::int64 value); - - // bool window_reversal = 7; - void clear_window_reversal(); - static const int kWindowReversalFieldNumber = 7; - bool window_reversal() const; - void set_window_reversal(bool value); - - // @@protoc_insertion_point(class_scope:xla.WindowDimension) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int64 size_; - ::google::protobuf::int64 stride_; - ::google::protobuf::int64 padding_low_; - ::google::protobuf::int64 padding_high_; - ::google::protobuf::int64 window_dilation_; - ::google::protobuf::int64 base_dilation_; - bool window_reversal_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Window : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.Window) */ { - public: - Window(); - virtual ~Window(); - - Window(const Window& from); - - inline Window& operator=(const Window& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Window(Window&& from) noexcept - : Window() { - *this = ::std::move(from); - } - - inline Window& operator=(Window&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const Window& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Window* internal_default_instance() { - return reinterpret_cast( - &_Window_default_instance_); - } - static constexpr int kIndexInFileMessages = - 16; - - void UnsafeArenaSwap(Window* other); - void Swap(Window* other); - friend void swap(Window& a, Window& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Window* New() const final { - return CreateMaybeMessage(NULL); - } - - Window* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Window& from); - void MergeFrom(const Window& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Window* other); - protected: - explicit Window(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .xla.WindowDimension dimensions = 1; - int dimensions_size() const; - void clear_dimensions(); - static const int kDimensionsFieldNumber = 1; - ::xla::WindowDimension* mutable_dimensions(int index); - ::google::protobuf::RepeatedPtrField< ::xla::WindowDimension >* - mutable_dimensions(); - const ::xla::WindowDimension& dimensions(int index) const; - ::xla::WindowDimension* add_dimensions(); - const ::google::protobuf::RepeatedPtrField< ::xla::WindowDimension >& - dimensions() const; - - // @@protoc_insertion_point(class_scope:xla.Window) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::xla::WindowDimension > dimensions_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GatherDimensionNumbers : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.GatherDimensionNumbers) */ { - public: - GatherDimensionNumbers(); - virtual ~GatherDimensionNumbers(); - - GatherDimensionNumbers(const GatherDimensionNumbers& from); - - inline GatherDimensionNumbers& operator=(const GatherDimensionNumbers& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GatherDimensionNumbers(GatherDimensionNumbers&& from) noexcept - : GatherDimensionNumbers() { - *this = ::std::move(from); - } - - inline GatherDimensionNumbers& operator=(GatherDimensionNumbers&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const GatherDimensionNumbers& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GatherDimensionNumbers* internal_default_instance() { - return reinterpret_cast( - &_GatherDimensionNumbers_default_instance_); - } - static constexpr int kIndexInFileMessages = - 17; - - void UnsafeArenaSwap(GatherDimensionNumbers* other); - void Swap(GatherDimensionNumbers* other); - friend void swap(GatherDimensionNumbers& a, GatherDimensionNumbers& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GatherDimensionNumbers* New() const final { - return CreateMaybeMessage(NULL); - } - - GatherDimensionNumbers* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GatherDimensionNumbers& from); - void MergeFrom(const GatherDimensionNumbers& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GatherDimensionNumbers* other); - protected: - explicit GatherDimensionNumbers(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int64 offset_dims = 1; - int offset_dims_size() const; - void clear_offset_dims(); - static const int kOffsetDimsFieldNumber = 1; - ::google::protobuf::int64 offset_dims(int index) const; - void set_offset_dims(int index, ::google::protobuf::int64 value); - void add_offset_dims(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - offset_dims() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_offset_dims(); - - // repeated int64 collapsed_slice_dims = 2; - int collapsed_slice_dims_size() const; - void clear_collapsed_slice_dims(); - static const int kCollapsedSliceDimsFieldNumber = 2; - ::google::protobuf::int64 collapsed_slice_dims(int index) const; - void set_collapsed_slice_dims(int index, ::google::protobuf::int64 value); - void add_collapsed_slice_dims(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - collapsed_slice_dims() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_collapsed_slice_dims(); - - // repeated int64 start_index_map = 3; - int start_index_map_size() const; - void clear_start_index_map(); - static const int kStartIndexMapFieldNumber = 3; - ::google::protobuf::int64 start_index_map(int index) const; - void set_start_index_map(int index, ::google::protobuf::int64 value); - void add_start_index_map(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - start_index_map() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_start_index_map(); - - // int64 index_vector_dim = 4; - void clear_index_vector_dim(); - static const int kIndexVectorDimFieldNumber = 4; - ::google::protobuf::int64 index_vector_dim() const; - void set_index_vector_dim(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.GatherDimensionNumbers) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > offset_dims_; - mutable int _offset_dims_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > collapsed_slice_dims_; - mutable int _collapsed_slice_dims_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > start_index_map_; - mutable int _start_index_map_cached_byte_size_; - ::google::protobuf::int64 index_vector_dim_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ScatterDimensionNumbers : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ScatterDimensionNumbers) */ { - public: - ScatterDimensionNumbers(); - virtual ~ScatterDimensionNumbers(); - - ScatterDimensionNumbers(const ScatterDimensionNumbers& from); - - inline ScatterDimensionNumbers& operator=(const ScatterDimensionNumbers& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ScatterDimensionNumbers(ScatterDimensionNumbers&& from) noexcept - : ScatterDimensionNumbers() { - *this = ::std::move(from); - } - - inline ScatterDimensionNumbers& operator=(ScatterDimensionNumbers&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const ScatterDimensionNumbers& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ScatterDimensionNumbers* internal_default_instance() { - return reinterpret_cast( - &_ScatterDimensionNumbers_default_instance_); - } - static constexpr int kIndexInFileMessages = - 18; - - void UnsafeArenaSwap(ScatterDimensionNumbers* other); - void Swap(ScatterDimensionNumbers* other); - friend void swap(ScatterDimensionNumbers& a, ScatterDimensionNumbers& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ScatterDimensionNumbers* New() const final { - return CreateMaybeMessage(NULL); - } - - ScatterDimensionNumbers* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ScatterDimensionNumbers& from); - void MergeFrom(const ScatterDimensionNumbers& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ScatterDimensionNumbers* other); - protected: - explicit ScatterDimensionNumbers(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int64 update_window_dims = 1; - int update_window_dims_size() const; - void clear_update_window_dims(); - static const int kUpdateWindowDimsFieldNumber = 1; - ::google::protobuf::int64 update_window_dims(int index) const; - void set_update_window_dims(int index, ::google::protobuf::int64 value); - void add_update_window_dims(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - update_window_dims() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_update_window_dims(); - - // repeated int64 inserted_window_dims = 2; - int inserted_window_dims_size() const; - void clear_inserted_window_dims(); - static const int kInsertedWindowDimsFieldNumber = 2; - ::google::protobuf::int64 inserted_window_dims(int index) const; - void set_inserted_window_dims(int index, ::google::protobuf::int64 value); - void add_inserted_window_dims(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - inserted_window_dims() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_inserted_window_dims(); - - // repeated int64 scatter_dims_to_operand_dims = 3; - int scatter_dims_to_operand_dims_size() const; - void clear_scatter_dims_to_operand_dims(); - static const int kScatterDimsToOperandDimsFieldNumber = 3; - ::google::protobuf::int64 scatter_dims_to_operand_dims(int index) const; - void set_scatter_dims_to_operand_dims(int index, ::google::protobuf::int64 value); - void add_scatter_dims_to_operand_dims(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - scatter_dims_to_operand_dims() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_scatter_dims_to_operand_dims(); - - // int64 index_vector_dim = 4; - void clear_index_vector_dim(); - static const int kIndexVectorDimFieldNumber = 4; - ::google::protobuf::int64 index_vector_dim() const; - void set_index_vector_dim(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.ScatterDimensionNumbers) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > update_window_dims_; - mutable int _update_window_dims_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > inserted_window_dims_; - mutable int _inserted_window_dims_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > scatter_dims_to_operand_dims_; - mutable int _scatter_dims_to_operand_dims_cached_byte_size_; - ::google::protobuf::int64 index_vector_dim_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ConvolutionDimensionNumbers : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ConvolutionDimensionNumbers) */ { - public: - ConvolutionDimensionNumbers(); - virtual ~ConvolutionDimensionNumbers(); - - ConvolutionDimensionNumbers(const ConvolutionDimensionNumbers& from); - - inline ConvolutionDimensionNumbers& operator=(const ConvolutionDimensionNumbers& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ConvolutionDimensionNumbers(ConvolutionDimensionNumbers&& from) noexcept - : ConvolutionDimensionNumbers() { - *this = ::std::move(from); - } - - inline ConvolutionDimensionNumbers& operator=(ConvolutionDimensionNumbers&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const ConvolutionDimensionNumbers& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ConvolutionDimensionNumbers* internal_default_instance() { - return reinterpret_cast( - &_ConvolutionDimensionNumbers_default_instance_); - } - static constexpr int kIndexInFileMessages = - 19; - - void UnsafeArenaSwap(ConvolutionDimensionNumbers* other); - void Swap(ConvolutionDimensionNumbers* other); - friend void swap(ConvolutionDimensionNumbers& a, ConvolutionDimensionNumbers& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ConvolutionDimensionNumbers* New() const final { - return CreateMaybeMessage(NULL); - } - - ConvolutionDimensionNumbers* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ConvolutionDimensionNumbers& from); - void MergeFrom(const ConvolutionDimensionNumbers& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ConvolutionDimensionNumbers* other); - protected: - explicit ConvolutionDimensionNumbers(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int64 kernel_spatial_dimensions = 6; - int kernel_spatial_dimensions_size() const; - void clear_kernel_spatial_dimensions(); - static const int kKernelSpatialDimensionsFieldNumber = 6; - ::google::protobuf::int64 kernel_spatial_dimensions(int index) const; - void set_kernel_spatial_dimensions(int index, ::google::protobuf::int64 value); - void add_kernel_spatial_dimensions(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - kernel_spatial_dimensions() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_kernel_spatial_dimensions(); - - // repeated int64 input_spatial_dimensions = 11; - int input_spatial_dimensions_size() const; - void clear_input_spatial_dimensions(); - static const int kInputSpatialDimensionsFieldNumber = 11; - ::google::protobuf::int64 input_spatial_dimensions(int index) const; - void set_input_spatial_dimensions(int index, ::google::protobuf::int64 value); - void add_input_spatial_dimensions(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - input_spatial_dimensions() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_input_spatial_dimensions(); - - // repeated int64 output_spatial_dimensions = 12; - int output_spatial_dimensions_size() const; - void clear_output_spatial_dimensions(); - static const int kOutputSpatialDimensionsFieldNumber = 12; - ::google::protobuf::int64 output_spatial_dimensions(int index) const; - void set_output_spatial_dimensions(int index, ::google::protobuf::int64 value); - void add_output_spatial_dimensions(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - output_spatial_dimensions() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_output_spatial_dimensions(); - - // int64 kernel_input_feature_dimension = 3; - void clear_kernel_input_feature_dimension(); - static const int kKernelInputFeatureDimensionFieldNumber = 3; - ::google::protobuf::int64 kernel_input_feature_dimension() const; - void set_kernel_input_feature_dimension(::google::protobuf::int64 value); - - // int64 kernel_output_feature_dimension = 4; - void clear_kernel_output_feature_dimension(); - static const int kKernelOutputFeatureDimensionFieldNumber = 4; - ::google::protobuf::int64 kernel_output_feature_dimension() const; - void set_kernel_output_feature_dimension(::google::protobuf::int64 value); - - // int64 input_batch_dimension = 7; - void clear_input_batch_dimension(); - static const int kInputBatchDimensionFieldNumber = 7; - ::google::protobuf::int64 input_batch_dimension() const; - void set_input_batch_dimension(::google::protobuf::int64 value); - - // int64 input_feature_dimension = 8; - void clear_input_feature_dimension(); - static const int kInputFeatureDimensionFieldNumber = 8; - ::google::protobuf::int64 input_feature_dimension() const; - void set_input_feature_dimension(::google::protobuf::int64 value); - - // int64 output_batch_dimension = 9; - void clear_output_batch_dimension(); - static const int kOutputBatchDimensionFieldNumber = 9; - ::google::protobuf::int64 output_batch_dimension() const; - void set_output_batch_dimension(::google::protobuf::int64 value); - - // int64 output_feature_dimension = 10; - void clear_output_feature_dimension(); - static const int kOutputFeatureDimensionFieldNumber = 10; - ::google::protobuf::int64 output_feature_dimension() const; - void set_output_feature_dimension(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.ConvolutionDimensionNumbers) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > kernel_spatial_dimensions_; - mutable int _kernel_spatial_dimensions_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > input_spatial_dimensions_; - mutable int _input_spatial_dimensions_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > output_spatial_dimensions_; - mutable int _output_spatial_dimensions_cached_byte_size_; - ::google::protobuf::int64 kernel_input_feature_dimension_; - ::google::protobuf::int64 kernel_output_feature_dimension_; - ::google::protobuf::int64 input_batch_dimension_; - ::google::protobuf::int64 input_feature_dimension_; - ::google::protobuf::int64 output_batch_dimension_; - ::google::protobuf::int64 output_feature_dimension_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class DotDimensionNumbers : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.DotDimensionNumbers) */ { - public: - DotDimensionNumbers(); - virtual ~DotDimensionNumbers(); - - DotDimensionNumbers(const DotDimensionNumbers& from); - - inline DotDimensionNumbers& operator=(const DotDimensionNumbers& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DotDimensionNumbers(DotDimensionNumbers&& from) noexcept - : DotDimensionNumbers() { - *this = ::std::move(from); - } - - inline DotDimensionNumbers& operator=(DotDimensionNumbers&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const DotDimensionNumbers& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DotDimensionNumbers* internal_default_instance() { - return reinterpret_cast( - &_DotDimensionNumbers_default_instance_); - } - static constexpr int kIndexInFileMessages = - 20; - - void UnsafeArenaSwap(DotDimensionNumbers* other); - void Swap(DotDimensionNumbers* other); - friend void swap(DotDimensionNumbers& a, DotDimensionNumbers& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DotDimensionNumbers* New() const final { - return CreateMaybeMessage(NULL); - } - - DotDimensionNumbers* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const DotDimensionNumbers& from); - void MergeFrom(const DotDimensionNumbers& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DotDimensionNumbers* other); - protected: - explicit DotDimensionNumbers(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int64 lhs_contracting_dimensions = 1; - int lhs_contracting_dimensions_size() const; - void clear_lhs_contracting_dimensions(); - static const int kLhsContractingDimensionsFieldNumber = 1; - ::google::protobuf::int64 lhs_contracting_dimensions(int index) const; - void set_lhs_contracting_dimensions(int index, ::google::protobuf::int64 value); - void add_lhs_contracting_dimensions(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - lhs_contracting_dimensions() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_lhs_contracting_dimensions(); - - // repeated int64 rhs_contracting_dimensions = 2; - int rhs_contracting_dimensions_size() const; - void clear_rhs_contracting_dimensions(); - static const int kRhsContractingDimensionsFieldNumber = 2; - ::google::protobuf::int64 rhs_contracting_dimensions(int index) const; - void set_rhs_contracting_dimensions(int index, ::google::protobuf::int64 value); - void add_rhs_contracting_dimensions(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - rhs_contracting_dimensions() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_rhs_contracting_dimensions(); - - // repeated int64 lhs_batch_dimensions = 3; - int lhs_batch_dimensions_size() const; - void clear_lhs_batch_dimensions(); - static const int kLhsBatchDimensionsFieldNumber = 3; - ::google::protobuf::int64 lhs_batch_dimensions(int index) const; - void set_lhs_batch_dimensions(int index, ::google::protobuf::int64 value); - void add_lhs_batch_dimensions(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - lhs_batch_dimensions() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_lhs_batch_dimensions(); - - // repeated int64 rhs_batch_dimensions = 4; - int rhs_batch_dimensions_size() const; - void clear_rhs_batch_dimensions(); - static const int kRhsBatchDimensionsFieldNumber = 4; - ::google::protobuf::int64 rhs_batch_dimensions(int index) const; - void set_rhs_batch_dimensions(int index, ::google::protobuf::int64 value); - void add_rhs_batch_dimensions(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - rhs_batch_dimensions() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_rhs_batch_dimensions(); - - // @@protoc_insertion_point(class_scope:xla.DotDimensionNumbers) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > lhs_contracting_dimensions_; - mutable int _lhs_contracting_dimensions_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > rhs_contracting_dimensions_; - mutable int _rhs_contracting_dimensions_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > lhs_batch_dimensions_; - mutable int _lhs_batch_dimensions_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > rhs_batch_dimensions_; - mutable int _rhs_batch_dimensions_cached_byte_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class OpSharding : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.OpSharding) */ { - public: - OpSharding(); - virtual ~OpSharding(); - - OpSharding(const OpSharding& from); - - inline OpSharding& operator=(const OpSharding& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - OpSharding(OpSharding&& from) noexcept - : OpSharding() { - *this = ::std::move(from); - } - - inline OpSharding& operator=(OpSharding&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const OpSharding& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const OpSharding* internal_default_instance() { - return reinterpret_cast( - &_OpSharding_default_instance_); - } - static constexpr int kIndexInFileMessages = - 21; - - void UnsafeArenaSwap(OpSharding* other); - void Swap(OpSharding* other); - friend void swap(OpSharding& a, OpSharding& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline OpSharding* New() const final { - return CreateMaybeMessage(NULL); - } - - OpSharding* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const OpSharding& from); - void MergeFrom(const OpSharding& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OpSharding* other); - protected: - explicit OpSharding(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef OpSharding_Type Type; - static const Type REPLICATED = - OpSharding_Type_REPLICATED; - static const Type MAXIMAL = - OpSharding_Type_MAXIMAL; - static const Type TUPLE = - OpSharding_Type_TUPLE; - static const Type OTHER = - OpSharding_Type_OTHER; - static inline bool Type_IsValid(int value) { - return OpSharding_Type_IsValid(value); - } - static const Type Type_MIN = - OpSharding_Type_Type_MIN; - static const Type Type_MAX = - OpSharding_Type_Type_MAX; - static const int Type_ARRAYSIZE = - OpSharding_Type_Type_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Type_descriptor() { - return OpSharding_Type_descriptor(); - } - static inline const ::std::string& Type_Name(Type value) { - return OpSharding_Type_Name(value); - } - static inline bool Type_Parse(const ::std::string& name, - Type* value) { - return OpSharding_Type_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // repeated int64 tile_assignment_dimensions = 3; - int tile_assignment_dimensions_size() const; - void clear_tile_assignment_dimensions(); - static const int kTileAssignmentDimensionsFieldNumber = 3; - ::google::protobuf::int64 tile_assignment_dimensions(int index) const; - void set_tile_assignment_dimensions(int index, ::google::protobuf::int64 value); - void add_tile_assignment_dimensions(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - tile_assignment_dimensions() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_tile_assignment_dimensions(); - - // repeated int64 tile_assignment_devices = 4; - int tile_assignment_devices_size() const; - void clear_tile_assignment_devices(); - static const int kTileAssignmentDevicesFieldNumber = 4; - ::google::protobuf::int64 tile_assignment_devices(int index) const; - void set_tile_assignment_devices(int index, ::google::protobuf::int64 value); - void add_tile_assignment_devices(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - tile_assignment_devices() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_tile_assignment_devices(); - - // repeated .xla.OpSharding tuple_shardings = 5; - int tuple_shardings_size() const; - void clear_tuple_shardings(); - static const int kTupleShardingsFieldNumber = 5; - ::xla::OpSharding* mutable_tuple_shardings(int index); - ::google::protobuf::RepeatedPtrField< ::xla::OpSharding >* - mutable_tuple_shardings(); - const ::xla::OpSharding& tuple_shardings(int index) const; - ::xla::OpSharding* add_tuple_shardings(); - const ::google::protobuf::RepeatedPtrField< ::xla::OpSharding >& - tuple_shardings() const; - - // .xla.Shape tile_shape = 2; - bool has_tile_shape() const; - void clear_tile_shape(); - static const int kTileShapeFieldNumber = 2; - private: - const ::xla::Shape& _internal_tile_shape() const; - public: - const ::xla::Shape& tile_shape() const; - ::xla::Shape* release_tile_shape(); - ::xla::Shape* mutable_tile_shape(); - void set_allocated_tile_shape(::xla::Shape* tile_shape); - void unsafe_arena_set_allocated_tile_shape( - ::xla::Shape* tile_shape); - ::xla::Shape* unsafe_arena_release_tile_shape(); - - // .xla.OpSharding.Type type = 1; - void clear_type(); - static const int kTypeFieldNumber = 1; - ::xla::OpSharding_Type type() const; - void set_type(::xla::OpSharding_Type value); - - // @@protoc_insertion_point(class_scope:xla.OpSharding) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > tile_assignment_dimensions_; - mutable int _tile_assignment_dimensions_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > tile_assignment_devices_; - mutable int _tile_assignment_devices_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::xla::OpSharding > tuple_shardings_; - ::xla::Shape* tile_shape_; - int type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ReplicaGroup : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.ReplicaGroup) */ { - public: - ReplicaGroup(); - virtual ~ReplicaGroup(); - - ReplicaGroup(const ReplicaGroup& from); - - inline ReplicaGroup& operator=(const ReplicaGroup& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ReplicaGroup(ReplicaGroup&& from) noexcept - : ReplicaGroup() { - *this = ::std::move(from); - } - - inline ReplicaGroup& operator=(ReplicaGroup&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const ReplicaGroup& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ReplicaGroup* internal_default_instance() { - return reinterpret_cast( - &_ReplicaGroup_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - void UnsafeArenaSwap(ReplicaGroup* other); - void Swap(ReplicaGroup* other); - friend void swap(ReplicaGroup& a, ReplicaGroup& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ReplicaGroup* New() const final { - return CreateMaybeMessage(NULL); - } - - ReplicaGroup* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ReplicaGroup& from); - void MergeFrom(const ReplicaGroup& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ReplicaGroup* other); - protected: - explicit ReplicaGroup(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int64 replica_ids = 1; - int replica_ids_size() const; - void clear_replica_ids(); - static const int kReplicaIdsFieldNumber = 1; - ::google::protobuf::int64 replica_ids(int index) const; - void set_replica_ids(int index, ::google::protobuf::int64 value); - void add_replica_ids(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - replica_ids() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_replica_ids(); - - // @@protoc_insertion_point(class_scope:xla.ReplicaGroup) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > replica_ids_; - mutable int _replica_ids_cached_byte_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class SourceTarget : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.SourceTarget) */ { - public: - SourceTarget(); - virtual ~SourceTarget(); - - SourceTarget(const SourceTarget& from); - - inline SourceTarget& operator=(const SourceTarget& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SourceTarget(SourceTarget&& from) noexcept - : SourceTarget() { - *this = ::std::move(from); - } - - inline SourceTarget& operator=(SourceTarget&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const SourceTarget& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SourceTarget* internal_default_instance() { - return reinterpret_cast( - &_SourceTarget_default_instance_); - } - static constexpr int kIndexInFileMessages = - 23; - - void UnsafeArenaSwap(SourceTarget* other); - void Swap(SourceTarget* other); - friend void swap(SourceTarget& a, SourceTarget& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SourceTarget* New() const final { - return CreateMaybeMessage(NULL); - } - - SourceTarget* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const SourceTarget& from); - void MergeFrom(const SourceTarget& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SourceTarget* other); - protected: - explicit SourceTarget(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 source = 1; - void clear_source(); - static const int kSourceFieldNumber = 1; - ::google::protobuf::int64 source() const; - void set_source(::google::protobuf::int64 value); - - // int64 target = 2; - void clear_target(); - static const int kTargetFieldNumber = 2; - ::google::protobuf::int64 target() const; - void set_target(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:xla.SourceTarget) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int64 source_; - ::google::protobuf::int64 target_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class PrecisionConfig : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:xla.PrecisionConfig) */ { - public: - PrecisionConfig(); - virtual ~PrecisionConfig(); - - PrecisionConfig(const PrecisionConfig& from); - - inline PrecisionConfig& operator=(const PrecisionConfig& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - PrecisionConfig(PrecisionConfig&& from) noexcept - : PrecisionConfig() { - *this = ::std::move(from); - } - - inline PrecisionConfig& operator=(PrecisionConfig&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const PrecisionConfig& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const PrecisionConfig* internal_default_instance() { - return reinterpret_cast( - &_PrecisionConfig_default_instance_); - } - static constexpr int kIndexInFileMessages = - 24; - - void UnsafeArenaSwap(PrecisionConfig* other); - void Swap(PrecisionConfig* other); - friend void swap(PrecisionConfig& a, PrecisionConfig& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline PrecisionConfig* New() const final { - return CreateMaybeMessage(NULL); - } - - PrecisionConfig* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const PrecisionConfig& from); - void MergeFrom(const PrecisionConfig& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(PrecisionConfig* other); - protected: - explicit PrecisionConfig(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef PrecisionConfig_Precision Precision; - static const Precision DEFAULT = - PrecisionConfig_Precision_DEFAULT; - static const Precision HIGH = - PrecisionConfig_Precision_HIGH; - static const Precision HIGHEST = - PrecisionConfig_Precision_HIGHEST; - static inline bool Precision_IsValid(int value) { - return PrecisionConfig_Precision_IsValid(value); - } - static const Precision Precision_MIN = - PrecisionConfig_Precision_Precision_MIN; - static const Precision Precision_MAX = - PrecisionConfig_Precision_Precision_MAX; - static const int Precision_ARRAYSIZE = - PrecisionConfig_Precision_Precision_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Precision_descriptor() { - return PrecisionConfig_Precision_descriptor(); - } - static inline const ::std::string& Precision_Name(Precision value) { - return PrecisionConfig_Precision_Name(value); - } - static inline bool Precision_Parse(const ::std::string& name, - Precision* value) { - return PrecisionConfig_Precision_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // repeated .xla.PrecisionConfig.Precision operand_precision = 1; - int operand_precision_size() const; - void clear_operand_precision(); - static const int kOperandPrecisionFieldNumber = 1; - ::xla::PrecisionConfig_Precision operand_precision(int index) const; - void set_operand_precision(int index, ::xla::PrecisionConfig_Precision value); - void add_operand_precision(::xla::PrecisionConfig_Precision value); - const ::google::protobuf::RepeatedField& operand_precision() const; - ::google::protobuf::RepeatedField* mutable_operand_precision(); - - // @@protoc_insertion_point(class_scope:xla.PrecisionConfig) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField operand_precision_; - mutable int _operand_precision_cached_byte_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// PaddingConfig_PaddingConfigDimension - -// int64 edge_padding_low = 1; -inline void PaddingConfig_PaddingConfigDimension::clear_edge_padding_low() { - edge_padding_low_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 PaddingConfig_PaddingConfigDimension::edge_padding_low() const { - // @@protoc_insertion_point(field_get:xla.PaddingConfig.PaddingConfigDimension.edge_padding_low) - return edge_padding_low_; -} -inline void PaddingConfig_PaddingConfigDimension::set_edge_padding_low(::google::protobuf::int64 value) { - - edge_padding_low_ = value; - // @@protoc_insertion_point(field_set:xla.PaddingConfig.PaddingConfigDimension.edge_padding_low) -} - -// int64 edge_padding_high = 2; -inline void PaddingConfig_PaddingConfigDimension::clear_edge_padding_high() { - edge_padding_high_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 PaddingConfig_PaddingConfigDimension::edge_padding_high() const { - // @@protoc_insertion_point(field_get:xla.PaddingConfig.PaddingConfigDimension.edge_padding_high) - return edge_padding_high_; -} -inline void PaddingConfig_PaddingConfigDimension::set_edge_padding_high(::google::protobuf::int64 value) { - - edge_padding_high_ = value; - // @@protoc_insertion_point(field_set:xla.PaddingConfig.PaddingConfigDimension.edge_padding_high) -} - -// int64 interior_padding = 3; -inline void PaddingConfig_PaddingConfigDimension::clear_interior_padding() { - interior_padding_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 PaddingConfig_PaddingConfigDimension::interior_padding() const { - // @@protoc_insertion_point(field_get:xla.PaddingConfig.PaddingConfigDimension.interior_padding) - return interior_padding_; -} -inline void PaddingConfig_PaddingConfigDimension::set_interior_padding(::google::protobuf::int64 value) { - - interior_padding_ = value; - // @@protoc_insertion_point(field_set:xla.PaddingConfig.PaddingConfigDimension.interior_padding) -} - -// ------------------------------------------------------------------- - -// PaddingConfig - -// repeated .xla.PaddingConfig.PaddingConfigDimension dimensions = 1; -inline int PaddingConfig::dimensions_size() const { - return dimensions_.size(); -} -inline void PaddingConfig::clear_dimensions() { - dimensions_.Clear(); -} -inline ::xla::PaddingConfig_PaddingConfigDimension* PaddingConfig::mutable_dimensions(int index) { - // @@protoc_insertion_point(field_mutable:xla.PaddingConfig.dimensions) - return dimensions_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::PaddingConfig_PaddingConfigDimension >* -PaddingConfig::mutable_dimensions() { - // @@protoc_insertion_point(field_mutable_list:xla.PaddingConfig.dimensions) - return &dimensions_; -} -inline const ::xla::PaddingConfig_PaddingConfigDimension& PaddingConfig::dimensions(int index) const { - // @@protoc_insertion_point(field_get:xla.PaddingConfig.dimensions) - return dimensions_.Get(index); -} -inline ::xla::PaddingConfig_PaddingConfigDimension* PaddingConfig::add_dimensions() { - // @@protoc_insertion_point(field_add:xla.PaddingConfig.dimensions) - return dimensions_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::PaddingConfig_PaddingConfigDimension >& -PaddingConfig::dimensions() const { - // @@protoc_insertion_point(field_list:xla.PaddingConfig.dimensions) - return dimensions_; -} - -// ------------------------------------------------------------------- - -// Layout - -// .xla.Format format = 4; -inline void Layout::clear_format() { - format_ = 0; -} -inline ::xla::Format Layout::format() const { - // @@protoc_insertion_point(field_get:xla.Layout.format) - return static_cast< ::xla::Format >(format_); -} -inline void Layout::set_format(::xla::Format value) { - - format_ = value; - // @@protoc_insertion_point(field_set:xla.Layout.format) -} - -// repeated int64 minor_to_major = 1; -inline int Layout::minor_to_major_size() const { - return minor_to_major_.size(); -} -inline void Layout::clear_minor_to_major() { - minor_to_major_.Clear(); -} -inline ::google::protobuf::int64 Layout::minor_to_major(int index) const { - // @@protoc_insertion_point(field_get:xla.Layout.minor_to_major) - return minor_to_major_.Get(index); -} -inline void Layout::set_minor_to_major(int index, ::google::protobuf::int64 value) { - minor_to_major_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.Layout.minor_to_major) -} -inline void Layout::add_minor_to_major(::google::protobuf::int64 value) { - minor_to_major_.Add(value); - // @@protoc_insertion_point(field_add:xla.Layout.minor_to_major) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -Layout::minor_to_major() const { - // @@protoc_insertion_point(field_list:xla.Layout.minor_to_major) - return minor_to_major_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -Layout::mutable_minor_to_major() { - // @@protoc_insertion_point(field_mutable_list:xla.Layout.minor_to_major) - return &minor_to_major_; -} - -// repeated int64 padded_dimensions = 2; -inline int Layout::padded_dimensions_size() const { - return padded_dimensions_.size(); -} -inline void Layout::clear_padded_dimensions() { - padded_dimensions_.Clear(); -} -inline ::google::protobuf::int64 Layout::padded_dimensions(int index) const { - // @@protoc_insertion_point(field_get:xla.Layout.padded_dimensions) - return padded_dimensions_.Get(index); -} -inline void Layout::set_padded_dimensions(int index, ::google::protobuf::int64 value) { - padded_dimensions_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.Layout.padded_dimensions) -} -inline void Layout::add_padded_dimensions(::google::protobuf::int64 value) { - padded_dimensions_.Add(value); - // @@protoc_insertion_point(field_add:xla.Layout.padded_dimensions) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -Layout::padded_dimensions() const { - // @@protoc_insertion_point(field_list:xla.Layout.padded_dimensions) - return padded_dimensions_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -Layout::mutable_padded_dimensions() { - // @@protoc_insertion_point(field_mutable_list:xla.Layout.padded_dimensions) - return &padded_dimensions_; -} - -// .xla.PaddingValue padding_value = 3; -inline void Layout::clear_padding_value() { - padding_value_ = 0; -} -inline ::xla::PaddingValue Layout::padding_value() const { - // @@protoc_insertion_point(field_get:xla.Layout.padding_value) - return static_cast< ::xla::PaddingValue >(padding_value_); -} -inline void Layout::set_padding_value(::xla::PaddingValue value) { - - padding_value_ = value; - // @@protoc_insertion_point(field_set:xla.Layout.padding_value) -} - -// int64 max_sparse_elements = 5; -inline void Layout::clear_max_sparse_elements() { - max_sparse_elements_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 Layout::max_sparse_elements() const { - // @@protoc_insertion_point(field_get:xla.Layout.max_sparse_elements) - return max_sparse_elements_; -} -inline void Layout::set_max_sparse_elements(::google::protobuf::int64 value) { - - max_sparse_elements_ = value; - // @@protoc_insertion_point(field_set:xla.Layout.max_sparse_elements) -} - -// ------------------------------------------------------------------- - -// Shape - -// .xla.PrimitiveType element_type = 2; -inline void Shape::clear_element_type() { - element_type_ = 0; -} -inline ::xla::PrimitiveType Shape::element_type() const { - // @@protoc_insertion_point(field_get:xla.Shape.element_type) - return static_cast< ::xla::PrimitiveType >(element_type_); -} -inline void Shape::set_element_type(::xla::PrimitiveType value) { - - element_type_ = value; - // @@protoc_insertion_point(field_set:xla.Shape.element_type) -} - -// repeated int64 dimensions = 3; -inline int Shape::dimensions_size() const { - return dimensions_.size(); -} -inline void Shape::clear_dimensions() { - dimensions_.Clear(); -} -inline ::google::protobuf::int64 Shape::dimensions(int index) const { - // @@protoc_insertion_point(field_get:xla.Shape.dimensions) - return dimensions_.Get(index); -} -inline void Shape::set_dimensions(int index, ::google::protobuf::int64 value) { - dimensions_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.Shape.dimensions) -} -inline void Shape::add_dimensions(::google::protobuf::int64 value) { - dimensions_.Add(value); - // @@protoc_insertion_point(field_add:xla.Shape.dimensions) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -Shape::dimensions() const { - // @@protoc_insertion_point(field_list:xla.Shape.dimensions) - return dimensions_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -Shape::mutable_dimensions() { - // @@protoc_insertion_point(field_mutable_list:xla.Shape.dimensions) - return &dimensions_; -} - -// repeated .xla.Shape tuple_shapes = 4; -inline int Shape::tuple_shapes_size() const { - return tuple_shapes_.size(); -} -inline void Shape::clear_tuple_shapes() { - tuple_shapes_.Clear(); -} -inline ::xla::Shape* Shape::mutable_tuple_shapes(int index) { - // @@protoc_insertion_point(field_mutable:xla.Shape.tuple_shapes) - return tuple_shapes_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::Shape >* -Shape::mutable_tuple_shapes() { - // @@protoc_insertion_point(field_mutable_list:xla.Shape.tuple_shapes) - return &tuple_shapes_; -} -inline const ::xla::Shape& Shape::tuple_shapes(int index) const { - // @@protoc_insertion_point(field_get:xla.Shape.tuple_shapes) - return tuple_shapes_.Get(index); -} -inline ::xla::Shape* Shape::add_tuple_shapes() { - // @@protoc_insertion_point(field_add:xla.Shape.tuple_shapes) - return tuple_shapes_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::Shape >& -Shape::tuple_shapes() const { - // @@protoc_insertion_point(field_list:xla.Shape.tuple_shapes) - return tuple_shapes_; -} - -// .xla.Layout layout = 5; -inline bool Shape::has_layout() const { - return this != internal_default_instance() && layout_ != NULL; -} -inline void Shape::clear_layout() { - if (GetArenaNoVirtual() == NULL && layout_ != NULL) { - delete layout_; - } - layout_ = NULL; -} -inline const ::xla::Layout& Shape::_internal_layout() const { - return *layout_; -} -inline const ::xla::Layout& Shape::layout() const { - const ::xla::Layout* p = layout_; - // @@protoc_insertion_point(field_get:xla.Shape.layout) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_Layout_default_instance_); -} -inline ::xla::Layout* Shape::release_layout() { - // @@protoc_insertion_point(field_release:xla.Shape.layout) - - ::xla::Layout* temp = layout_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - layout_ = NULL; - return temp; -} -inline ::xla::Layout* Shape::unsafe_arena_release_layout() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.Shape.layout) - - ::xla::Layout* temp = layout_; - layout_ = NULL; - return temp; -} -inline ::xla::Layout* Shape::mutable_layout() { - - if (layout_ == NULL) { - auto* p = CreateMaybeMessage<::xla::Layout>(GetArenaNoVirtual()); - layout_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.Shape.layout) - return layout_; -} -inline void Shape::set_allocated_layout(::xla::Layout* layout) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete layout_; - } - if (layout) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(layout); - if (message_arena != submessage_arena) { - layout = ::google::protobuf::internal::GetOwnedMessage( - message_arena, layout, submessage_arena); - } - - } else { - - } - layout_ = layout; - // @@protoc_insertion_point(field_set_allocated:xla.Shape.layout) -} - -// ------------------------------------------------------------------- - -// ProgramShape - -// repeated .xla.Shape parameters = 1; -inline int ProgramShape::parameters_size() const { - return parameters_.size(); -} -inline void ProgramShape::clear_parameters() { - parameters_.Clear(); -} -inline ::xla::Shape* ProgramShape::mutable_parameters(int index) { - // @@protoc_insertion_point(field_mutable:xla.ProgramShape.parameters) - return parameters_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::Shape >* -ProgramShape::mutable_parameters() { - // @@protoc_insertion_point(field_mutable_list:xla.ProgramShape.parameters) - return ¶meters_; -} -inline const ::xla::Shape& ProgramShape::parameters(int index) const { - // @@protoc_insertion_point(field_get:xla.ProgramShape.parameters) - return parameters_.Get(index); -} -inline ::xla::Shape* ProgramShape::add_parameters() { - // @@protoc_insertion_point(field_add:xla.ProgramShape.parameters) - return parameters_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::Shape >& -ProgramShape::parameters() const { - // @@protoc_insertion_point(field_list:xla.ProgramShape.parameters) - return parameters_; -} - -// .xla.Shape result = 2; -inline bool ProgramShape::has_result() const { - return this != internal_default_instance() && result_ != NULL; -} -inline void ProgramShape::clear_result() { - if (GetArenaNoVirtual() == NULL && result_ != NULL) { - delete result_; - } - result_ = NULL; -} -inline const ::xla::Shape& ProgramShape::_internal_result() const { - return *result_; -} -inline const ::xla::Shape& ProgramShape::result() const { - const ::xla::Shape* p = result_; - // @@protoc_insertion_point(field_get:xla.ProgramShape.result) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_Shape_default_instance_); -} -inline ::xla::Shape* ProgramShape::release_result() { - // @@protoc_insertion_point(field_release:xla.ProgramShape.result) - - ::xla::Shape* temp = result_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - result_ = NULL; - return temp; -} -inline ::xla::Shape* ProgramShape::unsafe_arena_release_result() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.ProgramShape.result) - - ::xla::Shape* temp = result_; - result_ = NULL; - return temp; -} -inline ::xla::Shape* ProgramShape::mutable_result() { - - if (result_ == NULL) { - auto* p = CreateMaybeMessage<::xla::Shape>(GetArenaNoVirtual()); - result_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.ProgramShape.result) - return result_; -} -inline void ProgramShape::set_allocated_result(::xla::Shape* result) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete result_; - } - if (result) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(result); - if (message_arena != submessage_arena) { - result = ::google::protobuf::internal::GetOwnedMessage( - message_arena, result, submessage_arena); - } - - } else { - - } - result_ = result; - // @@protoc_insertion_point(field_set_allocated:xla.ProgramShape.result) -} - -// repeated string parameter_names = 3; -inline int ProgramShape::parameter_names_size() const { - return parameter_names_.size(); -} -inline void ProgramShape::clear_parameter_names() { - parameter_names_.Clear(); -} -inline const ::std::string& ProgramShape::parameter_names(int index) const { - // @@protoc_insertion_point(field_get:xla.ProgramShape.parameter_names) - return parameter_names_.Get(index); -} -inline ::std::string* ProgramShape::mutable_parameter_names(int index) { - // @@protoc_insertion_point(field_mutable:xla.ProgramShape.parameter_names) - return parameter_names_.Mutable(index); -} -inline void ProgramShape::set_parameter_names(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:xla.ProgramShape.parameter_names) - parameter_names_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void ProgramShape::set_parameter_names(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:xla.ProgramShape.parameter_names) - parameter_names_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void ProgramShape::set_parameter_names(int index, const char* value) { - GOOGLE_DCHECK(value != NULL); - parameter_names_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:xla.ProgramShape.parameter_names) -} -inline void ProgramShape::set_parameter_names(int index, const char* value, size_t size) { - parameter_names_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:xla.ProgramShape.parameter_names) -} -inline ::std::string* ProgramShape::add_parameter_names() { - // @@protoc_insertion_point(field_add_mutable:xla.ProgramShape.parameter_names) - return parameter_names_.Add(); -} -inline void ProgramShape::add_parameter_names(const ::std::string& value) { - parameter_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add:xla.ProgramShape.parameter_names) -} -#if LANG_CXX11 -inline void ProgramShape::add_parameter_names(::std::string&& value) { - parameter_names_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:xla.ProgramShape.parameter_names) -} -#endif -inline void ProgramShape::add_parameter_names(const char* value) { - GOOGLE_DCHECK(value != NULL); - parameter_names_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:xla.ProgramShape.parameter_names) -} -inline void ProgramShape::add_parameter_names(const char* value, size_t size) { - parameter_names_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:xla.ProgramShape.parameter_names) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -ProgramShape::parameter_names() const { - // @@protoc_insertion_point(field_list:xla.ProgramShape.parameter_names) - return parameter_names_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -ProgramShape::mutable_parameter_names() { - // @@protoc_insertion_point(field_mutable_list:xla.ProgramShape.parameter_names) - return ¶meter_names_; -} - -// ------------------------------------------------------------------- - -// ComputationStats - -// double flop_count = 1; -inline void ComputationStats::clear_flop_count() { - flop_count_ = 0; -} -inline double ComputationStats::flop_count() const { - // @@protoc_insertion_point(field_get:xla.ComputationStats.flop_count) - return flop_count_; -} -inline void ComputationStats::set_flop_count(double value) { - - flop_count_ = value; - // @@protoc_insertion_point(field_set:xla.ComputationStats.flop_count) -} - -// double transcendental_count = 2; -inline void ComputationStats::clear_transcendental_count() { - transcendental_count_ = 0; -} -inline double ComputationStats::transcendental_count() const { - // @@protoc_insertion_point(field_get:xla.ComputationStats.transcendental_count) - return transcendental_count_; -} -inline void ComputationStats::set_transcendental_count(double value) { - - transcendental_count_ = value; - // @@protoc_insertion_point(field_set:xla.ComputationStats.transcendental_count) -} - -// ------------------------------------------------------------------- - -// OpMetadata - -// string op_type = 1; -inline void OpMetadata::clear_op_type() { - op_type_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& OpMetadata::op_type() const { - // @@protoc_insertion_point(field_get:xla.OpMetadata.op_type) - return op_type_.Get(); -} -inline void OpMetadata::set_op_type(const ::std::string& value) { - - op_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.OpMetadata.op_type) -} -#if LANG_CXX11 -inline void OpMetadata::set_op_type(::std::string&& value) { - - op_type_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.OpMetadata.op_type) -} -#endif -inline void OpMetadata::set_op_type(const char* value) { - GOOGLE_DCHECK(value != NULL); - - op_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.OpMetadata.op_type) -} -inline void OpMetadata::set_op_type(const char* value, - size_t size) { - - op_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.OpMetadata.op_type) -} -inline ::std::string* OpMetadata::mutable_op_type() { - - // @@protoc_insertion_point(field_mutable:xla.OpMetadata.op_type) - return op_type_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* OpMetadata::release_op_type() { - // @@protoc_insertion_point(field_release:xla.OpMetadata.op_type) - - return op_type_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void OpMetadata::set_allocated_op_type(::std::string* op_type) { - if (op_type != NULL) { - - } else { - - } - op_type_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op_type, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.OpMetadata.op_type) -} -inline ::std::string* OpMetadata::unsafe_arena_release_op_type() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpMetadata.op_type) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return op_type_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void OpMetadata::unsafe_arena_set_allocated_op_type( - ::std::string* op_type) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (op_type != NULL) { - - } else { - - } - op_type_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - op_type, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpMetadata.op_type) -} - -// string op_name = 2; -inline void OpMetadata::clear_op_name() { - op_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& OpMetadata::op_name() const { - // @@protoc_insertion_point(field_get:xla.OpMetadata.op_name) - return op_name_.Get(); -} -inline void OpMetadata::set_op_name(const ::std::string& value) { - - op_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.OpMetadata.op_name) -} -#if LANG_CXX11 -inline void OpMetadata::set_op_name(::std::string&& value) { - - op_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.OpMetadata.op_name) -} -#endif -inline void OpMetadata::set_op_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - op_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.OpMetadata.op_name) -} -inline void OpMetadata::set_op_name(const char* value, - size_t size) { - - op_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.OpMetadata.op_name) -} -inline ::std::string* OpMetadata::mutable_op_name() { - - // @@protoc_insertion_point(field_mutable:xla.OpMetadata.op_name) - return op_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* OpMetadata::release_op_name() { - // @@protoc_insertion_point(field_release:xla.OpMetadata.op_name) - - return op_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void OpMetadata::set_allocated_op_name(::std::string* op_name) { - if (op_name != NULL) { - - } else { - - } - op_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.OpMetadata.op_name) -} -inline ::std::string* OpMetadata::unsafe_arena_release_op_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpMetadata.op_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return op_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void OpMetadata::unsafe_arena_set_allocated_op_name( - ::std::string* op_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (op_name != NULL) { - - } else { - - } - op_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - op_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpMetadata.op_name) -} - -// string source_file = 3; -inline void OpMetadata::clear_source_file() { - source_file_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& OpMetadata::source_file() const { - // @@protoc_insertion_point(field_get:xla.OpMetadata.source_file) - return source_file_.Get(); -} -inline void OpMetadata::set_source_file(const ::std::string& value) { - - source_file_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.OpMetadata.source_file) -} -#if LANG_CXX11 -inline void OpMetadata::set_source_file(::std::string&& value) { - - source_file_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.OpMetadata.source_file) -} -#endif -inline void OpMetadata::set_source_file(const char* value) { - GOOGLE_DCHECK(value != NULL); - - source_file_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.OpMetadata.source_file) -} -inline void OpMetadata::set_source_file(const char* value, - size_t size) { - - source_file_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.OpMetadata.source_file) -} -inline ::std::string* OpMetadata::mutable_source_file() { - - // @@protoc_insertion_point(field_mutable:xla.OpMetadata.source_file) - return source_file_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* OpMetadata::release_source_file() { - // @@protoc_insertion_point(field_release:xla.OpMetadata.source_file) - - return source_file_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void OpMetadata::set_allocated_source_file(::std::string* source_file) { - if (source_file != NULL) { - - } else { - - } - source_file_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source_file, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.OpMetadata.source_file) -} -inline ::std::string* OpMetadata::unsafe_arena_release_source_file() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpMetadata.source_file) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return source_file_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void OpMetadata::unsafe_arena_set_allocated_source_file( - ::std::string* source_file) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (source_file != NULL) { - - } else { - - } - source_file_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - source_file, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.OpMetadata.source_file) -} - -// int32 source_line = 4; -inline void OpMetadata::clear_source_line() { - source_line_ = 0; -} -inline ::google::protobuf::int32 OpMetadata::source_line() const { - // @@protoc_insertion_point(field_get:xla.OpMetadata.source_line) - return source_line_; -} -inline void OpMetadata::set_source_line(::google::protobuf::int32 value) { - - source_line_ = value; - // @@protoc_insertion_point(field_set:xla.OpMetadata.source_line) -} - -// ------------------------------------------------------------------- - -// ExecutionProfile - -// bool compilation_cache_hit = 1; -inline void ExecutionProfile::clear_compilation_cache_hit() { - compilation_cache_hit_ = false; -} -inline bool ExecutionProfile::compilation_cache_hit() const { - // @@protoc_insertion_point(field_get:xla.ExecutionProfile.compilation_cache_hit) - return compilation_cache_hit_; -} -inline void ExecutionProfile::set_compilation_cache_hit(bool value) { - - compilation_cache_hit_ = value; - // @@protoc_insertion_point(field_set:xla.ExecutionProfile.compilation_cache_hit) -} - -// int64 compile_time_ms = 2; -inline void ExecutionProfile::clear_compile_time_ms() { - compile_time_ms_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 ExecutionProfile::compile_time_ms() const { - // @@protoc_insertion_point(field_get:xla.ExecutionProfile.compile_time_ms) - return compile_time_ms_; -} -inline void ExecutionProfile::set_compile_time_ms(::google::protobuf::int64 value) { - - compile_time_ms_ = value; - // @@protoc_insertion_point(field_set:xla.ExecutionProfile.compile_time_ms) -} - -// int64 compute_cycle_count = 3; -inline void ExecutionProfile::clear_compute_cycle_count() { - compute_cycle_count_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 ExecutionProfile::compute_cycle_count() const { - // @@protoc_insertion_point(field_get:xla.ExecutionProfile.compute_cycle_count) - return compute_cycle_count_; -} -inline void ExecutionProfile::set_compute_cycle_count(::google::protobuf::int64 value) { - - compute_cycle_count_ = value; - // @@protoc_insertion_point(field_set:xla.ExecutionProfile.compute_cycle_count) -} - -// int64 compute_time_ns = 4; -inline void ExecutionProfile::clear_compute_time_ns() { - compute_time_ns_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 ExecutionProfile::compute_time_ns() const { - // @@protoc_insertion_point(field_get:xla.ExecutionProfile.compute_time_ns) - return compute_time_ns_; -} -inline void ExecutionProfile::set_compute_time_ns(::google::protobuf::int64 value) { - - compute_time_ns_ = value; - // @@protoc_insertion_point(field_set:xla.ExecutionProfile.compute_time_ns) -} - -// int64 compute_and_transfer_time_ns = 5; -inline void ExecutionProfile::clear_compute_and_transfer_time_ns() { - compute_and_transfer_time_ns_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 ExecutionProfile::compute_and_transfer_time_ns() const { - // @@protoc_insertion_point(field_get:xla.ExecutionProfile.compute_and_transfer_time_ns) - return compute_and_transfer_time_ns_; -} -inline void ExecutionProfile::set_compute_and_transfer_time_ns(::google::protobuf::int64 value) { - - compute_and_transfer_time_ns_ = value; - // @@protoc_insertion_point(field_set:xla.ExecutionProfile.compute_and_transfer_time_ns) -} - -// int64 executable_size_in_bytes = 6; -inline void ExecutionProfile::clear_executable_size_in_bytes() { - executable_size_in_bytes_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 ExecutionProfile::executable_size_in_bytes() const { - // @@protoc_insertion_point(field_get:xla.ExecutionProfile.executable_size_in_bytes) - return executable_size_in_bytes_; -} -inline void ExecutionProfile::set_executable_size_in_bytes(::google::protobuf::int64 value) { - - executable_size_in_bytes_ = value; - // @@protoc_insertion_point(field_set:xla.ExecutionProfile.executable_size_in_bytes) -} - -// ------------------------------------------------------------------- - -// ExecutionHandle - -// int64 handle = 1; -inline void ExecutionHandle::clear_handle() { - handle_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 ExecutionHandle::handle() const { - // @@protoc_insertion_point(field_get:xla.ExecutionHandle.handle) - return handle_; -} -inline void ExecutionHandle::set_handle(::google::protobuf::int64 value) { - - handle_ = value; - // @@protoc_insertion_point(field_set:xla.ExecutionHandle.handle) -} - -// ------------------------------------------------------------------- - -// GlobalDataHandle - -// int64 handle = 1; -inline void GlobalDataHandle::clear_handle() { - handle_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 GlobalDataHandle::handle() const { - // @@protoc_insertion_point(field_get:xla.GlobalDataHandle.handle) - return handle_; -} -inline void GlobalDataHandle::set_handle(::google::protobuf::int64 value) { - - handle_ = value; - // @@protoc_insertion_point(field_set:xla.GlobalDataHandle.handle) -} - -// ------------------------------------------------------------------- - -// DeviceHandle - -// int64 handle = 1; -inline void DeviceHandle::clear_handle() { - handle_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 DeviceHandle::handle() const { - // @@protoc_insertion_point(field_get:xla.DeviceHandle.handle) - return handle_; -} -inline void DeviceHandle::set_handle(::google::protobuf::int64 value) { - - handle_ = value; - // @@protoc_insertion_point(field_set:xla.DeviceHandle.handle) -} - -// int64 device_count = 2; -inline void DeviceHandle::clear_device_count() { - device_count_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 DeviceHandle::device_count() const { - // @@protoc_insertion_point(field_get:xla.DeviceHandle.device_count) - return device_count_; -} -inline void DeviceHandle::set_device_count(::google::protobuf::int64 value) { - - device_count_ = value; - // @@protoc_insertion_point(field_set:xla.DeviceHandle.device_count) -} - -// ------------------------------------------------------------------- - -// ChannelHandle - -// int64 handle = 1; -inline void ChannelHandle::clear_handle() { - handle_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 ChannelHandle::handle() const { - // @@protoc_insertion_point(field_get:xla.ChannelHandle.handle) - return handle_; -} -inline void ChannelHandle::set_handle(::google::protobuf::int64 value) { - - handle_ = value; - // @@protoc_insertion_point(field_set:xla.ChannelHandle.handle) -} - -// .xla.ChannelHandle.ChannelType type = 2; -inline void ChannelHandle::clear_type() { - type_ = 0; -} -inline ::xla::ChannelHandle_ChannelType ChannelHandle::type() const { - // @@protoc_insertion_point(field_get:xla.ChannelHandle.type) - return static_cast< ::xla::ChannelHandle_ChannelType >(type_); -} -inline void ChannelHandle::set_type(::xla::ChannelHandle_ChannelType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:xla.ChannelHandle.type) -} - -// ------------------------------------------------------------------- - -// DeviceAssignmentProto_ComputationDevice - -// repeated int32 replica_device_ids = 1; -inline int DeviceAssignmentProto_ComputationDevice::replica_device_ids_size() const { - return replica_device_ids_.size(); -} -inline void DeviceAssignmentProto_ComputationDevice::clear_replica_device_ids() { - replica_device_ids_.Clear(); -} -inline ::google::protobuf::int32 DeviceAssignmentProto_ComputationDevice::replica_device_ids(int index) const { - // @@protoc_insertion_point(field_get:xla.DeviceAssignmentProto.ComputationDevice.replica_device_ids) - return replica_device_ids_.Get(index); -} -inline void DeviceAssignmentProto_ComputationDevice::set_replica_device_ids(int index, ::google::protobuf::int32 value) { - replica_device_ids_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.DeviceAssignmentProto.ComputationDevice.replica_device_ids) -} -inline void DeviceAssignmentProto_ComputationDevice::add_replica_device_ids(::google::protobuf::int32 value) { - replica_device_ids_.Add(value); - // @@protoc_insertion_point(field_add:xla.DeviceAssignmentProto.ComputationDevice.replica_device_ids) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -DeviceAssignmentProto_ComputationDevice::replica_device_ids() const { - // @@protoc_insertion_point(field_list:xla.DeviceAssignmentProto.ComputationDevice.replica_device_ids) - return replica_device_ids_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -DeviceAssignmentProto_ComputationDevice::mutable_replica_device_ids() { - // @@protoc_insertion_point(field_mutable_list:xla.DeviceAssignmentProto.ComputationDevice.replica_device_ids) - return &replica_device_ids_; -} - -// ------------------------------------------------------------------- - -// DeviceAssignmentProto - -// int32 replica_count = 1; -inline void DeviceAssignmentProto::clear_replica_count() { - replica_count_ = 0; -} -inline ::google::protobuf::int32 DeviceAssignmentProto::replica_count() const { - // @@protoc_insertion_point(field_get:xla.DeviceAssignmentProto.replica_count) - return replica_count_; -} -inline void DeviceAssignmentProto::set_replica_count(::google::protobuf::int32 value) { - - replica_count_ = value; - // @@protoc_insertion_point(field_set:xla.DeviceAssignmentProto.replica_count) -} - -// int32 computation_count = 2; -inline void DeviceAssignmentProto::clear_computation_count() { - computation_count_ = 0; -} -inline ::google::protobuf::int32 DeviceAssignmentProto::computation_count() const { - // @@protoc_insertion_point(field_get:xla.DeviceAssignmentProto.computation_count) - return computation_count_; -} -inline void DeviceAssignmentProto::set_computation_count(::google::protobuf::int32 value) { - - computation_count_ = value; - // @@protoc_insertion_point(field_set:xla.DeviceAssignmentProto.computation_count) -} - -// repeated .xla.DeviceAssignmentProto.ComputationDevice computation_devices = 3; -inline int DeviceAssignmentProto::computation_devices_size() const { - return computation_devices_.size(); -} -inline void DeviceAssignmentProto::clear_computation_devices() { - computation_devices_.Clear(); -} -inline ::xla::DeviceAssignmentProto_ComputationDevice* DeviceAssignmentProto::mutable_computation_devices(int index) { - // @@protoc_insertion_point(field_mutable:xla.DeviceAssignmentProto.computation_devices) - return computation_devices_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::DeviceAssignmentProto_ComputationDevice >* -DeviceAssignmentProto::mutable_computation_devices() { - // @@protoc_insertion_point(field_mutable_list:xla.DeviceAssignmentProto.computation_devices) - return &computation_devices_; -} -inline const ::xla::DeviceAssignmentProto_ComputationDevice& DeviceAssignmentProto::computation_devices(int index) const { - // @@protoc_insertion_point(field_get:xla.DeviceAssignmentProto.computation_devices) - return computation_devices_.Get(index); -} -inline ::xla::DeviceAssignmentProto_ComputationDevice* DeviceAssignmentProto::add_computation_devices() { - // @@protoc_insertion_point(field_add:xla.DeviceAssignmentProto.computation_devices) - return computation_devices_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::DeviceAssignmentProto_ComputationDevice >& -DeviceAssignmentProto::computation_devices() const { - // @@protoc_insertion_point(field_list:xla.DeviceAssignmentProto.computation_devices) - return computation_devices_; -} - -// ------------------------------------------------------------------- - -// LiteralProto - -// .xla.Shape shape = 1; -inline bool LiteralProto::has_shape() const { - return this != internal_default_instance() && shape_ != NULL; -} -inline void LiteralProto::clear_shape() { - if (GetArenaNoVirtual() == NULL && shape_ != NULL) { - delete shape_; - } - shape_ = NULL; -} -inline const ::xla::Shape& LiteralProto::_internal_shape() const { - return *shape_; -} -inline const ::xla::Shape& LiteralProto::shape() const { - const ::xla::Shape* p = shape_; - // @@protoc_insertion_point(field_get:xla.LiteralProto.shape) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_Shape_default_instance_); -} -inline ::xla::Shape* LiteralProto::release_shape() { - // @@protoc_insertion_point(field_release:xla.LiteralProto.shape) - - ::xla::Shape* temp = shape_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - shape_ = NULL; - return temp; -} -inline ::xla::Shape* LiteralProto::unsafe_arena_release_shape() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.LiteralProto.shape) - - ::xla::Shape* temp = shape_; - shape_ = NULL; - return temp; -} -inline ::xla::Shape* LiteralProto::mutable_shape() { - - if (shape_ == NULL) { - auto* p = CreateMaybeMessage<::xla::Shape>(GetArenaNoVirtual()); - shape_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.LiteralProto.shape) - return shape_; -} -inline void LiteralProto::set_allocated_shape(::xla::Shape* shape) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete shape_; - } - if (shape) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(shape); - if (message_arena != submessage_arena) { - shape = ::google::protobuf::internal::GetOwnedMessage( - message_arena, shape, submessage_arena); - } - - } else { - - } - shape_ = shape; - // @@protoc_insertion_point(field_set_allocated:xla.LiteralProto.shape) -} - -// repeated bool preds = 2; -inline int LiteralProto::preds_size() const { - return preds_.size(); -} -inline void LiteralProto::clear_preds() { - preds_.Clear(); -} -inline bool LiteralProto::preds(int index) const { - // @@protoc_insertion_point(field_get:xla.LiteralProto.preds) - return preds_.Get(index); -} -inline void LiteralProto::set_preds(int index, bool value) { - preds_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.LiteralProto.preds) -} -inline void LiteralProto::add_preds(bool value) { - preds_.Add(value); - // @@protoc_insertion_point(field_add:xla.LiteralProto.preds) -} -inline const ::google::protobuf::RepeatedField< bool >& -LiteralProto::preds() const { - // @@protoc_insertion_point(field_list:xla.LiteralProto.preds) - return preds_; -} -inline ::google::protobuf::RepeatedField< bool >* -LiteralProto::mutable_preds() { - // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.preds) - return &preds_; -} - -// bytes s8s = 15; -inline void LiteralProto::clear_s8s() { - s8s_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& LiteralProto::s8s() const { - // @@protoc_insertion_point(field_get:xla.LiteralProto.s8s) - return s8s_.Get(); -} -inline void LiteralProto::set_s8s(const ::std::string& value) { - - s8s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.LiteralProto.s8s) -} -#if LANG_CXX11 -inline void LiteralProto::set_s8s(::std::string&& value) { - - s8s_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.LiteralProto.s8s) -} -#endif -inline void LiteralProto::set_s8s(const char* value) { - GOOGLE_DCHECK(value != NULL); - - s8s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.LiteralProto.s8s) -} -inline void LiteralProto::set_s8s(const void* value, - size_t size) { - - s8s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.LiteralProto.s8s) -} -inline ::std::string* LiteralProto::mutable_s8s() { - - // @@protoc_insertion_point(field_mutable:xla.LiteralProto.s8s) - return s8s_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* LiteralProto::release_s8s() { - // @@protoc_insertion_point(field_release:xla.LiteralProto.s8s) - - return s8s_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void LiteralProto::set_allocated_s8s(::std::string* s8s) { - if (s8s != NULL) { - - } else { - - } - s8s_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), s8s, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.LiteralProto.s8s) -} -inline ::std::string* LiteralProto::unsafe_arena_release_s8s() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.LiteralProto.s8s) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return s8s_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void LiteralProto::unsafe_arena_set_allocated_s8s( - ::std::string* s8s) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (s8s != NULL) { - - } else { - - } - s8s_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - s8s, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.LiteralProto.s8s) -} - -// bytes u8s = 3; -inline void LiteralProto::clear_u8s() { - u8s_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& LiteralProto::u8s() const { - // @@protoc_insertion_point(field_get:xla.LiteralProto.u8s) - return u8s_.Get(); -} -inline void LiteralProto::set_u8s(const ::std::string& value) { - - u8s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.LiteralProto.u8s) -} -#if LANG_CXX11 -inline void LiteralProto::set_u8s(::std::string&& value) { - - u8s_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.LiteralProto.u8s) -} -#endif -inline void LiteralProto::set_u8s(const char* value) { - GOOGLE_DCHECK(value != NULL); - - u8s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.LiteralProto.u8s) -} -inline void LiteralProto::set_u8s(const void* value, - size_t size) { - - u8s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.LiteralProto.u8s) -} -inline ::std::string* LiteralProto::mutable_u8s() { - - // @@protoc_insertion_point(field_mutable:xla.LiteralProto.u8s) - return u8s_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* LiteralProto::release_u8s() { - // @@protoc_insertion_point(field_release:xla.LiteralProto.u8s) - - return u8s_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void LiteralProto::set_allocated_u8s(::std::string* u8s) { - if (u8s != NULL) { - - } else { - - } - u8s_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), u8s, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.LiteralProto.u8s) -} -inline ::std::string* LiteralProto::unsafe_arena_release_u8s() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.LiteralProto.u8s) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return u8s_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void LiteralProto::unsafe_arena_set_allocated_u8s( - ::std::string* u8s) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (u8s != NULL) { - - } else { - - } - u8s_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - u8s, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.LiteralProto.u8s) -} - -// repeated int32 s32s = 4; -inline int LiteralProto::s32s_size() const { - return s32s_.size(); -} -inline void LiteralProto::clear_s32s() { - s32s_.Clear(); -} -inline ::google::protobuf::int32 LiteralProto::s32s(int index) const { - // @@protoc_insertion_point(field_get:xla.LiteralProto.s32s) - return s32s_.Get(index); -} -inline void LiteralProto::set_s32s(int index, ::google::protobuf::int32 value) { - s32s_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.LiteralProto.s32s) -} -inline void LiteralProto::add_s32s(::google::protobuf::int32 value) { - s32s_.Add(value); - // @@protoc_insertion_point(field_add:xla.LiteralProto.s32s) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -LiteralProto::s32s() const { - // @@protoc_insertion_point(field_list:xla.LiteralProto.s32s) - return s32s_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -LiteralProto::mutable_s32s() { - // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.s32s) - return &s32s_; -} - -// repeated int64 s64s = 5; -inline int LiteralProto::s64s_size() const { - return s64s_.size(); -} -inline void LiteralProto::clear_s64s() { - s64s_.Clear(); -} -inline ::google::protobuf::int64 LiteralProto::s64s(int index) const { - // @@protoc_insertion_point(field_get:xla.LiteralProto.s64s) - return s64s_.Get(index); -} -inline void LiteralProto::set_s64s(int index, ::google::protobuf::int64 value) { - s64s_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.LiteralProto.s64s) -} -inline void LiteralProto::add_s64s(::google::protobuf::int64 value) { - s64s_.Add(value); - // @@protoc_insertion_point(field_add:xla.LiteralProto.s64s) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -LiteralProto::s64s() const { - // @@protoc_insertion_point(field_list:xla.LiteralProto.s64s) - return s64s_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -LiteralProto::mutable_s64s() { - // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.s64s) - return &s64s_; -} - -// repeated uint32 u32s = 6; -inline int LiteralProto::u32s_size() const { - return u32s_.size(); -} -inline void LiteralProto::clear_u32s() { - u32s_.Clear(); -} -inline ::google::protobuf::uint32 LiteralProto::u32s(int index) const { - // @@protoc_insertion_point(field_get:xla.LiteralProto.u32s) - return u32s_.Get(index); -} -inline void LiteralProto::set_u32s(int index, ::google::protobuf::uint32 value) { - u32s_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.LiteralProto.u32s) -} -inline void LiteralProto::add_u32s(::google::protobuf::uint32 value) { - u32s_.Add(value); - // @@protoc_insertion_point(field_add:xla.LiteralProto.u32s) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -LiteralProto::u32s() const { - // @@protoc_insertion_point(field_list:xla.LiteralProto.u32s) - return u32s_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -LiteralProto::mutable_u32s() { - // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.u32s) - return &u32s_; -} - -// repeated uint64 u64s = 7; -inline int LiteralProto::u64s_size() const { - return u64s_.size(); -} -inline void LiteralProto::clear_u64s() { - u64s_.Clear(); -} -inline ::google::protobuf::uint64 LiteralProto::u64s(int index) const { - // @@protoc_insertion_point(field_get:xla.LiteralProto.u64s) - return u64s_.Get(index); -} -inline void LiteralProto::set_u64s(int index, ::google::protobuf::uint64 value) { - u64s_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.LiteralProto.u64s) -} -inline void LiteralProto::add_u64s(::google::protobuf::uint64 value) { - u64s_.Add(value); - // @@protoc_insertion_point(field_add:xla.LiteralProto.u64s) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& -LiteralProto::u64s() const { - // @@protoc_insertion_point(field_list:xla.LiteralProto.u64s) - return u64s_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* -LiteralProto::mutable_u64s() { - // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.u64s) - return &u64s_; -} - -// repeated float f32s = 8; -inline int LiteralProto::f32s_size() const { - return f32s_.size(); -} -inline void LiteralProto::clear_f32s() { - f32s_.Clear(); -} -inline float LiteralProto::f32s(int index) const { - // @@protoc_insertion_point(field_get:xla.LiteralProto.f32s) - return f32s_.Get(index); -} -inline void LiteralProto::set_f32s(int index, float value) { - f32s_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.LiteralProto.f32s) -} -inline void LiteralProto::add_f32s(float value) { - f32s_.Add(value); - // @@protoc_insertion_point(field_add:xla.LiteralProto.f32s) -} -inline const ::google::protobuf::RepeatedField< float >& -LiteralProto::f32s() const { - // @@protoc_insertion_point(field_list:xla.LiteralProto.f32s) - return f32s_; -} -inline ::google::protobuf::RepeatedField< float >* -LiteralProto::mutable_f32s() { - // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.f32s) - return &f32s_; -} - -// repeated double f64s = 9; -inline int LiteralProto::f64s_size() const { - return f64s_.size(); -} -inline void LiteralProto::clear_f64s() { - f64s_.Clear(); -} -inline double LiteralProto::f64s(int index) const { - // @@protoc_insertion_point(field_get:xla.LiteralProto.f64s) - return f64s_.Get(index); -} -inline void LiteralProto::set_f64s(int index, double value) { - f64s_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.LiteralProto.f64s) -} -inline void LiteralProto::add_f64s(double value) { - f64s_.Add(value); - // @@protoc_insertion_point(field_add:xla.LiteralProto.f64s) -} -inline const ::google::protobuf::RepeatedField< double >& -LiteralProto::f64s() const { - // @@protoc_insertion_point(field_list:xla.LiteralProto.f64s) - return f64s_; -} -inline ::google::protobuf::RepeatedField< double >* -LiteralProto::mutable_f64s() { - // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.f64s) - return &f64s_; -} - -// repeated float c64s = 12; -inline int LiteralProto::c64s_size() const { - return c64s_.size(); -} -inline void LiteralProto::clear_c64s() { - c64s_.Clear(); -} -inline float LiteralProto::c64s(int index) const { - // @@protoc_insertion_point(field_get:xla.LiteralProto.c64s) - return c64s_.Get(index); -} -inline void LiteralProto::set_c64s(int index, float value) { - c64s_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.LiteralProto.c64s) -} -inline void LiteralProto::add_c64s(float value) { - c64s_.Add(value); - // @@protoc_insertion_point(field_add:xla.LiteralProto.c64s) -} -inline const ::google::protobuf::RepeatedField< float >& -LiteralProto::c64s() const { - // @@protoc_insertion_point(field_list:xla.LiteralProto.c64s) - return c64s_; -} -inline ::google::protobuf::RepeatedField< float >* -LiteralProto::mutable_c64s() { - // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.c64s) - return &c64s_; -} - -// repeated .xla.LiteralProto tuple_literals = 10; -inline int LiteralProto::tuple_literals_size() const { - return tuple_literals_.size(); -} -inline void LiteralProto::clear_tuple_literals() { - tuple_literals_.Clear(); -} -inline ::xla::LiteralProto* LiteralProto::mutable_tuple_literals(int index) { - // @@protoc_insertion_point(field_mutable:xla.LiteralProto.tuple_literals) - return tuple_literals_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::LiteralProto >* -LiteralProto::mutable_tuple_literals() { - // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.tuple_literals) - return &tuple_literals_; -} -inline const ::xla::LiteralProto& LiteralProto::tuple_literals(int index) const { - // @@protoc_insertion_point(field_get:xla.LiteralProto.tuple_literals) - return tuple_literals_.Get(index); -} -inline ::xla::LiteralProto* LiteralProto::add_tuple_literals() { - // @@protoc_insertion_point(field_add:xla.LiteralProto.tuple_literals) - return tuple_literals_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::LiteralProto >& -LiteralProto::tuple_literals() const { - // @@protoc_insertion_point(field_list:xla.LiteralProto.tuple_literals) - return tuple_literals_; -} - -// bytes f16s = 11; -inline void LiteralProto::clear_f16s() { - f16s_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& LiteralProto::f16s() const { - // @@protoc_insertion_point(field_get:xla.LiteralProto.f16s) - return f16s_.Get(); -} -inline void LiteralProto::set_f16s(const ::std::string& value) { - - f16s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.LiteralProto.f16s) -} -#if LANG_CXX11 -inline void LiteralProto::set_f16s(::std::string&& value) { - - f16s_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.LiteralProto.f16s) -} -#endif -inline void LiteralProto::set_f16s(const char* value) { - GOOGLE_DCHECK(value != NULL); - - f16s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.LiteralProto.f16s) -} -inline void LiteralProto::set_f16s(const void* value, - size_t size) { - - f16s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.LiteralProto.f16s) -} -inline ::std::string* LiteralProto::mutable_f16s() { - - // @@protoc_insertion_point(field_mutable:xla.LiteralProto.f16s) - return f16s_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* LiteralProto::release_f16s() { - // @@protoc_insertion_point(field_release:xla.LiteralProto.f16s) - - return f16s_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void LiteralProto::set_allocated_f16s(::std::string* f16s) { - if (f16s != NULL) { - - } else { - - } - f16s_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), f16s, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.LiteralProto.f16s) -} -inline ::std::string* LiteralProto::unsafe_arena_release_f16s() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.LiteralProto.f16s) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return f16s_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void LiteralProto::unsafe_arena_set_allocated_f16s( - ::std::string* f16s) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (f16s != NULL) { - - } else { - - } - f16s_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - f16s, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.LiteralProto.f16s) -} - -// bytes bf16s = 13; -inline void LiteralProto::clear_bf16s() { - bf16s_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& LiteralProto::bf16s() const { - // @@protoc_insertion_point(field_get:xla.LiteralProto.bf16s) - return bf16s_.Get(); -} -inline void LiteralProto::set_bf16s(const ::std::string& value) { - - bf16s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:xla.LiteralProto.bf16s) -} -#if LANG_CXX11 -inline void LiteralProto::set_bf16s(::std::string&& value) { - - bf16s_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:xla.LiteralProto.bf16s) -} -#endif -inline void LiteralProto::set_bf16s(const char* value) { - GOOGLE_DCHECK(value != NULL); - - bf16s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:xla.LiteralProto.bf16s) -} -inline void LiteralProto::set_bf16s(const void* value, - size_t size) { - - bf16s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:xla.LiteralProto.bf16s) -} -inline ::std::string* LiteralProto::mutable_bf16s() { - - // @@protoc_insertion_point(field_mutable:xla.LiteralProto.bf16s) - return bf16s_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* LiteralProto::release_bf16s() { - // @@protoc_insertion_point(field_release:xla.LiteralProto.bf16s) - - return bf16s_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void LiteralProto::set_allocated_bf16s(::std::string* bf16s) { - if (bf16s != NULL) { - - } else { - - } - bf16s_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), bf16s, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:xla.LiteralProto.bf16s) -} -inline ::std::string* LiteralProto::unsafe_arena_release_bf16s() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.LiteralProto.bf16s) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return bf16s_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void LiteralProto::unsafe_arena_set_allocated_bf16s( - ::std::string* bf16s) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (bf16s != NULL) { - - } else { - - } - bf16s_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - bf16s, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:xla.LiteralProto.bf16s) -} - -// repeated int64 sparse_indices = 14; -inline int LiteralProto::sparse_indices_size() const { - return sparse_indices_.size(); -} -inline void LiteralProto::clear_sparse_indices() { - sparse_indices_.Clear(); -} -inline ::google::protobuf::int64 LiteralProto::sparse_indices(int index) const { - // @@protoc_insertion_point(field_get:xla.LiteralProto.sparse_indices) - return sparse_indices_.Get(index); -} -inline void LiteralProto::set_sparse_indices(int index, ::google::protobuf::int64 value) { - sparse_indices_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.LiteralProto.sparse_indices) -} -inline void LiteralProto::add_sparse_indices(::google::protobuf::int64 value) { - sparse_indices_.Add(value); - // @@protoc_insertion_point(field_add:xla.LiteralProto.sparse_indices) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -LiteralProto::sparse_indices() const { - // @@protoc_insertion_point(field_list:xla.LiteralProto.sparse_indices) - return sparse_indices_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -LiteralProto::mutable_sparse_indices() { - // @@protoc_insertion_point(field_mutable_list:xla.LiteralProto.sparse_indices) - return &sparse_indices_; -} - -// ------------------------------------------------------------------- - -// WindowDimension - -// int64 size = 1; -inline void WindowDimension::clear_size() { - size_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 WindowDimension::size() const { - // @@protoc_insertion_point(field_get:xla.WindowDimension.size) - return size_; -} -inline void WindowDimension::set_size(::google::protobuf::int64 value) { - - size_ = value; - // @@protoc_insertion_point(field_set:xla.WindowDimension.size) -} - -// int64 stride = 2; -inline void WindowDimension::clear_stride() { - stride_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 WindowDimension::stride() const { - // @@protoc_insertion_point(field_get:xla.WindowDimension.stride) - return stride_; -} -inline void WindowDimension::set_stride(::google::protobuf::int64 value) { - - stride_ = value; - // @@protoc_insertion_point(field_set:xla.WindowDimension.stride) -} - -// int64 padding_low = 3; -inline void WindowDimension::clear_padding_low() { - padding_low_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 WindowDimension::padding_low() const { - // @@protoc_insertion_point(field_get:xla.WindowDimension.padding_low) - return padding_low_; -} -inline void WindowDimension::set_padding_low(::google::protobuf::int64 value) { - - padding_low_ = value; - // @@protoc_insertion_point(field_set:xla.WindowDimension.padding_low) -} - -// int64 padding_high = 4; -inline void WindowDimension::clear_padding_high() { - padding_high_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 WindowDimension::padding_high() const { - // @@protoc_insertion_point(field_get:xla.WindowDimension.padding_high) - return padding_high_; -} -inline void WindowDimension::set_padding_high(::google::protobuf::int64 value) { - - padding_high_ = value; - // @@protoc_insertion_point(field_set:xla.WindowDimension.padding_high) -} - -// int64 window_dilation = 5; -inline void WindowDimension::clear_window_dilation() { - window_dilation_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 WindowDimension::window_dilation() const { - // @@protoc_insertion_point(field_get:xla.WindowDimension.window_dilation) - return window_dilation_; -} -inline void WindowDimension::set_window_dilation(::google::protobuf::int64 value) { - - window_dilation_ = value; - // @@protoc_insertion_point(field_set:xla.WindowDimension.window_dilation) -} - -// int64 base_dilation = 6; -inline void WindowDimension::clear_base_dilation() { - base_dilation_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 WindowDimension::base_dilation() const { - // @@protoc_insertion_point(field_get:xla.WindowDimension.base_dilation) - return base_dilation_; -} -inline void WindowDimension::set_base_dilation(::google::protobuf::int64 value) { - - base_dilation_ = value; - // @@protoc_insertion_point(field_set:xla.WindowDimension.base_dilation) -} - -// bool window_reversal = 7; -inline void WindowDimension::clear_window_reversal() { - window_reversal_ = false; -} -inline bool WindowDimension::window_reversal() const { - // @@protoc_insertion_point(field_get:xla.WindowDimension.window_reversal) - return window_reversal_; -} -inline void WindowDimension::set_window_reversal(bool value) { - - window_reversal_ = value; - // @@protoc_insertion_point(field_set:xla.WindowDimension.window_reversal) -} - -// ------------------------------------------------------------------- - -// Window - -// repeated .xla.WindowDimension dimensions = 1; -inline int Window::dimensions_size() const { - return dimensions_.size(); -} -inline void Window::clear_dimensions() { - dimensions_.Clear(); -} -inline ::xla::WindowDimension* Window::mutable_dimensions(int index) { - // @@protoc_insertion_point(field_mutable:xla.Window.dimensions) - return dimensions_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::WindowDimension >* -Window::mutable_dimensions() { - // @@protoc_insertion_point(field_mutable_list:xla.Window.dimensions) - return &dimensions_; -} -inline const ::xla::WindowDimension& Window::dimensions(int index) const { - // @@protoc_insertion_point(field_get:xla.Window.dimensions) - return dimensions_.Get(index); -} -inline ::xla::WindowDimension* Window::add_dimensions() { - // @@protoc_insertion_point(field_add:xla.Window.dimensions) - return dimensions_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::WindowDimension >& -Window::dimensions() const { - // @@protoc_insertion_point(field_list:xla.Window.dimensions) - return dimensions_; -} - -// ------------------------------------------------------------------- - -// GatherDimensionNumbers - -// repeated int64 offset_dims = 1; -inline int GatherDimensionNumbers::offset_dims_size() const { - return offset_dims_.size(); -} -inline void GatherDimensionNumbers::clear_offset_dims() { - offset_dims_.Clear(); -} -inline ::google::protobuf::int64 GatherDimensionNumbers::offset_dims(int index) const { - // @@protoc_insertion_point(field_get:xla.GatherDimensionNumbers.offset_dims) - return offset_dims_.Get(index); -} -inline void GatherDimensionNumbers::set_offset_dims(int index, ::google::protobuf::int64 value) { - offset_dims_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.GatherDimensionNumbers.offset_dims) -} -inline void GatherDimensionNumbers::add_offset_dims(::google::protobuf::int64 value) { - offset_dims_.Add(value); - // @@protoc_insertion_point(field_add:xla.GatherDimensionNumbers.offset_dims) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -GatherDimensionNumbers::offset_dims() const { - // @@protoc_insertion_point(field_list:xla.GatherDimensionNumbers.offset_dims) - return offset_dims_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -GatherDimensionNumbers::mutable_offset_dims() { - // @@protoc_insertion_point(field_mutable_list:xla.GatherDimensionNumbers.offset_dims) - return &offset_dims_; -} - -// repeated int64 collapsed_slice_dims = 2; -inline int GatherDimensionNumbers::collapsed_slice_dims_size() const { - return collapsed_slice_dims_.size(); -} -inline void GatherDimensionNumbers::clear_collapsed_slice_dims() { - collapsed_slice_dims_.Clear(); -} -inline ::google::protobuf::int64 GatherDimensionNumbers::collapsed_slice_dims(int index) const { - // @@protoc_insertion_point(field_get:xla.GatherDimensionNumbers.collapsed_slice_dims) - return collapsed_slice_dims_.Get(index); -} -inline void GatherDimensionNumbers::set_collapsed_slice_dims(int index, ::google::protobuf::int64 value) { - collapsed_slice_dims_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.GatherDimensionNumbers.collapsed_slice_dims) -} -inline void GatherDimensionNumbers::add_collapsed_slice_dims(::google::protobuf::int64 value) { - collapsed_slice_dims_.Add(value); - // @@protoc_insertion_point(field_add:xla.GatherDimensionNumbers.collapsed_slice_dims) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -GatherDimensionNumbers::collapsed_slice_dims() const { - // @@protoc_insertion_point(field_list:xla.GatherDimensionNumbers.collapsed_slice_dims) - return collapsed_slice_dims_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -GatherDimensionNumbers::mutable_collapsed_slice_dims() { - // @@protoc_insertion_point(field_mutable_list:xla.GatherDimensionNumbers.collapsed_slice_dims) - return &collapsed_slice_dims_; -} - -// repeated int64 start_index_map = 3; -inline int GatherDimensionNumbers::start_index_map_size() const { - return start_index_map_.size(); -} -inline void GatherDimensionNumbers::clear_start_index_map() { - start_index_map_.Clear(); -} -inline ::google::protobuf::int64 GatherDimensionNumbers::start_index_map(int index) const { - // @@protoc_insertion_point(field_get:xla.GatherDimensionNumbers.start_index_map) - return start_index_map_.Get(index); -} -inline void GatherDimensionNumbers::set_start_index_map(int index, ::google::protobuf::int64 value) { - start_index_map_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.GatherDimensionNumbers.start_index_map) -} -inline void GatherDimensionNumbers::add_start_index_map(::google::protobuf::int64 value) { - start_index_map_.Add(value); - // @@protoc_insertion_point(field_add:xla.GatherDimensionNumbers.start_index_map) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -GatherDimensionNumbers::start_index_map() const { - // @@protoc_insertion_point(field_list:xla.GatherDimensionNumbers.start_index_map) - return start_index_map_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -GatherDimensionNumbers::mutable_start_index_map() { - // @@protoc_insertion_point(field_mutable_list:xla.GatherDimensionNumbers.start_index_map) - return &start_index_map_; -} - -// int64 index_vector_dim = 4; -inline void GatherDimensionNumbers::clear_index_vector_dim() { - index_vector_dim_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 GatherDimensionNumbers::index_vector_dim() const { - // @@protoc_insertion_point(field_get:xla.GatherDimensionNumbers.index_vector_dim) - return index_vector_dim_; -} -inline void GatherDimensionNumbers::set_index_vector_dim(::google::protobuf::int64 value) { - - index_vector_dim_ = value; - // @@protoc_insertion_point(field_set:xla.GatherDimensionNumbers.index_vector_dim) -} - -// ------------------------------------------------------------------- - -// ScatterDimensionNumbers - -// repeated int64 update_window_dims = 1; -inline int ScatterDimensionNumbers::update_window_dims_size() const { - return update_window_dims_.size(); -} -inline void ScatterDimensionNumbers::clear_update_window_dims() { - update_window_dims_.Clear(); -} -inline ::google::protobuf::int64 ScatterDimensionNumbers::update_window_dims(int index) const { - // @@protoc_insertion_point(field_get:xla.ScatterDimensionNumbers.update_window_dims) - return update_window_dims_.Get(index); -} -inline void ScatterDimensionNumbers::set_update_window_dims(int index, ::google::protobuf::int64 value) { - update_window_dims_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.ScatterDimensionNumbers.update_window_dims) -} -inline void ScatterDimensionNumbers::add_update_window_dims(::google::protobuf::int64 value) { - update_window_dims_.Add(value); - // @@protoc_insertion_point(field_add:xla.ScatterDimensionNumbers.update_window_dims) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -ScatterDimensionNumbers::update_window_dims() const { - // @@protoc_insertion_point(field_list:xla.ScatterDimensionNumbers.update_window_dims) - return update_window_dims_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -ScatterDimensionNumbers::mutable_update_window_dims() { - // @@protoc_insertion_point(field_mutable_list:xla.ScatterDimensionNumbers.update_window_dims) - return &update_window_dims_; -} - -// repeated int64 inserted_window_dims = 2; -inline int ScatterDimensionNumbers::inserted_window_dims_size() const { - return inserted_window_dims_.size(); -} -inline void ScatterDimensionNumbers::clear_inserted_window_dims() { - inserted_window_dims_.Clear(); -} -inline ::google::protobuf::int64 ScatterDimensionNumbers::inserted_window_dims(int index) const { - // @@protoc_insertion_point(field_get:xla.ScatterDimensionNumbers.inserted_window_dims) - return inserted_window_dims_.Get(index); -} -inline void ScatterDimensionNumbers::set_inserted_window_dims(int index, ::google::protobuf::int64 value) { - inserted_window_dims_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.ScatterDimensionNumbers.inserted_window_dims) -} -inline void ScatterDimensionNumbers::add_inserted_window_dims(::google::protobuf::int64 value) { - inserted_window_dims_.Add(value); - // @@protoc_insertion_point(field_add:xla.ScatterDimensionNumbers.inserted_window_dims) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -ScatterDimensionNumbers::inserted_window_dims() const { - // @@protoc_insertion_point(field_list:xla.ScatterDimensionNumbers.inserted_window_dims) - return inserted_window_dims_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -ScatterDimensionNumbers::mutable_inserted_window_dims() { - // @@protoc_insertion_point(field_mutable_list:xla.ScatterDimensionNumbers.inserted_window_dims) - return &inserted_window_dims_; -} - -// repeated int64 scatter_dims_to_operand_dims = 3; -inline int ScatterDimensionNumbers::scatter_dims_to_operand_dims_size() const { - return scatter_dims_to_operand_dims_.size(); -} -inline void ScatterDimensionNumbers::clear_scatter_dims_to_operand_dims() { - scatter_dims_to_operand_dims_.Clear(); -} -inline ::google::protobuf::int64 ScatterDimensionNumbers::scatter_dims_to_operand_dims(int index) const { - // @@protoc_insertion_point(field_get:xla.ScatterDimensionNumbers.scatter_dims_to_operand_dims) - return scatter_dims_to_operand_dims_.Get(index); -} -inline void ScatterDimensionNumbers::set_scatter_dims_to_operand_dims(int index, ::google::protobuf::int64 value) { - scatter_dims_to_operand_dims_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.ScatterDimensionNumbers.scatter_dims_to_operand_dims) -} -inline void ScatterDimensionNumbers::add_scatter_dims_to_operand_dims(::google::protobuf::int64 value) { - scatter_dims_to_operand_dims_.Add(value); - // @@protoc_insertion_point(field_add:xla.ScatterDimensionNumbers.scatter_dims_to_operand_dims) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -ScatterDimensionNumbers::scatter_dims_to_operand_dims() const { - // @@protoc_insertion_point(field_list:xla.ScatterDimensionNumbers.scatter_dims_to_operand_dims) - return scatter_dims_to_operand_dims_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -ScatterDimensionNumbers::mutable_scatter_dims_to_operand_dims() { - // @@protoc_insertion_point(field_mutable_list:xla.ScatterDimensionNumbers.scatter_dims_to_operand_dims) - return &scatter_dims_to_operand_dims_; -} - -// int64 index_vector_dim = 4; -inline void ScatterDimensionNumbers::clear_index_vector_dim() { - index_vector_dim_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 ScatterDimensionNumbers::index_vector_dim() const { - // @@protoc_insertion_point(field_get:xla.ScatterDimensionNumbers.index_vector_dim) - return index_vector_dim_; -} -inline void ScatterDimensionNumbers::set_index_vector_dim(::google::protobuf::int64 value) { - - index_vector_dim_ = value; - // @@protoc_insertion_point(field_set:xla.ScatterDimensionNumbers.index_vector_dim) -} - -// ------------------------------------------------------------------- - -// ConvolutionDimensionNumbers - -// int64 input_batch_dimension = 7; -inline void ConvolutionDimensionNumbers::clear_input_batch_dimension() { - input_batch_dimension_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 ConvolutionDimensionNumbers::input_batch_dimension() const { - // @@protoc_insertion_point(field_get:xla.ConvolutionDimensionNumbers.input_batch_dimension) - return input_batch_dimension_; -} -inline void ConvolutionDimensionNumbers::set_input_batch_dimension(::google::protobuf::int64 value) { - - input_batch_dimension_ = value; - // @@protoc_insertion_point(field_set:xla.ConvolutionDimensionNumbers.input_batch_dimension) -} - -// int64 input_feature_dimension = 8; -inline void ConvolutionDimensionNumbers::clear_input_feature_dimension() { - input_feature_dimension_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 ConvolutionDimensionNumbers::input_feature_dimension() const { - // @@protoc_insertion_point(field_get:xla.ConvolutionDimensionNumbers.input_feature_dimension) - return input_feature_dimension_; -} -inline void ConvolutionDimensionNumbers::set_input_feature_dimension(::google::protobuf::int64 value) { - - input_feature_dimension_ = value; - // @@protoc_insertion_point(field_set:xla.ConvolutionDimensionNumbers.input_feature_dimension) -} - -// repeated int64 input_spatial_dimensions = 11; -inline int ConvolutionDimensionNumbers::input_spatial_dimensions_size() const { - return input_spatial_dimensions_.size(); -} -inline void ConvolutionDimensionNumbers::clear_input_spatial_dimensions() { - input_spatial_dimensions_.Clear(); -} -inline ::google::protobuf::int64 ConvolutionDimensionNumbers::input_spatial_dimensions(int index) const { - // @@protoc_insertion_point(field_get:xla.ConvolutionDimensionNumbers.input_spatial_dimensions) - return input_spatial_dimensions_.Get(index); -} -inline void ConvolutionDimensionNumbers::set_input_spatial_dimensions(int index, ::google::protobuf::int64 value) { - input_spatial_dimensions_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.ConvolutionDimensionNumbers.input_spatial_dimensions) -} -inline void ConvolutionDimensionNumbers::add_input_spatial_dimensions(::google::protobuf::int64 value) { - input_spatial_dimensions_.Add(value); - // @@protoc_insertion_point(field_add:xla.ConvolutionDimensionNumbers.input_spatial_dimensions) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -ConvolutionDimensionNumbers::input_spatial_dimensions() const { - // @@protoc_insertion_point(field_list:xla.ConvolutionDimensionNumbers.input_spatial_dimensions) - return input_spatial_dimensions_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -ConvolutionDimensionNumbers::mutable_input_spatial_dimensions() { - // @@protoc_insertion_point(field_mutable_list:xla.ConvolutionDimensionNumbers.input_spatial_dimensions) - return &input_spatial_dimensions_; -} - -// int64 kernel_input_feature_dimension = 3; -inline void ConvolutionDimensionNumbers::clear_kernel_input_feature_dimension() { - kernel_input_feature_dimension_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 ConvolutionDimensionNumbers::kernel_input_feature_dimension() const { - // @@protoc_insertion_point(field_get:xla.ConvolutionDimensionNumbers.kernel_input_feature_dimension) - return kernel_input_feature_dimension_; -} -inline void ConvolutionDimensionNumbers::set_kernel_input_feature_dimension(::google::protobuf::int64 value) { - - kernel_input_feature_dimension_ = value; - // @@protoc_insertion_point(field_set:xla.ConvolutionDimensionNumbers.kernel_input_feature_dimension) -} - -// int64 kernel_output_feature_dimension = 4; -inline void ConvolutionDimensionNumbers::clear_kernel_output_feature_dimension() { - kernel_output_feature_dimension_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 ConvolutionDimensionNumbers::kernel_output_feature_dimension() const { - // @@protoc_insertion_point(field_get:xla.ConvolutionDimensionNumbers.kernel_output_feature_dimension) - return kernel_output_feature_dimension_; -} -inline void ConvolutionDimensionNumbers::set_kernel_output_feature_dimension(::google::protobuf::int64 value) { - - kernel_output_feature_dimension_ = value; - // @@protoc_insertion_point(field_set:xla.ConvolutionDimensionNumbers.kernel_output_feature_dimension) -} - -// repeated int64 kernel_spatial_dimensions = 6; -inline int ConvolutionDimensionNumbers::kernel_spatial_dimensions_size() const { - return kernel_spatial_dimensions_.size(); -} -inline void ConvolutionDimensionNumbers::clear_kernel_spatial_dimensions() { - kernel_spatial_dimensions_.Clear(); -} -inline ::google::protobuf::int64 ConvolutionDimensionNumbers::kernel_spatial_dimensions(int index) const { - // @@protoc_insertion_point(field_get:xla.ConvolutionDimensionNumbers.kernel_spatial_dimensions) - return kernel_spatial_dimensions_.Get(index); -} -inline void ConvolutionDimensionNumbers::set_kernel_spatial_dimensions(int index, ::google::protobuf::int64 value) { - kernel_spatial_dimensions_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.ConvolutionDimensionNumbers.kernel_spatial_dimensions) -} -inline void ConvolutionDimensionNumbers::add_kernel_spatial_dimensions(::google::protobuf::int64 value) { - kernel_spatial_dimensions_.Add(value); - // @@protoc_insertion_point(field_add:xla.ConvolutionDimensionNumbers.kernel_spatial_dimensions) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -ConvolutionDimensionNumbers::kernel_spatial_dimensions() const { - // @@protoc_insertion_point(field_list:xla.ConvolutionDimensionNumbers.kernel_spatial_dimensions) - return kernel_spatial_dimensions_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -ConvolutionDimensionNumbers::mutable_kernel_spatial_dimensions() { - // @@protoc_insertion_point(field_mutable_list:xla.ConvolutionDimensionNumbers.kernel_spatial_dimensions) - return &kernel_spatial_dimensions_; -} - -// int64 output_batch_dimension = 9; -inline void ConvolutionDimensionNumbers::clear_output_batch_dimension() { - output_batch_dimension_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 ConvolutionDimensionNumbers::output_batch_dimension() const { - // @@protoc_insertion_point(field_get:xla.ConvolutionDimensionNumbers.output_batch_dimension) - return output_batch_dimension_; -} -inline void ConvolutionDimensionNumbers::set_output_batch_dimension(::google::protobuf::int64 value) { - - output_batch_dimension_ = value; - // @@protoc_insertion_point(field_set:xla.ConvolutionDimensionNumbers.output_batch_dimension) -} - -// int64 output_feature_dimension = 10; -inline void ConvolutionDimensionNumbers::clear_output_feature_dimension() { - output_feature_dimension_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 ConvolutionDimensionNumbers::output_feature_dimension() const { - // @@protoc_insertion_point(field_get:xla.ConvolutionDimensionNumbers.output_feature_dimension) - return output_feature_dimension_; -} -inline void ConvolutionDimensionNumbers::set_output_feature_dimension(::google::protobuf::int64 value) { - - output_feature_dimension_ = value; - // @@protoc_insertion_point(field_set:xla.ConvolutionDimensionNumbers.output_feature_dimension) -} - -// repeated int64 output_spatial_dimensions = 12; -inline int ConvolutionDimensionNumbers::output_spatial_dimensions_size() const { - return output_spatial_dimensions_.size(); -} -inline void ConvolutionDimensionNumbers::clear_output_spatial_dimensions() { - output_spatial_dimensions_.Clear(); -} -inline ::google::protobuf::int64 ConvolutionDimensionNumbers::output_spatial_dimensions(int index) const { - // @@protoc_insertion_point(field_get:xla.ConvolutionDimensionNumbers.output_spatial_dimensions) - return output_spatial_dimensions_.Get(index); -} -inline void ConvolutionDimensionNumbers::set_output_spatial_dimensions(int index, ::google::protobuf::int64 value) { - output_spatial_dimensions_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.ConvolutionDimensionNumbers.output_spatial_dimensions) -} -inline void ConvolutionDimensionNumbers::add_output_spatial_dimensions(::google::protobuf::int64 value) { - output_spatial_dimensions_.Add(value); - // @@protoc_insertion_point(field_add:xla.ConvolutionDimensionNumbers.output_spatial_dimensions) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -ConvolutionDimensionNumbers::output_spatial_dimensions() const { - // @@protoc_insertion_point(field_list:xla.ConvolutionDimensionNumbers.output_spatial_dimensions) - return output_spatial_dimensions_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -ConvolutionDimensionNumbers::mutable_output_spatial_dimensions() { - // @@protoc_insertion_point(field_mutable_list:xla.ConvolutionDimensionNumbers.output_spatial_dimensions) - return &output_spatial_dimensions_; -} - -// ------------------------------------------------------------------- - -// DotDimensionNumbers - -// repeated int64 lhs_contracting_dimensions = 1; -inline int DotDimensionNumbers::lhs_contracting_dimensions_size() const { - return lhs_contracting_dimensions_.size(); -} -inline void DotDimensionNumbers::clear_lhs_contracting_dimensions() { - lhs_contracting_dimensions_.Clear(); -} -inline ::google::protobuf::int64 DotDimensionNumbers::lhs_contracting_dimensions(int index) const { - // @@protoc_insertion_point(field_get:xla.DotDimensionNumbers.lhs_contracting_dimensions) - return lhs_contracting_dimensions_.Get(index); -} -inline void DotDimensionNumbers::set_lhs_contracting_dimensions(int index, ::google::protobuf::int64 value) { - lhs_contracting_dimensions_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.DotDimensionNumbers.lhs_contracting_dimensions) -} -inline void DotDimensionNumbers::add_lhs_contracting_dimensions(::google::protobuf::int64 value) { - lhs_contracting_dimensions_.Add(value); - // @@protoc_insertion_point(field_add:xla.DotDimensionNumbers.lhs_contracting_dimensions) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -DotDimensionNumbers::lhs_contracting_dimensions() const { - // @@protoc_insertion_point(field_list:xla.DotDimensionNumbers.lhs_contracting_dimensions) - return lhs_contracting_dimensions_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -DotDimensionNumbers::mutable_lhs_contracting_dimensions() { - // @@protoc_insertion_point(field_mutable_list:xla.DotDimensionNumbers.lhs_contracting_dimensions) - return &lhs_contracting_dimensions_; -} - -// repeated int64 rhs_contracting_dimensions = 2; -inline int DotDimensionNumbers::rhs_contracting_dimensions_size() const { - return rhs_contracting_dimensions_.size(); -} -inline void DotDimensionNumbers::clear_rhs_contracting_dimensions() { - rhs_contracting_dimensions_.Clear(); -} -inline ::google::protobuf::int64 DotDimensionNumbers::rhs_contracting_dimensions(int index) const { - // @@protoc_insertion_point(field_get:xla.DotDimensionNumbers.rhs_contracting_dimensions) - return rhs_contracting_dimensions_.Get(index); -} -inline void DotDimensionNumbers::set_rhs_contracting_dimensions(int index, ::google::protobuf::int64 value) { - rhs_contracting_dimensions_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.DotDimensionNumbers.rhs_contracting_dimensions) -} -inline void DotDimensionNumbers::add_rhs_contracting_dimensions(::google::protobuf::int64 value) { - rhs_contracting_dimensions_.Add(value); - // @@protoc_insertion_point(field_add:xla.DotDimensionNumbers.rhs_contracting_dimensions) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -DotDimensionNumbers::rhs_contracting_dimensions() const { - // @@protoc_insertion_point(field_list:xla.DotDimensionNumbers.rhs_contracting_dimensions) - return rhs_contracting_dimensions_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -DotDimensionNumbers::mutable_rhs_contracting_dimensions() { - // @@protoc_insertion_point(field_mutable_list:xla.DotDimensionNumbers.rhs_contracting_dimensions) - return &rhs_contracting_dimensions_; -} - -// repeated int64 lhs_batch_dimensions = 3; -inline int DotDimensionNumbers::lhs_batch_dimensions_size() const { - return lhs_batch_dimensions_.size(); -} -inline void DotDimensionNumbers::clear_lhs_batch_dimensions() { - lhs_batch_dimensions_.Clear(); -} -inline ::google::protobuf::int64 DotDimensionNumbers::lhs_batch_dimensions(int index) const { - // @@protoc_insertion_point(field_get:xla.DotDimensionNumbers.lhs_batch_dimensions) - return lhs_batch_dimensions_.Get(index); -} -inline void DotDimensionNumbers::set_lhs_batch_dimensions(int index, ::google::protobuf::int64 value) { - lhs_batch_dimensions_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.DotDimensionNumbers.lhs_batch_dimensions) -} -inline void DotDimensionNumbers::add_lhs_batch_dimensions(::google::protobuf::int64 value) { - lhs_batch_dimensions_.Add(value); - // @@protoc_insertion_point(field_add:xla.DotDimensionNumbers.lhs_batch_dimensions) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -DotDimensionNumbers::lhs_batch_dimensions() const { - // @@protoc_insertion_point(field_list:xla.DotDimensionNumbers.lhs_batch_dimensions) - return lhs_batch_dimensions_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -DotDimensionNumbers::mutable_lhs_batch_dimensions() { - // @@protoc_insertion_point(field_mutable_list:xla.DotDimensionNumbers.lhs_batch_dimensions) - return &lhs_batch_dimensions_; -} - -// repeated int64 rhs_batch_dimensions = 4; -inline int DotDimensionNumbers::rhs_batch_dimensions_size() const { - return rhs_batch_dimensions_.size(); -} -inline void DotDimensionNumbers::clear_rhs_batch_dimensions() { - rhs_batch_dimensions_.Clear(); -} -inline ::google::protobuf::int64 DotDimensionNumbers::rhs_batch_dimensions(int index) const { - // @@protoc_insertion_point(field_get:xla.DotDimensionNumbers.rhs_batch_dimensions) - return rhs_batch_dimensions_.Get(index); -} -inline void DotDimensionNumbers::set_rhs_batch_dimensions(int index, ::google::protobuf::int64 value) { - rhs_batch_dimensions_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.DotDimensionNumbers.rhs_batch_dimensions) -} -inline void DotDimensionNumbers::add_rhs_batch_dimensions(::google::protobuf::int64 value) { - rhs_batch_dimensions_.Add(value); - // @@protoc_insertion_point(field_add:xla.DotDimensionNumbers.rhs_batch_dimensions) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -DotDimensionNumbers::rhs_batch_dimensions() const { - // @@protoc_insertion_point(field_list:xla.DotDimensionNumbers.rhs_batch_dimensions) - return rhs_batch_dimensions_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -DotDimensionNumbers::mutable_rhs_batch_dimensions() { - // @@protoc_insertion_point(field_mutable_list:xla.DotDimensionNumbers.rhs_batch_dimensions) - return &rhs_batch_dimensions_; -} - -// ------------------------------------------------------------------- - -// OpSharding - -// .xla.OpSharding.Type type = 1; -inline void OpSharding::clear_type() { - type_ = 0; -} -inline ::xla::OpSharding_Type OpSharding::type() const { - // @@protoc_insertion_point(field_get:xla.OpSharding.type) - return static_cast< ::xla::OpSharding_Type >(type_); -} -inline void OpSharding::set_type(::xla::OpSharding_Type value) { - - type_ = value; - // @@protoc_insertion_point(field_set:xla.OpSharding.type) -} - -// .xla.Shape tile_shape = 2; -inline bool OpSharding::has_tile_shape() const { - return this != internal_default_instance() && tile_shape_ != NULL; -} -inline void OpSharding::clear_tile_shape() { - if (GetArenaNoVirtual() == NULL && tile_shape_ != NULL) { - delete tile_shape_; - } - tile_shape_ = NULL; -} -inline const ::xla::Shape& OpSharding::_internal_tile_shape() const { - return *tile_shape_; -} -inline const ::xla::Shape& OpSharding::tile_shape() const { - const ::xla::Shape* p = tile_shape_; - // @@protoc_insertion_point(field_get:xla.OpSharding.tile_shape) - return p != NULL ? *p : *reinterpret_cast( - &::xla::_Shape_default_instance_); -} -inline ::xla::Shape* OpSharding::release_tile_shape() { - // @@protoc_insertion_point(field_release:xla.OpSharding.tile_shape) - - ::xla::Shape* temp = tile_shape_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - tile_shape_ = NULL; - return temp; -} -inline ::xla::Shape* OpSharding::unsafe_arena_release_tile_shape() { - // @@protoc_insertion_point(field_unsafe_arena_release:xla.OpSharding.tile_shape) - - ::xla::Shape* temp = tile_shape_; - tile_shape_ = NULL; - return temp; -} -inline ::xla::Shape* OpSharding::mutable_tile_shape() { - - if (tile_shape_ == NULL) { - auto* p = CreateMaybeMessage<::xla::Shape>(GetArenaNoVirtual()); - tile_shape_ = p; - } - // @@protoc_insertion_point(field_mutable:xla.OpSharding.tile_shape) - return tile_shape_; -} -inline void OpSharding::set_allocated_tile_shape(::xla::Shape* tile_shape) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete tile_shape_; - } - if (tile_shape) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(tile_shape); - if (message_arena != submessage_arena) { - tile_shape = ::google::protobuf::internal::GetOwnedMessage( - message_arena, tile_shape, submessage_arena); - } - - } else { - - } - tile_shape_ = tile_shape; - // @@protoc_insertion_point(field_set_allocated:xla.OpSharding.tile_shape) -} - -// repeated int64 tile_assignment_dimensions = 3; -inline int OpSharding::tile_assignment_dimensions_size() const { - return tile_assignment_dimensions_.size(); -} -inline void OpSharding::clear_tile_assignment_dimensions() { - tile_assignment_dimensions_.Clear(); -} -inline ::google::protobuf::int64 OpSharding::tile_assignment_dimensions(int index) const { - // @@protoc_insertion_point(field_get:xla.OpSharding.tile_assignment_dimensions) - return tile_assignment_dimensions_.Get(index); -} -inline void OpSharding::set_tile_assignment_dimensions(int index, ::google::protobuf::int64 value) { - tile_assignment_dimensions_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.OpSharding.tile_assignment_dimensions) -} -inline void OpSharding::add_tile_assignment_dimensions(::google::protobuf::int64 value) { - tile_assignment_dimensions_.Add(value); - // @@protoc_insertion_point(field_add:xla.OpSharding.tile_assignment_dimensions) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -OpSharding::tile_assignment_dimensions() const { - // @@protoc_insertion_point(field_list:xla.OpSharding.tile_assignment_dimensions) - return tile_assignment_dimensions_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -OpSharding::mutable_tile_assignment_dimensions() { - // @@protoc_insertion_point(field_mutable_list:xla.OpSharding.tile_assignment_dimensions) - return &tile_assignment_dimensions_; -} - -// repeated int64 tile_assignment_devices = 4; -inline int OpSharding::tile_assignment_devices_size() const { - return tile_assignment_devices_.size(); -} -inline void OpSharding::clear_tile_assignment_devices() { - tile_assignment_devices_.Clear(); -} -inline ::google::protobuf::int64 OpSharding::tile_assignment_devices(int index) const { - // @@protoc_insertion_point(field_get:xla.OpSharding.tile_assignment_devices) - return tile_assignment_devices_.Get(index); -} -inline void OpSharding::set_tile_assignment_devices(int index, ::google::protobuf::int64 value) { - tile_assignment_devices_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.OpSharding.tile_assignment_devices) -} -inline void OpSharding::add_tile_assignment_devices(::google::protobuf::int64 value) { - tile_assignment_devices_.Add(value); - // @@protoc_insertion_point(field_add:xla.OpSharding.tile_assignment_devices) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -OpSharding::tile_assignment_devices() const { - // @@protoc_insertion_point(field_list:xla.OpSharding.tile_assignment_devices) - return tile_assignment_devices_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -OpSharding::mutable_tile_assignment_devices() { - // @@protoc_insertion_point(field_mutable_list:xla.OpSharding.tile_assignment_devices) - return &tile_assignment_devices_; -} - -// repeated .xla.OpSharding tuple_shardings = 5; -inline int OpSharding::tuple_shardings_size() const { - return tuple_shardings_.size(); -} -inline void OpSharding::clear_tuple_shardings() { - tuple_shardings_.Clear(); -} -inline ::xla::OpSharding* OpSharding::mutable_tuple_shardings(int index) { - // @@protoc_insertion_point(field_mutable:xla.OpSharding.tuple_shardings) - return tuple_shardings_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::xla::OpSharding >* -OpSharding::mutable_tuple_shardings() { - // @@protoc_insertion_point(field_mutable_list:xla.OpSharding.tuple_shardings) - return &tuple_shardings_; -} -inline const ::xla::OpSharding& OpSharding::tuple_shardings(int index) const { - // @@protoc_insertion_point(field_get:xla.OpSharding.tuple_shardings) - return tuple_shardings_.Get(index); -} -inline ::xla::OpSharding* OpSharding::add_tuple_shardings() { - // @@protoc_insertion_point(field_add:xla.OpSharding.tuple_shardings) - return tuple_shardings_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::xla::OpSharding >& -OpSharding::tuple_shardings() const { - // @@protoc_insertion_point(field_list:xla.OpSharding.tuple_shardings) - return tuple_shardings_; -} - -// ------------------------------------------------------------------- - -// ReplicaGroup - -// repeated int64 replica_ids = 1; -inline int ReplicaGroup::replica_ids_size() const { - return replica_ids_.size(); -} -inline void ReplicaGroup::clear_replica_ids() { - replica_ids_.Clear(); -} -inline ::google::protobuf::int64 ReplicaGroup::replica_ids(int index) const { - // @@protoc_insertion_point(field_get:xla.ReplicaGroup.replica_ids) - return replica_ids_.Get(index); -} -inline void ReplicaGroup::set_replica_ids(int index, ::google::protobuf::int64 value) { - replica_ids_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.ReplicaGroup.replica_ids) -} -inline void ReplicaGroup::add_replica_ids(::google::protobuf::int64 value) { - replica_ids_.Add(value); - // @@protoc_insertion_point(field_add:xla.ReplicaGroup.replica_ids) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -ReplicaGroup::replica_ids() const { - // @@protoc_insertion_point(field_list:xla.ReplicaGroup.replica_ids) - return replica_ids_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -ReplicaGroup::mutable_replica_ids() { - // @@protoc_insertion_point(field_mutable_list:xla.ReplicaGroup.replica_ids) - return &replica_ids_; -} - -// ------------------------------------------------------------------- - -// SourceTarget - -// int64 source = 1; -inline void SourceTarget::clear_source() { - source_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 SourceTarget::source() const { - // @@protoc_insertion_point(field_get:xla.SourceTarget.source) - return source_; -} -inline void SourceTarget::set_source(::google::protobuf::int64 value) { - - source_ = value; - // @@protoc_insertion_point(field_set:xla.SourceTarget.source) -} - -// int64 target = 2; -inline void SourceTarget::clear_target() { - target_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 SourceTarget::target() const { - // @@protoc_insertion_point(field_get:xla.SourceTarget.target) - return target_; -} -inline void SourceTarget::set_target(::google::protobuf::int64 value) { - - target_ = value; - // @@protoc_insertion_point(field_set:xla.SourceTarget.target) -} - -// ------------------------------------------------------------------- - -// PrecisionConfig - -// repeated .xla.PrecisionConfig.Precision operand_precision = 1; -inline int PrecisionConfig::operand_precision_size() const { - return operand_precision_.size(); -} -inline void PrecisionConfig::clear_operand_precision() { - operand_precision_.Clear(); -} -inline ::xla::PrecisionConfig_Precision PrecisionConfig::operand_precision(int index) const { - // @@protoc_insertion_point(field_get:xla.PrecisionConfig.operand_precision) - return static_cast< ::xla::PrecisionConfig_Precision >(operand_precision_.Get(index)); -} -inline void PrecisionConfig::set_operand_precision(int index, ::xla::PrecisionConfig_Precision value) { - operand_precision_.Set(index, value); - // @@protoc_insertion_point(field_set:xla.PrecisionConfig.operand_precision) -} -inline void PrecisionConfig::add_operand_precision(::xla::PrecisionConfig_Precision value) { - operand_precision_.Add(value); - // @@protoc_insertion_point(field_add:xla.PrecisionConfig.operand_precision) -} -inline const ::google::protobuf::RepeatedField& -PrecisionConfig::operand_precision() const { - // @@protoc_insertion_point(field_list:xla.PrecisionConfig.operand_precision) - return operand_precision_; -} -inline ::google::protobuf::RepeatedField* -PrecisionConfig::mutable_operand_precision() { - // @@protoc_insertion_point(field_mutable_list:xla.PrecisionConfig.operand_precision) - return &operand_precision_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace xla - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::xla::ChannelHandle_ChannelType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::xla::ChannelHandle_ChannelType>() { - return ::xla::ChannelHandle_ChannelType_descriptor(); -} -template <> struct is_proto_enum< ::xla::OpSharding_Type> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::xla::OpSharding_Type>() { - return ::xla::OpSharding_Type_descriptor(); -} -template <> struct is_proto_enum< ::xla::PrecisionConfig_Precision> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::xla::PrecisionConfig_Precision>() { - return ::xla::PrecisionConfig_Precision_descriptor(); -} -template <> struct is_proto_enum< ::xla::PrimitiveType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::xla::PrimitiveType>() { - return ::xla::PrimitiveType_descriptor(); -} -template <> struct is_proto_enum< ::xla::PaddingValue> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::xla::PaddingValue>() { - return ::xla::PaddingValue_descriptor(); -} -template <> struct is_proto_enum< ::xla::Format> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::xla::Format>() { - return ::xla::Format_descriptor(); -} -template <> struct is_proto_enum< ::xla::FftType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::xla::FftType>() { - return ::xla::FftType_descriptor(); -} -template <> struct is_proto_enum< ::xla::RandomDistribution> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::xla::RandomDistribution>() { - return ::xla::RandomDistribution_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcompiler_2fxla_2fxla_5fdata_2eproto diff --git a/linux/include/tensorflow/contrib/cloud/kernels/bigquery_table_partition.pb.h b/linux/include/tensorflow/contrib/cloud/kernels/bigquery_table_partition.pb.h deleted file mode 100755 index e066e9f56..000000000 --- a/linux/include/tensorflow/contrib/cloud/kernels/bigquery_table_partition.pb.h +++ /dev/null @@ -1,219 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/contrib/cloud/kernels/bigquery_table_partition.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcontrib_2fcloud_2fkernels_2fbigquery_5ftable_5fpartition_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcontrib_2fcloud_2fkernels_2fbigquery_5ftable_5fpartition_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcontrib_2fcloud_2fkernels_2fbigquery_5ftable_5fpartition_2eproto - -namespace protobuf_tensorflow_2fcontrib_2fcloud_2fkernels_2fbigquery_5ftable_5fpartition_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[1]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcontrib_2fcloud_2fkernels_2fbigquery_5ftable_5fpartition_2eproto -namespace tensorflow { -class BigQueryTablePartition; -class BigQueryTablePartitionDefaultTypeInternal; -extern BigQueryTablePartitionDefaultTypeInternal _BigQueryTablePartition_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::BigQueryTablePartition* Arena::CreateMaybeMessage<::tensorflow::BigQueryTablePartition>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class BigQueryTablePartition : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.BigQueryTablePartition) */ { - public: - BigQueryTablePartition(); - virtual ~BigQueryTablePartition(); - - BigQueryTablePartition(const BigQueryTablePartition& from); - - inline BigQueryTablePartition& operator=(const BigQueryTablePartition& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - BigQueryTablePartition(BigQueryTablePartition&& from) noexcept - : BigQueryTablePartition() { - *this = ::std::move(from); - } - - inline BigQueryTablePartition& operator=(BigQueryTablePartition&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const BigQueryTablePartition& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BigQueryTablePartition* internal_default_instance() { - return reinterpret_cast( - &_BigQueryTablePartition_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(BigQueryTablePartition* other); - friend void swap(BigQueryTablePartition& a, BigQueryTablePartition& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline BigQueryTablePartition* New() const final { - return CreateMaybeMessage(NULL); - } - - BigQueryTablePartition* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const BigQueryTablePartition& from); - void MergeFrom(const BigQueryTablePartition& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(BigQueryTablePartition* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 start_index = 1; - void clear_start_index(); - static const int kStartIndexFieldNumber = 1; - ::google::protobuf::int64 start_index() const; - void set_start_index(::google::protobuf::int64 value); - - // int64 end_index = 2; - void clear_end_index(); - static const int kEndIndexFieldNumber = 2; - ::google::protobuf::int64 end_index() const; - void set_end_index(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:tensorflow.BigQueryTablePartition) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::int64 start_index_; - ::google::protobuf::int64 end_index_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcontrib_2fcloud_2fkernels_2fbigquery_5ftable_5fpartition_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// BigQueryTablePartition - -// int64 start_index = 1; -inline void BigQueryTablePartition::clear_start_index() { - start_index_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 BigQueryTablePartition::start_index() const { - // @@protoc_insertion_point(field_get:tensorflow.BigQueryTablePartition.start_index) - return start_index_; -} -inline void BigQueryTablePartition::set_start_index(::google::protobuf::int64 value) { - - start_index_ = value; - // @@protoc_insertion_point(field_set:tensorflow.BigQueryTablePartition.start_index) -} - -// int64 end_index = 2; -inline void BigQueryTablePartition::clear_end_index() { - end_index_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 BigQueryTablePartition::end_index() const { - // @@protoc_insertion_point(field_get:tensorflow.BigQueryTablePartition.end_index) - return end_index_; -} -inline void BigQueryTablePartition::set_end_index(::google::protobuf::int64 value) { - - end_index_ = value; - // @@protoc_insertion_point(field_set:tensorflow.BigQueryTablePartition.end_index) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcontrib_2fcloud_2fkernels_2fbigquery_5ftable_5fpartition_2eproto diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/config.log b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/config.log index 5cf246486..0c0ccef2c 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/config.log +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/config.log @@ -4,13 +4,13 @@ running configure, to aid debugging if configure makes a mistake. It was created by Protocol Buffers configure 3.6.0, which was generated by GNU Autoconf 2.69. Invocation command line was - $ ./configure --prefix=/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf --with-pic + $ ./configure --prefix=/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf --with-pic ## --------- ## ## Platform. ## ## --------- ## -hostname = 77eb8ddcf7f9 +hostname = spark-vm_spark uname -m = x86_64 uname -r = 4.15.0-43-generic uname -s = Linux @@ -33,6 +33,9 @@ PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin +PATH: /usr/games +PATH: /usr/local/games +PATH: /home/bts/bin ## ----------- ## @@ -62,9 +65,9 @@ configure:3196: checking whether make sets $(MAKE) configure:3218: result: yes configure:3247: checking whether make supports nested variables configure:3264: result: yes -configure:3353: checking whether UID '0' is supported by ustar format +configure:3353: checking whether UID '1001' is supported by ustar format configure:3356: result: yes -configure:3363: checking whether GID '0' is supported by ustar format +configure:3363: checking whether GID '1001' is supported by ustar format configure:3366: result: yes configure:3374: checking how to create a ustar tar archive configure:3385: tar --version @@ -1157,8 +1160,8 @@ configure:19013: $? = 0 configure:19015: result: ok (1.2.0.4 or later) configure:19019: checking for library containing zlibVersion configure:19050: g++ -o conftest -g -std=c++11 -DNDEBUG conftest.cpp >&5 -/tmp/ccJoOSrE.o: In function `main': -/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/conftest.cpp:51: undefined reference to `zlibVersion' +/tmp/cc59gJLr.o: In function `main': +/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/conftest.cpp:51: undefined reference to `zlibVersion' collect2: error: ld returned 1 exit status configure:19050: $? = 1 configure: failed program was: @@ -1266,7 +1269,7 @@ generated by GNU Autoconf 2.69. Invocation command line was CONFIG_COMMANDS = $ ./config.status -on 77eb8ddcf7f9 +on spark-vm_spark config.status:1229: creating Makefile config.status:1229: creating src/Makefile @@ -1277,8 +1280,8 @@ config.status:1229: creating protobuf-lite.pc config.status:1229: creating config.h config.status:1458: executing depfiles commands config.status:1458: executing libtool commands -configure:23391: === configuring in third_party/googletest (/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest) -configure:23454: running /bin/bash ./configure --disable-option-checking '--prefix=/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' --cache-file=/dev/null --srcdir=. +configure:23391: === configuring in third_party/googletest (/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest) +configure:23454: running /bin/bash ./configure --disable-option-checking '--prefix=/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' --cache-file=/dev/null --srcdir=. ## ---------------- ## ## Cache variables. ## @@ -1435,7 +1438,7 @@ lt_cv_truncate_bin='/bin/dd bs=4096 count=1' ## Output variables. ## ## ----------------- ## -ACLOCAL='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing aclocal-1.15' +ACLOCAL='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing aclocal-1.15' AMDEPBACKSLASH='\' AMDEP_FALSE='#' AMDEP_TRUE='' @@ -1445,9 +1448,9 @@ AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='1' AM_V='$(V)' AR='ar' -AUTOCONF='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing autoconf' -AUTOHEADER='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing autoheader' -AUTOMAKE='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing automake-1.15' +AUTOCONF='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing autoconf' +AUTOHEADER='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing autoheader' +AUTOMAKE='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing automake-1.15' AWK='mawk' BUILD_EXEEXT='' BUILD_OBJEXT='' @@ -1509,7 +1512,7 @@ LT_SYS_LIBRARY_PATH='' MAINT='' MAINTAINER_MODE_FALSE='#' MAINTAINER_MODE_TRUE='' -MAKEINFO='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing makeinfo' +MAKEINFO='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing makeinfo' MANIFEST_TOOL=':' MKDIR_P='/bin/mkdir -p' NM='/usr/bin/nm -B' @@ -1587,7 +1590,7 @@ host_vendor='pc' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' -install_sh='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/install-sh' +install_sh='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' @@ -1596,7 +1599,7 @@ mandir='${datarootdir}/man' mkdir_p='$(MKDIR_P)' oldincludedir='/usr/include' pdfdir='${docdir}' -prefix='/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' +prefix='/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' program_transform_name='s,x,x,' psdir='${docdir}' runstatedir='${localstatedir}/run' diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/config.status b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/config.status index d27f56355..5ca0f9a50 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/config.status +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/config.status @@ -427,7 +427,7 @@ $config_commands Report bugs to ." -ac_cs_config="'--prefix=/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic'" +ac_cs_config="'--prefix=/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic'" ac_cs_version="\ Protocol Buffers config.status 3.6.0 configured by ./configure, generated by GNU Autoconf 2.69, @@ -437,7 +437,7 @@ Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." -ac_pwd='/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf' +ac_pwd='/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf' srcdir='.' INSTALL='/usr/bin/install -c' MKDIR_P='/bin/mkdir -p' @@ -519,7 +519,7 @@ if $ac_cs_silent; then fi if $ac_cs_recheck; then - set X /bin/bash './configure' '--prefix=/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' $ac_configure_extra_args --no-create --no-recursion + set X /bin/bash './configure' '--prefix=/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' $ac_configure_extra_args --no-create --no-recursion shift $as_echo "running CONFIG_SHELL=/bin/bash $*" >&6 CONFIG_SHELL='/bin/bash' @@ -679,7 +679,7 @@ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' finish_eval='' hardcode_into_libs='yes' sys_lib_search_path_spec='/usr/lib/gcc/x86_64-linux-gnu/7 /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib ' -configure_time_dlsearch_path='/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu ' +configure_time_dlsearch_path='/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /lib32 /usr/lib32 ' configure_time_lt_sys_library_path='' hardcode_action='immediate' enable_dlopen='unknown' @@ -982,12 +982,12 @@ S["mkdir_p"]="$(MKDIR_P)" S["MKDIR_P"]="/bin/mkdir -p" S["INSTALL_STRIP_PROGRAM"]="$(install_sh) -c -s" S["STRIP"]="strip" -S["install_sh"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/install-sh" -S["MAKEINFO"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing makeinfo" -S["AUTOHEADER"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing autoheader" -S["AUTOMAKE"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing automake-1.15" -S["AUTOCONF"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing autoconf" -S["ACLOCAL"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing aclocal-1.15" +S["install_sh"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/install-sh" +S["MAKEINFO"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing makeinfo" +S["AUTOHEADER"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing autoheader" +S["AUTOMAKE"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing automake-1.15" +S["AUTOCONF"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing autoconf" +S["ACLOCAL"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/missing aclocal-1.15" S["VERSION"]="3.6.0" S["PACKAGE"]="protobuf" S["CYGPATH_W"]="echo" @@ -1040,7 +1040,7 @@ S["libexecdir"]="${exec_prefix}/libexec" S["sbindir"]="${exec_prefix}/sbin" S["bindir"]="${exec_prefix}/bin" S["program_transform_name"]="s,x,x," -S["prefix"]="/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf" +S["prefix"]="/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf" S["exec_prefix"]="${prefix}" S["PACKAGE_URL"]="" S["PACKAGE_BUGREPORT"]="protobuf@googlegroups.com" diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/libtool b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/libtool index d3c433046..a33e4abf0 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/libtool +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/libtool @@ -284,7 +284,7 @@ hardcode_into_libs=yes sys_lib_search_path_spec="/usr/lib/gcc/x86_64-linux-gnu/7 /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib " # Detected run-time system search path for libraries. -sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu " +sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /lib32 /usr/lib32 " # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. configure_time_lt_sys_library_path="" diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/protobuf-lite.pc b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/protobuf-lite.pc index 296444e04..4e86c55d3 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/protobuf-lite.pc +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/protobuf-lite.pc @@ -1,4 +1,4 @@ -prefix=/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf +prefix=/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/protobuf.pc b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/protobuf.pc index 58edd356b..4ec841341 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/protobuf.pc +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/protobuf.pc @@ -1,4 +1,4 @@ -prefix=/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf +prefix=/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotobuf-lite.la b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotobuf-lite.la index 7a55a9806..49ed0c18a 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotobuf-lite.la +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotobuf-lite.la @@ -38,4 +38,4 @@ dlopen='' dlpreopen='' # Directory that this library needs to be installed in: -libdir='/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib' +libdir='/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib' diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotobuf-lite.lai b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotobuf-lite.lai index 70239f20c..688444756 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotobuf-lite.lai +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotobuf-lite.lai @@ -38,4 +38,4 @@ dlopen='' dlpreopen='' # Directory that this library needs to be installed in: -libdir='/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib' +libdir='/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib' diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotobuf.la b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotobuf.la index 29ed18ebc..8ea70232e 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotobuf.la +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotobuf.la @@ -38,4 +38,4 @@ dlopen='' dlpreopen='' # Directory that this library needs to be installed in: -libdir='/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib' +libdir='/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib' diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotobuf.lai b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotobuf.lai index 6b62d0290..02f51a788 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotobuf.lai +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotobuf.lai @@ -38,4 +38,4 @@ dlopen='' dlpreopen='' # Directory that this library needs to be installed in: -libdir='/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib' +libdir='/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib' diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotoc.la b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotoc.la index bee81a4bc..3964f625e 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotoc.la +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotoc.la @@ -17,7 +17,7 @@ old_library='libprotoc.a' inherited_linker_flags=' -pthread' # Libraries that this one depends upon. -dependency_libs=' /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/src/libprotobuf.la -lz' +dependency_libs=' /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/src/libprotobuf.la -lz' # Names of additional weak libraries provided by this library weak_library_names='' @@ -38,5 +38,5 @@ dlopen='' dlpreopen='' # Directory that this library needs to be installed in: -libdir='/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib' -relink_command="(cd /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/src; /bin/bash \"/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/libtool\" --tag CXX --mode=relink g++ -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wno-sign-compare -O2 -g -std=c++11 -DNDEBUG -version-info 16:0:0 -export-dynamic -no-undefined -Wl,--version-script=./libprotoc.map -o libprotoc.la -rpath /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib google/protobuf/compiler/code_generator.lo google/protobuf/compiler/command_line_interface.lo google/protobuf/compiler/plugin.lo google/protobuf/compiler/plugin.pb.lo google/protobuf/compiler/subprocess.lo google/protobuf/compiler/zip_writer.lo google/protobuf/compiler/cpp/cpp_enum.lo google/protobuf/compiler/cpp/cpp_enum_field.lo google/protobuf/compiler/cpp/cpp_extension.lo google/protobuf/compiler/cpp/cpp_field.lo google/protobuf/compiler/cpp/cpp_file.lo google/protobuf/compiler/cpp/cpp_generator.lo google/protobuf/compiler/cpp/cpp_helpers.lo google/protobuf/compiler/cpp/cpp_map_field.lo google/protobuf/compiler/cpp/cpp_message.lo google/protobuf/compiler/cpp/cpp_message_field.lo google/protobuf/compiler/cpp/cpp_padding_optimizer.lo google/protobuf/compiler/cpp/cpp_primitive_field.lo google/protobuf/compiler/cpp/cpp_service.lo google/protobuf/compiler/cpp/cpp_string_field.lo google/protobuf/compiler/java/java_context.lo google/protobuf/compiler/java/java_enum.lo google/protobuf/compiler/java/java_enum_lite.lo google/protobuf/compiler/java/java_enum_field.lo google/protobuf/compiler/java/java_enum_field_lite.lo google/protobuf/compiler/java/java_extension.lo google/protobuf/compiler/java/java_extension_lite.lo google/protobuf/compiler/java/java_field.lo google/protobuf/compiler/java/java_file.lo google/protobuf/compiler/java/java_generator.lo google/protobuf/compiler/java/java_generator_factory.lo google/protobuf/compiler/java/java_helpers.lo google/protobuf/compiler/java/java_lazy_message_field.lo google/protobuf/compiler/java/java_lazy_message_field_lite.lo google/protobuf/compiler/java/java_map_field.lo google/protobuf/compiler/java/java_map_field_lite.lo google/protobuf/compiler/java/java_message.lo google/protobuf/compiler/java/java_message_lite.lo google/protobuf/compiler/java/java_message_builder.lo google/protobuf/compiler/java/java_message_builder_lite.lo google/protobuf/compiler/java/java_message_field.lo google/protobuf/compiler/java/java_message_field_lite.lo google/protobuf/compiler/java/java_name_resolver.lo google/protobuf/compiler/java/java_primitive_field.lo google/protobuf/compiler/java/java_primitive_field_lite.lo google/protobuf/compiler/java/java_shared_code_generator.lo google/protobuf/compiler/java/java_service.lo google/protobuf/compiler/java/java_string_field.lo google/protobuf/compiler/java/java_string_field_lite.lo google/protobuf/compiler/java/java_doc_comment.lo google/protobuf/compiler/js/js_generator.lo google/protobuf/compiler/js/well_known_types_embed.lo google/protobuf/compiler/objectivec/objectivec_enum.lo google/protobuf/compiler/objectivec/objectivec_enum_field.lo google/protobuf/compiler/objectivec/objectivec_extension.lo google/protobuf/compiler/objectivec/objectivec_field.lo google/protobuf/compiler/objectivec/objectivec_file.lo google/protobuf/compiler/objectivec/objectivec_generator.lo google/protobuf/compiler/objectivec/objectivec_helpers.lo google/protobuf/compiler/objectivec/objectivec_map_field.lo google/protobuf/compiler/objectivec/objectivec_message.lo google/protobuf/compiler/objectivec/objectivec_message_field.lo google/protobuf/compiler/objectivec/objectivec_oneof.lo google/protobuf/compiler/objectivec/objectivec_primitive_field.lo google/protobuf/compiler/php/php_generator.lo google/protobuf/compiler/python/python_generator.lo google/protobuf/compiler/ruby/ruby_generator.lo google/protobuf/compiler/csharp/csharp_doc_comment.lo google/protobuf/compiler/csharp/csharp_enum.lo google/protobuf/compiler/csharp/csharp_enum_field.lo google/protobuf/compiler/csharp/csharp_field_base.lo google/protobuf/compiler/csharp/csharp_generator.lo google/protobuf/compiler/csharp/csharp_helpers.lo google/protobuf/compiler/csharp/csharp_map_field.lo google/protobuf/compiler/csharp/csharp_message.lo google/protobuf/compiler/csharp/csharp_message_field.lo google/protobuf/compiler/csharp/csharp_primitive_field.lo google/protobuf/compiler/csharp/csharp_reflection_class.lo google/protobuf/compiler/csharp/csharp_repeated_enum_field.lo google/protobuf/compiler/csharp/csharp_repeated_message_field.lo google/protobuf/compiler/csharp/csharp_repeated_primitive_field.lo google/protobuf/compiler/csharp/csharp_source_generator_base.lo google/protobuf/compiler/csharp/csharp_wrapper_field.lo libprotobuf.la -lz @inst_prefix_dir@)" +libdir='/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib' +relink_command="(cd /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/src; /bin/bash \"/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/libtool\" --tag CXX --mode=relink g++ -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wno-sign-compare -O2 -g -std=c++11 -DNDEBUG -version-info 16:0:0 -export-dynamic -no-undefined -Wl,--version-script=./libprotoc.map -o libprotoc.la -rpath /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib google/protobuf/compiler/code_generator.lo google/protobuf/compiler/command_line_interface.lo google/protobuf/compiler/plugin.lo google/protobuf/compiler/plugin.pb.lo google/protobuf/compiler/subprocess.lo google/protobuf/compiler/zip_writer.lo google/protobuf/compiler/cpp/cpp_enum.lo google/protobuf/compiler/cpp/cpp_enum_field.lo google/protobuf/compiler/cpp/cpp_extension.lo google/protobuf/compiler/cpp/cpp_field.lo google/protobuf/compiler/cpp/cpp_file.lo google/protobuf/compiler/cpp/cpp_generator.lo google/protobuf/compiler/cpp/cpp_helpers.lo google/protobuf/compiler/cpp/cpp_map_field.lo google/protobuf/compiler/cpp/cpp_message.lo google/protobuf/compiler/cpp/cpp_message_field.lo google/protobuf/compiler/cpp/cpp_padding_optimizer.lo google/protobuf/compiler/cpp/cpp_primitive_field.lo google/protobuf/compiler/cpp/cpp_service.lo google/protobuf/compiler/cpp/cpp_string_field.lo google/protobuf/compiler/java/java_context.lo google/protobuf/compiler/java/java_enum.lo google/protobuf/compiler/java/java_enum_lite.lo google/protobuf/compiler/java/java_enum_field.lo google/protobuf/compiler/java/java_enum_field_lite.lo google/protobuf/compiler/java/java_extension.lo google/protobuf/compiler/java/java_extension_lite.lo google/protobuf/compiler/java/java_field.lo google/protobuf/compiler/java/java_file.lo google/protobuf/compiler/java/java_generator.lo google/protobuf/compiler/java/java_generator_factory.lo google/protobuf/compiler/java/java_helpers.lo google/protobuf/compiler/java/java_lazy_message_field.lo google/protobuf/compiler/java/java_lazy_message_field_lite.lo google/protobuf/compiler/java/java_map_field.lo google/protobuf/compiler/java/java_map_field_lite.lo google/protobuf/compiler/java/java_message.lo google/protobuf/compiler/java/java_message_lite.lo google/protobuf/compiler/java/java_message_builder.lo google/protobuf/compiler/java/java_message_builder_lite.lo google/protobuf/compiler/java/java_message_field.lo google/protobuf/compiler/java/java_message_field_lite.lo google/protobuf/compiler/java/java_name_resolver.lo google/protobuf/compiler/java/java_primitive_field.lo google/protobuf/compiler/java/java_primitive_field_lite.lo google/protobuf/compiler/java/java_shared_code_generator.lo google/protobuf/compiler/java/java_service.lo google/protobuf/compiler/java/java_string_field.lo google/protobuf/compiler/java/java_string_field_lite.lo google/protobuf/compiler/java/java_doc_comment.lo google/protobuf/compiler/js/js_generator.lo google/protobuf/compiler/js/well_known_types_embed.lo google/protobuf/compiler/objectivec/objectivec_enum.lo google/protobuf/compiler/objectivec/objectivec_enum_field.lo google/protobuf/compiler/objectivec/objectivec_extension.lo google/protobuf/compiler/objectivec/objectivec_field.lo google/protobuf/compiler/objectivec/objectivec_file.lo google/protobuf/compiler/objectivec/objectivec_generator.lo google/protobuf/compiler/objectivec/objectivec_helpers.lo google/protobuf/compiler/objectivec/objectivec_map_field.lo google/protobuf/compiler/objectivec/objectivec_message.lo google/protobuf/compiler/objectivec/objectivec_message_field.lo google/protobuf/compiler/objectivec/objectivec_oneof.lo google/protobuf/compiler/objectivec/objectivec_primitive_field.lo google/protobuf/compiler/php/php_generator.lo google/protobuf/compiler/python/python_generator.lo google/protobuf/compiler/ruby/ruby_generator.lo google/protobuf/compiler/csharp/csharp_doc_comment.lo google/protobuf/compiler/csharp/csharp_enum.lo google/protobuf/compiler/csharp/csharp_enum_field.lo google/protobuf/compiler/csharp/csharp_field_base.lo google/protobuf/compiler/csharp/csharp_generator.lo google/protobuf/compiler/csharp/csharp_helpers.lo google/protobuf/compiler/csharp/csharp_map_field.lo google/protobuf/compiler/csharp/csharp_message.lo google/protobuf/compiler/csharp/csharp_message_field.lo google/protobuf/compiler/csharp/csharp_primitive_field.lo google/protobuf/compiler/csharp/csharp_reflection_class.lo google/protobuf/compiler/csharp/csharp_repeated_enum_field.lo google/protobuf/compiler/csharp/csharp_repeated_message_field.lo google/protobuf/compiler/csharp/csharp_repeated_primitive_field.lo google/protobuf/compiler/csharp/csharp_source_generator_base.lo google/protobuf/compiler/csharp/csharp_wrapper_field.lo libprotobuf.la -lz @inst_prefix_dir@)" diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotoc.lai b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotoc.lai index b437060b6..0596f16ee 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotoc.lai +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/libprotoc.lai @@ -17,7 +17,7 @@ old_library='libprotoc.a' inherited_linker_flags=' -pthread' # Libraries that this one depends upon. -dependency_libs=' /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib/libprotobuf.la -lz' +dependency_libs=' /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib/libprotobuf.la -lz' # Names of additional weak libraries provided by this library weak_library_names='' @@ -38,4 +38,4 @@ dlopen='' dlpreopen='' # Directory that this library needs to be installed in: -libdir='/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib' +libdir='/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib' diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/protoc b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/protoc index 4d925e25f..b45f339af 100644 Binary files a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/protoc and b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/.libs/protoc differ diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/libprotobuf-lite.la b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/libprotobuf-lite.la index 7a55a9806..49ed0c18a 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/libprotobuf-lite.la +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/libprotobuf-lite.la @@ -38,4 +38,4 @@ dlopen='' dlpreopen='' # Directory that this library needs to be installed in: -libdir='/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib' +libdir='/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib' diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/libprotobuf.la b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/libprotobuf.la index 29ed18ebc..8ea70232e 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/libprotobuf.la +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/libprotobuf.la @@ -38,4 +38,4 @@ dlopen='' dlpreopen='' # Directory that this library needs to be installed in: -libdir='/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib' +libdir='/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib' diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/libprotoc.la b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/libprotoc.la index bee81a4bc..3964f625e 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/libprotoc.la +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/libprotoc.la @@ -17,7 +17,7 @@ old_library='libprotoc.a' inherited_linker_flags=' -pthread' # Libraries that this one depends upon. -dependency_libs=' /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/src/libprotobuf.la -lz' +dependency_libs=' /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/src/libprotobuf.la -lz' # Names of additional weak libraries provided by this library weak_library_names='' @@ -38,5 +38,5 @@ dlopen='' dlpreopen='' # Directory that this library needs to be installed in: -libdir='/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib' -relink_command="(cd /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/src; /bin/bash \"/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/libtool\" --tag CXX --mode=relink g++ -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wno-sign-compare -O2 -g -std=c++11 -DNDEBUG -version-info 16:0:0 -export-dynamic -no-undefined -Wl,--version-script=./libprotoc.map -o libprotoc.la -rpath /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib google/protobuf/compiler/code_generator.lo google/protobuf/compiler/command_line_interface.lo google/protobuf/compiler/plugin.lo google/protobuf/compiler/plugin.pb.lo google/protobuf/compiler/subprocess.lo google/protobuf/compiler/zip_writer.lo google/protobuf/compiler/cpp/cpp_enum.lo google/protobuf/compiler/cpp/cpp_enum_field.lo google/protobuf/compiler/cpp/cpp_extension.lo google/protobuf/compiler/cpp/cpp_field.lo google/protobuf/compiler/cpp/cpp_file.lo google/protobuf/compiler/cpp/cpp_generator.lo google/protobuf/compiler/cpp/cpp_helpers.lo google/protobuf/compiler/cpp/cpp_map_field.lo google/protobuf/compiler/cpp/cpp_message.lo google/protobuf/compiler/cpp/cpp_message_field.lo google/protobuf/compiler/cpp/cpp_padding_optimizer.lo google/protobuf/compiler/cpp/cpp_primitive_field.lo google/protobuf/compiler/cpp/cpp_service.lo google/protobuf/compiler/cpp/cpp_string_field.lo google/protobuf/compiler/java/java_context.lo google/protobuf/compiler/java/java_enum.lo google/protobuf/compiler/java/java_enum_lite.lo google/protobuf/compiler/java/java_enum_field.lo google/protobuf/compiler/java/java_enum_field_lite.lo google/protobuf/compiler/java/java_extension.lo google/protobuf/compiler/java/java_extension_lite.lo google/protobuf/compiler/java/java_field.lo google/protobuf/compiler/java/java_file.lo google/protobuf/compiler/java/java_generator.lo google/protobuf/compiler/java/java_generator_factory.lo google/protobuf/compiler/java/java_helpers.lo google/protobuf/compiler/java/java_lazy_message_field.lo google/protobuf/compiler/java/java_lazy_message_field_lite.lo google/protobuf/compiler/java/java_map_field.lo google/protobuf/compiler/java/java_map_field_lite.lo google/protobuf/compiler/java/java_message.lo google/protobuf/compiler/java/java_message_lite.lo google/protobuf/compiler/java/java_message_builder.lo google/protobuf/compiler/java/java_message_builder_lite.lo google/protobuf/compiler/java/java_message_field.lo google/protobuf/compiler/java/java_message_field_lite.lo google/protobuf/compiler/java/java_name_resolver.lo google/protobuf/compiler/java/java_primitive_field.lo google/protobuf/compiler/java/java_primitive_field_lite.lo google/protobuf/compiler/java/java_shared_code_generator.lo google/protobuf/compiler/java/java_service.lo google/protobuf/compiler/java/java_string_field.lo google/protobuf/compiler/java/java_string_field_lite.lo google/protobuf/compiler/java/java_doc_comment.lo google/protobuf/compiler/js/js_generator.lo google/protobuf/compiler/js/well_known_types_embed.lo google/protobuf/compiler/objectivec/objectivec_enum.lo google/protobuf/compiler/objectivec/objectivec_enum_field.lo google/protobuf/compiler/objectivec/objectivec_extension.lo google/protobuf/compiler/objectivec/objectivec_field.lo google/protobuf/compiler/objectivec/objectivec_file.lo google/protobuf/compiler/objectivec/objectivec_generator.lo google/protobuf/compiler/objectivec/objectivec_helpers.lo google/protobuf/compiler/objectivec/objectivec_map_field.lo google/protobuf/compiler/objectivec/objectivec_message.lo google/protobuf/compiler/objectivec/objectivec_message_field.lo google/protobuf/compiler/objectivec/objectivec_oneof.lo google/protobuf/compiler/objectivec/objectivec_primitive_field.lo google/protobuf/compiler/php/php_generator.lo google/protobuf/compiler/python/python_generator.lo google/protobuf/compiler/ruby/ruby_generator.lo google/protobuf/compiler/csharp/csharp_doc_comment.lo google/protobuf/compiler/csharp/csharp_enum.lo google/protobuf/compiler/csharp/csharp_enum_field.lo google/protobuf/compiler/csharp/csharp_field_base.lo google/protobuf/compiler/csharp/csharp_generator.lo google/protobuf/compiler/csharp/csharp_helpers.lo google/protobuf/compiler/csharp/csharp_map_field.lo google/protobuf/compiler/csharp/csharp_message.lo google/protobuf/compiler/csharp/csharp_message_field.lo google/protobuf/compiler/csharp/csharp_primitive_field.lo google/protobuf/compiler/csharp/csharp_reflection_class.lo google/protobuf/compiler/csharp/csharp_repeated_enum_field.lo google/protobuf/compiler/csharp/csharp_repeated_message_field.lo google/protobuf/compiler/csharp/csharp_repeated_primitive_field.lo google/protobuf/compiler/csharp/csharp_source_generator_base.lo google/protobuf/compiler/csharp/csharp_wrapper_field.lo libprotobuf.la -lz @inst_prefix_dir@)" +libdir='/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib' +relink_command="(cd /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/src; /bin/bash \"/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/libtool\" --tag CXX --mode=relink g++ -pthread -DHAVE_PTHREAD=1 -DHAVE_ZLIB=1 -Wall -Wno-sign-compare -O2 -g -std=c++11 -DNDEBUG -version-info 16:0:0 -export-dynamic -no-undefined -Wl,--version-script=./libprotoc.map -o libprotoc.la -rpath /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf/lib google/protobuf/compiler/code_generator.lo google/protobuf/compiler/command_line_interface.lo google/protobuf/compiler/plugin.lo google/protobuf/compiler/plugin.pb.lo google/protobuf/compiler/subprocess.lo google/protobuf/compiler/zip_writer.lo google/protobuf/compiler/cpp/cpp_enum.lo google/protobuf/compiler/cpp/cpp_enum_field.lo google/protobuf/compiler/cpp/cpp_extension.lo google/protobuf/compiler/cpp/cpp_field.lo google/protobuf/compiler/cpp/cpp_file.lo google/protobuf/compiler/cpp/cpp_generator.lo google/protobuf/compiler/cpp/cpp_helpers.lo google/protobuf/compiler/cpp/cpp_map_field.lo google/protobuf/compiler/cpp/cpp_message.lo google/protobuf/compiler/cpp/cpp_message_field.lo google/protobuf/compiler/cpp/cpp_padding_optimizer.lo google/protobuf/compiler/cpp/cpp_primitive_field.lo google/protobuf/compiler/cpp/cpp_service.lo google/protobuf/compiler/cpp/cpp_string_field.lo google/protobuf/compiler/java/java_context.lo google/protobuf/compiler/java/java_enum.lo google/protobuf/compiler/java/java_enum_lite.lo google/protobuf/compiler/java/java_enum_field.lo google/protobuf/compiler/java/java_enum_field_lite.lo google/protobuf/compiler/java/java_extension.lo google/protobuf/compiler/java/java_extension_lite.lo google/protobuf/compiler/java/java_field.lo google/protobuf/compiler/java/java_file.lo google/protobuf/compiler/java/java_generator.lo google/protobuf/compiler/java/java_generator_factory.lo google/protobuf/compiler/java/java_helpers.lo google/protobuf/compiler/java/java_lazy_message_field.lo google/protobuf/compiler/java/java_lazy_message_field_lite.lo google/protobuf/compiler/java/java_map_field.lo google/protobuf/compiler/java/java_map_field_lite.lo google/protobuf/compiler/java/java_message.lo google/protobuf/compiler/java/java_message_lite.lo google/protobuf/compiler/java/java_message_builder.lo google/protobuf/compiler/java/java_message_builder_lite.lo google/protobuf/compiler/java/java_message_field.lo google/protobuf/compiler/java/java_message_field_lite.lo google/protobuf/compiler/java/java_name_resolver.lo google/protobuf/compiler/java/java_primitive_field.lo google/protobuf/compiler/java/java_primitive_field_lite.lo google/protobuf/compiler/java/java_shared_code_generator.lo google/protobuf/compiler/java/java_service.lo google/protobuf/compiler/java/java_string_field.lo google/protobuf/compiler/java/java_string_field_lite.lo google/protobuf/compiler/java/java_doc_comment.lo google/protobuf/compiler/js/js_generator.lo google/protobuf/compiler/js/well_known_types_embed.lo google/protobuf/compiler/objectivec/objectivec_enum.lo google/protobuf/compiler/objectivec/objectivec_enum_field.lo google/protobuf/compiler/objectivec/objectivec_extension.lo google/protobuf/compiler/objectivec/objectivec_field.lo google/protobuf/compiler/objectivec/objectivec_file.lo google/protobuf/compiler/objectivec/objectivec_generator.lo google/protobuf/compiler/objectivec/objectivec_helpers.lo google/protobuf/compiler/objectivec/objectivec_map_field.lo google/protobuf/compiler/objectivec/objectivec_message.lo google/protobuf/compiler/objectivec/objectivec_message_field.lo google/protobuf/compiler/objectivec/objectivec_oneof.lo google/protobuf/compiler/objectivec/objectivec_primitive_field.lo google/protobuf/compiler/php/php_generator.lo google/protobuf/compiler/python/python_generator.lo google/protobuf/compiler/ruby/ruby_generator.lo google/protobuf/compiler/csharp/csharp_doc_comment.lo google/protobuf/compiler/csharp/csharp_enum.lo google/protobuf/compiler/csharp/csharp_enum_field.lo google/protobuf/compiler/csharp/csharp_field_base.lo google/protobuf/compiler/csharp/csharp_generator.lo google/protobuf/compiler/csharp/csharp_helpers.lo google/protobuf/compiler/csharp/csharp_map_field.lo google/protobuf/compiler/csharp/csharp_message.lo google/protobuf/compiler/csharp/csharp_message_field.lo google/protobuf/compiler/csharp/csharp_primitive_field.lo google/protobuf/compiler/csharp/csharp_reflection_class.lo google/protobuf/compiler/csharp/csharp_repeated_enum_field.lo google/protobuf/compiler/csharp/csharp_repeated_message_field.lo google/protobuf/compiler/csharp/csharp_repeated_primitive_field.lo google/protobuf/compiler/csharp/csharp_source_generator_base.lo google/protobuf/compiler/csharp/csharp_wrapper_field.lo libprotobuf.la -lz @inst_prefix_dir@)" diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/protoc b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/protoc index eb20465b4..385640da9 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/protoc +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/src/protoc @@ -188,7 +188,7 @@ func_exec_program () if test -f "$progdir/$program"; then # Add our own library path to LD_LIBRARY_PATH - LD_LIBRARY_PATH="/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/src/.libs:$LD_LIBRARY_PATH" + LD_LIBRARY_PATH="/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/src/.libs:$LD_LIBRARY_PATH" # Some systems cannot cope with colon-terminated LD_LIBRARY_PATH # The second colon is a workaround for a bug in BeOS R4 sed diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/autom4te.cache/requests b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/autom4te.cache/requests index 6a8646d03..d511cedb6 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/autom4te.cache/requests +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/autom4te.cache/requests @@ -34,47 +34,47 @@ 'configure.ac' ], { - 'AC_DEFUN' => 1, - 'AM_AUX_DIR_EXPAND' => 1, - 'AU_DEFUN' => 1, - 'AM_SET_DEPDIR' => 1, - '_AM_CONFIG_MACRO_DIRS' => 1, - 'm4_pattern_allow' => 1, - 'AM_MISSING_HAS_RUN' => 1, - 'AM_PROG_INSTALL_SH' => 1, - 'AC_CONFIG_MACRO_DIR_TRACE' => 1, - 'AC_DEFUN_ONCE' => 1, - 'AM_SET_LEADING_DOT' => 1, - '_AM_DEPENDENCIES' => 1, - 'AM_AUTOMAKE_VERSION' => 1, + 'AM_MAKE_INCLUDE' => 1, 'AM_CONDITIONAL' => 1, '_AM_MANGLE_OPTION' => 1, - 'AM_MISSING_PROG' => 1, - 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, - '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, - 'AM_PROG_CC_C_O' => 1, - 'AM_PROG_INSTALL_STRIP' => 1, - 'm4_pattern_forbid' => 1, - 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, - 'AM_DEP_TRACK' => 1, - 'AM_SUBST_NOTMAKE' => 1, + '_AM_SUBST_NOTMAKE' => 1, '_m4_warn' => 1, - '_AM_SET_OPTIONS' => 1, - '_AM_PROG_CC_C_O' => 1, - 'AM_MAKE_INCLUDE' => 1, + 'AU_DEFUN' => 1, + 'AM_SUBST_NOTMAKE' => 1, + 'AC_CONFIG_MACRO_DIR' => 1, 'include' => 1, - '_AM_IF_OPTION' => 1, - 'AM_SILENT_RULES' => 1, + '_AM_CONFIG_MACRO_DIRS' => 1, + 'AM_PROG_INSTALL_STRIP' => 1, + '_AC_AM_CONFIG_HEADER_HOOK' => 1, + 'AM_MISSING_HAS_RUN' => 1, + 'AC_CONFIG_MACRO_DIR_TRACE' => 1, 'm4_include' => 1, + 'AM_PROG_INSTALL_SH' => 1, + 'AM_SILENT_RULES' => 1, + '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, 'AM_RUN_LOG' => 1, - '_AM_SET_OPTION' => 1, + '_AM_SET_OPTIONS' => 1, + '_AM_IF_OPTION' => 1, + 'AM_DEP_TRACK' => 1, '_AM_AUTOCONF_VERSION' => 1, '_AM_PROG_TAR' => 1, - '_AM_SUBST_NOTMAKE' => 1, - 'AC_CONFIG_MACRO_DIR' => 1, + '_AM_DEPENDENCIES' => 1, + 'AM_SET_LEADING_DOT' => 1, + 'AC_DEFUN_ONCE' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'm4_pattern_allow' => 1, + '_AM_SET_OPTION' => 1, + 'AM_MISSING_PROG' => 1, 'AM_INIT_AUTOMAKE' => 1, + 'm4_pattern_forbid' => 1, + 'AM_AUX_DIR_EXPAND' => 1, + 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, + 'AM_SET_DEPDIR' => 1, + '_AM_PROG_CC_C_O' => 1, 'AM_SANITY_CHECK' => 1, - '_AC_AM_CONFIG_HEADER_HOOK' => 1 + 'AM_PROG_CC_C_O' => 1, + 'AC_DEFUN' => 1 } ], 'Autom4te::Request' ), bless( [ @@ -89,66 +89,66 @@ 'configure.ac' ], { - 'AM_MAKEFILE_INCLUDE' => 1, - '_LT_AC_TAGCONFIG' => 1, - 'AM_INIT_AUTOMAKE' => 1, - 'AC_PROG_LIBTOOL' => 1, - 'AC_CONFIG_SUBDIRS' => 1, - 'AC_LIBSOURCE' => 1, - '_AM_COND_ELSE' => 1, - 'AC_FC_SRCEXT' => 1, - 'AC_CANONICAL_HOST' => 1, - 'AM_PROG_MKDIR_P' => 1, - '_AM_SUBST_NOTMAKE' => 1, - 'AM_POT_TOOLS' => 1, - 'AM_PROG_AR' => 1, - 'AM_EXTRA_RECURSIVE_TARGETS' => 1, - 'm4_include' => 1, - 'AM_SILENT_RULES' => 1, - 'AC_INIT' => 1, - 'AC_CANONICAL_SYSTEM' => 1, - '_AM_COND_IF' => 1, - 'include' => 1, - '_m4_warn' => 1, - 'sinclude' => 1, - 'AC_CONFIG_LIBOBJ_DIR' => 1, - 'AH_OUTPUT' => 1, - 'AC_CONFIG_AUX_DIR' => 1, - 'AM_PROG_F77_C_O' => 1, - 'm4_pattern_forbid' => 1, - 'AM_PROG_CC_C_O' => 1, - 'AC_DEFINE_TRACE_LITERAL' => 1, - 'LT_SUPPORTED_TAG' => 1, - 'AC_FC_FREEFORM' => 1, - 'AC_CANONICAL_BUILD' => 1, - 'AM_CONDITIONAL' => 1, - 'AM_PROG_MOC' => 1, - 'AM_AUTOMAKE_VERSION' => 1, - 'AC_SUBST' => 1, - 'AC_FC_PP_DEFINE' => 1, - 'AM_PROG_FC_C_O' => 1, - 'AM_ENABLE_MULTILIB' => 1, - 'm4_sinclude' => 1, - 'AM_XGETTEXT_OPTION' => 1, - 'LT_CONFIG_LTDL_DIR' => 1, - 'AC_FC_PP_SRCEXT' => 1, - 'AC_REQUIRE_AUX_FILE' => 1, - 'AC_CONFIG_FILES' => 1, 'AC_CONFIG_HEADERS' => 1, - 'AM_GNU_GETTEXT' => 1, - 'AC_CONFIG_LINKS' => 1, - 'm4_pattern_allow' => 1, - 'AM_PROG_LIBTOOL' => 1, - '_AM_COND_ENDIF' => 1, + 'AC_FC_PP_DEFINE' => 1, + 'AM_MAKEFILE_INCLUDE' => 1, + 'AM_PROG_AR' => 1, + 'm4_sinclude' => 1, + '_AM_COND_IF' => 1, + 'AM_PATH_GUILE' => 1, + 'AM_ENABLE_MULTILIB' => 1, + 'AC_CONFIG_SUBDIRS' => 1, 'AC_CANONICAL_TARGET' => 1, + 'AC_PROG_LIBTOOL' => 1, + 'AC_CONFIG_FILES' => 1, + 'AC_CONFIG_AUX_DIR' => 1, + 'm4_pattern_forbid' => 1, + 'AM_XGETTEXT_OPTION' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AC_CANONICAL_HOST' => 1, + 'm4_pattern_allow' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'AC_CONFIG_LINKS' => 1, 'AC_SUBST_TRACE' => 1, - 'AM_MAINTAINER_MODE' => 1, - '_AM_MAKEFILE_INCLUDE' => 1, - 'AM_PROG_CXX_C_O' => 1, 'AM_NLS' => 1, - 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, + 'AM_PROG_CC_C_O' => 1, + 'AC_FC_PP_SRCEXT' => 1, + 'AM_EXTRA_RECURSIVE_TARGETS' => 1, + 'AM_PROG_F77_C_O' => 1, + 'AM_PROG_MKDIR_P' => 1, + '_AM_MAKEFILE_INCLUDE' => 1, + 'AM_CONDITIONAL' => 1, + 'AM_PROG_FC_C_O' => 1, + 'AC_CANONICAL_SYSTEM' => 1, + '_LT_AC_TAGCONFIG' => 1, + 'AM_GNU_GETTEXT' => 1, + 'AC_FC_SRCEXT' => 1, + 'AC_INIT' => 1, + '_AM_COND_ELSE' => 1, + '_m4_warn' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'sinclude' => 1, 'LT_INIT' => 1, - 'AM_PATH_GUILE' => 1 + '_AM_SUBST_NOTMAKE' => 1, + 'AC_CANONICAL_BUILD' => 1, + 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, + 'AC_SUBST' => 1, + 'include' => 1, + 'AC_CONFIG_LIBOBJ_DIR' => 1, + 'LT_SUPPORTED_TAG' => 1, + 'AC_DEFINE_TRACE_LITERAL' => 1, + 'AC_FC_FREEFORM' => 1, + 'AM_PROG_LIBTOOL' => 1, + 'AC_LIBSOURCE' => 1, + 'AM_MAINTAINER_MODE' => 1, + 'AM_SILENT_RULES' => 1, + 'AM_PROG_CXX_C_O' => 1, + 'AM_POT_TOOLS' => 1, + 'AM_PROG_MOC' => 1, + '_AM_COND_ENDIF' => 1, + 'AH_OUTPUT' => 1, + 'AC_REQUIRE_AUX_FILE' => 1, + 'm4_include' => 1 } ], 'Autom4te::Request' ) ); diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/config.log b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/config.log index 029d1ae08..dd082acdc 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/config.log +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/config.log @@ -4,13 +4,13 @@ running configure, to aid debugging if configure makes a mistake. It was created by Google C++ Mocking and Testing Frameworks configure 1.8.0, which was generated by GNU Autoconf 2.69. Invocation command line was - $ ./configure --disable-option-checking --prefix=/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf --with-pic --cache-file=/dev/null --srcdir=. + $ ./configure --disable-option-checking --prefix=/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf --with-pic --cache-file=/dev/null --srcdir=. ## --------- ## ## Platform. ## ## --------- ## -hostname = 77eb8ddcf7f9 +hostname = spark-vm_spark uname -m = x86_64 uname -r = 4.15.0-43-generic uname -s = Linux @@ -33,6 +33,9 @@ PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin +PATH: /usr/games +PATH: /usr/local/games +PATH: /home/bts/bin ## ----------- ## @@ -71,13 +74,13 @@ generated by GNU Autoconf 2.69. Invocation command line was CONFIG_COMMANDS = $ ./config.status -on 77eb8ddcf7f9 +on spark-vm_spark -config.status:750: creating Makefile -configure:3587: === configuring in googletest (/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest) -configure:3650: running /bin/bash ./configure --disable-option-checking '--prefix=/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' --cache-file=/dev/null --srcdir=. -configure:3587: === configuring in googlemock (/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock) -configure:3650: running /bin/bash ./configure --disable-option-checking '--prefix=/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' --cache-file=/dev/null --srcdir=. +config.status:751: creating Makefile +configure:3587: === configuring in googletest (/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest) +configure:3650: running /bin/bash ./configure --disable-option-checking '--prefix=/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' --cache-file=/dev/null --srcdir=. +configure:3587: === configuring in googlemock (/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock) +configure:3650: running /bin/bash ./configure --disable-option-checking '--prefix=/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' --cache-file=/dev/null --srcdir=. ## ---------------- ## ## Cache variables. ## @@ -99,15 +102,15 @@ am_cv_make_support_nested_variables=yes ## Output variables. ## ## ----------------- ## -ACLOCAL='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/missing aclocal-1.15' +ACLOCAL='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/missing aclocal-1.15' AMTAR='$${TAR-tar}' AM_BACKSLASH='\' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='1' AM_V='$(V)' -AUTOCONF='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/missing autoconf' -AUTOHEADER='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/missing autoheader' -AUTOMAKE='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/missing automake-1.15' +AUTOCONF='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/missing autoconf' +AUTOHEADER='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/missing autoheader' +AUTOMAKE='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/missing automake-1.15' AWK='mawk' CYGPATH_W='echo' DEFS='-DPACKAGE_NAME=\"Google\ C++\ Mocking\ and\ Testing\ Frameworks\" -DPACKAGE_TARNAME=\"googletest\" -DPACKAGE_VERSION=\"1.8.0\" -DPACKAGE_STRING=\"Google\ C++\ Mocking\ and\ Testing\ Frameworks\ 1.8.0\" -DPACKAGE_BUGREPORT=\"googlemock@googlegroups.com\" -DPACKAGE_URL=\"\" -DPACKAGE=\"googletest\" -DVERSION=\"1.8.0\"' @@ -121,7 +124,7 @@ INSTALL_STRIP_PROGRAM='$(install_sh) -c -s' LIBOBJS='' LIBS='' LTLIBOBJS='' -MAKEINFO='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/missing makeinfo' +MAKEINFO='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/missing makeinfo' MKDIR_P='/bin/mkdir -p' PACKAGE='googletest' PACKAGE_BUGREPORT='googlemock@googlegroups.com' @@ -150,7 +153,7 @@ host_alias='' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' -install_sh='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/install-sh' +install_sh='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' @@ -159,7 +162,7 @@ mandir='${datarootdir}/man' mkdir_p='$(MKDIR_P)' oldincludedir='/usr/include' pdfdir='${docdir}' -prefix='/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' +prefix='/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' program_transform_name='s,x,x,' psdir='${docdir}' runstatedir='${localstatedir}/run' diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/config.status b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/config.status index 74f4c05e0..185ad94bd 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/config.status +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/config.status @@ -417,7 +417,7 @@ $config_files Report bugs to ." -ac_cs_config="'--disable-option-checking' '--prefix=/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' '--cache-file=/dev/null' '--srcdir=.'" +ac_cs_config="'--disable-option-checking' '--prefix=/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' '--cache-file=/dev/null' '--srcdir=.'" ac_cs_version="\ Google C++ Mocking and Testing Frameworks config.status 1.8.0 configured by ./configure, generated by GNU Autoconf 2.69, @@ -427,7 +427,7 @@ Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." -ac_pwd='/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest' +ac_pwd='/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest' srcdir='.' INSTALL='/usr/bin/install -c' MKDIR_P='/bin/mkdir -p' @@ -498,7 +498,7 @@ if $ac_cs_silent; then fi if $ac_cs_recheck; then - set X /bin/bash './configure' '--disable-option-checking' '--prefix=/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' '--cache-file=/dev/null' '--srcdir=.' $ac_configure_extra_args --no-create --no-recursion + set X /bin/bash './configure' '--disable-option-checking' '--prefix=/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' '--cache-file=/dev/null' '--srcdir=.' $ac_configure_extra_args --no-create --no-recursion shift $as_echo "running CONFIG_SHELL=/bin/bash $*" >&6 CONFIG_SHELL='/bin/bash' @@ -600,17 +600,18 @@ S["mkdir_p"]="$(MKDIR_P)" S["MKDIR_P"]="/bin/mkdir -p" S["INSTALL_STRIP_PROGRAM"]="$(install_sh) -c -s" S["STRIP"]="" -S["install_sh"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/install-sh" -S["MAKEINFO"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/missing makei"\ -"nfo" -S["AUTOHEADER"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/missing autoh"\ -"eader" -S["AUTOMAKE"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/missing autom"\ -"ake-1.15" -S["AUTOCONF"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/missing autoc"\ -"onf" -S["ACLOCAL"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/missing acloc"\ -"al-1.15" +S["install_sh"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/inst"\ +"all-sh" +S["MAKEINFO"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/miss"\ +"ing makeinfo" +S["AUTOHEADER"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/miss"\ +"ing autoheader" +S["AUTOMAKE"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/miss"\ +"ing automake-1.15" +S["AUTOCONF"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/miss"\ +"ing autoconf" +S["ACLOCAL"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/build-aux/miss"\ +"ing aclocal-1.15" S["VERSION"]="1.8.0" S["PACKAGE"]="googletest" S["CYGPATH_W"]="echo" @@ -650,7 +651,7 @@ S["libexecdir"]="${exec_prefix}/libexec" S["sbindir"]="${exec_prefix}/sbin" S["bindir"]="${exec_prefix}/bin" S["program_transform_name"]="s,x,x," -S["prefix"]="/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf" +S["prefix"]="/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf" S["exec_prefix"]="${prefix}" S["PACKAGE_URL"]="" S["PACKAGE_BUGREPORT"]="googlemock@googlegroups.com" diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/autom4te.cache/requests b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/autom4te.cache/requests index 3f1e7c81b..8df984385 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/autom4te.cache/requests +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/autom4te.cache/requests @@ -42,188 +42,188 @@ 'configure.ac' ], { - 'AM_RUN_LOG' => 1, - 'AC_LIBTOOL_LANG_F77_CONFIG' => 1, - 'LT_PROG_GCJ' => 1, - 'LT_AC_PROG_GCJ' => 1, - '_LT_CC_BASENAME' => 1, - '_LT_AC_SYS_LIBPATH_AIX' => 1, - 'AC_LIBTOOL_LANG_RC_CONFIG' => 1, - 'AC_LIBTOOL_LANG_C_CONFIG' => 1, - 'AC_LIBTOOL_DLOPEN' => 1, - '_AC_PROG_LIBTOOL' => 1, - 'AM_SET_DEPDIR' => 1, - 'LT_CONFIG_LTDL_DIR' => 1, - 'LT_PATH_NM' => 1, - 'AC_PATH_MAGIC' => 1, - 'AC_LTDL_SYSSEARCHPATH' => 1, - '_LT_AC_LANG_RC_CONFIG' => 1, - 'AC_LIBTOOL_WIN32_DLL' => 1, - 'LT_WITH_LTDL' => 1, - 'AM_SILENT_RULES' => 1, - 'm4_pattern_forbid' => 1, - 'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1, - 'AC_WITH_LTDL' => 1, - 'AC_LIBTOOL_RC' => 1, - 'AC_LIB_LTDL' => 1, - 'LTOPTIONS_VERSION' => 1, - 'AC_ENABLE_SHARED' => 1, - 'LT_AC_PROG_EGREP' => 1, - 'AC_LIBTOOL_F77' => 1, - 'AM_SANITY_CHECK' => 1, - 'LT_OUTPUT' => 1, - 'AC_LIBTOOL_PROG_COMPILER_PIC' => 1, - '_AM_IF_OPTION' => 1, - 'AC_DEFUN_ONCE' => 1, - 'AC_LIBTOOL_OBJDIR' => 1, - 'LTSUGAR_VERSION' => 1, - 'AC_LIBTOOL_PICMODE' => 1, - 'AC_LTDL_SHLIBPATH' => 1, - '_AM_SUBST_NOTMAKE' => 1, - 'AC_LIBLTDL_INSTALLABLE' => 1, - 'AC_LIBTOOL_LANG_CXX_CONFIG' => 1, - 'AM_PROG_LIBTOOL' => 1, - '_LT_LIBOBJ' => 1, - '_AM_SET_OPTIONS' => 1, - '_LT_AC_LANG_F77' => 1, - 'AC_DISABLE_STATIC' => 1, - 'AM_DISABLE_STATIC' => 1, - 'AM_ENABLE_STATIC' => 1, - 'LT_FUNC_DLSYM_USCORE' => 1, - 'AC_PROG_LD' => 1, - 'AM_SET_LEADING_DOT' => 1, - 'LT_SYS_MODULE_PATH' => 1, - '_AM_PROG_TAR' => 1, - 'LT_AC_PROG_RC' => 1, - '_LT_AC_TAGVAR' => 1, - '_LT_AC_TAGCONFIG' => 1, - 'AC_DEPLIBS_CHECK_METHOD' => 1, - 'AC_LTDL_DLSYM_USCORE' => 1, - 'AM_MISSING_HAS_RUN' => 1, - 'LT_INIT' => 1, - 'LTDL_INIT' => 1, - '_LT_WITH_SYSROOT' => 1, - 'AM_DEP_TRACK' => 1, - '_LT_PATH_TOOL_PREFIX' => 1, - 'AM_CONDITIONAL' => 1, - 'AC_LIBTOOL_CXX' => 1, - '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, - 'AC_DISABLE_FAST_INSTALL' => 1, - '_LT_AC_LANG_F77_CONFIG' => 1, - 'AM_PROG_INSTALL_SH' => 1, - 'AC_DISABLE_SHARED' => 1, - 'AM_ENABLE_SHARED' => 1, - '_AC_AM_CONFIG_HEADER_HOOK' => 1, - '_AM_PROG_CC_C_O' => 1, - 'LTDL_CONVENIENCE' => 1, - 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, - 'LTOBSOLETE_VERSION' => 1, - 'LTVERSION_VERSION' => 1, - 'LT_SYS_DLOPEN_DEPLIBS' => 1, - 'AC_LIBTOOL_PROG_LD_SHLIBS' => 1, - '_LT_AC_FILE_LTDLL_C' => 1, - 'AC_PATH_TOOL_PREFIX' => 1, - '_LT_DLL_DEF_P' => 1, - '_LT_PROG_LTMAIN' => 1, - 'LTDL_INSTALLABLE' => 1, + 'AC_LIBTOOL_SYS_LIB_STRIP' => 1, '_LT_AC_LANG_CXX_CONFIG' => 1, - 'LT_SUPPORTED_TAG' => 1, - '_LT_PREPARE_SED_QUOTE_VARS' => 1, - 'LT_SYS_DLSEARCH_PATH' => 1, - 'LT_CMD_MAX_LEN' => 1, - 'm4_include' => 1, - 'AC_PROG_LD_GNU' => 1, - '_AM_CONFIG_MACRO_DIRS' => 1, - '_AM_SET_OPTION' => 1, + 'AC_LIBTOOL_PROG_CC_C_O' => 1, + 'AM_SANITY_CHECK' => 1, + 'AM_MISSING_HAS_RUN' => 1, + 'AC_LTDL_SYMBOL_USCORE' => 1, + 'AC_LIBTOOL_LINKER_OPTION' => 1, + 'LTDL_INIT' => 1, + 'AC_DISABLE_FAST_INSTALL' => 1, 'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1, - 'AC_CONFIG_MACRO_DIR' => 1, - 'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1, + 'AM_AUX_DIR_EXPAND' => 1, + 'AC_LIBTOOL_OBJDIR' => 1, + '_AC_PROG_LIBTOOL' => 1, + 'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1, + 'AC_LTDL_DLSYM_USCORE' => 1, + 'AC_DEPLIBS_CHECK_METHOD' => 1, + '_LT_PROG_LTMAIN' => 1, + '_LT_AC_LANG_F77_CONFIG' => 1, + 'AM_SILENT_RULES' => 1, + '_LT_DLL_DEF_P' => 1, + 'AC_LTDL_SHLIBEXT' => 1, + 'AM_DISABLE_SHARED' => 1, + 'AC_LIBTOOL_GCJ' => 1, + 'AM_DISABLE_STATIC' => 1, + 'AC_LTDL_PREOPEN' => 1, + 'AM_PATH_PYTHON' => 1, + 'AC_PROG_EGREP' => 1, + 'LT_PROG_GCJ' => 1, + 'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1, + 'LT_AC_PROG_EGREP' => 1, + '_LT_AC_SHELL_INIT' => 1, + 'AC_ENABLE_SHARED' => 1, + 'LT_SYS_DLOPEN_SELF' => 1, + 'LT_SYS_DLOPEN_DEPLIBS' => 1, + 'LT_FUNC_DLSYM_USCORE' => 1, + 'AC_PROG_LIBTOOL' => 1, + 'AM_PROG_NM' => 1, + 'LT_PATH_LD' => 1, + 'LT_AC_PROG_RC' => 1, + 'AC_LIBTOOL_COMPILER_OPTION' => 1, + 'LT_INIT' => 1, + '_LT_COMPILER_BOILERPLATE' => 1, + 'AC_ENABLE_FAST_INSTALL' => 1, + '_LT_PROG_FC' => 1, + 'LT_SYS_SYMBOL_USCORE' => 1, + 'AC_DEFUN' => 1, + '_LT_AC_LANG_F77' => 1, + 'LT_PROG_GO' => 1, + 'AC_WITH_LTDL' => 1, + '_LT_PROG_ECHO_BACKSLASH' => 1, + 'AC_LIBTOOL_PICMODE' => 1, + '_LT_AC_TAGCONFIG' => 1, + 'AC_LTDL_OBJDIR' => 1, + 'AC_LIBTOOL_LANG_C_CONFIG' => 1, + 'AC_DISABLE_SHARED' => 1, + 'LT_OUTPUT' => 1, + 'AM_ENABLE_SHARED' => 1, + '_LT_AC_TAGVAR' => 1, + 'AC_LTDL_ENABLE_INSTALL' => 1, + 'LT_PROG_RC' => 1, + '_AM_DEPENDENCIES' => 1, + 'AC_LIBLTDL_CONVENIENCE' => 1, + 'AC_LIBTOOL_FC' => 1, + 'LT_SUPPORTED_TAG' => 1, + 'AC_LIBTOOL_CXX' => 1, + 'AM_ENABLE_STATIC' => 1, + 'AC_LIBTOOL_CONFIG' => 1, + 'AC_LIBTOOL_SETUP' => 1, + 'LT_AC_PROG_GCJ' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AM_MISSING_PROG' => 1, + '_LT_PROG_F77' => 1, + 'AM_PYTHON_CHECK_VERSION' => 1, + 'AM_SET_DEPDIR' => 1, + 'LT_AC_PROG_SED' => 1, + 'LT_SYS_MODULE_PATH' => 1, + '_LT_COMPILER_OPTION' => 1, + 'AC_LIBTOOL_DLOPEN' => 1, + '_LT_AC_PROG_ECHO_BACKSLASH' => 1, + 'm4_pattern_forbid' => 1, + 'LT_WITH_LTDL' => 1, + '_AM_CONFIG_MACRO_DIRS' => 1, + 'AC_DEFUN_ONCE' => 1, + '_LT_AC_LOCK' => 1, + 'AC_LIBTOOL_F77' => 1, 'AU_DEFUN' => 1, '_m4_warn' => 1, - '_LT_PROG_ECHO_BACKSLASH' => 1, - 'AM_SUBST_NOTMAKE' => 1, '_LT_LINKER_BOILERPLATE' => 1, - 'AC_LIBTOOL_GCJ' => 1, - 'AC_PROG_LIBTOOL' => 1, - 'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1, - '_LT_PROG_F77' => 1, - 'AC_LIBTOOL_POSTDEP_PREDEP' => 1, - 'AM_INIT_AUTOMAKE' => 1, - 'AC_LIBTOOL_COMPILER_OPTION' => 1, - 'AM_PATH_PYTHON' => 1, - '_LT_AC_PROG_CXXCPP' => 1, - '_LT_COMPILER_BOILERPLATE' => 1, - '_LT_AC_LANG_C_CONFIG' => 1, - '_LT_AC_LANG_CXX' => 1, - 'AC_LTDL_PREOPEN' => 1, - '_AM_DEPENDENCIES' => 1, - 'AC_LIBTOOL_SYS_LIB_STRIP' => 1, - 'AM_PROG_LD' => 1, - 'ACX_PTHREAD' => 1, - 'LT_LIB_DLLOAD' => 1, - 'AM_PROG_NM' => 1, - 'AC_LTDL_SYMBOL_USCORE' => 1, - '_LT_AC_PROG_ECHO_BACKSLASH' => 1, - 'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1, - '_LT_REQUIRED_DARWIN_CHECKS' => 1, - 'AC_LIBTOOL_SETUP' => 1, - 'LT_AC_PROG_SED' => 1, - '_LT_LINKER_OPTION' => 1, - '_LT_AC_SYS_COMPILER' => 1, - 'AM_AUX_DIR_EXPAND' => 1, - 'AC_LTDL_SHLIBEXT' => 1, - 'AM_PYTHON_CHECK_VERSION' => 1, - 'AM_PROG_INSTALL_STRIP' => 1, - 'AC_LTDL_ENABLE_INSTALL' => 1, - '_LT_PROG_FC' => 1, - 'AC_CHECK_LIBM' => 1, - '_LT_AC_LANG_GCJ_CONFIG' => 1, - 'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1, - 'AC_LIBTOOL_PROG_CC_C_O' => 1, - '_LT_AC_TRY_DLOPEN_SELF' => 1, - 'LT_PROG_RC' => 1, + 'AC_LIBTOOL_PROG_COMPILER_PIC' => 1, + 'LT_PATH_NM' => 1, '_LT_AC_LANG_GCJ' => 1, - '_LT_COMPILER_OPTION' => 1, - 'LT_SYS_DLOPEN_SELF' => 1, - 'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1, - 'AC_ENABLE_STATIC' => 1, + 'LT_SYS_DLSEARCH_PATH' => 1, + 'AC_LIB_LTDL' => 1, + 'AC_CHECK_LIBM' => 1, 'AC_PROG_NM' => 1, - 'LT_PATH_LD' => 1, - '_AM_MANGLE_OPTION' => 1, - 'LT_SYS_MODULE_EXT' => 1, - 'LT_SYS_SYMBOL_USCORE' => 1, - '_AM_AUTOCONF_VERSION' => 1, - 'LT_PROG_GO' => 1, - 'AC_LTDL_DLLIB' => 1, - '_LT_AC_LOCK' => 1, - 'AC_ENABLE_FAST_INSTALL' => 1, - 'LT_LANG' => 1, - '_LT_AC_SHELL_INIT' => 1, - 'AC_LIBTOOL_CONFIG' => 1, - 'AC_LIBLTDL_CONVENIENCE' => 1, - 'LT_FUNC_ARGZ' => 1, - 'AC_LIBTOOL_FC' => 1, - 'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1, - 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, - 'include' => 1, - 'AM_DISABLE_SHARED' => 1, - 'AM_MISSING_PROG' => 1, + '_LT_AC_LANG_CXX' => 1, + 'AC_LIBTOOL_WIN32_DLL' => 1, + 'LTDL_CONVENIENCE' => 1, + 'AC_LIBTOOL_LANG_F77_CONFIG' => 1, + 'AM_SET_LEADING_DOT' => 1, + 'AC_LTDL_SHLIBPATH' => 1, + 'AM_PROG_LD' => 1, + 'AC_CONFIG_MACRO_DIR' => 1, + '_LT_AC_LANG_C_CONFIG' => 1, + '_LT_PREPARE_SED_QUOTE_VARS' => 1, 'AM_MAKE_INCLUDE' => 1, - 'AC_DEFUN' => 1, - 'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1, + 'AC_PATH_TOOL_PREFIX' => 1, + 'AC_ENABLE_STATIC' => 1, + 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, + 'AM_SUBST_NOTMAKE' => 1, + 'AC_PROG_LD' => 1, + 'AC_DISABLE_STATIC' => 1, + 'AC_LIBLTDL_INSTALLABLE' => 1, + 'AC_PROG_LD_GNU' => 1, + '_LT_AC_FILE_LTDLL_C' => 1, + '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'LTSUGAR_VERSION' => 1, + 'm4_include' => 1, + '_AM_SUBST_NOTMAKE' => 1, + 'LTVERSION_VERSION' => 1, + 'AC_LIBTOOL_DLOPEN_SELF' => 1, + 'AM_PROG_INSTALL_SH' => 1, + 'AM_CONDITIONAL' => 1, + 'AC_LIBTOOL_LANG_CXX_CONFIG' => 1, + 'LTDL_INSTALLABLE' => 1, + 'LT_LIB_DLLOAD' => 1, + '_LT_AC_LANG_GCJ_CONFIG' => 1, + '_LT_AC_CHECK_DLFCN' => 1, + 'LTOPTIONS_VERSION' => 1, + '_LTDL_SETUP' => 1, + '_AC_AM_CONFIG_HEADER_HOOK' => 1, + '_AM_AUTOCONF_VERSION' => 1, + 'AC_LIBTOOL_POSTDEP_PREDEP' => 1, 'm4_pattern_allow' => 1, + 'LT_CMD_MAX_LEN' => 1, + '_AM_MANGLE_OPTION' => 1, + '_AM_IF_OPTION' => 1, + 'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1, + '_LT_AC_TRY_DLOPEN_SELF' => 1, + '_LT_LINKER_OPTION' => 1, + '_LT_LIBOBJ' => 1, + 'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1, + 'AM_PROG_INSTALL_STRIP' => 1, + 'AC_LTDL_DLLIB' => 1, + '_AM_PROG_TAR' => 1, + 'LTOBSOLETE_VERSION' => 1, + '_LT_PROG_CXX' => 1, + 'AC_PROG_LD_RELOAD_FLAG' => 1, + '_LT_AC_SYS_LIBPATH_AIX' => 1, + '_AM_PROG_CC_C_O' => 1, + 'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1, + 'AC_LIBTOOL_LANG_RC_CONFIG' => 1, + 'include' => 1, + '_LT_AC_SYS_COMPILER' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'AC_LIBTOOL_RC' => 1, + '_LT_AC_PROG_CXXCPP' => 1, + 'ACX_PTHREAD' => 1, + '_LT_WITH_SYSROOT' => 1, + '_AM_SET_OPTION' => 1, + 'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1, + '_AM_SET_OPTIONS' => 1, + 'AM_RUN_LOG' => 1, + 'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1, + 'LT_SYS_MODULE_EXT' => 1, + 'LT_FUNC_ARGZ' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + '_LT_AC_LANG_RC_CONFIG' => 1, + '_LT_PATH_TOOL_PREFIX' => 1, + 'AC_PATH_MAGIC' => 1, + 'LT_LANG' => 1, + 'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1, + 'AC_LTDL_SYSSEARCHPATH' => 1, + '_LT_CC_BASENAME' => 1, + 'AM_PROG_LIBTOOL' => 1, 'AM_PROG_CC_C_O' => 1, 'LT_LIB_M' => 1, + 'AM_DEP_TRACK' => 1, + '_LT_REQUIRED_DARWIN_CHECKS' => 1, 'AC_CONFIG_MACRO_DIR_TRACE' => 1, - '_LT_AC_CHECK_DLFCN' => 1, - 'AM_AUTOMAKE_VERSION' => 1, - '_LT_PROG_CXX' => 1, - '_LTDL_SETUP' => 1, - 'AC_LIBTOOL_DLOPEN_SELF' => 1, - 'AC_PROG_LD_RELOAD_FLAG' => 1, - 'AC_LTDL_OBJDIR' => 1, - 'AC_LIBTOOL_LINKER_OPTION' => 1, - 'AC_PROG_EGREP' => 1 + 'AC_LIBTOOL_PROG_LD_SHLIBS' => 1 } ], 'Autom4te::Request' ), bless( [ @@ -238,66 +238,66 @@ 'configure.ac' ], { - '_AM_COND_ELSE' => 1, - 'm4_include' => 1, - 'AM_ENABLE_MULTILIB' => 1, - 'AM_MAKEFILE_INCLUDE' => 1, - 'AC_SUBST_TRACE' => 1, - '_AM_COND_ENDIF' => 1, - 'AM_EXTRA_RECURSIVE_TARGETS' => 1, - 'AM_PROG_MOC' => 1, - 'AC_INIT' => 1, - 'LT_SUPPORTED_TAG' => 1, - 'AC_CONFIG_LIBOBJ_DIR' => 1, - 'AC_CANONICAL_BUILD' => 1, - 'AM_PROG_LIBTOOL' => 1, - 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, - 'm4_sinclude' => 1, - 'AM_POT_TOOLS' => 1, - 'AM_PROG_F77_C_O' => 1, - 'AM_XGETTEXT_OPTION' => 1, - 'AM_MAINTAINER_MODE' => 1, - 'AM_PROG_CXX_C_O' => 1, - 'LT_INIT' => 1, - '_m4_warn' => 1, - 'AC_REQUIRE_AUX_FILE' => 1, - 'AM_INIT_AUTOMAKE' => 1, - '_LT_AC_TAGCONFIG' => 1, - 'AC_PROG_LIBTOOL' => 1, - 'LT_CONFIG_LTDL_DIR' => 1, - 'AC_SUBST' => 1, - 'm4_pattern_allow' => 1, - 'AC_CONFIG_FILES' => 1, - 'AC_CANONICAL_HOST' => 1, - 'AC_FC_SRCEXT' => 1, - 'AC_CONFIG_SUBDIRS' => 1, - 'AC_FC_PP_SRCEXT' => 1, - 'AM_PROG_CC_C_O' => 1, - 'AC_CANONICAL_TARGET' => 1, - 'AM_PROG_AR' => 1, - 'include' => 1, - 'sinclude' => 1, - 'AM_CONDITIONAL' => 1, - '_AM_MAKEFILE_INCLUDE' => 1, - 'AC_FC_PP_DEFINE' => 1, - 'AC_DEFINE_TRACE_LITERAL' => 1, - 'm4_pattern_forbid' => 1, - 'AM_SILENT_RULES' => 1, - 'AC_FC_FREEFORM' => 1, - 'AM_PROG_MKDIR_P' => 1, - '_AM_COND_IF' => 1, - 'AH_OUTPUT' => 1, - 'AC_LIBSOURCE' => 1, - '_AM_SUBST_NOTMAKE' => 1, 'AC_CONFIG_LINKS' => 1, - 'AM_PROG_FC_C_O' => 1, - 'AC_CANONICAL_SYSTEM' => 1, 'AM_NLS' => 1, - 'AM_AUTOMAKE_VERSION' => 1, + '_AM_COND_ELSE' => 1, + 'AC_LIBSOURCE' => 1, + 'AM_PROG_F77_C_O' => 1, + 'AC_CANONICAL_HOST' => 1, + 'AC_PROG_LIBTOOL' => 1, + 'AM_CONDITIONAL' => 1, + 'm4_pattern_forbid' => 1, + '_AM_SUBST_NOTMAKE' => 1, + 'AC_SUBST_TRACE' => 1, + 'AC_CONFIG_FILES' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'AC_CANONICAL_BUILD' => 1, + 'AM_XGETTEXT_OPTION' => 1, + 'AM_EXTRA_RECURSIVE_TARGETS' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AM_PROG_MOC' => 1, + 'sinclude' => 1, + 'AC_FC_PP_DEFINE' => 1, + 'm4_include' => 1, + 'AM_POT_TOOLS' => 1, 'AM_PATH_GUILE' => 1, + 'AM_PROG_CXX_C_O' => 1, + 'AC_SUBST' => 1, 'AC_CONFIG_HEADERS' => 1, + 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, + 'LT_INIT' => 1, + 'm4_pattern_allow' => 1, + '_AM_MAKEFILE_INCLUDE' => 1, + 'AM_PROG_LIBTOOL' => 1, + 'AM_MAKEFILE_INCLUDE' => 1, + 'AC_CONFIG_SUBDIRS' => 1, + 'AM_PROG_CC_C_O' => 1, + 'AM_PROG_FC_C_O' => 1, 'AC_CONFIG_AUX_DIR' => 1, - 'AM_GNU_GETTEXT' => 1 + '_m4_warn' => 1, + 'include' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'AC_FC_PP_SRCEXT' => 1, + 'AH_OUTPUT' => 1, + 'AM_ENABLE_MULTILIB' => 1, + 'AM_PROG_MKDIR_P' => 1, + '_LT_AC_TAGCONFIG' => 1, + 'AM_MAINTAINER_MODE' => 1, + 'AM_GNU_GETTEXT' => 1, + 'AC_REQUIRE_AUX_FILE' => 1, + 'm4_sinclude' => 1, + '_AM_COND_ENDIF' => 1, + 'AC_CONFIG_LIBOBJ_DIR' => 1, + 'AC_CANONICAL_TARGET' => 1, + 'LT_SUPPORTED_TAG' => 1, + 'AM_SILENT_RULES' => 1, + 'AC_DEFINE_TRACE_LITERAL' => 1, + 'AC_FC_SRCEXT' => 1, + 'AM_PROG_AR' => 1, + 'AC_INIT' => 1, + '_AM_COND_IF' => 1, + 'AC_CANONICAL_SYSTEM' => 1, + 'AC_FC_FREEFORM' => 1 } ], 'Autom4te::Request' ) ); diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/config.log b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/config.log index 9d61f067a..1f9ee721e 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/config.log +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/config.log @@ -4,13 +4,13 @@ running configure, to aid debugging if configure makes a mistake. It was created by Google C++ Mocking Framework configure 1.8.0, which was generated by GNU Autoconf 2.69. Invocation command line was - $ ./configure --disable-option-checking --prefix=/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf --with-pic --cache-file=/dev/null --srcdir=. + $ ./configure --disable-option-checking --prefix=/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf --with-pic --cache-file=/dev/null --srcdir=. ## --------- ## ## Platform. ## ## --------- ## -hostname = 77eb8ddcf7f9 +hostname = spark-vm_spark uname -m = x86_64 uname -r = 4.15.0-43-generic uname -s = Linux @@ -33,6 +33,9 @@ PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin +PATH: /usr/games +PATH: /usr/local/games +PATH: /home/bts/bin ## ----------- ## @@ -545,7 +548,7 @@ conftest.c:29:22: warning: null argument where non-null required (argument 1) [- pthread_create(0,0,0,0); pthread_cleanup_pop(0); ^~~~~~~~~~~~~~ conftest.c:29:22: warning: null argument where non-null required (argument 3) [-Wnonnull] -/tmp/ccb3XW2P.o: In function `main': +/tmp/ccLRjCzT.o: In function `main': conftest.c:(.text+0x27): undefined reference to `pthread_join' conftest.c:(.text+0x90): undefined reference to `__pthread_register_cancel' conftest.c:(.text+0xa9): undefined reference to `pthread_create' @@ -762,7 +765,7 @@ generated by GNU Autoconf 2.69. Invocation command line was CONFIG_COMMANDS = $ ./config.status -on 77eb8ddcf7f9 +on spark-vm_spark config.status:1171: creating Makefile config.status:1171: creating scripts/gmock-config @@ -894,7 +897,7 @@ lt_cv_truncate_bin='/bin/dd bs=4096 count=1' ## Output variables. ## ## ----------------- ## -ACLOCAL='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/build-aux/missing aclocal-1.15' +ACLOCAL='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/build-aux/missing aclocal-1.15' AMDEPBACKSLASH='\' AMDEP_FALSE='#' AMDEP_TRUE='' @@ -904,9 +907,9 @@ AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='1' AM_V='$(V)' AR='ar' -AUTOCONF='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/build-aux/missing autoconf' -AUTOHEADER='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/build-aux/missing autoheader' -AUTOMAKE='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/build-aux/missing automake-1.15' +AUTOCONF='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/build-aux/missing autoconf' +AUTOHEADER='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/build-aux/missing autoheader' +AUTOMAKE='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/build-aux/missing automake-1.15' AWK='mawk' CC='gcc' CCDEPMODE='depmode=gcc3' @@ -930,7 +933,7 @@ EGREP='/bin/grep -E' EXEEXT='' FGREP='/bin/grep -F' GREP='/bin/grep' -GTEST_CONFIG='/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/../googletest/scripts/gtest-config' +GTEST_CONFIG='/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/../googletest/scripts/gtest-config' GTEST_CPPFLAGS='-I$(top_srcdir)/../googletest/include' GTEST_CXXFLAGS='-g' GTEST_LDFLAGS='' @@ -953,7 +956,7 @@ LIPO='' LN_S='ln -s' LTLIBOBJS='' LT_SYS_LIBRARY_PATH='' -MAKEINFO='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/build-aux/missing makeinfo' +MAKEINFO='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/build-aux/missing makeinfo' MANIFEST_TOOL=':' MKDIR_P='/bin/mkdir -p' NM='/usr/bin/nm -B' @@ -1017,7 +1020,7 @@ host_vendor='pc' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' -install_sh='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/build-aux/install-sh' +install_sh='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/build-aux/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' @@ -1026,7 +1029,7 @@ mandir='${datarootdir}/man' mkdir_p='$(MKDIR_P)' oldincludedir='/usr/include' pdfdir='${docdir}' -prefix='/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' +prefix='/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' program_transform_name='s,x,x,' psdir='${docdir}' runstatedir='${localstatedir}/run' diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/config.status b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/config.status index 20a7ab2ae..ea434d0cf 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/config.status +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/config.status @@ -427,7 +427,7 @@ $config_commands Report bugs to ." -ac_cs_config="'--disable-option-checking' '--prefix=/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' '--cache-file=/dev/null' '--srcdir=.' 'CFLAGS=' 'CXXFLAGS= -g -std=c++11 -DNDEBUG'" +ac_cs_config="'--disable-option-checking' '--prefix=/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' '--cache-file=/dev/null' '--srcdir=.' 'CFLAGS=' 'CXXFLAGS= -g -std=c++11 -DNDEBUG'" ac_cs_version="\ Google C++ Mocking Framework config.status 1.8.0 configured by ./configure, generated by GNU Autoconf 2.69, @@ -437,7 +437,7 @@ Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." -ac_pwd='/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock' +ac_pwd='/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock' srcdir='.' INSTALL='/usr/bin/install -c' MKDIR_P='/bin/mkdir -p' @@ -519,7 +519,7 @@ if $ac_cs_silent; then fi if $ac_cs_recheck; then - set X /bin/bash './configure' '--disable-option-checking' '--prefix=/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' '--cache-file=/dev/null' '--srcdir=.' 'CFLAGS=' 'CXXFLAGS= -g -std=c++11 -DNDEBUG' $ac_configure_extra_args --no-create --no-recursion + set X /bin/bash './configure' '--disable-option-checking' '--prefix=/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' '--cache-file=/dev/null' '--srcdir=.' 'CFLAGS=' 'CXXFLAGS= -g -std=c++11 -DNDEBUG' $ac_configure_extra_args --no-create --no-recursion shift $as_echo "running CONFIG_SHELL=/bin/bash $*" >&6 CONFIG_SHELL='/bin/bash' @@ -679,7 +679,7 @@ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' finish_eval='' hardcode_into_libs='yes' sys_lib_search_path_spec='/usr/lib/gcc/x86_64-linux-gnu/7 /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib ' -configure_time_dlsearch_path='/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu ' +configure_time_dlsearch_path='/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /lib32 /usr/lib32 ' configure_time_lt_sys_library_path='' hardcode_action='immediate' enable_dlopen='unknown' @@ -881,8 +881,8 @@ S["GTEST_LIBS"]="$(top_builddir)/../googletest/lib/libgtest.la" S["GTEST_LDFLAGS"]="" S["GTEST_CXXFLAGS"]="-g" S["GTEST_CPPFLAGS"]="-I$(top_srcdir)/../googletest/include" -S["GTEST_CONFIG"]="/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/../googletest/scripts"\ -"/gtest-config" +S["GTEST_CONFIG"]="/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/../googletes"\ +"t/scripts/gtest-config" S["HAVE_PTHREADS_FALSE"]="#" S["HAVE_PTHREADS_TRUE"]="" S["PTHREAD_CFLAGS"]="-pthread" @@ -961,18 +961,18 @@ S["mkdir_p"]="$(MKDIR_P)" S["MKDIR_P"]="/bin/mkdir -p" S["INSTALL_STRIP_PROGRAM"]="$(install_sh) -c -s" S["STRIP"]="strip" -S["install_sh"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/build-aux/in"\ -"stall-sh" -S["MAKEINFO"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/build-aux/mi"\ -"ssing makeinfo" -S["AUTOHEADER"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/build-aux/mi"\ -"ssing autoheader" -S["AUTOMAKE"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/build-aux/mi"\ -"ssing automake-1.15" -S["AUTOCONF"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/build-aux/mi"\ -"ssing autoconf" -S["ACLOCAL"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/build-aux/mi"\ -"ssing aclocal-1.15" +S["install_sh"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/bui"\ +"ld-aux/install-sh" +S["MAKEINFO"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/bui"\ +"ld-aux/missing makeinfo" +S["AUTOHEADER"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/bui"\ +"ld-aux/missing autoheader" +S["AUTOMAKE"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/bui"\ +"ld-aux/missing automake-1.15" +S["AUTOCONF"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/bui"\ +"ld-aux/missing autoconf" +S["ACLOCAL"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/bui"\ +"ld-aux/missing aclocal-1.15" S["VERSION"]="1.8.0" S["PACKAGE"]="gmock" S["CYGPATH_W"]="echo" @@ -1009,7 +1009,7 @@ S["libexecdir"]="${exec_prefix}/libexec" S["sbindir"]="${exec_prefix}/sbin" S["bindir"]="${exec_prefix}/bin" S["program_transform_name"]="s,x,x," -S["prefix"]="/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf" +S["prefix"]="/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf" S["exec_prefix"]="${prefix}" S["PACKAGE_URL"]="" S["PACKAGE_BUGREPORT"]="googlemock@googlegroups.com" diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/libtool b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/libtool index 9bd719bb0..3459172ea 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/libtool +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/libtool @@ -284,7 +284,7 @@ hardcode_into_libs=yes sys_lib_search_path_spec="/usr/lib/gcc/x86_64-linux-gnu/7 /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib " # Detected run-time system search path for libraries. -sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu " +sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /lib32 /usr/lib32 " # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. configure_time_lt_sys_library_path="" diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/scripts/gmock-config b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/scripts/gmock-config index 0d4973e38..980b7aaeb 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/scripts/gmock-config +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/scripts/gmock-config @@ -193,7 +193,7 @@ done # These have defaults filled in by the configure script but can also be # overridden by environment variables or command line parameters. -prefix="${GMOCK_PREFIX:-/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf}" +prefix="${GMOCK_PREFIX:-/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf}" exec_prefix="${GMOCK_EXEC_PREFIX:-${prefix}}" libdir="${GMOCK_LIBDIR:-${exec_prefix}/lib}" includedir="${GMOCK_INCLUDEDIR:-${prefix}/include}" @@ -227,7 +227,7 @@ if test "${this_bindir}" = "${this_bindir%${bindir}}"; then gmock_cxxflags="" # Directly invoke the gtest-config script used during the build process. - gtest_config="/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/../googletest/scripts/gtest-config" + gtest_config="/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googlemock/../googletest/scripts/gtest-config" else # We're using an installed gmock, although it may be staged under some # prefix. Assume (as our own libraries do) that we can resolve the prefix, diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/autom4te.cache/requests b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/autom4te.cache/requests index bc0fc0ad5..3b9f7bf35 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/autom4te.cache/requests +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/autom4te.cache/requests @@ -42,188 +42,188 @@ 'configure.ac' ], { - '_LT_AC_LANG_GCJ' => 1, - 'AC_LIBTOOL_PICMODE' => 1, - 'AC_LIBTOOL_DLOPEN' => 1, - '_LT_AC_LANG_CXX' => 1, - 'AM_MAKE_INCLUDE' => 1, - 'LT_INIT' => 1, - 'AC_PROG_EGREP' => 1, - 'AC_PROG_NM' => 1, - 'LT_LANG' => 1, - '_LT_AC_LANG_F77_CONFIG' => 1, - '_LT_AC_TRY_DLOPEN_SELF' => 1, - 'AC_LIBTOOL_LANG_CXX_CONFIG' => 1, - 'AC_LTDL_SYMBOL_USCORE' => 1, - 'LT_PROG_GO' => 1, - 'm4_pattern_forbid' => 1, - 'LT_AC_PROG_RC' => 1, - 'AC_LTDL_DLLIB' => 1, - 'AC_PATH_MAGIC' => 1, - 'AC_LIBTOOL_OBJDIR' => 1, - 'AC_LIBTOOL_LANG_RC_CONFIG' => 1, - 'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1, - '_AM_DEPENDENCIES' => 1, - 'AC_LIBTOOL_LANG_C_CONFIG' => 1, - 'ACX_PTHREAD' => 1, - 'AM_CONDITIONAL' => 1, - 'AC_ENABLE_FAST_INSTALL' => 1, - '_LT_AC_SYS_LIBPATH_AIX' => 1, - 'AC_LIBTOOL_POSTDEP_PREDEP' => 1, - 'LTSUGAR_VERSION' => 1, - 'AC_CONFIG_MACRO_DIR' => 1, - 'm4_include' => 1, - 'AM_MISSING_HAS_RUN' => 1, - 'LT_AC_PROG_EGREP' => 1, - 'include' => 1, - '_LT_AC_LOCK' => 1, - '_LT_LIBOBJ' => 1, - '_LT_LINKER_BOILERPLATE' => 1, - '_LT_PROG_FC' => 1, - '_LT_AC_CHECK_DLFCN' => 1, - '_LT_COMPILER_BOILERPLATE' => 1, - '_AC_PROG_LIBTOOL' => 1, - 'AC_LIBTOOL_DLOPEN_SELF' => 1, - 'LT_SYS_DLOPEN_SELF' => 1, - 'LTVERSION_VERSION' => 1, - 'AC_LTDL_SHLIBEXT' => 1, - '_LT_AC_TAGCONFIG' => 1, - 'LTOBSOLETE_VERSION' => 1, - 'AC_LIBTOOL_CXX' => 1, - '_AM_AUTOCONF_VERSION' => 1, - 'AC_CHECK_LIBM' => 1, - 'LTDL_CONVENIENCE' => 1, - 'LT_PROG_RC' => 1, - 'AM_RUN_LOG' => 1, - 'LT_SYS_SYMBOL_USCORE' => 1, - '_AM_SET_OPTION' => 1, - 'AC_LTDL_ENABLE_INSTALL' => 1, - 'AM_ENABLE_SHARED' => 1, - 'AC_LTDL_DLSYM_USCORE' => 1, - 'AM_AUTOMAKE_VERSION' => 1, - 'AM_PROG_LD' => 1, - '_LT_AC_LANG_C_CONFIG' => 1, - 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, - 'AC_LIBTOOL_WIN32_DLL' => 1, - 'LTOPTIONS_VERSION' => 1, - 'AM_DISABLE_SHARED' => 1, - 'LT_OUTPUT' => 1, - '_LT_LINKER_OPTION' => 1, - 'AC_LIBTOOL_F77' => 1, - '_LT_AC_PROG_CXXCPP' => 1, - 'AM_SANITY_CHECK' => 1, - 'AC_CONFIG_MACRO_DIR_TRACE' => 1, - 'AC_LTDL_PREOPEN' => 1, - '_LT_AC_SHELL_INIT' => 1, - 'LT_CONFIG_LTDL_DIR' => 1, - 'AC_LIB_LTDL' => 1, - '_AM_CONFIG_MACRO_DIRS' => 1, - 'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1, - '_LT_AC_LANG_RC_CONFIG' => 1, - 'AC_DISABLE_SHARED' => 1, - '_LT_WITH_SYSROOT' => 1, - 'LT_PATH_LD' => 1, - 'LT_SYS_DLSEARCH_PATH' => 1, - 'AC_DEFUN_ONCE' => 1, - 'LT_LIB_M' => 1, - '_LT_AC_LANG_CXX_CONFIG' => 1, - 'AC_LIBTOOL_COMPILER_OPTION' => 1, - 'AC_LIBLTDL_INSTALLABLE' => 1, - 'AC_DEPLIBS_CHECK_METHOD' => 1, - '_LT_COMPILER_OPTION' => 1, - 'LT_CMD_MAX_LEN' => 1, - 'AM_ENABLE_STATIC' => 1, - '_AC_AM_CONFIG_HEADER_HOOK' => 1, - 'LTDL_INIT' => 1, - 'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1, - 'AC_LIBTOOL_SYS_LIB_STRIP' => 1, - 'LT_WITH_LTDL' => 1, - 'AC_LIBTOOL_PROG_COMPILER_PIC' => 1, - 'LT_SUPPORTED_TAG' => 1, - 'AC_PROG_LD' => 1, - '_LTDL_SETUP' => 1, - 'AC_PROG_LD_RELOAD_FLAG' => 1, - 'AC_PROG_LD_GNU' => 1, 'LT_AC_PROG_SED' => 1, - '_m4_warn' => 1, - 'AM_DISABLE_STATIC' => 1, - '_LT_AC_LANG_F77' => 1, - '_LT_AC_FILE_LTDLL_C' => 1, - '_LT_PROG_CXX' => 1, - '_LT_PROG_F77' => 1, - '_LT_CC_BASENAME' => 1, - 'AM_PROG_LIBTOOL' => 1, - 'AM_MISSING_PROG' => 1, - 'AU_DEFUN' => 1, - '_LT_PROG_ECHO_BACKSLASH' => 1, - 'LT_AC_PROG_GCJ' => 1, - 'AC_PROG_LIBTOOL' => 1, - 'AC_WITH_LTDL' => 1, - 'LT_FUNC_DLSYM_USCORE' => 1, - '_AM_SET_OPTIONS' => 1, - 'LT_PATH_NM' => 1, - 'AC_LIBTOOL_LANG_F77_CONFIG' => 1, - '_LT_PATH_TOOL_PREFIX' => 1, - 'AC_LIBTOOL_LINKER_OPTION' => 1, - 'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1, - 'AC_LIBTOOL_RC' => 1, - '_LT_DLL_DEF_P' => 1, - 'AM_DEP_TRACK' => 1, - 'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1, - 'LT_SYS_MODULE_EXT' => 1, - '_AM_SUBST_NOTMAKE' => 1, - 'AC_LIBTOOL_PROG_LD_SHLIBS' => 1, - 'AM_SET_DEPDIR' => 1, - 'LT_LIB_DLLOAD' => 1, + '_AM_SET_OPTION' => 1, + 'AC_PATH_MAGIC' => 1, 'AC_LTDL_OBJDIR' => 1, - 'AM_AUX_DIR_EXPAND' => 1, - 'AM_PROG_INSTALL_SH' => 1, - 'LT_FUNC_ARGZ' => 1, - 'LT_SYS_DLOPEN_DEPLIBS' => 1, - 'AC_ENABLE_SHARED' => 1, - 'AC_LIBTOOL_CONFIG' => 1, - 'AC_LIBTOOL_FC' => 1, - '_AM_PROG_CC_C_O' => 1, - 'AC_LIBTOOL_SETUP' => 1, - 'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1, - 'AM_PROG_INSTALL_STRIP' => 1, - 'AC_PATH_TOOL_PREFIX' => 1, - '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'AM_RUN_LOG' => 1, + 'AC_LIBLTDL_INSTALLABLE' => 1, + '_LT_AC_PROG_ECHO_BACKSLASH' => 1, + 'AC_LTDL_SHLIBPATH' => 1, + '_AM_DEPENDENCIES' => 1, + '_LT_LINKER_BOILERPLATE' => 1, + 'LTOPTIONS_VERSION' => 1, + 'AC_DISABLE_FAST_INSTALL' => 1, + 'LT_AC_PROG_EGREP' => 1, + 'LTDL_INIT' => 1, + '_LT_WITH_SYSROOT' => 1, + 'm4_pattern_forbid' => 1, + 'AC_LIBTOOL_DLOPEN_SELF' => 1, '_LT_REQUIRED_DARWIN_CHECKS' => 1, - '_LT_AC_LANG_GCJ_CONFIG' => 1, - 'LT_PROG_GCJ' => 1, - 'AM_PROG_CC_C_O' => 1, - 'AM_PROG_NM' => 1, + 'AM_DEP_TRACK' => 1, 'AC_LIBTOOL_PROG_CC_C_O' => 1, 'AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, - 'AC_LTDL_SHLIBPATH' => 1, - 'AM_SUBST_NOTMAKE' => 1, - 'AC_LIBLTDL_CONVENIENCE' => 1, - 'LTDL_INSTALLABLE' => 1, - 'AC_DEFUN' => 1, - '_AM_PROG_TAR' => 1, 'AM_PYTHON_CHECK_VERSION' => 1, - 'm4_pattern_allow' => 1, - 'AC_LIBTOOL_GCJ' => 1, - '_AM_MANGLE_OPTION' => 1, - '_LT_AC_SYS_COMPILER' => 1, - 'LT_SYS_MODULE_PATH' => 1, - 'AM_PATH_PYTHON' => 1, - 'AC_DISABLE_FAST_INSTALL' => 1, - 'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1, - 'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1, - '_LT_PROG_LTMAIN' => 1, - 'AM_SILENT_RULES' => 1, - '_LT_AC_PROG_ECHO_BACKSLASH' => 1, - 'AC_DISABLE_STATIC' => 1, + 'LT_WITH_LTDL' => 1, + 'AC_LIBTOOL_F77' => 1, '_LT_AC_TAGVAR' => 1, - 'AC_LTDL_SYSSEARCHPATH' => 1, - 'AC_ENABLE_STATIC' => 1, - '_AM_IF_OPTION' => 1, - 'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1, + '_AC_PROG_LIBTOOL' => 1, + 'AC_LIBTOOL_PROG_LD_SHLIBS' => 1, + 'AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE' => 1, + 'AC_LIBTOOL_LANG_F77_CONFIG' => 1, + 'AM_PROG_INSTALL_SH' => 1, + 'include' => 1, + 'LT_PATH_NM' => 1, + 'AC_LIB_LTDL' => 1, + 'LT_PATH_LD' => 1, + 'AC_LIBTOOL_PICMODE' => 1, + 'AC_CHECK_LIBM' => 1, + 'AC_ENABLE_SHARED' => 1, + 'LT_SYS_DLOPEN_DEPLIBS' => 1, + 'LT_LIB_DLLOAD' => 1, + 'AM_ENABLE_SHARED' => 1, + '_LT_AC_FILE_LTDLL_C' => 1, + 'LT_SYS_SYMBOL_USCORE' => 1, + 'AC_LTDL_ENABLE_INSTALL' => 1, + 'AC_DISABLE_STATIC' => 1, + 'LTOBSOLETE_VERSION' => 1, 'AM_INIT_AUTOMAKE' => 1, + '_AM_PROG_TAR' => 1, + 'AM_MAKE_INCLUDE' => 1, + 'LT_LIB_M' => 1, + '_AM_MANGLE_OPTION' => 1, + 'AM_CONDITIONAL' => 1, + 'AC_LTDL_SYSSEARCHPATH' => 1, + 'AC_LIBTOOL_LANG_GCJ_CONFIG' => 1, + 'AU_DEFUN' => 1, + 'AC_LTDL_SHLIBEXT' => 1, + '_LT_PROG_LTMAIN' => 1, + 'AC_PROG_LD' => 1, + 'AC_LIBTOOL_CONFIG' => 1, + '_LT_AC_LANG_C_CONFIG' => 1, + '_LT_PROG_FC' => 1, + '_LT_AC_LANG_CXX_CONFIG' => 1, + '_LT_LINKER_OPTION' => 1, + 'LT_PROG_GO' => 1, + '_AM_PROG_CC_C_O' => 1, + 'AM_SET_CURRENT_AUTOMAKE_VERSION' => 1, + '_LT_PROG_ECHO_BACKSLASH' => 1, + '_LT_AC_LANG_F77' => 1, + '_LT_AC_SHELL_INIT' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'AC_DEPLIBS_CHECK_METHOD' => 1, + 'AC_LIBTOOL_RC' => 1, + 'AC_PROG_LIBTOOL' => 1, + '_LT_PROG_CXX' => 1, + 'AC_LIBTOOL_LANG_CXX_CONFIG' => 1, + 'LT_SYS_MODULE_PATH' => 1, + 'LT_AC_PROG_GCJ' => 1, + 'AM_ENABLE_STATIC' => 1, + 'LTSUGAR_VERSION' => 1, + 'AC_ENABLE_FAST_INSTALL' => 1, + 'LT_AC_PROG_RC' => 1, + 'AC_LIBTOOL_SYS_DYNAMIC_LINKER' => 1, + 'LTDL_INSTALLABLE' => 1, + 'LT_CMD_MAX_LEN' => 1, + 'AC_ENABLE_STATIC' => 1, + 'AM_PROG_LD' => 1, + 'AM_SUBST_NOTMAKE' => 1, + 'AM_PROG_LIBTOOL' => 1, + '_LT_PATH_TOOL_PREFIX' => 1, + 'AC_LIBTOOL_WIN32_DLL' => 1, + 'AC_LIBTOOL_PROG_COMPILER_NO_RTTI' => 1, + 'LT_SYS_DLSEARCH_PATH' => 1, + '_LT_AC_SYS_COMPILER' => 1, + 'AC_PROG_LD_GNU' => 1, + '_AM_AUTOCONF_VERSION' => 1, + 'm4_pattern_allow' => 1, + 'AM_PROG_INSTALL_STRIP' => 1, + 'AC_WITH_LTDL' => 1, + '_LT_COMPILER_OPTION' => 1, + 'AC_DEFUN' => 1, + 'LT_PROG_GCJ' => 1, + 'AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH' => 1, + 'LT_PROG_RC' => 1, + '_AM_OUTPUT_DEPENDENCY_COMMANDS' => 1, + 'AC_LIBTOOL_DLOPEN' => 1, + 'AC_LIBTOOL_POSTDEP_PREDEP' => 1, + 'AC_LIBTOOL_SYS_LIB_STRIP' => 1, + 'AM_PROG_NM' => 1, + '_AM_CONFIG_MACRO_DIRS' => 1, + 'AC_LIBTOOL_OBJDIR' => 1, + 'AC_LTDL_DLLIB' => 1, + 'LTDL_CONVENIENCE' => 1, + '_LT_CC_BASENAME' => 1, + 'AM_MISSING_PROG' => 1, + 'AM_SILENT_RULES' => 1, + 'AC_LTDL_PREOPEN' => 1, + '_LT_AC_LANG_F77_CONFIG' => 1, + 'AC_LIBTOOL_SYS_HARD_LINK_LOCKS' => 1, + 'AC_LIBTOOL_FC' => 1, + 'AC_LTDL_DLSYM_USCORE' => 1, + 'LT_SYS_DLOPEN_SELF' => 1, + 'LT_FUNC_ARGZ' => 1, + '_AM_SUBST_NOTMAKE' => 1, + '_LT_AC_PROG_CXXCPP' => 1, + 'LT_LANG' => 1, + 'AM_SET_DEPDIR' => 1, + 'AM_PROG_CC_C_O' => 1, + '_LT_AC_SYS_LIBPATH_AIX' => 1, + 'AC_LIBTOOL_CXX' => 1, + '_LT_AC_CHECK_DLFCN' => 1, + 'LT_OUTPUT' => 1, + 'AM_SANITY_CHECK' => 1, + 'AM_PATH_PYTHON' => 1, + '_LT_AC_TAGCONFIG' => 1, + 'AC_PATH_TOOL_PREFIX' => 1, + 'AC_PROG_LD_RELOAD_FLAG' => 1, + 'AM_AUX_DIR_EXPAND' => 1, + 'AM_DISABLE_SHARED' => 1, + 'AM_MISSING_HAS_RUN' => 1, + 'AC_LIBTOOL_LINKER_OPTION' => 1, + 'AC_LIBLTDL_CONVENIENCE' => 1, + 'AC_LIBTOOL_PROG_COMPILER_PIC' => 1, + 'LT_INIT' => 1, + 'AC_LIBTOOL_SETUP' => 1, + 'AC_LIBTOOL_GCJ' => 1, + '_LT_LIBOBJ' => 1, + 'LT_SYS_MODULE_EXT' => 1, + 'AC_LTDL_SYMBOL_USCORE' => 1, + 'LT_SUPPORTED_TAG' => 1, + '_LT_AC_LANG_GCJ_CONFIG' => 1, + 'ACX_PTHREAD' => 1, 'AM_SET_LEADING_DOT' => 1, - '_LT_PREPARE_SED_QUOTE_VARS' => 1 + '_LT_AC_LOCK' => 1, + 'AC_LIBTOOL_LANG_RC_CONFIG' => 1, + '_LT_DLL_DEF_P' => 1, + 'm4_include' => 1, + 'AC_DEFUN_ONCE' => 1, + 'AC_LIBTOOL_LANG_C_CONFIG' => 1, + '_LT_AC_TRY_DLOPEN_SELF' => 1, + '_LT_PROG_F77' => 1, + 'AC_LIBTOOL_SYS_MAX_CMD_LEN' => 1, + 'AC_LTDL_SYS_DLOPEN_DEPLIBS' => 1, + 'AC_LIBTOOL_COMPILER_OPTION' => 1, + '_LT_COMPILER_BOILERPLATE' => 1, + '_LT_AC_LANG_GCJ' => 1, + 'AM_DISABLE_STATIC' => 1, + 'LT_FUNC_DLSYM_USCORE' => 1, + '_LT_AC_LANG_RC_CONFIG' => 1, + 'AC_CONFIG_MACRO_DIR' => 1, + 'AC_PROG_NM' => 1, + 'AC_DISABLE_SHARED' => 1, + '_LTDL_SETUP' => 1, + 'LTVERSION_VERSION' => 1, + '_LT_AC_LANG_CXX' => 1, + '_AM_SET_OPTIONS' => 1, + 'AC_PROG_EGREP' => 1, + '_AC_AM_CONFIG_HEADER_HOOK' => 1, + 'AC_CONFIG_MACRO_DIR_TRACE' => 1, + '_LT_PREPARE_SED_QUOTE_VARS' => 1, + '_m4_warn' => 1, + 'AC_LIBTOOL_SYS_OLD_ARCHIVE' => 1, + '_AM_IF_OPTION' => 1, + 'LT_CONFIG_LTDL_DIR' => 1 } ], 'Autom4te::Request' ), bless( [ @@ -238,66 +238,66 @@ 'configure.ac' ], { - 'AM_NLS' => 1, - 'LT_CONFIG_LTDL_DIR' => 1, - '_AM_COND_ELSE' => 1, - 'AC_CANONICAL_SYSTEM' => 1, - 'include' => 1, - 'AC_PROG_LIBTOOL' => 1, - 'AH_OUTPUT' => 1, - 'AM_ENABLE_MULTILIB' => 1, - 'AC_INIT' => 1, - 'AM_PROG_CXX_C_O' => 1, - 'AC_FC_FREEFORM' => 1, - 'm4_pattern_allow' => 1, - '_AM_COND_ENDIF' => 1, - 'AC_CONFIG_LINKS' => 1, - 'AC_REQUIRE_AUX_FILE' => 1, - 'AC_CONFIG_LIBOBJ_DIR' => 1, - 'AM_PATH_GUILE' => 1, - 'AM_PROG_FC_C_O' => 1, - 'AM_SILENT_RULES' => 1, - 'AC_LIBSOURCE' => 1, - 'AC_FC_PP_DEFINE' => 1, - 'AM_MAKEFILE_INCLUDE' => 1, - '_AM_MAKEFILE_INCLUDE' => 1, - 'AC_FC_PP_SRCEXT' => 1, - 'AC_SUBST' => 1, - 'AC_SUBST_TRACE' => 1, - 'AM_INIT_AUTOMAKE' => 1, - '_LT_AC_TAGCONFIG' => 1, - 'AC_CONFIG_AUX_DIR' => 1, - 'AC_CANONICAL_BUILD' => 1, - 'AC_CONFIG_HEADERS' => 1, - 'AC_CANONICAL_HOST' => 1, - '_AM_SUBST_NOTMAKE' => 1, - 'AM_POT_TOOLS' => 1, - 'AM_XGETTEXT_OPTION' => 1, - 'LT_SUPPORTED_TAG' => 1, - 'AC_CONFIG_FILES' => 1, - 'AM_EXTRA_RECURSIVE_TARGETS' => 1, - 'sinclude' => 1, 'LT_INIT' => 1, - 'AC_FC_SRCEXT' => 1, - 'm4_pattern_forbid' => 1, - 'AM_PROG_MKDIR_P' => 1, - 'm4_sinclude' => 1, - 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, - '_m4_warn' => 1, - 'AM_AUTOMAKE_VERSION' => 1, - 'AM_PROG_CC_C_O' => 1, - 'AC_DEFINE_TRACE_LITERAL' => 1, - 'AM_PROG_MOC' => 1, + 'AH_OUTPUT' => 1, 'AM_PROG_AR' => 1, + 'AM_INIT_AUTOMAKE' => 1, + 'AM_POT_TOOLS' => 1, + 'LT_CONFIG_LTDL_DIR' => 1, + 'AC_CONFIG_HEADERS' => 1, + 'AC_FC_PP_DEFINE' => 1, + '_m4_warn' => 1, + 'AC_SUBST' => 1, + 'AM_PROG_CXX_C_O' => 1, + 'AM_ENABLE_MULTILIB' => 1, + 'AC_REQUIRE_AUX_FILE' => 1, 'AM_MAINTAINER_MODE' => 1, - 'AC_CONFIG_SUBDIRS' => 1, - 'AM_GNU_GETTEXT' => 1, - 'AM_CONDITIONAL' => 1, - '_AM_COND_IF' => 1, - 'AC_CANONICAL_TARGET' => 1, + 'AM_PROG_MOC' => 1, 'AM_PROG_LIBTOOL' => 1, + 'AM_GNU_GETTEXT' => 1, + '_LT_AC_TAGCONFIG' => 1, + 'AC_FC_FREEFORM' => 1, + 'AC_FC_SRCEXT' => 1, + 'include' => 1, + 'AC_CONFIG_LIBOBJ_DIR' => 1, + 'AM_EXTRA_RECURSIVE_TARGETS' => 1, + 'AC_FC_PP_SRCEXT' => 1, + 'AM_PROG_MKDIR_P' => 1, + 'AM_PROG_FC_C_O' => 1, + 'AC_CANONICAL_TARGET' => 1, + 'AM_PROG_CC_C_O' => 1, + 'AC_INIT' => 1, + 'AC_SUBST_TRACE' => 1, + 'sinclude' => 1, + '_AM_COND_ENDIF' => 1, + 'AC_PROG_LIBTOOL' => 1, + 'AC_CANONICAL_SYSTEM' => 1, + '_AM_SUBST_NOTMAKE' => 1, + 'AC_CONFIG_AUX_DIR' => 1, + 'm4_sinclude' => 1, + 'AC_CONFIG_FILES' => 1, + 'AM_AUTOMAKE_VERSION' => 1, + 'AM_NLS' => 1, + 'AM_MAKEFILE_INCLUDE' => 1, + 'AC_CANONICAL_HOST' => 1, + 'AC_DEFINE_TRACE_LITERAL' => 1, + '_AM_COND_IF' => 1, + 'm4_pattern_forbid' => 1, + 'AM_SILENT_RULES' => 1, + '_AM_COND_ELSE' => 1, + '_AM_MAKEFILE_INCLUDE' => 1, + 'AC_CANONICAL_BUILD' => 1, + 'AC_CONFIG_SUBDIRS' => 1, 'm4_include' => 1, - 'AM_PROG_F77_C_O' => 1 + 'AM_GNU_GETTEXT_INTL_SUBDIR' => 1, + 'AM_XGETTEXT_OPTION' => 1, + 'AM_PROG_F77_C_O' => 1, + 'AC_CONFIG_LINKS' => 1, + 'AM_CONDITIONAL' => 1, + 'AM_PATH_GUILE' => 1, + 'm4_pattern_allow' => 1, + 'AC_LIBSOURCE' => 1, + 'LT_SUPPORTED_TAG' => 1 } ], 'Autom4te::Request' ) ); diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/config.log b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/config.log index c58d4a3c1..91f3b6236 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/config.log +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/config.log @@ -4,13 +4,13 @@ running configure, to aid debugging if configure makes a mistake. It was created by Google C++ Testing Framework configure 1.8.0, which was generated by GNU Autoconf 2.69. Invocation command line was - $ ./configure --disable-option-checking --prefix=/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf --with-pic --cache-file=/dev/null --srcdir=. + $ ./configure --disable-option-checking --prefix=/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf --with-pic --cache-file=/dev/null --srcdir=. ## --------- ## ## Platform. ## ## --------- ## -hostname = 77eb8ddcf7f9 +hostname = spark-vm_spark uname -m = x86_64 uname -r = 4.15.0-43-generic uname -s = Linux @@ -33,6 +33,9 @@ PATH: /usr/sbin PATH: /usr/bin PATH: /sbin PATH: /bin +PATH: /usr/games +PATH: /usr/local/games +PATH: /home/bts/bin ## ----------- ## @@ -545,7 +548,7 @@ conftest.c:29:22: warning: null argument where non-null required (argument 1) [- pthread_create(0,0,0,0); pthread_cleanup_pop(0); ^~~~~~~~~~~~~~ conftest.c:29:22: warning: null argument where non-null required (argument 3) [-Wnonnull] -/tmp/ccGlfYAB.o: In function `main': +/tmp/cc0pg37V.o: In function `main': conftest.c:(.text+0x27): undefined reference to `pthread_join' conftest.c:(.text+0x90): undefined reference to `__pthread_register_cancel' conftest.c:(.text+0xa9): undefined reference to `pthread_create' @@ -760,7 +763,7 @@ generated by GNU Autoconf 2.69. Invocation command line was CONFIG_COMMANDS = $ ./config.status -on 77eb8ddcf7f9 +on spark-vm_spark config.status:1164: creating Makefile config.status:1164: creating scripts/gtest-config @@ -880,7 +883,7 @@ lt_cv_truncate_bin='/bin/dd bs=4096 count=1' ## Output variables. ## ## ----------------- ## -ACLOCAL='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/build-aux/missing aclocal-1.15' +ACLOCAL='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/build-aux/missing aclocal-1.15' AMDEPBACKSLASH='\' AMDEP_FALSE='#' AMDEP_TRUE='' @@ -890,9 +893,9 @@ AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' AM_DEFAULT_VERBOSITY='1' AM_V='$(V)' AR='ar' -AUTOCONF='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/build-aux/missing autoconf' -AUTOHEADER='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/build-aux/missing autoheader' -AUTOMAKE='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/build-aux/missing automake-1.15' +AUTOCONF='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/build-aux/missing autoconf' +AUTOHEADER='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/build-aux/missing autoheader' +AUTOMAKE='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/build-aux/missing automake-1.15' AWK='mawk' CC='gcc' CCDEPMODE='depmode=gcc3' @@ -933,7 +936,7 @@ LIPO='' LN_S='ln -s' LTLIBOBJS='' LT_SYS_LIBRARY_PATH='' -MAKEINFO='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/build-aux/missing makeinfo' +MAKEINFO='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/build-aux/missing makeinfo' MANIFEST_TOOL=':' MKDIR_P='/bin/mkdir -p' NM='/usr/bin/nm -B' @@ -997,7 +1000,7 @@ host_vendor='pc' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' -install_sh='${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/build-aux/install-sh' +install_sh='${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/build-aux/install-sh' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' @@ -1006,7 +1009,7 @@ mandir='${datarootdir}/man' mkdir_p='$(MKDIR_P)' oldincludedir='/usr/include' pdfdir='${docdir}' -prefix='/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' +prefix='/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' program_transform_name='s,x,x,' psdir='${docdir}' runstatedir='${localstatedir}/run' diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/config.status b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/config.status index 2c69a1e1f..f66f253ec 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/config.status +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/config.status @@ -427,7 +427,7 @@ $config_commands Report bugs to ." -ac_cs_config="'--disable-option-checking' '--prefix=/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' '--cache-file=/dev/null' '--srcdir=.' 'CFLAGS=' 'CXXFLAGS= -g -std=c++11 -DNDEBUG'" +ac_cs_config="'--disable-option-checking' '--prefix=/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' '--cache-file=/dev/null' '--srcdir=.' 'CFLAGS=' 'CXXFLAGS= -g -std=c++11 -DNDEBUG'" ac_cs_version="\ Google C++ Testing Framework config.status 1.8.0 configured by ./configure, generated by GNU Autoconf 2.69, @@ -437,7 +437,7 @@ Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." -ac_pwd='/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest' +ac_pwd='/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest' srcdir='.' INSTALL='/usr/bin/install -c' MKDIR_P='/bin/mkdir -p' @@ -519,7 +519,7 @@ if $ac_cs_silent; then fi if $ac_cs_recheck; then - set X /bin/bash './configure' '--disable-option-checking' '--prefix=/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' '--cache-file=/dev/null' '--srcdir=.' 'CFLAGS=' 'CXXFLAGS= -g -std=c++11 -DNDEBUG' $ac_configure_extra_args --no-create --no-recursion + set X /bin/bash './configure' '--disable-option-checking' '--prefix=/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf' '--with-pic' '--cache-file=/dev/null' '--srcdir=.' 'CFLAGS=' 'CXXFLAGS= -g -std=c++11 -DNDEBUG' $ac_configure_extra_args --no-create --no-recursion shift $as_echo "running CONFIG_SHELL=/bin/bash $*" >&6 CONFIG_SHELL='/bin/bash' @@ -679,7 +679,7 @@ finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' finish_eval='' hardcode_into_libs='yes' sys_lib_search_path_spec='/usr/lib/gcc/x86_64-linux-gnu/7 /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib ' -configure_time_dlsearch_path='/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu ' +configure_time_dlsearch_path='/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /lib32 /usr/lib32 ' configure_time_lt_sys_library_path='' hardcode_action='immediate' enable_dlopen='unknown' @@ -954,18 +954,18 @@ S["mkdir_p"]="$(MKDIR_P)" S["MKDIR_P"]="/bin/mkdir -p" S["INSTALL_STRIP_PROGRAM"]="$(install_sh) -c -s" S["STRIP"]="strip" -S["install_sh"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/build-aux/in"\ -"stall-sh" -S["MAKEINFO"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/build-aux/mi"\ -"ssing makeinfo" -S["AUTOHEADER"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/build-aux/mi"\ -"ssing autoheader" -S["AUTOMAKE"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/build-aux/mi"\ -"ssing automake-1.15" -S["AUTOCONF"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/build-aux/mi"\ -"ssing autoconf" -S["ACLOCAL"]="${SHELL} /tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/build-aux/mi"\ -"ssing aclocal-1.15" +S["install_sh"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/bui"\ +"ld-aux/install-sh" +S["MAKEINFO"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/bui"\ +"ld-aux/missing makeinfo" +S["AUTOHEADER"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/bui"\ +"ld-aux/missing autoheader" +S["AUTOMAKE"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/bui"\ +"ld-aux/missing automake-1.15" +S["AUTOCONF"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/bui"\ +"ld-aux/missing autoconf" +S["ACLOCAL"]="${SHELL} /home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/bui"\ +"ld-aux/missing aclocal-1.15" S["VERSION"]="1.8.0" S["PACKAGE"]="gtest" S["CYGPATH_W"]="echo" @@ -1002,7 +1002,7 @@ S["libexecdir"]="${exec_prefix}/libexec" S["sbindir"]="${exec_prefix}/sbin" S["bindir"]="${exec_prefix}/bin" S["program_transform_name"]="s,x,x," -S["prefix"]="/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf" +S["prefix"]="/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf" S["exec_prefix"]="${prefix}" S["PACKAGE_URL"]="" S["PACKAGE_BUGREPORT"]="googletestframework@googlegroups.com" diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/libtool b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/libtool index 171653686..93b79bbba 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/libtool +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/libtool @@ -284,7 +284,7 @@ hardcode_into_libs=yes sys_lib_search_path_spec="/usr/lib/gcc/x86_64-linux-gnu/7 /usr/lib/x86_64-linux-gnu /usr/lib /lib/x86_64-linux-gnu /lib " # Detected run-time system search path for libraries. -sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu " +sys_lib_dlsearch_path_spec="/lib /usr/lib /usr/lib/x86_64-linux-gnu/libfakeroot /usr/local/lib /usr/local/lib/x86_64-linux-gnu /lib/x86_64-linux-gnu /usr/lib/x86_64-linux-gnu /lib32 /usr/lib32 " # Explicit LT_SYS_LIBRARY_PATH set during ./configure time. configure_time_lt_sys_library_path="" diff --git a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/scripts/gtest-config b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/scripts/gtest-config index 1ec89f4ea..dca378750 100644 --- a/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/scripts/gtest-config +++ b/linux/include/tensorflow/contrib/makefile/downloads/protobuf/third_party/googletest/googletest/scripts/gtest-config @@ -193,7 +193,7 @@ done # These have defaults filled in by the configure script but can also be # overridden by environment variables or command line parameters. -prefix="${GTEST_PREFIX:-/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf}" +prefix="${GTEST_PREFIX:-/home/bts/tensorflow_cc/tensorflow_cc/build/tensorflow/tensorflow/contrib/makefile/gen/protobuf}" exec_prefix="${GTEST_EXEC_PREFIX:-${prefix}}" libdir="${GTEST_LIBDIR:-${exec_prefix}/lib}" includedir="${GTEST_INCLUDEDIR:-${prefix}/include}" diff --git a/linux/include/tensorflow/core/example/example.pb.h b/linux/include/tensorflow/core/example/example.pb.h deleted file mode 100755 index 0320ceb04..000000000 --- a/linux/include/tensorflow/core/example/example.pb.h +++ /dev/null @@ -1,539 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/example.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2fexample_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2fexample_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "tensorflow/core/example/feature.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fexample_2fexample_2eproto - -namespace protobuf_tensorflow_2fcore_2fexample_2fexample_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[2]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fexample_2fexample_2eproto -namespace tensorflow { -class Example; -class ExampleDefaultTypeInternal; -extern ExampleDefaultTypeInternal _Example_default_instance_; -class SequenceExample; -class SequenceExampleDefaultTypeInternal; -extern SequenceExampleDefaultTypeInternal _SequenceExample_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::Example* Arena::CreateMaybeMessage<::tensorflow::Example>(Arena*); -template<> ::tensorflow::SequenceExample* Arena::CreateMaybeMessage<::tensorflow::SequenceExample>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class Example : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.Example) */ { - public: - Example(); - virtual ~Example(); - - Example(const Example& from); - - inline Example& operator=(const Example& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Example(Example&& from) noexcept - : Example() { - *this = ::std::move(from); - } - - inline Example& operator=(Example&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const Example& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Example* internal_default_instance() { - return reinterpret_cast( - &_Example_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(Example* other); - void Swap(Example* other); - friend void swap(Example& a, Example& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Example* New() const final { - return CreateMaybeMessage(NULL); - } - - Example* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Example& from); - void MergeFrom(const Example& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Example* other); - protected: - explicit Example(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .tensorflow.Features features = 1; - bool has_features() const; - void clear_features(); - static const int kFeaturesFieldNumber = 1; - private: - const ::tensorflow::Features& _internal_features() const; - public: - const ::tensorflow::Features& features() const; - ::tensorflow::Features* release_features(); - ::tensorflow::Features* mutable_features(); - void set_allocated_features(::tensorflow::Features* features); - void unsafe_arena_set_allocated_features( - ::tensorflow::Features* features); - ::tensorflow::Features* unsafe_arena_release_features(); - - // @@protoc_insertion_point(class_scope:tensorflow.Example) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::tensorflow::Features* features_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fexample_2fexample_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class SequenceExample : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.SequenceExample) */ { - public: - SequenceExample(); - virtual ~SequenceExample(); - - SequenceExample(const SequenceExample& from); - - inline SequenceExample& operator=(const SequenceExample& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SequenceExample(SequenceExample&& from) noexcept - : SequenceExample() { - *this = ::std::move(from); - } - - inline SequenceExample& operator=(SequenceExample&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const SequenceExample& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SequenceExample* internal_default_instance() { - return reinterpret_cast( - &_SequenceExample_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(SequenceExample* other); - void Swap(SequenceExample* other); - friend void swap(SequenceExample& a, SequenceExample& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SequenceExample* New() const final { - return CreateMaybeMessage(NULL); - } - - SequenceExample* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const SequenceExample& from); - void MergeFrom(const SequenceExample& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SequenceExample* other); - protected: - explicit SequenceExample(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .tensorflow.Features context = 1; - bool has_context() const; - void clear_context(); - static const int kContextFieldNumber = 1; - private: - const ::tensorflow::Features& _internal_context() const; - public: - const ::tensorflow::Features& context() const; - ::tensorflow::Features* release_context(); - ::tensorflow::Features* mutable_context(); - void set_allocated_context(::tensorflow::Features* context); - void unsafe_arena_set_allocated_context( - ::tensorflow::Features* context); - ::tensorflow::Features* unsafe_arena_release_context(); - - // .tensorflow.FeatureLists feature_lists = 2; - bool has_feature_lists() const; - void clear_feature_lists(); - static const int kFeatureListsFieldNumber = 2; - private: - const ::tensorflow::FeatureLists& _internal_feature_lists() const; - public: - const ::tensorflow::FeatureLists& feature_lists() const; - ::tensorflow::FeatureLists* release_feature_lists(); - ::tensorflow::FeatureLists* mutable_feature_lists(); - void set_allocated_feature_lists(::tensorflow::FeatureLists* feature_lists); - void unsafe_arena_set_allocated_feature_lists( - ::tensorflow::FeatureLists* feature_lists); - ::tensorflow::FeatureLists* unsafe_arena_release_feature_lists(); - - // @@protoc_insertion_point(class_scope:tensorflow.SequenceExample) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::tensorflow::Features* context_; - ::tensorflow::FeatureLists* feature_lists_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fexample_2fexample_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Example - -// .tensorflow.Features features = 1; -inline bool Example::has_features() const { - return this != internal_default_instance() && features_ != NULL; -} -inline const ::tensorflow::Features& Example::_internal_features() const { - return *features_; -} -inline const ::tensorflow::Features& Example::features() const { - const ::tensorflow::Features* p = features_; - // @@protoc_insertion_point(field_get:tensorflow.Example.features) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_Features_default_instance_); -} -inline ::tensorflow::Features* Example::release_features() { - // @@protoc_insertion_point(field_release:tensorflow.Example.features) - - ::tensorflow::Features* temp = features_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - features_ = NULL; - return temp; -} -inline ::tensorflow::Features* Example::unsafe_arena_release_features() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Example.features) - - ::tensorflow::Features* temp = features_; - features_ = NULL; - return temp; -} -inline ::tensorflow::Features* Example::mutable_features() { - - if (features_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::Features>(GetArenaNoVirtual()); - features_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.Example.features) - return features_; -} -inline void Example::set_allocated_features(::tensorflow::Features* features) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(features_); - } - if (features) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(features)->GetArena(); - if (message_arena != submessage_arena) { - features = ::google::protobuf::internal::GetOwnedMessage( - message_arena, features, submessage_arena); - } - - } else { - - } - features_ = features; - // @@protoc_insertion_point(field_set_allocated:tensorflow.Example.features) -} - -// ------------------------------------------------------------------- - -// SequenceExample - -// .tensorflow.Features context = 1; -inline bool SequenceExample::has_context() const { - return this != internal_default_instance() && context_ != NULL; -} -inline const ::tensorflow::Features& SequenceExample::_internal_context() const { - return *context_; -} -inline const ::tensorflow::Features& SequenceExample::context() const { - const ::tensorflow::Features* p = context_; - // @@protoc_insertion_point(field_get:tensorflow.SequenceExample.context) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_Features_default_instance_); -} -inline ::tensorflow::Features* SequenceExample::release_context() { - // @@protoc_insertion_point(field_release:tensorflow.SequenceExample.context) - - ::tensorflow::Features* temp = context_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - context_ = NULL; - return temp; -} -inline ::tensorflow::Features* SequenceExample::unsafe_arena_release_context() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SequenceExample.context) - - ::tensorflow::Features* temp = context_; - context_ = NULL; - return temp; -} -inline ::tensorflow::Features* SequenceExample::mutable_context() { - - if (context_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::Features>(GetArenaNoVirtual()); - context_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.SequenceExample.context) - return context_; -} -inline void SequenceExample::set_allocated_context(::tensorflow::Features* context) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(context_); - } - if (context) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(context)->GetArena(); - if (message_arena != submessage_arena) { - context = ::google::protobuf::internal::GetOwnedMessage( - message_arena, context, submessage_arena); - } - - } else { - - } - context_ = context; - // @@protoc_insertion_point(field_set_allocated:tensorflow.SequenceExample.context) -} - -// .tensorflow.FeatureLists feature_lists = 2; -inline bool SequenceExample::has_feature_lists() const { - return this != internal_default_instance() && feature_lists_ != NULL; -} -inline const ::tensorflow::FeatureLists& SequenceExample::_internal_feature_lists() const { - return *feature_lists_; -} -inline const ::tensorflow::FeatureLists& SequenceExample::feature_lists() const { - const ::tensorflow::FeatureLists* p = feature_lists_; - // @@protoc_insertion_point(field_get:tensorflow.SequenceExample.feature_lists) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_FeatureLists_default_instance_); -} -inline ::tensorflow::FeatureLists* SequenceExample::release_feature_lists() { - // @@protoc_insertion_point(field_release:tensorflow.SequenceExample.feature_lists) - - ::tensorflow::FeatureLists* temp = feature_lists_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - feature_lists_ = NULL; - return temp; -} -inline ::tensorflow::FeatureLists* SequenceExample::unsafe_arena_release_feature_lists() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SequenceExample.feature_lists) - - ::tensorflow::FeatureLists* temp = feature_lists_; - feature_lists_ = NULL; - return temp; -} -inline ::tensorflow::FeatureLists* SequenceExample::mutable_feature_lists() { - - if (feature_lists_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::FeatureLists>(GetArenaNoVirtual()); - feature_lists_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.SequenceExample.feature_lists) - return feature_lists_; -} -inline void SequenceExample::set_allocated_feature_lists(::tensorflow::FeatureLists* feature_lists) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(feature_lists_); - } - if (feature_lists) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(feature_lists)->GetArena(); - if (message_arena != submessage_arena) { - feature_lists = ::google::protobuf::internal::GetOwnedMessage( - message_arena, feature_lists, submessage_arena); - } - - } else { - - } - feature_lists_ = feature_lists; - // @@protoc_insertion_point(field_set_allocated:tensorflow.SequenceExample.feature_lists) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2fexample_2eproto diff --git a/linux/include/tensorflow/core/example/example.pb_text-impl.h b/linux/include/tensorflow/core/example/example.pb_text-impl.h deleted file mode 100755 index 68c5c8d00..000000000 --- a/linux/include/tensorflow/core/example/example.pb_text-impl.h +++ /dev/null @@ -1,34 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_example_example_proto_IMPL_H_ -#define tensorflow_core_example_example_proto_IMPL_H_ - -#include "tensorflow/core/example/example.pb.h" -#include "tensorflow/core/example/example.pb_text.h" -#include "tensorflow/core/example/feature.pb.h" -#include "tensorflow/core/example/feature.pb_text-impl.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::Example& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::Example* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::SequenceExample& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::SequenceExample* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_example_example_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/example/example.pb_text.h b/linux/include/tensorflow/core/example/example.pb_text.h deleted file mode 100755 index 873f923cf..000000000 --- a/linux/include/tensorflow/core/example/example.pb_text.h +++ /dev/null @@ -1,34 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_example_example_proto_H_ -#define tensorflow_core_example_example_proto_H_ - -#include "tensorflow/core/example/example.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.Example -string ProtoDebugString( - const ::tensorflow::Example& msg); -string ProtoShortDebugString( - const ::tensorflow::Example& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::Example* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.SequenceExample -string ProtoDebugString( - const ::tensorflow::SequenceExample& msg); -string ProtoShortDebugString( - const ::tensorflow::SequenceExample& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::SequenceExample* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_example_example_proto_H_ diff --git a/linux/include/tensorflow/core/example/example_parser_configuration.pb.h b/linux/include/tensorflow/core/example/example_parser_configuration.pb.h deleted file mode 100755 index 2b37f068c..000000000 --- a/linux/include/tensorflow/core/example/example_parser_configuration.pb.h +++ /dev/null @@ -1,1407 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/example_parser_configuration.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/tensor.pb.h" -#include "tensorflow/core/framework/types.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto - -namespace protobuf_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[5]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto -namespace tensorflow { -class ExampleParserConfiguration; -class ExampleParserConfigurationDefaultTypeInternal; -extern ExampleParserConfigurationDefaultTypeInternal _ExampleParserConfiguration_default_instance_; -class ExampleParserConfiguration_FeatureMapEntry_DoNotUse; -class ExampleParserConfiguration_FeatureMapEntry_DoNotUseDefaultTypeInternal; -extern ExampleParserConfiguration_FeatureMapEntry_DoNotUseDefaultTypeInternal _ExampleParserConfiguration_FeatureMapEntry_DoNotUse_default_instance_; -class FeatureConfiguration; -class FeatureConfigurationDefaultTypeInternal; -extern FeatureConfigurationDefaultTypeInternal _FeatureConfiguration_default_instance_; -class FixedLenFeatureProto; -class FixedLenFeatureProtoDefaultTypeInternal; -extern FixedLenFeatureProtoDefaultTypeInternal _FixedLenFeatureProto_default_instance_; -class VarLenFeatureProto; -class VarLenFeatureProtoDefaultTypeInternal; -extern VarLenFeatureProtoDefaultTypeInternal _VarLenFeatureProto_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::ExampleParserConfiguration* Arena::CreateMaybeMessage<::tensorflow::ExampleParserConfiguration>(Arena*); -template<> ::tensorflow::ExampleParserConfiguration_FeatureMapEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::ExampleParserConfiguration_FeatureMapEntry_DoNotUse>(Arena*); -template<> ::tensorflow::FeatureConfiguration* Arena::CreateMaybeMessage<::tensorflow::FeatureConfiguration>(Arena*); -template<> ::tensorflow::FixedLenFeatureProto* Arena::CreateMaybeMessage<::tensorflow::FixedLenFeatureProto>(Arena*); -template<> ::tensorflow::VarLenFeatureProto* Arena::CreateMaybeMessage<::tensorflow::VarLenFeatureProto>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class VarLenFeatureProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.VarLenFeatureProto) */ { - public: - VarLenFeatureProto(); - virtual ~VarLenFeatureProto(); - - VarLenFeatureProto(const VarLenFeatureProto& from); - - inline VarLenFeatureProto& operator=(const VarLenFeatureProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - VarLenFeatureProto(VarLenFeatureProto&& from) noexcept - : VarLenFeatureProto() { - *this = ::std::move(from); - } - - inline VarLenFeatureProto& operator=(VarLenFeatureProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const VarLenFeatureProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VarLenFeatureProto* internal_default_instance() { - return reinterpret_cast( - &_VarLenFeatureProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(VarLenFeatureProto* other); - void Swap(VarLenFeatureProto* other); - friend void swap(VarLenFeatureProto& a, VarLenFeatureProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline VarLenFeatureProto* New() const final { - return CreateMaybeMessage(NULL); - } - - VarLenFeatureProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const VarLenFeatureProto& from); - void MergeFrom(const VarLenFeatureProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(VarLenFeatureProto* other); - protected: - explicit VarLenFeatureProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string values_output_tensor_name = 2; - void clear_values_output_tensor_name(); - static const int kValuesOutputTensorNameFieldNumber = 2; - const ::std::string& values_output_tensor_name() const; - void set_values_output_tensor_name(const ::std::string& value); - #if LANG_CXX11 - void set_values_output_tensor_name(::std::string&& value); - #endif - void set_values_output_tensor_name(const char* value); - void set_values_output_tensor_name(const char* value, size_t size); - ::std::string* mutable_values_output_tensor_name(); - ::std::string* release_values_output_tensor_name(); - void set_allocated_values_output_tensor_name(::std::string* values_output_tensor_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_values_output_tensor_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_values_output_tensor_name( - ::std::string* values_output_tensor_name); - - // string indices_output_tensor_name = 3; - void clear_indices_output_tensor_name(); - static const int kIndicesOutputTensorNameFieldNumber = 3; - const ::std::string& indices_output_tensor_name() const; - void set_indices_output_tensor_name(const ::std::string& value); - #if LANG_CXX11 - void set_indices_output_tensor_name(::std::string&& value); - #endif - void set_indices_output_tensor_name(const char* value); - void set_indices_output_tensor_name(const char* value, size_t size); - ::std::string* mutable_indices_output_tensor_name(); - ::std::string* release_indices_output_tensor_name(); - void set_allocated_indices_output_tensor_name(::std::string* indices_output_tensor_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_indices_output_tensor_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_indices_output_tensor_name( - ::std::string* indices_output_tensor_name); - - // string shapes_output_tensor_name = 4; - void clear_shapes_output_tensor_name(); - static const int kShapesOutputTensorNameFieldNumber = 4; - const ::std::string& shapes_output_tensor_name() const; - void set_shapes_output_tensor_name(const ::std::string& value); - #if LANG_CXX11 - void set_shapes_output_tensor_name(::std::string&& value); - #endif - void set_shapes_output_tensor_name(const char* value); - void set_shapes_output_tensor_name(const char* value, size_t size); - ::std::string* mutable_shapes_output_tensor_name(); - ::std::string* release_shapes_output_tensor_name(); - void set_allocated_shapes_output_tensor_name(::std::string* shapes_output_tensor_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_shapes_output_tensor_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_shapes_output_tensor_name( - ::std::string* shapes_output_tensor_name); - - // .tensorflow.DataType dtype = 1; - void clear_dtype(); - static const int kDtypeFieldNumber = 1; - ::tensorflow::DataType dtype() const; - void set_dtype(::tensorflow::DataType value); - - // @@protoc_insertion_point(class_scope:tensorflow.VarLenFeatureProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr values_output_tensor_name_; - ::google::protobuf::internal::ArenaStringPtr indices_output_tensor_name_; - ::google::protobuf::internal::ArenaStringPtr shapes_output_tensor_name_; - int dtype_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class FixedLenFeatureProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.FixedLenFeatureProto) */ { - public: - FixedLenFeatureProto(); - virtual ~FixedLenFeatureProto(); - - FixedLenFeatureProto(const FixedLenFeatureProto& from); - - inline FixedLenFeatureProto& operator=(const FixedLenFeatureProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - FixedLenFeatureProto(FixedLenFeatureProto&& from) noexcept - : FixedLenFeatureProto() { - *this = ::std::move(from); - } - - inline FixedLenFeatureProto& operator=(FixedLenFeatureProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const FixedLenFeatureProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FixedLenFeatureProto* internal_default_instance() { - return reinterpret_cast( - &_FixedLenFeatureProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(FixedLenFeatureProto* other); - void Swap(FixedLenFeatureProto* other); - friend void swap(FixedLenFeatureProto& a, FixedLenFeatureProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline FixedLenFeatureProto* New() const final { - return CreateMaybeMessage(NULL); - } - - FixedLenFeatureProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const FixedLenFeatureProto& from); - void MergeFrom(const FixedLenFeatureProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FixedLenFeatureProto* other); - protected: - explicit FixedLenFeatureProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string values_output_tensor_name = 4; - void clear_values_output_tensor_name(); - static const int kValuesOutputTensorNameFieldNumber = 4; - const ::std::string& values_output_tensor_name() const; - void set_values_output_tensor_name(const ::std::string& value); - #if LANG_CXX11 - void set_values_output_tensor_name(::std::string&& value); - #endif - void set_values_output_tensor_name(const char* value); - void set_values_output_tensor_name(const char* value, size_t size); - ::std::string* mutable_values_output_tensor_name(); - ::std::string* release_values_output_tensor_name(); - void set_allocated_values_output_tensor_name(::std::string* values_output_tensor_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_values_output_tensor_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_values_output_tensor_name( - ::std::string* values_output_tensor_name); - - // .tensorflow.TensorShapeProto shape = 2; - bool has_shape() const; - void clear_shape(); - static const int kShapeFieldNumber = 2; - private: - const ::tensorflow::TensorShapeProto& _internal_shape() const; - public: - const ::tensorflow::TensorShapeProto& shape() const; - ::tensorflow::TensorShapeProto* release_shape(); - ::tensorflow::TensorShapeProto* mutable_shape(); - void set_allocated_shape(::tensorflow::TensorShapeProto* shape); - void unsafe_arena_set_allocated_shape( - ::tensorflow::TensorShapeProto* shape); - ::tensorflow::TensorShapeProto* unsafe_arena_release_shape(); - - // .tensorflow.TensorProto default_value = 3; - bool has_default_value() const; - void clear_default_value(); - static const int kDefaultValueFieldNumber = 3; - private: - const ::tensorflow::TensorProto& _internal_default_value() const; - public: - const ::tensorflow::TensorProto& default_value() const; - ::tensorflow::TensorProto* release_default_value(); - ::tensorflow::TensorProto* mutable_default_value(); - void set_allocated_default_value(::tensorflow::TensorProto* default_value); - void unsafe_arena_set_allocated_default_value( - ::tensorflow::TensorProto* default_value); - ::tensorflow::TensorProto* unsafe_arena_release_default_value(); - - // .tensorflow.DataType dtype = 1; - void clear_dtype(); - static const int kDtypeFieldNumber = 1; - ::tensorflow::DataType dtype() const; - void set_dtype(::tensorflow::DataType value); - - // @@protoc_insertion_point(class_scope:tensorflow.FixedLenFeatureProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr values_output_tensor_name_; - ::tensorflow::TensorShapeProto* shape_; - ::tensorflow::TensorProto* default_value_; - int dtype_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class FeatureConfiguration : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.FeatureConfiguration) */ { - public: - FeatureConfiguration(); - virtual ~FeatureConfiguration(); - - FeatureConfiguration(const FeatureConfiguration& from); - - inline FeatureConfiguration& operator=(const FeatureConfiguration& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - FeatureConfiguration(FeatureConfiguration&& from) noexcept - : FeatureConfiguration() { - *this = ::std::move(from); - } - - inline FeatureConfiguration& operator=(FeatureConfiguration&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const FeatureConfiguration& default_instance(); - - enum ConfigCase { - kFixedLenFeature = 1, - kVarLenFeature = 2, - CONFIG_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FeatureConfiguration* internal_default_instance() { - return reinterpret_cast( - &_FeatureConfiguration_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void UnsafeArenaSwap(FeatureConfiguration* other); - void Swap(FeatureConfiguration* other); - friend void swap(FeatureConfiguration& a, FeatureConfiguration& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline FeatureConfiguration* New() const final { - return CreateMaybeMessage(NULL); - } - - FeatureConfiguration* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const FeatureConfiguration& from); - void MergeFrom(const FeatureConfiguration& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FeatureConfiguration* other); - protected: - explicit FeatureConfiguration(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; - bool has_fixed_len_feature() const; - void clear_fixed_len_feature(); - static const int kFixedLenFeatureFieldNumber = 1; - private: - const ::tensorflow::FixedLenFeatureProto& _internal_fixed_len_feature() const; - public: - const ::tensorflow::FixedLenFeatureProto& fixed_len_feature() const; - ::tensorflow::FixedLenFeatureProto* release_fixed_len_feature(); - ::tensorflow::FixedLenFeatureProto* mutable_fixed_len_feature(); - void set_allocated_fixed_len_feature(::tensorflow::FixedLenFeatureProto* fixed_len_feature); - void unsafe_arena_set_allocated_fixed_len_feature( - ::tensorflow::FixedLenFeatureProto* fixed_len_feature); - ::tensorflow::FixedLenFeatureProto* unsafe_arena_release_fixed_len_feature(); - - // .tensorflow.VarLenFeatureProto var_len_feature = 2; - bool has_var_len_feature() const; - void clear_var_len_feature(); - static const int kVarLenFeatureFieldNumber = 2; - private: - const ::tensorflow::VarLenFeatureProto& _internal_var_len_feature() const; - public: - const ::tensorflow::VarLenFeatureProto& var_len_feature() const; - ::tensorflow::VarLenFeatureProto* release_var_len_feature(); - ::tensorflow::VarLenFeatureProto* mutable_var_len_feature(); - void set_allocated_var_len_feature(::tensorflow::VarLenFeatureProto* var_len_feature); - void unsafe_arena_set_allocated_var_len_feature( - ::tensorflow::VarLenFeatureProto* var_len_feature); - ::tensorflow::VarLenFeatureProto* unsafe_arena_release_var_len_feature(); - - void clear_config(); - ConfigCase config_case() const; - // @@protoc_insertion_point(class_scope:tensorflow.FeatureConfiguration) - private: - void set_has_fixed_len_feature(); - void set_has_var_len_feature(); - - inline bool has_config() const; - inline void clear_has_config(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - union ConfigUnion { - ConfigUnion() {} - ::tensorflow::FixedLenFeatureProto* fixed_len_feature_; - ::tensorflow::VarLenFeatureProto* var_len_feature_; - } config_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::protobuf_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ExampleParserConfiguration_FeatureMapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: - typedef ::google::protobuf::internal::MapEntry SuperType; - ExampleParserConfiguration_FeatureMapEntry_DoNotUse(); - ExampleParserConfiguration_FeatureMapEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const ExampleParserConfiguration_FeatureMapEntry_DoNotUse& other); - static const ExampleParserConfiguration_FeatureMapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ExampleParserConfiguration_FeatureMapEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class ExampleParserConfiguration : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.ExampleParserConfiguration) */ { - public: - ExampleParserConfiguration(); - virtual ~ExampleParserConfiguration(); - - ExampleParserConfiguration(const ExampleParserConfiguration& from); - - inline ExampleParserConfiguration& operator=(const ExampleParserConfiguration& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ExampleParserConfiguration(ExampleParserConfiguration&& from) noexcept - : ExampleParserConfiguration() { - *this = ::std::move(from); - } - - inline ExampleParserConfiguration& operator=(ExampleParserConfiguration&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const ExampleParserConfiguration& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ExampleParserConfiguration* internal_default_instance() { - return reinterpret_cast( - &_ExampleParserConfiguration_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void UnsafeArenaSwap(ExampleParserConfiguration* other); - void Swap(ExampleParserConfiguration* other); - friend void swap(ExampleParserConfiguration& a, ExampleParserConfiguration& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ExampleParserConfiguration* New() const final { - return CreateMaybeMessage(NULL); - } - - ExampleParserConfiguration* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ExampleParserConfiguration& from); - void MergeFrom(const ExampleParserConfiguration& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ExampleParserConfiguration* other); - protected: - explicit ExampleParserConfiguration(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - // map feature_map = 1; - int feature_map_size() const; - void clear_feature_map(); - static const int kFeatureMapFieldNumber = 1; - const ::google::protobuf::Map< ::std::string, ::tensorflow::FeatureConfiguration >& - feature_map() const; - ::google::protobuf::Map< ::std::string, ::tensorflow::FeatureConfiguration >* - mutable_feature_map(); - - // @@protoc_insertion_point(class_scope:tensorflow.ExampleParserConfiguration) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::MapField< - ExampleParserConfiguration_FeatureMapEntry_DoNotUse, - ::std::string, ::tensorflow::FeatureConfiguration, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > feature_map_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// VarLenFeatureProto - -// .tensorflow.DataType dtype = 1; -inline void VarLenFeatureProto::clear_dtype() { - dtype_ = 0; -} -inline ::tensorflow::DataType VarLenFeatureProto::dtype() const { - // @@protoc_insertion_point(field_get:tensorflow.VarLenFeatureProto.dtype) - return static_cast< ::tensorflow::DataType >(dtype_); -} -inline void VarLenFeatureProto::set_dtype(::tensorflow::DataType value) { - - dtype_ = value; - // @@protoc_insertion_point(field_set:tensorflow.VarLenFeatureProto.dtype) -} - -// string values_output_tensor_name = 2; -inline void VarLenFeatureProto::clear_values_output_tensor_name() { - values_output_tensor_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& VarLenFeatureProto::values_output_tensor_name() const { - // @@protoc_insertion_point(field_get:tensorflow.VarLenFeatureProto.values_output_tensor_name) - return values_output_tensor_name_.Get(); -} -inline void VarLenFeatureProto::set_values_output_tensor_name(const ::std::string& value) { - - values_output_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.VarLenFeatureProto.values_output_tensor_name) -} -#if LANG_CXX11 -inline void VarLenFeatureProto::set_values_output_tensor_name(::std::string&& value) { - - values_output_tensor_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.VarLenFeatureProto.values_output_tensor_name) -} -#endif -inline void VarLenFeatureProto::set_values_output_tensor_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - values_output_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.VarLenFeatureProto.values_output_tensor_name) -} -inline void VarLenFeatureProto::set_values_output_tensor_name(const char* value, - size_t size) { - - values_output_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.VarLenFeatureProto.values_output_tensor_name) -} -inline ::std::string* VarLenFeatureProto::mutable_values_output_tensor_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.VarLenFeatureProto.values_output_tensor_name) - return values_output_tensor_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* VarLenFeatureProto::release_values_output_tensor_name() { - // @@protoc_insertion_point(field_release:tensorflow.VarLenFeatureProto.values_output_tensor_name) - - return values_output_tensor_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void VarLenFeatureProto::set_allocated_values_output_tensor_name(::std::string* values_output_tensor_name) { - if (values_output_tensor_name != NULL) { - - } else { - - } - values_output_tensor_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), values_output_tensor_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.VarLenFeatureProto.values_output_tensor_name) -} -inline ::std::string* VarLenFeatureProto::unsafe_arena_release_values_output_tensor_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.VarLenFeatureProto.values_output_tensor_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return values_output_tensor_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void VarLenFeatureProto::unsafe_arena_set_allocated_values_output_tensor_name( - ::std::string* values_output_tensor_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (values_output_tensor_name != NULL) { - - } else { - - } - values_output_tensor_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - values_output_tensor_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.VarLenFeatureProto.values_output_tensor_name) -} - -// string indices_output_tensor_name = 3; -inline void VarLenFeatureProto::clear_indices_output_tensor_name() { - indices_output_tensor_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& VarLenFeatureProto::indices_output_tensor_name() const { - // @@protoc_insertion_point(field_get:tensorflow.VarLenFeatureProto.indices_output_tensor_name) - return indices_output_tensor_name_.Get(); -} -inline void VarLenFeatureProto::set_indices_output_tensor_name(const ::std::string& value) { - - indices_output_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.VarLenFeatureProto.indices_output_tensor_name) -} -#if LANG_CXX11 -inline void VarLenFeatureProto::set_indices_output_tensor_name(::std::string&& value) { - - indices_output_tensor_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.VarLenFeatureProto.indices_output_tensor_name) -} -#endif -inline void VarLenFeatureProto::set_indices_output_tensor_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - indices_output_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.VarLenFeatureProto.indices_output_tensor_name) -} -inline void VarLenFeatureProto::set_indices_output_tensor_name(const char* value, - size_t size) { - - indices_output_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.VarLenFeatureProto.indices_output_tensor_name) -} -inline ::std::string* VarLenFeatureProto::mutable_indices_output_tensor_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.VarLenFeatureProto.indices_output_tensor_name) - return indices_output_tensor_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* VarLenFeatureProto::release_indices_output_tensor_name() { - // @@protoc_insertion_point(field_release:tensorflow.VarLenFeatureProto.indices_output_tensor_name) - - return indices_output_tensor_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void VarLenFeatureProto::set_allocated_indices_output_tensor_name(::std::string* indices_output_tensor_name) { - if (indices_output_tensor_name != NULL) { - - } else { - - } - indices_output_tensor_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), indices_output_tensor_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.VarLenFeatureProto.indices_output_tensor_name) -} -inline ::std::string* VarLenFeatureProto::unsafe_arena_release_indices_output_tensor_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.VarLenFeatureProto.indices_output_tensor_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return indices_output_tensor_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void VarLenFeatureProto::unsafe_arena_set_allocated_indices_output_tensor_name( - ::std::string* indices_output_tensor_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (indices_output_tensor_name != NULL) { - - } else { - - } - indices_output_tensor_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - indices_output_tensor_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.VarLenFeatureProto.indices_output_tensor_name) -} - -// string shapes_output_tensor_name = 4; -inline void VarLenFeatureProto::clear_shapes_output_tensor_name() { - shapes_output_tensor_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& VarLenFeatureProto::shapes_output_tensor_name() const { - // @@protoc_insertion_point(field_get:tensorflow.VarLenFeatureProto.shapes_output_tensor_name) - return shapes_output_tensor_name_.Get(); -} -inline void VarLenFeatureProto::set_shapes_output_tensor_name(const ::std::string& value) { - - shapes_output_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.VarLenFeatureProto.shapes_output_tensor_name) -} -#if LANG_CXX11 -inline void VarLenFeatureProto::set_shapes_output_tensor_name(::std::string&& value) { - - shapes_output_tensor_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.VarLenFeatureProto.shapes_output_tensor_name) -} -#endif -inline void VarLenFeatureProto::set_shapes_output_tensor_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - shapes_output_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.VarLenFeatureProto.shapes_output_tensor_name) -} -inline void VarLenFeatureProto::set_shapes_output_tensor_name(const char* value, - size_t size) { - - shapes_output_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.VarLenFeatureProto.shapes_output_tensor_name) -} -inline ::std::string* VarLenFeatureProto::mutable_shapes_output_tensor_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.VarLenFeatureProto.shapes_output_tensor_name) - return shapes_output_tensor_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* VarLenFeatureProto::release_shapes_output_tensor_name() { - // @@protoc_insertion_point(field_release:tensorflow.VarLenFeatureProto.shapes_output_tensor_name) - - return shapes_output_tensor_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void VarLenFeatureProto::set_allocated_shapes_output_tensor_name(::std::string* shapes_output_tensor_name) { - if (shapes_output_tensor_name != NULL) { - - } else { - - } - shapes_output_tensor_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), shapes_output_tensor_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.VarLenFeatureProto.shapes_output_tensor_name) -} -inline ::std::string* VarLenFeatureProto::unsafe_arena_release_shapes_output_tensor_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.VarLenFeatureProto.shapes_output_tensor_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return shapes_output_tensor_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void VarLenFeatureProto::unsafe_arena_set_allocated_shapes_output_tensor_name( - ::std::string* shapes_output_tensor_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (shapes_output_tensor_name != NULL) { - - } else { - - } - shapes_output_tensor_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - shapes_output_tensor_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.VarLenFeatureProto.shapes_output_tensor_name) -} - -// ------------------------------------------------------------------- - -// FixedLenFeatureProto - -// .tensorflow.DataType dtype = 1; -inline void FixedLenFeatureProto::clear_dtype() { - dtype_ = 0; -} -inline ::tensorflow::DataType FixedLenFeatureProto::dtype() const { - // @@protoc_insertion_point(field_get:tensorflow.FixedLenFeatureProto.dtype) - return static_cast< ::tensorflow::DataType >(dtype_); -} -inline void FixedLenFeatureProto::set_dtype(::tensorflow::DataType value) { - - dtype_ = value; - // @@protoc_insertion_point(field_set:tensorflow.FixedLenFeatureProto.dtype) -} - -// .tensorflow.TensorShapeProto shape = 2; -inline bool FixedLenFeatureProto::has_shape() const { - return this != internal_default_instance() && shape_ != NULL; -} -inline const ::tensorflow::TensorShapeProto& FixedLenFeatureProto::_internal_shape() const { - return *shape_; -} -inline const ::tensorflow::TensorShapeProto& FixedLenFeatureProto::shape() const { - const ::tensorflow::TensorShapeProto* p = shape_; - // @@protoc_insertion_point(field_get:tensorflow.FixedLenFeatureProto.shape) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_TensorShapeProto_default_instance_); -} -inline ::tensorflow::TensorShapeProto* FixedLenFeatureProto::release_shape() { - // @@protoc_insertion_point(field_release:tensorflow.FixedLenFeatureProto.shape) - - ::tensorflow::TensorShapeProto* temp = shape_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - shape_ = NULL; - return temp; -} -inline ::tensorflow::TensorShapeProto* FixedLenFeatureProto::unsafe_arena_release_shape() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.FixedLenFeatureProto.shape) - - ::tensorflow::TensorShapeProto* temp = shape_; - shape_ = NULL; - return temp; -} -inline ::tensorflow::TensorShapeProto* FixedLenFeatureProto::mutable_shape() { - - if (shape_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::TensorShapeProto>(GetArenaNoVirtual()); - shape_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.FixedLenFeatureProto.shape) - return shape_; -} -inline void FixedLenFeatureProto::set_allocated_shape(::tensorflow::TensorShapeProto* shape) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(shape_); - } - if (shape) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(shape)->GetArena(); - if (message_arena != submessage_arena) { - shape = ::google::protobuf::internal::GetOwnedMessage( - message_arena, shape, submessage_arena); - } - - } else { - - } - shape_ = shape; - // @@protoc_insertion_point(field_set_allocated:tensorflow.FixedLenFeatureProto.shape) -} - -// .tensorflow.TensorProto default_value = 3; -inline bool FixedLenFeatureProto::has_default_value() const { - return this != internal_default_instance() && default_value_ != NULL; -} -inline const ::tensorflow::TensorProto& FixedLenFeatureProto::_internal_default_value() const { - return *default_value_; -} -inline const ::tensorflow::TensorProto& FixedLenFeatureProto::default_value() const { - const ::tensorflow::TensorProto* p = default_value_; - // @@protoc_insertion_point(field_get:tensorflow.FixedLenFeatureProto.default_value) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_TensorProto_default_instance_); -} -inline ::tensorflow::TensorProto* FixedLenFeatureProto::release_default_value() { - // @@protoc_insertion_point(field_release:tensorflow.FixedLenFeatureProto.default_value) - - ::tensorflow::TensorProto* temp = default_value_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - default_value_ = NULL; - return temp; -} -inline ::tensorflow::TensorProto* FixedLenFeatureProto::unsafe_arena_release_default_value() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.FixedLenFeatureProto.default_value) - - ::tensorflow::TensorProto* temp = default_value_; - default_value_ = NULL; - return temp; -} -inline ::tensorflow::TensorProto* FixedLenFeatureProto::mutable_default_value() { - - if (default_value_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::TensorProto>(GetArenaNoVirtual()); - default_value_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.FixedLenFeatureProto.default_value) - return default_value_; -} -inline void FixedLenFeatureProto::set_allocated_default_value(::tensorflow::TensorProto* default_value) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(default_value_); - } - if (default_value) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(default_value)->GetArena(); - if (message_arena != submessage_arena) { - default_value = ::google::protobuf::internal::GetOwnedMessage( - message_arena, default_value, submessage_arena); - } - - } else { - - } - default_value_ = default_value; - // @@protoc_insertion_point(field_set_allocated:tensorflow.FixedLenFeatureProto.default_value) -} - -// string values_output_tensor_name = 4; -inline void FixedLenFeatureProto::clear_values_output_tensor_name() { - values_output_tensor_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& FixedLenFeatureProto::values_output_tensor_name() const { - // @@protoc_insertion_point(field_get:tensorflow.FixedLenFeatureProto.values_output_tensor_name) - return values_output_tensor_name_.Get(); -} -inline void FixedLenFeatureProto::set_values_output_tensor_name(const ::std::string& value) { - - values_output_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.FixedLenFeatureProto.values_output_tensor_name) -} -#if LANG_CXX11 -inline void FixedLenFeatureProto::set_values_output_tensor_name(::std::string&& value) { - - values_output_tensor_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.FixedLenFeatureProto.values_output_tensor_name) -} -#endif -inline void FixedLenFeatureProto::set_values_output_tensor_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - values_output_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.FixedLenFeatureProto.values_output_tensor_name) -} -inline void FixedLenFeatureProto::set_values_output_tensor_name(const char* value, - size_t size) { - - values_output_tensor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.FixedLenFeatureProto.values_output_tensor_name) -} -inline ::std::string* FixedLenFeatureProto::mutable_values_output_tensor_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.FixedLenFeatureProto.values_output_tensor_name) - return values_output_tensor_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* FixedLenFeatureProto::release_values_output_tensor_name() { - // @@protoc_insertion_point(field_release:tensorflow.FixedLenFeatureProto.values_output_tensor_name) - - return values_output_tensor_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void FixedLenFeatureProto::set_allocated_values_output_tensor_name(::std::string* values_output_tensor_name) { - if (values_output_tensor_name != NULL) { - - } else { - - } - values_output_tensor_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), values_output_tensor_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.FixedLenFeatureProto.values_output_tensor_name) -} -inline ::std::string* FixedLenFeatureProto::unsafe_arena_release_values_output_tensor_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.FixedLenFeatureProto.values_output_tensor_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return values_output_tensor_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void FixedLenFeatureProto::unsafe_arena_set_allocated_values_output_tensor_name( - ::std::string* values_output_tensor_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (values_output_tensor_name != NULL) { - - } else { - - } - values_output_tensor_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - values_output_tensor_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.FixedLenFeatureProto.values_output_tensor_name) -} - -// ------------------------------------------------------------------- - -// FeatureConfiguration - -// .tensorflow.FixedLenFeatureProto fixed_len_feature = 1; -inline bool FeatureConfiguration::has_fixed_len_feature() const { - return config_case() == kFixedLenFeature; -} -inline void FeatureConfiguration::set_has_fixed_len_feature() { - _oneof_case_[0] = kFixedLenFeature; -} -inline void FeatureConfiguration::clear_fixed_len_feature() { - if (has_fixed_len_feature()) { - if (GetArenaNoVirtual() == NULL) { - delete config_.fixed_len_feature_; - } - clear_has_config(); - } -} -inline const ::tensorflow::FixedLenFeatureProto& FeatureConfiguration::_internal_fixed_len_feature() const { - return *config_.fixed_len_feature_; -} -inline ::tensorflow::FixedLenFeatureProto* FeatureConfiguration::release_fixed_len_feature() { - // @@protoc_insertion_point(field_release:tensorflow.FeatureConfiguration.fixed_len_feature) - if (has_fixed_len_feature()) { - clear_has_config(); - ::tensorflow::FixedLenFeatureProto* temp = config_.fixed_len_feature_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - config_.fixed_len_feature_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::FixedLenFeatureProto& FeatureConfiguration::fixed_len_feature() const { - // @@protoc_insertion_point(field_get:tensorflow.FeatureConfiguration.fixed_len_feature) - return has_fixed_len_feature() - ? *config_.fixed_len_feature_ - : *reinterpret_cast< ::tensorflow::FixedLenFeatureProto*>(&::tensorflow::_FixedLenFeatureProto_default_instance_); -} -inline ::tensorflow::FixedLenFeatureProto* FeatureConfiguration::unsafe_arena_release_fixed_len_feature() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.FeatureConfiguration.fixed_len_feature) - if (has_fixed_len_feature()) { - clear_has_config(); - ::tensorflow::FixedLenFeatureProto* temp = config_.fixed_len_feature_; - config_.fixed_len_feature_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void FeatureConfiguration::unsafe_arena_set_allocated_fixed_len_feature(::tensorflow::FixedLenFeatureProto* fixed_len_feature) { - clear_config(); - if (fixed_len_feature) { - set_has_fixed_len_feature(); - config_.fixed_len_feature_ = fixed_len_feature; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.FeatureConfiguration.fixed_len_feature) -} -inline ::tensorflow::FixedLenFeatureProto* FeatureConfiguration::mutable_fixed_len_feature() { - if (!has_fixed_len_feature()) { - clear_config(); - set_has_fixed_len_feature(); - config_.fixed_len_feature_ = CreateMaybeMessage< ::tensorflow::FixedLenFeatureProto >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.FeatureConfiguration.fixed_len_feature) - return config_.fixed_len_feature_; -} - -// .tensorflow.VarLenFeatureProto var_len_feature = 2; -inline bool FeatureConfiguration::has_var_len_feature() const { - return config_case() == kVarLenFeature; -} -inline void FeatureConfiguration::set_has_var_len_feature() { - _oneof_case_[0] = kVarLenFeature; -} -inline void FeatureConfiguration::clear_var_len_feature() { - if (has_var_len_feature()) { - if (GetArenaNoVirtual() == NULL) { - delete config_.var_len_feature_; - } - clear_has_config(); - } -} -inline const ::tensorflow::VarLenFeatureProto& FeatureConfiguration::_internal_var_len_feature() const { - return *config_.var_len_feature_; -} -inline ::tensorflow::VarLenFeatureProto* FeatureConfiguration::release_var_len_feature() { - // @@protoc_insertion_point(field_release:tensorflow.FeatureConfiguration.var_len_feature) - if (has_var_len_feature()) { - clear_has_config(); - ::tensorflow::VarLenFeatureProto* temp = config_.var_len_feature_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - config_.var_len_feature_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::VarLenFeatureProto& FeatureConfiguration::var_len_feature() const { - // @@protoc_insertion_point(field_get:tensorflow.FeatureConfiguration.var_len_feature) - return has_var_len_feature() - ? *config_.var_len_feature_ - : *reinterpret_cast< ::tensorflow::VarLenFeatureProto*>(&::tensorflow::_VarLenFeatureProto_default_instance_); -} -inline ::tensorflow::VarLenFeatureProto* FeatureConfiguration::unsafe_arena_release_var_len_feature() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.FeatureConfiguration.var_len_feature) - if (has_var_len_feature()) { - clear_has_config(); - ::tensorflow::VarLenFeatureProto* temp = config_.var_len_feature_; - config_.var_len_feature_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void FeatureConfiguration::unsafe_arena_set_allocated_var_len_feature(::tensorflow::VarLenFeatureProto* var_len_feature) { - clear_config(); - if (var_len_feature) { - set_has_var_len_feature(); - config_.var_len_feature_ = var_len_feature; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.FeatureConfiguration.var_len_feature) -} -inline ::tensorflow::VarLenFeatureProto* FeatureConfiguration::mutable_var_len_feature() { - if (!has_var_len_feature()) { - clear_config(); - set_has_var_len_feature(); - config_.var_len_feature_ = CreateMaybeMessage< ::tensorflow::VarLenFeatureProto >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.FeatureConfiguration.var_len_feature) - return config_.var_len_feature_; -} - -inline bool FeatureConfiguration::has_config() const { - return config_case() != CONFIG_NOT_SET; -} -inline void FeatureConfiguration::clear_has_config() { - _oneof_case_[0] = CONFIG_NOT_SET; -} -inline FeatureConfiguration::ConfigCase FeatureConfiguration::config_case() const { - return FeatureConfiguration::ConfigCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ExampleParserConfiguration - -// map feature_map = 1; -inline int ExampleParserConfiguration::feature_map_size() const { - return feature_map_.size(); -} -inline void ExampleParserConfiguration::clear_feature_map() { - feature_map_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::tensorflow::FeatureConfiguration >& -ExampleParserConfiguration::feature_map() const { - // @@protoc_insertion_point(field_map:tensorflow.ExampleParserConfiguration.feature_map) - return feature_map_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::tensorflow::FeatureConfiguration >* -ExampleParserConfiguration::mutable_feature_map() { - // @@protoc_insertion_point(field_mutable_map:tensorflow.ExampleParserConfiguration.feature_map) - return feature_map_.MutableMap(); -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto diff --git a/linux/include/tensorflow/core/example/feature.pb.h b/linux/include/tensorflow/core/example/feature.pb.h deleted file mode 100755 index d471d0b35..000000000 --- a/linux/include/tensorflow/core/example/feature.pb.h +++ /dev/null @@ -1,1551 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/example/feature.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2ffeature_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2ffeature_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fexample_2ffeature_2eproto - -namespace protobuf_tensorflow_2fcore_2fexample_2ffeature_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[9]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fexample_2ffeature_2eproto -namespace tensorflow { -class BytesList; -class BytesListDefaultTypeInternal; -extern BytesListDefaultTypeInternal _BytesList_default_instance_; -class Feature; -class FeatureDefaultTypeInternal; -extern FeatureDefaultTypeInternal _Feature_default_instance_; -class FeatureList; -class FeatureListDefaultTypeInternal; -extern FeatureListDefaultTypeInternal _FeatureList_default_instance_; -class FeatureLists; -class FeatureListsDefaultTypeInternal; -extern FeatureListsDefaultTypeInternal _FeatureLists_default_instance_; -class FeatureLists_FeatureListEntry_DoNotUse; -class FeatureLists_FeatureListEntry_DoNotUseDefaultTypeInternal; -extern FeatureLists_FeatureListEntry_DoNotUseDefaultTypeInternal _FeatureLists_FeatureListEntry_DoNotUse_default_instance_; -class Features; -class FeaturesDefaultTypeInternal; -extern FeaturesDefaultTypeInternal _Features_default_instance_; -class Features_FeatureEntry_DoNotUse; -class Features_FeatureEntry_DoNotUseDefaultTypeInternal; -extern Features_FeatureEntry_DoNotUseDefaultTypeInternal _Features_FeatureEntry_DoNotUse_default_instance_; -class FloatList; -class FloatListDefaultTypeInternal; -extern FloatListDefaultTypeInternal _FloatList_default_instance_; -class Int64List; -class Int64ListDefaultTypeInternal; -extern Int64ListDefaultTypeInternal _Int64List_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::BytesList* Arena::CreateMaybeMessage<::tensorflow::BytesList>(Arena*); -template<> ::tensorflow::Feature* Arena::CreateMaybeMessage<::tensorflow::Feature>(Arena*); -template<> ::tensorflow::FeatureList* Arena::CreateMaybeMessage<::tensorflow::FeatureList>(Arena*); -template<> ::tensorflow::FeatureLists* Arena::CreateMaybeMessage<::tensorflow::FeatureLists>(Arena*); -template<> ::tensorflow::FeatureLists_FeatureListEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::FeatureLists_FeatureListEntry_DoNotUse>(Arena*); -template<> ::tensorflow::Features* Arena::CreateMaybeMessage<::tensorflow::Features>(Arena*); -template<> ::tensorflow::Features_FeatureEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::Features_FeatureEntry_DoNotUse>(Arena*); -template<> ::tensorflow::FloatList* Arena::CreateMaybeMessage<::tensorflow::FloatList>(Arena*); -template<> ::tensorflow::Int64List* Arena::CreateMaybeMessage<::tensorflow::Int64List>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class BytesList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.BytesList) */ { - public: - BytesList(); - virtual ~BytesList(); - - BytesList(const BytesList& from); - - inline BytesList& operator=(const BytesList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - BytesList(BytesList&& from) noexcept - : BytesList() { - *this = ::std::move(from); - } - - inline BytesList& operator=(BytesList&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const BytesList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BytesList* internal_default_instance() { - return reinterpret_cast( - &_BytesList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(BytesList* other); - void Swap(BytesList* other); - friend void swap(BytesList& a, BytesList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline BytesList* New() const final { - return CreateMaybeMessage(NULL); - } - - BytesList* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const BytesList& from); - void MergeFrom(const BytesList& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(BytesList* other); - protected: - explicit BytesList(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated bytes value = 1; - int value_size() const; - void clear_value(); - static const int kValueFieldNumber = 1; - const ::std::string& value(int index) const; - ::std::string* mutable_value(int index); - void set_value(int index, const ::std::string& value); - #if LANG_CXX11 - void set_value(int index, ::std::string&& value); - #endif - void set_value(int index, const char* value); - void set_value(int index, const void* value, size_t size); - ::std::string* add_value(); - void add_value(const ::std::string& value); - #if LANG_CXX11 - void add_value(::std::string&& value); - #endif - void add_value(const char* value); - void add_value(const void* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& value() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_value(); - - // @@protoc_insertion_point(class_scope:tensorflow.BytesList) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::std::string> value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fexample_2ffeature_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class FloatList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.FloatList) */ { - public: - FloatList(); - virtual ~FloatList(); - - FloatList(const FloatList& from); - - inline FloatList& operator=(const FloatList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - FloatList(FloatList&& from) noexcept - : FloatList() { - *this = ::std::move(from); - } - - inline FloatList& operator=(FloatList&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const FloatList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FloatList* internal_default_instance() { - return reinterpret_cast( - &_FloatList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(FloatList* other); - void Swap(FloatList* other); - friend void swap(FloatList& a, FloatList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline FloatList* New() const final { - return CreateMaybeMessage(NULL); - } - - FloatList* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const FloatList& from); - void MergeFrom(const FloatList& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FloatList* other); - protected: - explicit FloatList(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated float value = 1 [packed = true]; - int value_size() const; - void clear_value(); - static const int kValueFieldNumber = 1; - float value(int index) const; - void set_value(int index, float value); - void add_value(float value); - const ::google::protobuf::RepeatedField< float >& - value() const; - ::google::protobuf::RepeatedField< float >* - mutable_value(); - - // @@protoc_insertion_point(class_scope:tensorflow.FloatList) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< float > value_; - mutable int _value_cached_byte_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fexample_2ffeature_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Int64List : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.Int64List) */ { - public: - Int64List(); - virtual ~Int64List(); - - Int64List(const Int64List& from); - - inline Int64List& operator=(const Int64List& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Int64List(Int64List&& from) noexcept - : Int64List() { - *this = ::std::move(from); - } - - inline Int64List& operator=(Int64List&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const Int64List& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Int64List* internal_default_instance() { - return reinterpret_cast( - &_Int64List_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void UnsafeArenaSwap(Int64List* other); - void Swap(Int64List* other); - friend void swap(Int64List& a, Int64List& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Int64List* New() const final { - return CreateMaybeMessage(NULL); - } - - Int64List* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Int64List& from); - void MergeFrom(const Int64List& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Int64List* other); - protected: - explicit Int64List(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int64 value = 1 [packed = true]; - int value_size() const; - void clear_value(); - static const int kValueFieldNumber = 1; - ::google::protobuf::int64 value(int index) const; - void set_value(int index, ::google::protobuf::int64 value); - void add_value(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - value() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_value(); - - // @@protoc_insertion_point(class_scope:tensorflow.Int64List) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > value_; - mutable int _value_cached_byte_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fexample_2ffeature_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Feature : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.Feature) */ { - public: - Feature(); - virtual ~Feature(); - - Feature(const Feature& from); - - inline Feature& operator=(const Feature& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Feature(Feature&& from) noexcept - : Feature() { - *this = ::std::move(from); - } - - inline Feature& operator=(Feature&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const Feature& default_instance(); - - enum KindCase { - kBytesList = 1, - kFloatList = 2, - kInt64List = 3, - KIND_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Feature* internal_default_instance() { - return reinterpret_cast( - &_Feature_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void UnsafeArenaSwap(Feature* other); - void Swap(Feature* other); - friend void swap(Feature& a, Feature& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Feature* New() const final { - return CreateMaybeMessage(NULL); - } - - Feature* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Feature& from); - void MergeFrom(const Feature& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Feature* other); - protected: - explicit Feature(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .tensorflow.BytesList bytes_list = 1; - bool has_bytes_list() const; - void clear_bytes_list(); - static const int kBytesListFieldNumber = 1; - private: - const ::tensorflow::BytesList& _internal_bytes_list() const; - public: - const ::tensorflow::BytesList& bytes_list() const; - ::tensorflow::BytesList* release_bytes_list(); - ::tensorflow::BytesList* mutable_bytes_list(); - void set_allocated_bytes_list(::tensorflow::BytesList* bytes_list); - void unsafe_arena_set_allocated_bytes_list( - ::tensorflow::BytesList* bytes_list); - ::tensorflow::BytesList* unsafe_arena_release_bytes_list(); - - // .tensorflow.FloatList float_list = 2; - bool has_float_list() const; - void clear_float_list(); - static const int kFloatListFieldNumber = 2; - private: - const ::tensorflow::FloatList& _internal_float_list() const; - public: - const ::tensorflow::FloatList& float_list() const; - ::tensorflow::FloatList* release_float_list(); - ::tensorflow::FloatList* mutable_float_list(); - void set_allocated_float_list(::tensorflow::FloatList* float_list); - void unsafe_arena_set_allocated_float_list( - ::tensorflow::FloatList* float_list); - ::tensorflow::FloatList* unsafe_arena_release_float_list(); - - // .tensorflow.Int64List int64_list = 3; - bool has_int64_list() const; - void clear_int64_list(); - static const int kInt64ListFieldNumber = 3; - private: - const ::tensorflow::Int64List& _internal_int64_list() const; - public: - const ::tensorflow::Int64List& int64_list() const; - ::tensorflow::Int64List* release_int64_list(); - ::tensorflow::Int64List* mutable_int64_list(); - void set_allocated_int64_list(::tensorflow::Int64List* int64_list); - void unsafe_arena_set_allocated_int64_list( - ::tensorflow::Int64List* int64_list); - ::tensorflow::Int64List* unsafe_arena_release_int64_list(); - - void clear_kind(); - KindCase kind_case() const; - // @@protoc_insertion_point(class_scope:tensorflow.Feature) - private: - void set_has_bytes_list(); - void set_has_float_list(); - void set_has_int64_list(); - - inline bool has_kind() const; - inline void clear_has_kind(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - union KindUnion { - KindUnion() {} - ::tensorflow::BytesList* bytes_list_; - ::tensorflow::FloatList* float_list_; - ::tensorflow::Int64List* int64_list_; - } kind_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::protobuf_tensorflow_2fcore_2fexample_2ffeature_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Features_FeatureEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: - typedef ::google::protobuf::internal::MapEntry SuperType; - Features_FeatureEntry_DoNotUse(); - Features_FeatureEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const Features_FeatureEntry_DoNotUse& other); - static const Features_FeatureEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_Features_FeatureEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class Features : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.Features) */ { - public: - Features(); - virtual ~Features(); - - Features(const Features& from); - - inline Features& operator=(const Features& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Features(Features&& from) noexcept - : Features() { - *this = ::std::move(from); - } - - inline Features& operator=(Features&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const Features& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Features* internal_default_instance() { - return reinterpret_cast( - &_Features_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void UnsafeArenaSwap(Features* other); - void Swap(Features* other); - friend void swap(Features& a, Features& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Features* New() const final { - return CreateMaybeMessage(NULL); - } - - Features* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Features& from); - void MergeFrom(const Features& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Features* other); - protected: - explicit Features(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - // map feature = 1; - int feature_size() const; - void clear_feature(); - static const int kFeatureFieldNumber = 1; - const ::google::protobuf::Map< ::std::string, ::tensorflow::Feature >& - feature() const; - ::google::protobuf::Map< ::std::string, ::tensorflow::Feature >* - mutable_feature(); - - // @@protoc_insertion_point(class_scope:tensorflow.Features) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::MapField< - Features_FeatureEntry_DoNotUse, - ::std::string, ::tensorflow::Feature, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > feature_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fexample_2ffeature_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class FeatureList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.FeatureList) */ { - public: - FeatureList(); - virtual ~FeatureList(); - - FeatureList(const FeatureList& from); - - inline FeatureList& operator=(const FeatureList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - FeatureList(FeatureList&& from) noexcept - : FeatureList() { - *this = ::std::move(from); - } - - inline FeatureList& operator=(FeatureList&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const FeatureList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FeatureList* internal_default_instance() { - return reinterpret_cast( - &_FeatureList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void UnsafeArenaSwap(FeatureList* other); - void Swap(FeatureList* other); - friend void swap(FeatureList& a, FeatureList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline FeatureList* New() const final { - return CreateMaybeMessage(NULL); - } - - FeatureList* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const FeatureList& from); - void MergeFrom(const FeatureList& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FeatureList* other); - protected: - explicit FeatureList(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.Feature feature = 1; - int feature_size() const; - void clear_feature(); - static const int kFeatureFieldNumber = 1; - ::tensorflow::Feature* mutable_feature(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::Feature >* - mutable_feature(); - const ::tensorflow::Feature& feature(int index) const; - ::tensorflow::Feature* add_feature(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::Feature >& - feature() const; - - // @@protoc_insertion_point(class_scope:tensorflow.FeatureList) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::Feature > feature_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fexample_2ffeature_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class FeatureLists_FeatureListEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: - typedef ::google::protobuf::internal::MapEntry SuperType; - FeatureLists_FeatureListEntry_DoNotUse(); - FeatureLists_FeatureListEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const FeatureLists_FeatureListEntry_DoNotUse& other); - static const FeatureLists_FeatureListEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_FeatureLists_FeatureListEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class FeatureLists : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.FeatureLists) */ { - public: - FeatureLists(); - virtual ~FeatureLists(); - - FeatureLists(const FeatureLists& from); - - inline FeatureLists& operator=(const FeatureLists& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - FeatureLists(FeatureLists&& from) noexcept - : FeatureLists() { - *this = ::std::move(from); - } - - inline FeatureLists& operator=(FeatureLists&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const FeatureLists& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FeatureLists* internal_default_instance() { - return reinterpret_cast( - &_FeatureLists_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void UnsafeArenaSwap(FeatureLists* other); - void Swap(FeatureLists* other); - friend void swap(FeatureLists& a, FeatureLists& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline FeatureLists* New() const final { - return CreateMaybeMessage(NULL); - } - - FeatureLists* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const FeatureLists& from); - void MergeFrom(const FeatureLists& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FeatureLists* other); - protected: - explicit FeatureLists(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - // map feature_list = 1; - int feature_list_size() const; - void clear_feature_list(); - static const int kFeatureListFieldNumber = 1; - const ::google::protobuf::Map< ::std::string, ::tensorflow::FeatureList >& - feature_list() const; - ::google::protobuf::Map< ::std::string, ::tensorflow::FeatureList >* - mutable_feature_list(); - - // @@protoc_insertion_point(class_scope:tensorflow.FeatureLists) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::MapField< - FeatureLists_FeatureListEntry_DoNotUse, - ::std::string, ::tensorflow::FeatureList, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > feature_list_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fexample_2ffeature_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// BytesList - -// repeated bytes value = 1; -inline int BytesList::value_size() const { - return value_.size(); -} -inline void BytesList::clear_value() { - value_.Clear(); -} -inline const ::std::string& BytesList::value(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.BytesList.value) - return value_.Get(index); -} -inline ::std::string* BytesList::mutable_value(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.BytesList.value) - return value_.Mutable(index); -} -inline void BytesList::set_value(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:tensorflow.BytesList.value) - value_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void BytesList::set_value(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:tensorflow.BytesList.value) - value_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void BytesList::set_value(int index, const char* value) { - GOOGLE_DCHECK(value != NULL); - value_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tensorflow.BytesList.value) -} -inline void BytesList::set_value(int index, const void* value, size_t size) { - value_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tensorflow.BytesList.value) -} -inline ::std::string* BytesList::add_value() { - // @@protoc_insertion_point(field_add_mutable:tensorflow.BytesList.value) - return value_.Add(); -} -inline void BytesList::add_value(const ::std::string& value) { - value_.Add()->assign(value); - // @@protoc_insertion_point(field_add:tensorflow.BytesList.value) -} -#if LANG_CXX11 -inline void BytesList::add_value(::std::string&& value) { - value_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:tensorflow.BytesList.value) -} -#endif -inline void BytesList::add_value(const char* value) { - GOOGLE_DCHECK(value != NULL); - value_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tensorflow.BytesList.value) -} -inline void BytesList::add_value(const void* value, size_t size) { - value_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tensorflow.BytesList.value) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -BytesList::value() const { - // @@protoc_insertion_point(field_list:tensorflow.BytesList.value) - return value_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -BytesList::mutable_value() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.BytesList.value) - return &value_; -} - -// ------------------------------------------------------------------- - -// FloatList - -// repeated float value = 1 [packed = true]; -inline int FloatList::value_size() const { - return value_.size(); -} -inline void FloatList::clear_value() { - value_.Clear(); -} -inline float FloatList::value(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.FloatList.value) - return value_.Get(index); -} -inline void FloatList::set_value(int index, float value) { - value_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.FloatList.value) -} -inline void FloatList::add_value(float value) { - value_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.FloatList.value) -} -inline const ::google::protobuf::RepeatedField< float >& -FloatList::value() const { - // @@protoc_insertion_point(field_list:tensorflow.FloatList.value) - return value_; -} -inline ::google::protobuf::RepeatedField< float >* -FloatList::mutable_value() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.FloatList.value) - return &value_; -} - -// ------------------------------------------------------------------- - -// Int64List - -// repeated int64 value = 1 [packed = true]; -inline int Int64List::value_size() const { - return value_.size(); -} -inline void Int64List::clear_value() { - value_.Clear(); -} -inline ::google::protobuf::int64 Int64List::value(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.Int64List.value) - return value_.Get(index); -} -inline void Int64List::set_value(int index, ::google::protobuf::int64 value) { - value_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.Int64List.value) -} -inline void Int64List::add_value(::google::protobuf::int64 value) { - value_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.Int64List.value) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -Int64List::value() const { - // @@protoc_insertion_point(field_list:tensorflow.Int64List.value) - return value_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -Int64List::mutable_value() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.Int64List.value) - return &value_; -} - -// ------------------------------------------------------------------- - -// Feature - -// .tensorflow.BytesList bytes_list = 1; -inline bool Feature::has_bytes_list() const { - return kind_case() == kBytesList; -} -inline void Feature::set_has_bytes_list() { - _oneof_case_[0] = kBytesList; -} -inline void Feature::clear_bytes_list() { - if (has_bytes_list()) { - if (GetArenaNoVirtual() == NULL) { - delete kind_.bytes_list_; - } - clear_has_kind(); - } -} -inline const ::tensorflow::BytesList& Feature::_internal_bytes_list() const { - return *kind_.bytes_list_; -} -inline ::tensorflow::BytesList* Feature::release_bytes_list() { - // @@protoc_insertion_point(field_release:tensorflow.Feature.bytes_list) - if (has_bytes_list()) { - clear_has_kind(); - ::tensorflow::BytesList* temp = kind_.bytes_list_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - kind_.bytes_list_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::BytesList& Feature::bytes_list() const { - // @@protoc_insertion_point(field_get:tensorflow.Feature.bytes_list) - return has_bytes_list() - ? *kind_.bytes_list_ - : *reinterpret_cast< ::tensorflow::BytesList*>(&::tensorflow::_BytesList_default_instance_); -} -inline ::tensorflow::BytesList* Feature::unsafe_arena_release_bytes_list() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Feature.bytes_list) - if (has_bytes_list()) { - clear_has_kind(); - ::tensorflow::BytesList* temp = kind_.bytes_list_; - kind_.bytes_list_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void Feature::unsafe_arena_set_allocated_bytes_list(::tensorflow::BytesList* bytes_list) { - clear_kind(); - if (bytes_list) { - set_has_bytes_list(); - kind_.bytes_list_ = bytes_list; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Feature.bytes_list) -} -inline ::tensorflow::BytesList* Feature::mutable_bytes_list() { - if (!has_bytes_list()) { - clear_kind(); - set_has_bytes_list(); - kind_.bytes_list_ = CreateMaybeMessage< ::tensorflow::BytesList >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.Feature.bytes_list) - return kind_.bytes_list_; -} - -// .tensorflow.FloatList float_list = 2; -inline bool Feature::has_float_list() const { - return kind_case() == kFloatList; -} -inline void Feature::set_has_float_list() { - _oneof_case_[0] = kFloatList; -} -inline void Feature::clear_float_list() { - if (has_float_list()) { - if (GetArenaNoVirtual() == NULL) { - delete kind_.float_list_; - } - clear_has_kind(); - } -} -inline const ::tensorflow::FloatList& Feature::_internal_float_list() const { - return *kind_.float_list_; -} -inline ::tensorflow::FloatList* Feature::release_float_list() { - // @@protoc_insertion_point(field_release:tensorflow.Feature.float_list) - if (has_float_list()) { - clear_has_kind(); - ::tensorflow::FloatList* temp = kind_.float_list_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - kind_.float_list_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::FloatList& Feature::float_list() const { - // @@protoc_insertion_point(field_get:tensorflow.Feature.float_list) - return has_float_list() - ? *kind_.float_list_ - : *reinterpret_cast< ::tensorflow::FloatList*>(&::tensorflow::_FloatList_default_instance_); -} -inline ::tensorflow::FloatList* Feature::unsafe_arena_release_float_list() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Feature.float_list) - if (has_float_list()) { - clear_has_kind(); - ::tensorflow::FloatList* temp = kind_.float_list_; - kind_.float_list_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void Feature::unsafe_arena_set_allocated_float_list(::tensorflow::FloatList* float_list) { - clear_kind(); - if (float_list) { - set_has_float_list(); - kind_.float_list_ = float_list; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Feature.float_list) -} -inline ::tensorflow::FloatList* Feature::mutable_float_list() { - if (!has_float_list()) { - clear_kind(); - set_has_float_list(); - kind_.float_list_ = CreateMaybeMessage< ::tensorflow::FloatList >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.Feature.float_list) - return kind_.float_list_; -} - -// .tensorflow.Int64List int64_list = 3; -inline bool Feature::has_int64_list() const { - return kind_case() == kInt64List; -} -inline void Feature::set_has_int64_list() { - _oneof_case_[0] = kInt64List; -} -inline void Feature::clear_int64_list() { - if (has_int64_list()) { - if (GetArenaNoVirtual() == NULL) { - delete kind_.int64_list_; - } - clear_has_kind(); - } -} -inline const ::tensorflow::Int64List& Feature::_internal_int64_list() const { - return *kind_.int64_list_; -} -inline ::tensorflow::Int64List* Feature::release_int64_list() { - // @@protoc_insertion_point(field_release:tensorflow.Feature.int64_list) - if (has_int64_list()) { - clear_has_kind(); - ::tensorflow::Int64List* temp = kind_.int64_list_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - kind_.int64_list_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::Int64List& Feature::int64_list() const { - // @@protoc_insertion_point(field_get:tensorflow.Feature.int64_list) - return has_int64_list() - ? *kind_.int64_list_ - : *reinterpret_cast< ::tensorflow::Int64List*>(&::tensorflow::_Int64List_default_instance_); -} -inline ::tensorflow::Int64List* Feature::unsafe_arena_release_int64_list() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Feature.int64_list) - if (has_int64_list()) { - clear_has_kind(); - ::tensorflow::Int64List* temp = kind_.int64_list_; - kind_.int64_list_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void Feature::unsafe_arena_set_allocated_int64_list(::tensorflow::Int64List* int64_list) { - clear_kind(); - if (int64_list) { - set_has_int64_list(); - kind_.int64_list_ = int64_list; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Feature.int64_list) -} -inline ::tensorflow::Int64List* Feature::mutable_int64_list() { - if (!has_int64_list()) { - clear_kind(); - set_has_int64_list(); - kind_.int64_list_ = CreateMaybeMessage< ::tensorflow::Int64List >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.Feature.int64_list) - return kind_.int64_list_; -} - -inline bool Feature::has_kind() const { - return kind_case() != KIND_NOT_SET; -} -inline void Feature::clear_has_kind() { - _oneof_case_[0] = KIND_NOT_SET; -} -inline Feature::KindCase Feature::kind_case() const { - return Feature::KindCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// Features - -// map feature = 1; -inline int Features::feature_size() const { - return feature_.size(); -} -inline void Features::clear_feature() { - feature_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::tensorflow::Feature >& -Features::feature() const { - // @@protoc_insertion_point(field_map:tensorflow.Features.feature) - return feature_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::tensorflow::Feature >* -Features::mutable_feature() { - // @@protoc_insertion_point(field_mutable_map:tensorflow.Features.feature) - return feature_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// FeatureList - -// repeated .tensorflow.Feature feature = 1; -inline int FeatureList::feature_size() const { - return feature_.size(); -} -inline void FeatureList::clear_feature() { - feature_.Clear(); -} -inline ::tensorflow::Feature* FeatureList::mutable_feature(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.FeatureList.feature) - return feature_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::Feature >* -FeatureList::mutable_feature() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.FeatureList.feature) - return &feature_; -} -inline const ::tensorflow::Feature& FeatureList::feature(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.FeatureList.feature) - return feature_.Get(index); -} -inline ::tensorflow::Feature* FeatureList::add_feature() { - // @@protoc_insertion_point(field_add:tensorflow.FeatureList.feature) - return feature_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::Feature >& -FeatureList::feature() const { - // @@protoc_insertion_point(field_list:tensorflow.FeatureList.feature) - return feature_; -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// FeatureLists - -// map feature_list = 1; -inline int FeatureLists::feature_list_size() const { - return feature_list_.size(); -} -inline void FeatureLists::clear_feature_list() { - feature_list_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::tensorflow::FeatureList >& -FeatureLists::feature_list() const { - // @@protoc_insertion_point(field_map:tensorflow.FeatureLists.feature_list) - return feature_list_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::tensorflow::FeatureList >* -FeatureLists::mutable_feature_list() { - // @@protoc_insertion_point(field_mutable_map:tensorflow.FeatureLists.feature_list) - return feature_list_.MutableMap(); -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fexample_2ffeature_2eproto diff --git a/linux/include/tensorflow/core/example/feature.pb_text-impl.h b/linux/include/tensorflow/core/example/feature.pb_text-impl.h deleted file mode 100755 index a28159551..000000000 --- a/linux/include/tensorflow/core/example/feature.pb_text-impl.h +++ /dev/null @@ -1,67 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_example_feature_proto_IMPL_H_ -#define tensorflow_core_example_feature_proto_IMPL_H_ - -#include "tensorflow/core/example/feature.pb.h" -#include "tensorflow/core/example/feature.pb_text.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::BytesList& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::BytesList* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::FloatList& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::FloatList* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::Int64List& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::Int64List* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::Feature& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::Feature* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::Features& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::Features* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::FeatureList& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::FeatureList* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::FeatureLists& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::FeatureLists* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_example_feature_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/example/feature.pb_text.h b/linux/include/tensorflow/core/example/feature.pb_text.h deleted file mode 100755 index f280b6014..000000000 --- a/linux/include/tensorflow/core/example/feature.pb_text.h +++ /dev/null @@ -1,84 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_example_feature_proto_H_ -#define tensorflow_core_example_feature_proto_H_ - -#include "tensorflow/core/example/feature.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.BytesList -string ProtoDebugString( - const ::tensorflow::BytesList& msg); -string ProtoShortDebugString( - const ::tensorflow::BytesList& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::BytesList* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.FloatList -string ProtoDebugString( - const ::tensorflow::FloatList& msg); -string ProtoShortDebugString( - const ::tensorflow::FloatList& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::FloatList* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.Int64List -string ProtoDebugString( - const ::tensorflow::Int64List& msg); -string ProtoShortDebugString( - const ::tensorflow::Int64List& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::Int64List* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.Feature -string ProtoDebugString( - const ::tensorflow::Feature& msg); -string ProtoShortDebugString( - const ::tensorflow::Feature& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::Feature* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.Features -string ProtoDebugString( - const ::tensorflow::Features& msg); -string ProtoShortDebugString( - const ::tensorflow::Features& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::Features* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.FeatureList -string ProtoDebugString( - const ::tensorflow::FeatureList& msg); -string ProtoShortDebugString( - const ::tensorflow::FeatureList& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::FeatureList* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.FeatureLists -string ProtoDebugString( - const ::tensorflow::FeatureLists& msg); -string ProtoShortDebugString( - const ::tensorflow::FeatureLists& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::FeatureLists* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_example_feature_proto_H_ diff --git a/linux/include/tensorflow/core/framework/allocation_description.pb.h b/linux/include/tensorflow/core/framework/allocation_description.pb.h deleted file mode 100755 index dcfaf7fe8..000000000 --- a/linux/include/tensorflow/core/framework/allocation_description.pb.h +++ /dev/null @@ -1,396 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/allocation_description.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fallocation_5fdescription_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fallocation_5fdescription_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fallocation_5fdescription_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2fallocation_5fdescription_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[1]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2fallocation_5fdescription_2eproto -namespace tensorflow { -class AllocationDescription; -class AllocationDescriptionDefaultTypeInternal; -extern AllocationDescriptionDefaultTypeInternal _AllocationDescription_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::AllocationDescription* Arena::CreateMaybeMessage<::tensorflow::AllocationDescription>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class AllocationDescription : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.AllocationDescription) */ { - public: - AllocationDescription(); - virtual ~AllocationDescription(); - - AllocationDescription(const AllocationDescription& from); - - inline AllocationDescription& operator=(const AllocationDescription& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - AllocationDescription(AllocationDescription&& from) noexcept - : AllocationDescription() { - *this = ::std::move(from); - } - - inline AllocationDescription& operator=(AllocationDescription&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const AllocationDescription& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AllocationDescription* internal_default_instance() { - return reinterpret_cast( - &_AllocationDescription_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(AllocationDescription* other); - void Swap(AllocationDescription* other); - friend void swap(AllocationDescription& a, AllocationDescription& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline AllocationDescription* New() const final { - return CreateMaybeMessage(NULL); - } - - AllocationDescription* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const AllocationDescription& from); - void MergeFrom(const AllocationDescription& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AllocationDescription* other); - protected: - explicit AllocationDescription(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string allocator_name = 3; - void clear_allocator_name(); - static const int kAllocatorNameFieldNumber = 3; - const ::std::string& allocator_name() const; - void set_allocator_name(const ::std::string& value); - #if LANG_CXX11 - void set_allocator_name(::std::string&& value); - #endif - void set_allocator_name(const char* value); - void set_allocator_name(const char* value, size_t size); - ::std::string* mutable_allocator_name(); - ::std::string* release_allocator_name(); - void set_allocated_allocator_name(::std::string* allocator_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_allocator_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_allocator_name( - ::std::string* allocator_name); - - // int64 requested_bytes = 1; - void clear_requested_bytes(); - static const int kRequestedBytesFieldNumber = 1; - ::google::protobuf::int64 requested_bytes() const; - void set_requested_bytes(::google::protobuf::int64 value); - - // int64 allocated_bytes = 2; - void clear_allocated_bytes(); - static const int kAllocatedBytesFieldNumber = 2; - ::google::protobuf::int64 allocated_bytes() const; - void set_allocated_bytes(::google::protobuf::int64 value); - - // int64 allocation_id = 4; - void clear_allocation_id(); - static const int kAllocationIdFieldNumber = 4; - ::google::protobuf::int64 allocation_id() const; - void set_allocation_id(::google::protobuf::int64 value); - - // uint64 ptr = 6; - void clear_ptr(); - static const int kPtrFieldNumber = 6; - ::google::protobuf::uint64 ptr() const; - void set_ptr(::google::protobuf::uint64 value); - - // bool has_single_reference = 5; - void clear_has_single_reference(); - static const int kHasSingleReferenceFieldNumber = 5; - bool has_single_reference() const; - void set_has_single_reference(bool value); - - // @@protoc_insertion_point(class_scope:tensorflow.AllocationDescription) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr allocator_name_; - ::google::protobuf::int64 requested_bytes_; - ::google::protobuf::int64 allocated_bytes_; - ::google::protobuf::int64 allocation_id_; - ::google::protobuf::uint64 ptr_; - bool has_single_reference_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fallocation_5fdescription_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// AllocationDescription - -// int64 requested_bytes = 1; -inline void AllocationDescription::clear_requested_bytes() { - requested_bytes_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 AllocationDescription::requested_bytes() const { - // @@protoc_insertion_point(field_get:tensorflow.AllocationDescription.requested_bytes) - return requested_bytes_; -} -inline void AllocationDescription::set_requested_bytes(::google::protobuf::int64 value) { - - requested_bytes_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AllocationDescription.requested_bytes) -} - -// int64 allocated_bytes = 2; -inline void AllocationDescription::clear_allocated_bytes() { - allocated_bytes_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 AllocationDescription::allocated_bytes() const { - // @@protoc_insertion_point(field_get:tensorflow.AllocationDescription.allocated_bytes) - return allocated_bytes_; -} -inline void AllocationDescription::set_allocated_bytes(::google::protobuf::int64 value) { - - allocated_bytes_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AllocationDescription.allocated_bytes) -} - -// string allocator_name = 3; -inline void AllocationDescription::clear_allocator_name() { - allocator_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& AllocationDescription::allocator_name() const { - // @@protoc_insertion_point(field_get:tensorflow.AllocationDescription.allocator_name) - return allocator_name_.Get(); -} -inline void AllocationDescription::set_allocator_name(const ::std::string& value) { - - allocator_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.AllocationDescription.allocator_name) -} -#if LANG_CXX11 -inline void AllocationDescription::set_allocator_name(::std::string&& value) { - - allocator_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.AllocationDescription.allocator_name) -} -#endif -inline void AllocationDescription::set_allocator_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - allocator_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.AllocationDescription.allocator_name) -} -inline void AllocationDescription::set_allocator_name(const char* value, - size_t size) { - - allocator_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.AllocationDescription.allocator_name) -} -inline ::std::string* AllocationDescription::mutable_allocator_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.AllocationDescription.allocator_name) - return allocator_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* AllocationDescription::release_allocator_name() { - // @@protoc_insertion_point(field_release:tensorflow.AllocationDescription.allocator_name) - - return allocator_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void AllocationDescription::set_allocated_allocator_name(::std::string* allocator_name) { - if (allocator_name != NULL) { - - } else { - - } - allocator_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), allocator_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.AllocationDescription.allocator_name) -} -inline ::std::string* AllocationDescription::unsafe_arena_release_allocator_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AllocationDescription.allocator_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return allocator_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void AllocationDescription::unsafe_arena_set_allocated_allocator_name( - ::std::string* allocator_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (allocator_name != NULL) { - - } else { - - } - allocator_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - allocator_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AllocationDescription.allocator_name) -} - -// int64 allocation_id = 4; -inline void AllocationDescription::clear_allocation_id() { - allocation_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 AllocationDescription::allocation_id() const { - // @@protoc_insertion_point(field_get:tensorflow.AllocationDescription.allocation_id) - return allocation_id_; -} -inline void AllocationDescription::set_allocation_id(::google::protobuf::int64 value) { - - allocation_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AllocationDescription.allocation_id) -} - -// bool has_single_reference = 5; -inline void AllocationDescription::clear_has_single_reference() { - has_single_reference_ = false; -} -inline bool AllocationDescription::has_single_reference() const { - // @@protoc_insertion_point(field_get:tensorflow.AllocationDescription.has_single_reference) - return has_single_reference_; -} -inline void AllocationDescription::set_has_single_reference(bool value) { - - has_single_reference_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AllocationDescription.has_single_reference) -} - -// uint64 ptr = 6; -inline void AllocationDescription::clear_ptr() { - ptr_ = GOOGLE_ULONGLONG(0); -} -inline ::google::protobuf::uint64 AllocationDescription::ptr() const { - // @@protoc_insertion_point(field_get:tensorflow.AllocationDescription.ptr) - return ptr_; -} -inline void AllocationDescription::set_ptr(::google::protobuf::uint64 value) { - - ptr_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AllocationDescription.ptr) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fallocation_5fdescription_2eproto diff --git a/linux/include/tensorflow/core/framework/allocation_description.pb_text-impl.h b/linux/include/tensorflow/core/framework/allocation_description.pb_text-impl.h deleted file mode 100755 index 3992b7eae..000000000 --- a/linux/include/tensorflow/core/framework/allocation_description.pb_text-impl.h +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_allocation_description_proto_IMPL_H_ -#define tensorflow_core_framework_allocation_description_proto_IMPL_H_ - -#include "tensorflow/core/framework/allocation_description.pb.h" -#include "tensorflow/core/framework/allocation_description.pb_text.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::AllocationDescription& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::AllocationDescription* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_allocation_description_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/allocation_description.pb_text.h b/linux/include/tensorflow/core/framework/allocation_description.pb_text.h deleted file mode 100755 index ab0ad5c03..000000000 --- a/linux/include/tensorflow/core/framework/allocation_description.pb_text.h +++ /dev/null @@ -1,24 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_allocation_description_proto_H_ -#define tensorflow_core_framework_allocation_description_proto_H_ - -#include "tensorflow/core/framework/allocation_description.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.AllocationDescription -string ProtoDebugString( - const ::tensorflow::AllocationDescription& msg); -string ProtoShortDebugString( - const ::tensorflow::AllocationDescription& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::AllocationDescription* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_allocation_description_proto_H_ diff --git a/linux/include/tensorflow/core/framework/api_def.pb.h b/linux/include/tensorflow/core/framework/api_def.pb.h deleted file mode 100755 index c053ea94f..000000000 --- a/linux/include/tensorflow/core/framework/api_def.pb.h +++ /dev/null @@ -1,2458 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/api_def.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include "tensorflow/core/framework/attr_value.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[5]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto -namespace tensorflow { -class ApiDef; -class ApiDefDefaultTypeInternal; -extern ApiDefDefaultTypeInternal _ApiDef_default_instance_; -class ApiDef_Arg; -class ApiDef_ArgDefaultTypeInternal; -extern ApiDef_ArgDefaultTypeInternal _ApiDef_Arg_default_instance_; -class ApiDef_Attr; -class ApiDef_AttrDefaultTypeInternal; -extern ApiDef_AttrDefaultTypeInternal _ApiDef_Attr_default_instance_; -class ApiDef_Endpoint; -class ApiDef_EndpointDefaultTypeInternal; -extern ApiDef_EndpointDefaultTypeInternal _ApiDef_Endpoint_default_instance_; -class ApiDefs; -class ApiDefsDefaultTypeInternal; -extern ApiDefsDefaultTypeInternal _ApiDefs_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::ApiDef* Arena::CreateMaybeMessage<::tensorflow::ApiDef>(Arena*); -template<> ::tensorflow::ApiDef_Arg* Arena::CreateMaybeMessage<::tensorflow::ApiDef_Arg>(Arena*); -template<> ::tensorflow::ApiDef_Attr* Arena::CreateMaybeMessage<::tensorflow::ApiDef_Attr>(Arena*); -template<> ::tensorflow::ApiDef_Endpoint* Arena::CreateMaybeMessage<::tensorflow::ApiDef_Endpoint>(Arena*); -template<> ::tensorflow::ApiDefs* Arena::CreateMaybeMessage<::tensorflow::ApiDefs>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -enum ApiDef_Visibility { - ApiDef_Visibility_DEFAULT_VISIBILITY = 0, - ApiDef_Visibility_VISIBLE = 1, - ApiDef_Visibility_SKIP = 2, - ApiDef_Visibility_HIDDEN = 3, - ApiDef_Visibility_ApiDef_Visibility_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - ApiDef_Visibility_ApiDef_Visibility_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool ApiDef_Visibility_IsValid(int value); -const ApiDef_Visibility ApiDef_Visibility_Visibility_MIN = ApiDef_Visibility_DEFAULT_VISIBILITY; -const ApiDef_Visibility ApiDef_Visibility_Visibility_MAX = ApiDef_Visibility_HIDDEN; -const int ApiDef_Visibility_Visibility_ARRAYSIZE = ApiDef_Visibility_Visibility_MAX + 1; - -const ::google::protobuf::EnumDescriptor* ApiDef_Visibility_descriptor(); -inline const ::std::string& ApiDef_Visibility_Name(ApiDef_Visibility value) { - return ::google::protobuf::internal::NameOfEnum( - ApiDef_Visibility_descriptor(), value); -} -inline bool ApiDef_Visibility_Parse( - const ::std::string& name, ApiDef_Visibility* value) { - return ::google::protobuf::internal::ParseNamedEnum( - ApiDef_Visibility_descriptor(), name, value); -} -// =================================================================== - -class ApiDef_Endpoint : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.ApiDef.Endpoint) */ { - public: - ApiDef_Endpoint(); - virtual ~ApiDef_Endpoint(); - - ApiDef_Endpoint(const ApiDef_Endpoint& from); - - inline ApiDef_Endpoint& operator=(const ApiDef_Endpoint& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ApiDef_Endpoint(ApiDef_Endpoint&& from) noexcept - : ApiDef_Endpoint() { - *this = ::std::move(from); - } - - inline ApiDef_Endpoint& operator=(ApiDef_Endpoint&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const ApiDef_Endpoint& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ApiDef_Endpoint* internal_default_instance() { - return reinterpret_cast( - &_ApiDef_Endpoint_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(ApiDef_Endpoint* other); - void Swap(ApiDef_Endpoint* other); - friend void swap(ApiDef_Endpoint& a, ApiDef_Endpoint& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ApiDef_Endpoint* New() const final { - return CreateMaybeMessage(NULL); - } - - ApiDef_Endpoint* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ApiDef_Endpoint& from); - void MergeFrom(const ApiDef_Endpoint& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ApiDef_Endpoint* other); - protected: - explicit ApiDef_Endpoint(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // bool deprecated = 3; - void clear_deprecated(); - static const int kDeprecatedFieldNumber = 3; - bool deprecated() const; - void set_deprecated(bool value); - - // @@protoc_insertion_point(class_scope:tensorflow.ApiDef.Endpoint) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr name_; - bool deprecated_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ApiDef_Arg : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.ApiDef.Arg) */ { - public: - ApiDef_Arg(); - virtual ~ApiDef_Arg(); - - ApiDef_Arg(const ApiDef_Arg& from); - - inline ApiDef_Arg& operator=(const ApiDef_Arg& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ApiDef_Arg(ApiDef_Arg&& from) noexcept - : ApiDef_Arg() { - *this = ::std::move(from); - } - - inline ApiDef_Arg& operator=(ApiDef_Arg&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const ApiDef_Arg& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ApiDef_Arg* internal_default_instance() { - return reinterpret_cast( - &_ApiDef_Arg_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(ApiDef_Arg* other); - void Swap(ApiDef_Arg* other); - friend void swap(ApiDef_Arg& a, ApiDef_Arg& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ApiDef_Arg* New() const final { - return CreateMaybeMessage(NULL); - } - - ApiDef_Arg* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ApiDef_Arg& from); - void MergeFrom(const ApiDef_Arg& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ApiDef_Arg* other); - protected: - explicit ApiDef_Arg(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // string rename_to = 2; - void clear_rename_to(); - static const int kRenameToFieldNumber = 2; - const ::std::string& rename_to() const; - void set_rename_to(const ::std::string& value); - #if LANG_CXX11 - void set_rename_to(::std::string&& value); - #endif - void set_rename_to(const char* value); - void set_rename_to(const char* value, size_t size); - ::std::string* mutable_rename_to(); - ::std::string* release_rename_to(); - void set_allocated_rename_to(::std::string* rename_to); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_rename_to(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_rename_to( - ::std::string* rename_to); - - // string description = 3; - void clear_description(); - static const int kDescriptionFieldNumber = 3; - const ::std::string& description() const; - void set_description(const ::std::string& value); - #if LANG_CXX11 - void set_description(::std::string&& value); - #endif - void set_description(const char* value); - void set_description(const char* value, size_t size); - ::std::string* mutable_description(); - ::std::string* release_description(); - void set_allocated_description(::std::string* description); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_description(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_description( - ::std::string* description); - - // @@protoc_insertion_point(class_scope:tensorflow.ApiDef.Arg) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr rename_to_; - ::google::protobuf::internal::ArenaStringPtr description_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ApiDef_Attr : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.ApiDef.Attr) */ { - public: - ApiDef_Attr(); - virtual ~ApiDef_Attr(); - - ApiDef_Attr(const ApiDef_Attr& from); - - inline ApiDef_Attr& operator=(const ApiDef_Attr& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ApiDef_Attr(ApiDef_Attr&& from) noexcept - : ApiDef_Attr() { - *this = ::std::move(from); - } - - inline ApiDef_Attr& operator=(ApiDef_Attr&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const ApiDef_Attr& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ApiDef_Attr* internal_default_instance() { - return reinterpret_cast( - &_ApiDef_Attr_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void UnsafeArenaSwap(ApiDef_Attr* other); - void Swap(ApiDef_Attr* other); - friend void swap(ApiDef_Attr& a, ApiDef_Attr& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ApiDef_Attr* New() const final { - return CreateMaybeMessage(NULL); - } - - ApiDef_Attr* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ApiDef_Attr& from); - void MergeFrom(const ApiDef_Attr& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ApiDef_Attr* other); - protected: - explicit ApiDef_Attr(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // string rename_to = 2; - void clear_rename_to(); - static const int kRenameToFieldNumber = 2; - const ::std::string& rename_to() const; - void set_rename_to(const ::std::string& value); - #if LANG_CXX11 - void set_rename_to(::std::string&& value); - #endif - void set_rename_to(const char* value); - void set_rename_to(const char* value, size_t size); - ::std::string* mutable_rename_to(); - ::std::string* release_rename_to(); - void set_allocated_rename_to(::std::string* rename_to); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_rename_to(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_rename_to( - ::std::string* rename_to); - - // string description = 4; - void clear_description(); - static const int kDescriptionFieldNumber = 4; - const ::std::string& description() const; - void set_description(const ::std::string& value); - #if LANG_CXX11 - void set_description(::std::string&& value); - #endif - void set_description(const char* value); - void set_description(const char* value, size_t size); - ::std::string* mutable_description(); - ::std::string* release_description(); - void set_allocated_description(::std::string* description); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_description(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_description( - ::std::string* description); - - // .tensorflow.AttrValue default_value = 3; - bool has_default_value() const; - void clear_default_value(); - static const int kDefaultValueFieldNumber = 3; - private: - const ::tensorflow::AttrValue& _internal_default_value() const; - public: - const ::tensorflow::AttrValue& default_value() const; - ::tensorflow::AttrValue* release_default_value(); - ::tensorflow::AttrValue* mutable_default_value(); - void set_allocated_default_value(::tensorflow::AttrValue* default_value); - void unsafe_arena_set_allocated_default_value( - ::tensorflow::AttrValue* default_value); - ::tensorflow::AttrValue* unsafe_arena_release_default_value(); - - // @@protoc_insertion_point(class_scope:tensorflow.ApiDef.Attr) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr rename_to_; - ::google::protobuf::internal::ArenaStringPtr description_; - ::tensorflow::AttrValue* default_value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ApiDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.ApiDef) */ { - public: - ApiDef(); - virtual ~ApiDef(); - - ApiDef(const ApiDef& from); - - inline ApiDef& operator=(const ApiDef& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ApiDef(ApiDef&& from) noexcept - : ApiDef() { - *this = ::std::move(from); - } - - inline ApiDef& operator=(ApiDef&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const ApiDef& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ApiDef* internal_default_instance() { - return reinterpret_cast( - &_ApiDef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void UnsafeArenaSwap(ApiDef* other); - void Swap(ApiDef* other); - friend void swap(ApiDef& a, ApiDef& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ApiDef* New() const final { - return CreateMaybeMessage(NULL); - } - - ApiDef* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ApiDef& from); - void MergeFrom(const ApiDef& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ApiDef* other); - protected: - explicit ApiDef(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef ApiDef_Endpoint Endpoint; - typedef ApiDef_Arg Arg; - typedef ApiDef_Attr Attr; - - typedef ApiDef_Visibility Visibility; - static const Visibility DEFAULT_VISIBILITY = - ApiDef_Visibility_DEFAULT_VISIBILITY; - static const Visibility VISIBLE = - ApiDef_Visibility_VISIBLE; - static const Visibility SKIP = - ApiDef_Visibility_SKIP; - static const Visibility HIDDEN = - ApiDef_Visibility_HIDDEN; - static inline bool Visibility_IsValid(int value) { - return ApiDef_Visibility_IsValid(value); - } - static const Visibility Visibility_MIN = - ApiDef_Visibility_Visibility_MIN; - static const Visibility Visibility_MAX = - ApiDef_Visibility_Visibility_MAX; - static const int Visibility_ARRAYSIZE = - ApiDef_Visibility_Visibility_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Visibility_descriptor() { - return ApiDef_Visibility_descriptor(); - } - static inline const ::std::string& Visibility_Name(Visibility value) { - return ApiDef_Visibility_Name(value); - } - static inline bool Visibility_Parse(const ::std::string& name, - Visibility* value) { - return ApiDef_Visibility_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.ApiDef.Endpoint endpoint = 3; - int endpoint_size() const; - void clear_endpoint(); - static const int kEndpointFieldNumber = 3; - ::tensorflow::ApiDef_Endpoint* mutable_endpoint(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Endpoint >* - mutable_endpoint(); - const ::tensorflow::ApiDef_Endpoint& endpoint(int index) const; - ::tensorflow::ApiDef_Endpoint* add_endpoint(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Endpoint >& - endpoint() const; - - // repeated .tensorflow.ApiDef.Arg in_arg = 4; - int in_arg_size() const; - void clear_in_arg(); - static const int kInArgFieldNumber = 4; - ::tensorflow::ApiDef_Arg* mutable_in_arg(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Arg >* - mutable_in_arg(); - const ::tensorflow::ApiDef_Arg& in_arg(int index) const; - ::tensorflow::ApiDef_Arg* add_in_arg(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Arg >& - in_arg() const; - - // repeated .tensorflow.ApiDef.Arg out_arg = 5; - int out_arg_size() const; - void clear_out_arg(); - static const int kOutArgFieldNumber = 5; - ::tensorflow::ApiDef_Arg* mutable_out_arg(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Arg >* - mutable_out_arg(); - const ::tensorflow::ApiDef_Arg& out_arg(int index) const; - ::tensorflow::ApiDef_Arg* add_out_arg(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Arg >& - out_arg() const; - - // repeated .tensorflow.ApiDef.Attr attr = 6; - int attr_size() const; - void clear_attr(); - static const int kAttrFieldNumber = 6; - ::tensorflow::ApiDef_Attr* mutable_attr(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Attr >* - mutable_attr(); - const ::tensorflow::ApiDef_Attr& attr(int index) const; - ::tensorflow::ApiDef_Attr* add_attr(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Attr >& - attr() const; - - // repeated string arg_order = 11; - int arg_order_size() const; - void clear_arg_order(); - static const int kArgOrderFieldNumber = 11; - const ::std::string& arg_order(int index) const; - ::std::string* mutable_arg_order(int index); - void set_arg_order(int index, const ::std::string& value); - #if LANG_CXX11 - void set_arg_order(int index, ::std::string&& value); - #endif - void set_arg_order(int index, const char* value); - void set_arg_order(int index, const char* value, size_t size); - ::std::string* add_arg_order(); - void add_arg_order(const ::std::string& value); - #if LANG_CXX11 - void add_arg_order(::std::string&& value); - #endif - void add_arg_order(const char* value); - void add_arg_order(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& arg_order() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_arg_order(); - - // string graph_op_name = 1; - void clear_graph_op_name(); - static const int kGraphOpNameFieldNumber = 1; - const ::std::string& graph_op_name() const; - void set_graph_op_name(const ::std::string& value); - #if LANG_CXX11 - void set_graph_op_name(::std::string&& value); - #endif - void set_graph_op_name(const char* value); - void set_graph_op_name(const char* value, size_t size); - ::std::string* mutable_graph_op_name(); - ::std::string* release_graph_op_name(); - void set_allocated_graph_op_name(::std::string* graph_op_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_graph_op_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_graph_op_name( - ::std::string* graph_op_name); - - // string summary = 7; - void clear_summary(); - static const int kSummaryFieldNumber = 7; - const ::std::string& summary() const; - void set_summary(const ::std::string& value); - #if LANG_CXX11 - void set_summary(::std::string&& value); - #endif - void set_summary(const char* value); - void set_summary(const char* value, size_t size); - ::std::string* mutable_summary(); - ::std::string* release_summary(); - void set_allocated_summary(::std::string* summary); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_summary(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_summary( - ::std::string* summary); - - // string description = 8; - void clear_description(); - static const int kDescriptionFieldNumber = 8; - const ::std::string& description() const; - void set_description(const ::std::string& value); - #if LANG_CXX11 - void set_description(::std::string&& value); - #endif - void set_description(const char* value); - void set_description(const char* value, size_t size); - ::std::string* mutable_description(); - ::std::string* release_description(); - void set_allocated_description(::std::string* description); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_description(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_description( - ::std::string* description); - - // string description_prefix = 9; - void clear_description_prefix(); - static const int kDescriptionPrefixFieldNumber = 9; - const ::std::string& description_prefix() const; - void set_description_prefix(const ::std::string& value); - #if LANG_CXX11 - void set_description_prefix(::std::string&& value); - #endif - void set_description_prefix(const char* value); - void set_description_prefix(const char* value, size_t size); - ::std::string* mutable_description_prefix(); - ::std::string* release_description_prefix(); - void set_allocated_description_prefix(::std::string* description_prefix); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_description_prefix(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_description_prefix( - ::std::string* description_prefix); - - // string description_suffix = 10; - void clear_description_suffix(); - static const int kDescriptionSuffixFieldNumber = 10; - const ::std::string& description_suffix() const; - void set_description_suffix(const ::std::string& value); - #if LANG_CXX11 - void set_description_suffix(::std::string&& value); - #endif - void set_description_suffix(const char* value); - void set_description_suffix(const char* value, size_t size); - ::std::string* mutable_description_suffix(); - ::std::string* release_description_suffix(); - void set_allocated_description_suffix(::std::string* description_suffix); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_description_suffix(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_description_suffix( - ::std::string* description_suffix); - - // string deprecation_message = 12; - void clear_deprecation_message(); - static const int kDeprecationMessageFieldNumber = 12; - const ::std::string& deprecation_message() const; - void set_deprecation_message(const ::std::string& value); - #if LANG_CXX11 - void set_deprecation_message(::std::string&& value); - #endif - void set_deprecation_message(const char* value); - void set_deprecation_message(const char* value, size_t size); - ::std::string* mutable_deprecation_message(); - ::std::string* release_deprecation_message(); - void set_allocated_deprecation_message(::std::string* deprecation_message); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_deprecation_message(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_deprecation_message( - ::std::string* deprecation_message); - - // .tensorflow.ApiDef.Visibility visibility = 2; - void clear_visibility(); - static const int kVisibilityFieldNumber = 2; - ::tensorflow::ApiDef_Visibility visibility() const; - void set_visibility(::tensorflow::ApiDef_Visibility value); - - // @@protoc_insertion_point(class_scope:tensorflow.ApiDef) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Endpoint > endpoint_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Arg > in_arg_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Arg > out_arg_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Attr > attr_; - ::google::protobuf::RepeatedPtrField< ::std::string> arg_order_; - ::google::protobuf::internal::ArenaStringPtr graph_op_name_; - ::google::protobuf::internal::ArenaStringPtr summary_; - ::google::protobuf::internal::ArenaStringPtr description_; - ::google::protobuf::internal::ArenaStringPtr description_prefix_; - ::google::protobuf::internal::ArenaStringPtr description_suffix_; - ::google::protobuf::internal::ArenaStringPtr deprecation_message_; - int visibility_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ApiDefs : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.ApiDefs) */ { - public: - ApiDefs(); - virtual ~ApiDefs(); - - ApiDefs(const ApiDefs& from); - - inline ApiDefs& operator=(const ApiDefs& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ApiDefs(ApiDefs&& from) noexcept - : ApiDefs() { - *this = ::std::move(from); - } - - inline ApiDefs& operator=(ApiDefs&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const ApiDefs& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ApiDefs* internal_default_instance() { - return reinterpret_cast( - &_ApiDefs_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void UnsafeArenaSwap(ApiDefs* other); - void Swap(ApiDefs* other); - friend void swap(ApiDefs& a, ApiDefs& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ApiDefs* New() const final { - return CreateMaybeMessage(NULL); - } - - ApiDefs* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ApiDefs& from); - void MergeFrom(const ApiDefs& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ApiDefs* other); - protected: - explicit ApiDefs(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.ApiDef op = 1; - int op_size() const; - void clear_op(); - static const int kOpFieldNumber = 1; - ::tensorflow::ApiDef* mutable_op(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef >* - mutable_op(); - const ::tensorflow::ApiDef& op(int index) const; - ::tensorflow::ApiDef* add_op(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef >& - op() const; - - // @@protoc_insertion_point(class_scope:tensorflow.ApiDefs) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef > op_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ApiDef_Endpoint - -// string name = 1; -inline void ApiDef_Endpoint::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& ApiDef_Endpoint::name() const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.Endpoint.name) - return name_.Get(); -} -inline void ApiDef_Endpoint::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.ApiDef.Endpoint.name) -} -#if LANG_CXX11 -inline void ApiDef_Endpoint::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.ApiDef.Endpoint.name) -} -#endif -inline void ApiDef_Endpoint::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.ApiDef.Endpoint.name) -} -inline void ApiDef_Endpoint::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ApiDef.Endpoint.name) -} -inline ::std::string* ApiDef_Endpoint::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.Endpoint.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* ApiDef_Endpoint::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.ApiDef.Endpoint.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void ApiDef_Endpoint::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.ApiDef.Endpoint.name) -} -inline ::std::string* ApiDef_Endpoint::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ApiDef.Endpoint.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void ApiDef_Endpoint::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ApiDef.Endpoint.name) -} - -// bool deprecated = 3; -inline void ApiDef_Endpoint::clear_deprecated() { - deprecated_ = false; -} -inline bool ApiDef_Endpoint::deprecated() const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.Endpoint.deprecated) - return deprecated_; -} -inline void ApiDef_Endpoint::set_deprecated(bool value) { - - deprecated_ = value; - // @@protoc_insertion_point(field_set:tensorflow.ApiDef.Endpoint.deprecated) -} - -// ------------------------------------------------------------------- - -// ApiDef_Arg - -// string name = 1; -inline void ApiDef_Arg::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& ApiDef_Arg::name() const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.Arg.name) - return name_.Get(); -} -inline void ApiDef_Arg::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.ApiDef.Arg.name) -} -#if LANG_CXX11 -inline void ApiDef_Arg::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.ApiDef.Arg.name) -} -#endif -inline void ApiDef_Arg::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.ApiDef.Arg.name) -} -inline void ApiDef_Arg::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ApiDef.Arg.name) -} -inline ::std::string* ApiDef_Arg::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.Arg.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* ApiDef_Arg::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.ApiDef.Arg.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void ApiDef_Arg::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.ApiDef.Arg.name) -} -inline ::std::string* ApiDef_Arg::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ApiDef.Arg.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void ApiDef_Arg::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ApiDef.Arg.name) -} - -// string rename_to = 2; -inline void ApiDef_Arg::clear_rename_to() { - rename_to_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& ApiDef_Arg::rename_to() const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.Arg.rename_to) - return rename_to_.Get(); -} -inline void ApiDef_Arg::set_rename_to(const ::std::string& value) { - - rename_to_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.ApiDef.Arg.rename_to) -} -#if LANG_CXX11 -inline void ApiDef_Arg::set_rename_to(::std::string&& value) { - - rename_to_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.ApiDef.Arg.rename_to) -} -#endif -inline void ApiDef_Arg::set_rename_to(const char* value) { - GOOGLE_DCHECK(value != NULL); - - rename_to_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.ApiDef.Arg.rename_to) -} -inline void ApiDef_Arg::set_rename_to(const char* value, - size_t size) { - - rename_to_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ApiDef.Arg.rename_to) -} -inline ::std::string* ApiDef_Arg::mutable_rename_to() { - - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.Arg.rename_to) - return rename_to_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* ApiDef_Arg::release_rename_to() { - // @@protoc_insertion_point(field_release:tensorflow.ApiDef.Arg.rename_to) - - return rename_to_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void ApiDef_Arg::set_allocated_rename_to(::std::string* rename_to) { - if (rename_to != NULL) { - - } else { - - } - rename_to_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), rename_to, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.ApiDef.Arg.rename_to) -} -inline ::std::string* ApiDef_Arg::unsafe_arena_release_rename_to() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ApiDef.Arg.rename_to) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return rename_to_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void ApiDef_Arg::unsafe_arena_set_allocated_rename_to( - ::std::string* rename_to) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (rename_to != NULL) { - - } else { - - } - rename_to_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - rename_to, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ApiDef.Arg.rename_to) -} - -// string description = 3; -inline void ApiDef_Arg::clear_description() { - description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& ApiDef_Arg::description() const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.Arg.description) - return description_.Get(); -} -inline void ApiDef_Arg::set_description(const ::std::string& value) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.ApiDef.Arg.description) -} -#if LANG_CXX11 -inline void ApiDef_Arg::set_description(::std::string&& value) { - - description_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.ApiDef.Arg.description) -} -#endif -inline void ApiDef_Arg::set_description(const char* value) { - GOOGLE_DCHECK(value != NULL); - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.ApiDef.Arg.description) -} -inline void ApiDef_Arg::set_description(const char* value, - size_t size) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ApiDef.Arg.description) -} -inline ::std::string* ApiDef_Arg::mutable_description() { - - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.Arg.description) - return description_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* ApiDef_Arg::release_description() { - // @@protoc_insertion_point(field_release:tensorflow.ApiDef.Arg.description) - - return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void ApiDef_Arg::set_allocated_description(::std::string* description) { - if (description != NULL) { - - } else { - - } - description_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.ApiDef.Arg.description) -} -inline ::std::string* ApiDef_Arg::unsafe_arena_release_description() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ApiDef.Arg.description) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void ApiDef_Arg::unsafe_arena_set_allocated_description( - ::std::string* description) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (description != NULL) { - - } else { - - } - description_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - description, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ApiDef.Arg.description) -} - -// ------------------------------------------------------------------- - -// ApiDef_Attr - -// string name = 1; -inline void ApiDef_Attr::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& ApiDef_Attr::name() const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.Attr.name) - return name_.Get(); -} -inline void ApiDef_Attr::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.ApiDef.Attr.name) -} -#if LANG_CXX11 -inline void ApiDef_Attr::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.ApiDef.Attr.name) -} -#endif -inline void ApiDef_Attr::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.ApiDef.Attr.name) -} -inline void ApiDef_Attr::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ApiDef.Attr.name) -} -inline ::std::string* ApiDef_Attr::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.Attr.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* ApiDef_Attr::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.ApiDef.Attr.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void ApiDef_Attr::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.ApiDef.Attr.name) -} -inline ::std::string* ApiDef_Attr::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ApiDef.Attr.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void ApiDef_Attr::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ApiDef.Attr.name) -} - -// string rename_to = 2; -inline void ApiDef_Attr::clear_rename_to() { - rename_to_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& ApiDef_Attr::rename_to() const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.Attr.rename_to) - return rename_to_.Get(); -} -inline void ApiDef_Attr::set_rename_to(const ::std::string& value) { - - rename_to_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.ApiDef.Attr.rename_to) -} -#if LANG_CXX11 -inline void ApiDef_Attr::set_rename_to(::std::string&& value) { - - rename_to_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.ApiDef.Attr.rename_to) -} -#endif -inline void ApiDef_Attr::set_rename_to(const char* value) { - GOOGLE_DCHECK(value != NULL); - - rename_to_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.ApiDef.Attr.rename_to) -} -inline void ApiDef_Attr::set_rename_to(const char* value, - size_t size) { - - rename_to_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ApiDef.Attr.rename_to) -} -inline ::std::string* ApiDef_Attr::mutable_rename_to() { - - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.Attr.rename_to) - return rename_to_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* ApiDef_Attr::release_rename_to() { - // @@protoc_insertion_point(field_release:tensorflow.ApiDef.Attr.rename_to) - - return rename_to_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void ApiDef_Attr::set_allocated_rename_to(::std::string* rename_to) { - if (rename_to != NULL) { - - } else { - - } - rename_to_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), rename_to, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.ApiDef.Attr.rename_to) -} -inline ::std::string* ApiDef_Attr::unsafe_arena_release_rename_to() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ApiDef.Attr.rename_to) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return rename_to_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void ApiDef_Attr::unsafe_arena_set_allocated_rename_to( - ::std::string* rename_to) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (rename_to != NULL) { - - } else { - - } - rename_to_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - rename_to, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ApiDef.Attr.rename_to) -} - -// .tensorflow.AttrValue default_value = 3; -inline bool ApiDef_Attr::has_default_value() const { - return this != internal_default_instance() && default_value_ != NULL; -} -inline const ::tensorflow::AttrValue& ApiDef_Attr::_internal_default_value() const { - return *default_value_; -} -inline const ::tensorflow::AttrValue& ApiDef_Attr::default_value() const { - const ::tensorflow::AttrValue* p = default_value_; - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.Attr.default_value) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_AttrValue_default_instance_); -} -inline ::tensorflow::AttrValue* ApiDef_Attr::release_default_value() { - // @@protoc_insertion_point(field_release:tensorflow.ApiDef.Attr.default_value) - - ::tensorflow::AttrValue* temp = default_value_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - default_value_ = NULL; - return temp; -} -inline ::tensorflow::AttrValue* ApiDef_Attr::unsafe_arena_release_default_value() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ApiDef.Attr.default_value) - - ::tensorflow::AttrValue* temp = default_value_; - default_value_ = NULL; - return temp; -} -inline ::tensorflow::AttrValue* ApiDef_Attr::mutable_default_value() { - - if (default_value_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::AttrValue>(GetArenaNoVirtual()); - default_value_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.Attr.default_value) - return default_value_; -} -inline void ApiDef_Attr::set_allocated_default_value(::tensorflow::AttrValue* default_value) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(default_value_); - } - if (default_value) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(default_value)->GetArena(); - if (message_arena != submessage_arena) { - default_value = ::google::protobuf::internal::GetOwnedMessage( - message_arena, default_value, submessage_arena); - } - - } else { - - } - default_value_ = default_value; - // @@protoc_insertion_point(field_set_allocated:tensorflow.ApiDef.Attr.default_value) -} - -// string description = 4; -inline void ApiDef_Attr::clear_description() { - description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& ApiDef_Attr::description() const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.Attr.description) - return description_.Get(); -} -inline void ApiDef_Attr::set_description(const ::std::string& value) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.ApiDef.Attr.description) -} -#if LANG_CXX11 -inline void ApiDef_Attr::set_description(::std::string&& value) { - - description_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.ApiDef.Attr.description) -} -#endif -inline void ApiDef_Attr::set_description(const char* value) { - GOOGLE_DCHECK(value != NULL); - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.ApiDef.Attr.description) -} -inline void ApiDef_Attr::set_description(const char* value, - size_t size) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ApiDef.Attr.description) -} -inline ::std::string* ApiDef_Attr::mutable_description() { - - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.Attr.description) - return description_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* ApiDef_Attr::release_description() { - // @@protoc_insertion_point(field_release:tensorflow.ApiDef.Attr.description) - - return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void ApiDef_Attr::set_allocated_description(::std::string* description) { - if (description != NULL) { - - } else { - - } - description_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.ApiDef.Attr.description) -} -inline ::std::string* ApiDef_Attr::unsafe_arena_release_description() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ApiDef.Attr.description) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void ApiDef_Attr::unsafe_arena_set_allocated_description( - ::std::string* description) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (description != NULL) { - - } else { - - } - description_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - description, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ApiDef.Attr.description) -} - -// ------------------------------------------------------------------- - -// ApiDef - -// string graph_op_name = 1; -inline void ApiDef::clear_graph_op_name() { - graph_op_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& ApiDef::graph_op_name() const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.graph_op_name) - return graph_op_name_.Get(); -} -inline void ApiDef::set_graph_op_name(const ::std::string& value) { - - graph_op_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.ApiDef.graph_op_name) -} -#if LANG_CXX11 -inline void ApiDef::set_graph_op_name(::std::string&& value) { - - graph_op_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.ApiDef.graph_op_name) -} -#endif -inline void ApiDef::set_graph_op_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - graph_op_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.ApiDef.graph_op_name) -} -inline void ApiDef::set_graph_op_name(const char* value, - size_t size) { - - graph_op_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ApiDef.graph_op_name) -} -inline ::std::string* ApiDef::mutable_graph_op_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.graph_op_name) - return graph_op_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* ApiDef::release_graph_op_name() { - // @@protoc_insertion_point(field_release:tensorflow.ApiDef.graph_op_name) - - return graph_op_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void ApiDef::set_allocated_graph_op_name(::std::string* graph_op_name) { - if (graph_op_name != NULL) { - - } else { - - } - graph_op_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), graph_op_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.ApiDef.graph_op_name) -} -inline ::std::string* ApiDef::unsafe_arena_release_graph_op_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ApiDef.graph_op_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return graph_op_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void ApiDef::unsafe_arena_set_allocated_graph_op_name( - ::std::string* graph_op_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (graph_op_name != NULL) { - - } else { - - } - graph_op_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - graph_op_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ApiDef.graph_op_name) -} - -// string deprecation_message = 12; -inline void ApiDef::clear_deprecation_message() { - deprecation_message_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& ApiDef::deprecation_message() const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.deprecation_message) - return deprecation_message_.Get(); -} -inline void ApiDef::set_deprecation_message(const ::std::string& value) { - - deprecation_message_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.ApiDef.deprecation_message) -} -#if LANG_CXX11 -inline void ApiDef::set_deprecation_message(::std::string&& value) { - - deprecation_message_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.ApiDef.deprecation_message) -} -#endif -inline void ApiDef::set_deprecation_message(const char* value) { - GOOGLE_DCHECK(value != NULL); - - deprecation_message_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.ApiDef.deprecation_message) -} -inline void ApiDef::set_deprecation_message(const char* value, - size_t size) { - - deprecation_message_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ApiDef.deprecation_message) -} -inline ::std::string* ApiDef::mutable_deprecation_message() { - - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.deprecation_message) - return deprecation_message_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* ApiDef::release_deprecation_message() { - // @@protoc_insertion_point(field_release:tensorflow.ApiDef.deprecation_message) - - return deprecation_message_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void ApiDef::set_allocated_deprecation_message(::std::string* deprecation_message) { - if (deprecation_message != NULL) { - - } else { - - } - deprecation_message_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), deprecation_message, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.ApiDef.deprecation_message) -} -inline ::std::string* ApiDef::unsafe_arena_release_deprecation_message() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ApiDef.deprecation_message) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return deprecation_message_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void ApiDef::unsafe_arena_set_allocated_deprecation_message( - ::std::string* deprecation_message) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (deprecation_message != NULL) { - - } else { - - } - deprecation_message_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - deprecation_message, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ApiDef.deprecation_message) -} - -// .tensorflow.ApiDef.Visibility visibility = 2; -inline void ApiDef::clear_visibility() { - visibility_ = 0; -} -inline ::tensorflow::ApiDef_Visibility ApiDef::visibility() const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.visibility) - return static_cast< ::tensorflow::ApiDef_Visibility >(visibility_); -} -inline void ApiDef::set_visibility(::tensorflow::ApiDef_Visibility value) { - - visibility_ = value; - // @@protoc_insertion_point(field_set:tensorflow.ApiDef.visibility) -} - -// repeated .tensorflow.ApiDef.Endpoint endpoint = 3; -inline int ApiDef::endpoint_size() const { - return endpoint_.size(); -} -inline void ApiDef::clear_endpoint() { - endpoint_.Clear(); -} -inline ::tensorflow::ApiDef_Endpoint* ApiDef::mutable_endpoint(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.endpoint) - return endpoint_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Endpoint >* -ApiDef::mutable_endpoint() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.ApiDef.endpoint) - return &endpoint_; -} -inline const ::tensorflow::ApiDef_Endpoint& ApiDef::endpoint(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.endpoint) - return endpoint_.Get(index); -} -inline ::tensorflow::ApiDef_Endpoint* ApiDef::add_endpoint() { - // @@protoc_insertion_point(field_add:tensorflow.ApiDef.endpoint) - return endpoint_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Endpoint >& -ApiDef::endpoint() const { - // @@protoc_insertion_point(field_list:tensorflow.ApiDef.endpoint) - return endpoint_; -} - -// repeated .tensorflow.ApiDef.Arg in_arg = 4; -inline int ApiDef::in_arg_size() const { - return in_arg_.size(); -} -inline void ApiDef::clear_in_arg() { - in_arg_.Clear(); -} -inline ::tensorflow::ApiDef_Arg* ApiDef::mutable_in_arg(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.in_arg) - return in_arg_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Arg >* -ApiDef::mutable_in_arg() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.ApiDef.in_arg) - return &in_arg_; -} -inline const ::tensorflow::ApiDef_Arg& ApiDef::in_arg(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.in_arg) - return in_arg_.Get(index); -} -inline ::tensorflow::ApiDef_Arg* ApiDef::add_in_arg() { - // @@protoc_insertion_point(field_add:tensorflow.ApiDef.in_arg) - return in_arg_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Arg >& -ApiDef::in_arg() const { - // @@protoc_insertion_point(field_list:tensorflow.ApiDef.in_arg) - return in_arg_; -} - -// repeated .tensorflow.ApiDef.Arg out_arg = 5; -inline int ApiDef::out_arg_size() const { - return out_arg_.size(); -} -inline void ApiDef::clear_out_arg() { - out_arg_.Clear(); -} -inline ::tensorflow::ApiDef_Arg* ApiDef::mutable_out_arg(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.out_arg) - return out_arg_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Arg >* -ApiDef::mutable_out_arg() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.ApiDef.out_arg) - return &out_arg_; -} -inline const ::tensorflow::ApiDef_Arg& ApiDef::out_arg(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.out_arg) - return out_arg_.Get(index); -} -inline ::tensorflow::ApiDef_Arg* ApiDef::add_out_arg() { - // @@protoc_insertion_point(field_add:tensorflow.ApiDef.out_arg) - return out_arg_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Arg >& -ApiDef::out_arg() const { - // @@protoc_insertion_point(field_list:tensorflow.ApiDef.out_arg) - return out_arg_; -} - -// repeated string arg_order = 11; -inline int ApiDef::arg_order_size() const { - return arg_order_.size(); -} -inline void ApiDef::clear_arg_order() { - arg_order_.Clear(); -} -inline const ::std::string& ApiDef::arg_order(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.arg_order) - return arg_order_.Get(index); -} -inline ::std::string* ApiDef::mutable_arg_order(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.arg_order) - return arg_order_.Mutable(index); -} -inline void ApiDef::set_arg_order(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:tensorflow.ApiDef.arg_order) - arg_order_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void ApiDef::set_arg_order(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:tensorflow.ApiDef.arg_order) - arg_order_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void ApiDef::set_arg_order(int index, const char* value) { - GOOGLE_DCHECK(value != NULL); - arg_order_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tensorflow.ApiDef.arg_order) -} -inline void ApiDef::set_arg_order(int index, const char* value, size_t size) { - arg_order_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ApiDef.arg_order) -} -inline ::std::string* ApiDef::add_arg_order() { - // @@protoc_insertion_point(field_add_mutable:tensorflow.ApiDef.arg_order) - return arg_order_.Add(); -} -inline void ApiDef::add_arg_order(const ::std::string& value) { - arg_order_.Add()->assign(value); - // @@protoc_insertion_point(field_add:tensorflow.ApiDef.arg_order) -} -#if LANG_CXX11 -inline void ApiDef::add_arg_order(::std::string&& value) { - arg_order_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:tensorflow.ApiDef.arg_order) -} -#endif -inline void ApiDef::add_arg_order(const char* value) { - GOOGLE_DCHECK(value != NULL); - arg_order_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tensorflow.ApiDef.arg_order) -} -inline void ApiDef::add_arg_order(const char* value, size_t size) { - arg_order_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tensorflow.ApiDef.arg_order) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -ApiDef::arg_order() const { - // @@protoc_insertion_point(field_list:tensorflow.ApiDef.arg_order) - return arg_order_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -ApiDef::mutable_arg_order() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.ApiDef.arg_order) - return &arg_order_; -} - -// repeated .tensorflow.ApiDef.Attr attr = 6; -inline int ApiDef::attr_size() const { - return attr_.size(); -} -inline void ApiDef::clear_attr() { - attr_.Clear(); -} -inline ::tensorflow::ApiDef_Attr* ApiDef::mutable_attr(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.attr) - return attr_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Attr >* -ApiDef::mutable_attr() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.ApiDef.attr) - return &attr_; -} -inline const ::tensorflow::ApiDef_Attr& ApiDef::attr(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.attr) - return attr_.Get(index); -} -inline ::tensorflow::ApiDef_Attr* ApiDef::add_attr() { - // @@protoc_insertion_point(field_add:tensorflow.ApiDef.attr) - return attr_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef_Attr >& -ApiDef::attr() const { - // @@protoc_insertion_point(field_list:tensorflow.ApiDef.attr) - return attr_; -} - -// string summary = 7; -inline void ApiDef::clear_summary() { - summary_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& ApiDef::summary() const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.summary) - return summary_.Get(); -} -inline void ApiDef::set_summary(const ::std::string& value) { - - summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.ApiDef.summary) -} -#if LANG_CXX11 -inline void ApiDef::set_summary(::std::string&& value) { - - summary_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.ApiDef.summary) -} -#endif -inline void ApiDef::set_summary(const char* value) { - GOOGLE_DCHECK(value != NULL); - - summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.ApiDef.summary) -} -inline void ApiDef::set_summary(const char* value, - size_t size) { - - summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ApiDef.summary) -} -inline ::std::string* ApiDef::mutable_summary() { - - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.summary) - return summary_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* ApiDef::release_summary() { - // @@protoc_insertion_point(field_release:tensorflow.ApiDef.summary) - - return summary_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void ApiDef::set_allocated_summary(::std::string* summary) { - if (summary != NULL) { - - } else { - - } - summary_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), summary, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.ApiDef.summary) -} -inline ::std::string* ApiDef::unsafe_arena_release_summary() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ApiDef.summary) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return summary_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void ApiDef::unsafe_arena_set_allocated_summary( - ::std::string* summary) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (summary != NULL) { - - } else { - - } - summary_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - summary, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ApiDef.summary) -} - -// string description = 8; -inline void ApiDef::clear_description() { - description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& ApiDef::description() const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.description) - return description_.Get(); -} -inline void ApiDef::set_description(const ::std::string& value) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.ApiDef.description) -} -#if LANG_CXX11 -inline void ApiDef::set_description(::std::string&& value) { - - description_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.ApiDef.description) -} -#endif -inline void ApiDef::set_description(const char* value) { - GOOGLE_DCHECK(value != NULL); - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.ApiDef.description) -} -inline void ApiDef::set_description(const char* value, - size_t size) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ApiDef.description) -} -inline ::std::string* ApiDef::mutable_description() { - - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.description) - return description_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* ApiDef::release_description() { - // @@protoc_insertion_point(field_release:tensorflow.ApiDef.description) - - return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void ApiDef::set_allocated_description(::std::string* description) { - if (description != NULL) { - - } else { - - } - description_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.ApiDef.description) -} -inline ::std::string* ApiDef::unsafe_arena_release_description() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ApiDef.description) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void ApiDef::unsafe_arena_set_allocated_description( - ::std::string* description) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (description != NULL) { - - } else { - - } - description_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - description, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ApiDef.description) -} - -// string description_prefix = 9; -inline void ApiDef::clear_description_prefix() { - description_prefix_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& ApiDef::description_prefix() const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.description_prefix) - return description_prefix_.Get(); -} -inline void ApiDef::set_description_prefix(const ::std::string& value) { - - description_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.ApiDef.description_prefix) -} -#if LANG_CXX11 -inline void ApiDef::set_description_prefix(::std::string&& value) { - - description_prefix_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.ApiDef.description_prefix) -} -#endif -inline void ApiDef::set_description_prefix(const char* value) { - GOOGLE_DCHECK(value != NULL); - - description_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.ApiDef.description_prefix) -} -inline void ApiDef::set_description_prefix(const char* value, - size_t size) { - - description_prefix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ApiDef.description_prefix) -} -inline ::std::string* ApiDef::mutable_description_prefix() { - - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.description_prefix) - return description_prefix_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* ApiDef::release_description_prefix() { - // @@protoc_insertion_point(field_release:tensorflow.ApiDef.description_prefix) - - return description_prefix_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void ApiDef::set_allocated_description_prefix(::std::string* description_prefix) { - if (description_prefix != NULL) { - - } else { - - } - description_prefix_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description_prefix, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.ApiDef.description_prefix) -} -inline ::std::string* ApiDef::unsafe_arena_release_description_prefix() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ApiDef.description_prefix) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return description_prefix_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void ApiDef::unsafe_arena_set_allocated_description_prefix( - ::std::string* description_prefix) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (description_prefix != NULL) { - - } else { - - } - description_prefix_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - description_prefix, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ApiDef.description_prefix) -} - -// string description_suffix = 10; -inline void ApiDef::clear_description_suffix() { - description_suffix_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& ApiDef::description_suffix() const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDef.description_suffix) - return description_suffix_.Get(); -} -inline void ApiDef::set_description_suffix(const ::std::string& value) { - - description_suffix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.ApiDef.description_suffix) -} -#if LANG_CXX11 -inline void ApiDef::set_description_suffix(::std::string&& value) { - - description_suffix_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.ApiDef.description_suffix) -} -#endif -inline void ApiDef::set_description_suffix(const char* value) { - GOOGLE_DCHECK(value != NULL); - - description_suffix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.ApiDef.description_suffix) -} -inline void ApiDef::set_description_suffix(const char* value, - size_t size) { - - description_suffix_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ApiDef.description_suffix) -} -inline ::std::string* ApiDef::mutable_description_suffix() { - - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDef.description_suffix) - return description_suffix_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* ApiDef::release_description_suffix() { - // @@protoc_insertion_point(field_release:tensorflow.ApiDef.description_suffix) - - return description_suffix_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void ApiDef::set_allocated_description_suffix(::std::string* description_suffix) { - if (description_suffix != NULL) { - - } else { - - } - description_suffix_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description_suffix, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.ApiDef.description_suffix) -} -inline ::std::string* ApiDef::unsafe_arena_release_description_suffix() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ApiDef.description_suffix) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return description_suffix_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void ApiDef::unsafe_arena_set_allocated_description_suffix( - ::std::string* description_suffix) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (description_suffix != NULL) { - - } else { - - } - description_suffix_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - description_suffix, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ApiDef.description_suffix) -} - -// ------------------------------------------------------------------- - -// ApiDefs - -// repeated .tensorflow.ApiDef op = 1; -inline int ApiDefs::op_size() const { - return op_.size(); -} -inline void ApiDefs::clear_op() { - op_.Clear(); -} -inline ::tensorflow::ApiDef* ApiDefs::mutable_op(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.ApiDefs.op) - return op_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef >* -ApiDefs::mutable_op() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.ApiDefs.op) - return &op_; -} -inline const ::tensorflow::ApiDef& ApiDefs::op(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.ApiDefs.op) - return op_.Get(index); -} -inline ::tensorflow::ApiDef* ApiDefs::add_op() { - // @@protoc_insertion_point(field_add:tensorflow.ApiDefs.op) - return op_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::ApiDef >& -ApiDefs::op() const { - // @@protoc_insertion_point(field_list:tensorflow.ApiDefs.op) - return op_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::tensorflow::ApiDef_Visibility> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::ApiDef_Visibility>() { - return ::tensorflow::ApiDef_Visibility_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto diff --git a/linux/include/tensorflow/core/framework/api_def.pb_text-impl.h b/linux/include/tensorflow/core/framework/api_def.pb_text-impl.h deleted file mode 100755 index dc7b2033f..000000000 --- a/linux/include/tensorflow/core/framework/api_def.pb_text-impl.h +++ /dev/null @@ -1,63 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_api_def_proto_IMPL_H_ -#define tensorflow_core_framework_api_def_proto_IMPL_H_ - -#include "tensorflow/core/framework/api_def.pb.h" -#include "tensorflow/core/framework/api_def.pb_text.h" -#include "tensorflow/core/framework/attr_value.pb.h" -#include "tensorflow/core/framework/attr_value.pb_text-impl.h" -#include "tensorflow/core/framework/resource_handle.pb.h" -#include "tensorflow/core/framework/resource_handle.pb_text-impl.h" -#include "tensorflow/core/framework/tensor.pb.h" -#include "tensorflow/core/framework/tensor.pb_text-impl.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb_text-impl.h" -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/framework/types.pb_text-impl.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::ApiDef_Endpoint& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::ApiDef_Endpoint* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::ApiDef_Arg& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::ApiDef_Arg* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::ApiDef_Attr& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::ApiDef_Attr* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::ApiDef& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::ApiDef* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::ApiDefs& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::ApiDefs* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_api_def_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/api_def.pb_text.h b/linux/include/tensorflow/core/framework/api_def.pb_text.h deleted file mode 100755 index f0d880ebb..000000000 --- a/linux/include/tensorflow/core/framework/api_def.pb_text.h +++ /dev/null @@ -1,68 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_api_def_proto_H_ -#define tensorflow_core_framework_api_def_proto_H_ - -#include "tensorflow/core/framework/api_def.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Enum text output for tensorflow.ApiDef.Visibility -const char* EnumName_ApiDef_Visibility( - ::tensorflow::ApiDef_Visibility value); - -// Message-text conversion for tensorflow.ApiDef.Endpoint -string ProtoDebugString( - const ::tensorflow::ApiDef_Endpoint& msg); -string ProtoShortDebugString( - const ::tensorflow::ApiDef_Endpoint& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::ApiDef_Endpoint* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.ApiDef.Arg -string ProtoDebugString( - const ::tensorflow::ApiDef_Arg& msg); -string ProtoShortDebugString( - const ::tensorflow::ApiDef_Arg& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::ApiDef_Arg* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.ApiDef.Attr -string ProtoDebugString( - const ::tensorflow::ApiDef_Attr& msg); -string ProtoShortDebugString( - const ::tensorflow::ApiDef_Attr& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::ApiDef_Attr* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.ApiDef -string ProtoDebugString( - const ::tensorflow::ApiDef& msg); -string ProtoShortDebugString( - const ::tensorflow::ApiDef& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::ApiDef* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.ApiDefs -string ProtoDebugString( - const ::tensorflow::ApiDefs& msg); -string ProtoShortDebugString( - const ::tensorflow::ApiDefs& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::ApiDefs* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_api_def_proto_H_ diff --git a/linux/include/tensorflow/core/framework/attr_value.pb.h b/linux/include/tensorflow/core/framework/attr_value.pb.h deleted file mode 100755 index 669f142b4..000000000 --- a/linux/include/tensorflow/core/framework/attr_value.pb.h +++ /dev/null @@ -1,1814 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/attr_value.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include "tensorflow/core/framework/tensor.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/types.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[4]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto -namespace tensorflow { -class AttrValue; -class AttrValueDefaultTypeInternal; -extern AttrValueDefaultTypeInternal _AttrValue_default_instance_; -class AttrValue_ListValue; -class AttrValue_ListValueDefaultTypeInternal; -extern AttrValue_ListValueDefaultTypeInternal _AttrValue_ListValue_default_instance_; -class NameAttrList; -class NameAttrListDefaultTypeInternal; -extern NameAttrListDefaultTypeInternal _NameAttrList_default_instance_; -class NameAttrList_AttrEntry_DoNotUse; -class NameAttrList_AttrEntry_DoNotUseDefaultTypeInternal; -extern NameAttrList_AttrEntry_DoNotUseDefaultTypeInternal _NameAttrList_AttrEntry_DoNotUse_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::AttrValue* Arena::CreateMaybeMessage<::tensorflow::AttrValue>(Arena*); -template<> ::tensorflow::AttrValue_ListValue* Arena::CreateMaybeMessage<::tensorflow::AttrValue_ListValue>(Arena*); -template<> ::tensorflow::NameAttrList* Arena::CreateMaybeMessage<::tensorflow::NameAttrList>(Arena*); -template<> ::tensorflow::NameAttrList_AttrEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::NameAttrList_AttrEntry_DoNotUse>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class AttrValue_ListValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.AttrValue.ListValue) */ { - public: - AttrValue_ListValue(); - virtual ~AttrValue_ListValue(); - - AttrValue_ListValue(const AttrValue_ListValue& from); - - inline AttrValue_ListValue& operator=(const AttrValue_ListValue& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - AttrValue_ListValue(AttrValue_ListValue&& from) noexcept - : AttrValue_ListValue() { - *this = ::std::move(from); - } - - inline AttrValue_ListValue& operator=(AttrValue_ListValue&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const AttrValue_ListValue& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AttrValue_ListValue* internal_default_instance() { - return reinterpret_cast( - &_AttrValue_ListValue_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(AttrValue_ListValue* other); - void Swap(AttrValue_ListValue* other); - friend void swap(AttrValue_ListValue& a, AttrValue_ListValue& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline AttrValue_ListValue* New() const final { - return CreateMaybeMessage(NULL); - } - - AttrValue_ListValue* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const AttrValue_ListValue& from); - void MergeFrom(const AttrValue_ListValue& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AttrValue_ListValue* other); - protected: - explicit AttrValue_ListValue(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated bytes s = 2; - int s_size() const; - void clear_s(); - static const int kSFieldNumber = 2; - const ::std::string& s(int index) const; - ::std::string* mutable_s(int index); - void set_s(int index, const ::std::string& value); - #if LANG_CXX11 - void set_s(int index, ::std::string&& value); - #endif - void set_s(int index, const char* value); - void set_s(int index, const void* value, size_t size); - ::std::string* add_s(); - void add_s(const ::std::string& value); - #if LANG_CXX11 - void add_s(::std::string&& value); - #endif - void add_s(const char* value); - void add_s(const void* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& s() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_s(); - - // repeated int64 i = 3 [packed = true]; - int i_size() const; - void clear_i(); - static const int kIFieldNumber = 3; - ::google::protobuf::int64 i(int index) const; - void set_i(int index, ::google::protobuf::int64 value); - void add_i(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - i() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_i(); - - // repeated float f = 4 [packed = true]; - int f_size() const; - void clear_f(); - static const int kFFieldNumber = 4; - float f(int index) const; - void set_f(int index, float value); - void add_f(float value); - const ::google::protobuf::RepeatedField< float >& - f() const; - ::google::protobuf::RepeatedField< float >* - mutable_f(); - - // repeated bool b = 5 [packed = true]; - int b_size() const; - void clear_b(); - static const int kBFieldNumber = 5; - bool b(int index) const; - void set_b(int index, bool value); - void add_b(bool value); - const ::google::protobuf::RepeatedField< bool >& - b() const; - ::google::protobuf::RepeatedField< bool >* - mutable_b(); - - // repeated .tensorflow.DataType type = 6 [packed = true]; - int type_size() const; - void clear_type(); - static const int kTypeFieldNumber = 6; - ::tensorflow::DataType type(int index) const; - void set_type(int index, ::tensorflow::DataType value); - void add_type(::tensorflow::DataType value); - const ::google::protobuf::RepeatedField& type() const; - ::google::protobuf::RepeatedField* mutable_type(); - - // repeated .tensorflow.TensorShapeProto shape = 7; - int shape_size() const; - void clear_shape(); - static const int kShapeFieldNumber = 7; - ::tensorflow::TensorShapeProto* mutable_shape(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto >* - mutable_shape(); - const ::tensorflow::TensorShapeProto& shape(int index) const; - ::tensorflow::TensorShapeProto* add_shape(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto >& - shape() const; - - // repeated .tensorflow.TensorProto tensor = 8; - int tensor_size() const; - void clear_tensor(); - static const int kTensorFieldNumber = 8; - ::tensorflow::TensorProto* mutable_tensor(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorProto >* - mutable_tensor(); - const ::tensorflow::TensorProto& tensor(int index) const; - ::tensorflow::TensorProto* add_tensor(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorProto >& - tensor() const; - - // repeated .tensorflow.NameAttrList func = 9; - int func_size() const; - void clear_func(); - static const int kFuncFieldNumber = 9; - ::tensorflow::NameAttrList* mutable_func(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::NameAttrList >* - mutable_func(); - const ::tensorflow::NameAttrList& func(int index) const; - ::tensorflow::NameAttrList* add_func(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::NameAttrList >& - func() const; - - // @@protoc_insertion_point(class_scope:tensorflow.AttrValue.ListValue) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::std::string> s_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > i_; - mutable int _i_cached_byte_size_; - ::google::protobuf::RepeatedField< float > f_; - mutable int _f_cached_byte_size_; - ::google::protobuf::RepeatedField< bool > b_; - mutable int _b_cached_byte_size_; - ::google::protobuf::RepeatedField type_; - mutable int _type_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto > shape_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorProto > tensor_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::NameAttrList > func_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class AttrValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.AttrValue) */ { - public: - AttrValue(); - virtual ~AttrValue(); - - AttrValue(const AttrValue& from); - - inline AttrValue& operator=(const AttrValue& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - AttrValue(AttrValue&& from) noexcept - : AttrValue() { - *this = ::std::move(from); - } - - inline AttrValue& operator=(AttrValue&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const AttrValue& default_instance(); - - enum ValueCase { - kS = 2, - kI = 3, - kF = 4, - kB = 5, - kType = 6, - kShape = 7, - kTensor = 8, - kList = 1, - kFunc = 10, - kPlaceholder = 9, - VALUE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AttrValue* internal_default_instance() { - return reinterpret_cast( - &_AttrValue_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(AttrValue* other); - void Swap(AttrValue* other); - friend void swap(AttrValue& a, AttrValue& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline AttrValue* New() const final { - return CreateMaybeMessage(NULL); - } - - AttrValue* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const AttrValue& from); - void MergeFrom(const AttrValue& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AttrValue* other); - protected: - explicit AttrValue(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef AttrValue_ListValue ListValue; - - // accessors ------------------------------------------------------- - - // bytes s = 2; - private: - bool has_s() const; - public: - void clear_s(); - static const int kSFieldNumber = 2; - const ::std::string& s() const; - void set_s(const ::std::string& value); - #if LANG_CXX11 - void set_s(::std::string&& value); - #endif - void set_s(const char* value); - void set_s(const void* value, size_t size); - ::std::string* mutable_s(); - ::std::string* release_s(); - void set_allocated_s(::std::string* s); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_s(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_s( - ::std::string* s); - - // int64 i = 3; - private: - bool has_i() const; - public: - void clear_i(); - static const int kIFieldNumber = 3; - ::google::protobuf::int64 i() const; - void set_i(::google::protobuf::int64 value); - - // float f = 4; - private: - bool has_f() const; - public: - void clear_f(); - static const int kFFieldNumber = 4; - float f() const; - void set_f(float value); - - // bool b = 5; - private: - bool has_b() const; - public: - void clear_b(); - static const int kBFieldNumber = 5; - bool b() const; - void set_b(bool value); - - // .tensorflow.DataType type = 6; - private: - bool has_type() const; - public: - void clear_type(); - static const int kTypeFieldNumber = 6; - ::tensorflow::DataType type() const; - void set_type(::tensorflow::DataType value); - - // .tensorflow.TensorShapeProto shape = 7; - bool has_shape() const; - void clear_shape(); - static const int kShapeFieldNumber = 7; - private: - const ::tensorflow::TensorShapeProto& _internal_shape() const; - public: - const ::tensorflow::TensorShapeProto& shape() const; - ::tensorflow::TensorShapeProto* release_shape(); - ::tensorflow::TensorShapeProto* mutable_shape(); - void set_allocated_shape(::tensorflow::TensorShapeProto* shape); - void unsafe_arena_set_allocated_shape( - ::tensorflow::TensorShapeProto* shape); - ::tensorflow::TensorShapeProto* unsafe_arena_release_shape(); - - // .tensorflow.TensorProto tensor = 8; - bool has_tensor() const; - void clear_tensor(); - static const int kTensorFieldNumber = 8; - private: - const ::tensorflow::TensorProto& _internal_tensor() const; - public: - const ::tensorflow::TensorProto& tensor() const; - ::tensorflow::TensorProto* release_tensor(); - ::tensorflow::TensorProto* mutable_tensor(); - void set_allocated_tensor(::tensorflow::TensorProto* tensor); - void unsafe_arena_set_allocated_tensor( - ::tensorflow::TensorProto* tensor); - ::tensorflow::TensorProto* unsafe_arena_release_tensor(); - - // .tensorflow.AttrValue.ListValue list = 1; - bool has_list() const; - void clear_list(); - static const int kListFieldNumber = 1; - private: - const ::tensorflow::AttrValue_ListValue& _internal_list() const; - public: - const ::tensorflow::AttrValue_ListValue& list() const; - ::tensorflow::AttrValue_ListValue* release_list(); - ::tensorflow::AttrValue_ListValue* mutable_list(); - void set_allocated_list(::tensorflow::AttrValue_ListValue* list); - void unsafe_arena_set_allocated_list( - ::tensorflow::AttrValue_ListValue* list); - ::tensorflow::AttrValue_ListValue* unsafe_arena_release_list(); - - // .tensorflow.NameAttrList func = 10; - bool has_func() const; - void clear_func(); - static const int kFuncFieldNumber = 10; - private: - const ::tensorflow::NameAttrList& _internal_func() const; - public: - const ::tensorflow::NameAttrList& func() const; - ::tensorflow::NameAttrList* release_func(); - ::tensorflow::NameAttrList* mutable_func(); - void set_allocated_func(::tensorflow::NameAttrList* func); - void unsafe_arena_set_allocated_func( - ::tensorflow::NameAttrList* func); - ::tensorflow::NameAttrList* unsafe_arena_release_func(); - - // string placeholder = 9; - private: - bool has_placeholder() const; - public: - void clear_placeholder(); - static const int kPlaceholderFieldNumber = 9; - const ::std::string& placeholder() const; - void set_placeholder(const ::std::string& value); - #if LANG_CXX11 - void set_placeholder(::std::string&& value); - #endif - void set_placeholder(const char* value); - void set_placeholder(const char* value, size_t size); - ::std::string* mutable_placeholder(); - ::std::string* release_placeholder(); - void set_allocated_placeholder(::std::string* placeholder); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_placeholder(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_placeholder( - ::std::string* placeholder); - - void clear_value(); - ValueCase value_case() const; - // @@protoc_insertion_point(class_scope:tensorflow.AttrValue) - private: - void set_has_s(); - void set_has_i(); - void set_has_f(); - void set_has_b(); - void set_has_type(); - void set_has_shape(); - void set_has_tensor(); - void set_has_list(); - void set_has_func(); - void set_has_placeholder(); - - inline bool has_value() const; - inline void clear_has_value(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - union ValueUnion { - ValueUnion() {} - ::google::protobuf::internal::ArenaStringPtr s_; - ::google::protobuf::int64 i_; - float f_; - bool b_; - int type_; - ::tensorflow::TensorShapeProto* shape_; - ::tensorflow::TensorProto* tensor_; - ::tensorflow::AttrValue_ListValue* list_; - ::tensorflow::NameAttrList* func_; - ::google::protobuf::internal::ArenaStringPtr placeholder_; - } value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class NameAttrList_AttrEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: - typedef ::google::protobuf::internal::MapEntry SuperType; - NameAttrList_AttrEntry_DoNotUse(); - NameAttrList_AttrEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const NameAttrList_AttrEntry_DoNotUse& other); - static const NameAttrList_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_NameAttrList_AttrEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class NameAttrList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.NameAttrList) */ { - public: - NameAttrList(); - virtual ~NameAttrList(); - - NameAttrList(const NameAttrList& from); - - inline NameAttrList& operator=(const NameAttrList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NameAttrList(NameAttrList&& from) noexcept - : NameAttrList() { - *this = ::std::move(from); - } - - inline NameAttrList& operator=(NameAttrList&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const NameAttrList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NameAttrList* internal_default_instance() { - return reinterpret_cast( - &_NameAttrList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void UnsafeArenaSwap(NameAttrList* other); - void Swap(NameAttrList* other); - friend void swap(NameAttrList& a, NameAttrList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NameAttrList* New() const final { - return CreateMaybeMessage(NULL); - } - - NameAttrList* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const NameAttrList& from); - void MergeFrom(const NameAttrList& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(NameAttrList* other); - protected: - explicit NameAttrList(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - // map attr = 2; - int attr_size() const; - void clear_attr(); - static const int kAttrFieldNumber = 2; - const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& - attr() const; - ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* - mutable_attr(); - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // @@protoc_insertion_point(class_scope:tensorflow.NameAttrList) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::MapField< - NameAttrList_AttrEntry_DoNotUse, - ::std::string, ::tensorflow::AttrValue, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > attr_; - ::google::protobuf::internal::ArenaStringPtr name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// AttrValue_ListValue - -// repeated bytes s = 2; -inline int AttrValue_ListValue::s_size() const { - return s_.size(); -} -inline void AttrValue_ListValue::clear_s() { - s_.Clear(); -} -inline const ::std::string& AttrValue_ListValue::s(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.s) - return s_.Get(index); -} -inline ::std::string* AttrValue_ListValue::mutable_s(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.ListValue.s) - return s_.Mutable(index); -} -inline void AttrValue_ListValue::set_s(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.s) - s_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void AttrValue_ListValue::set_s(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.s) - s_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void AttrValue_ListValue::set_s(int index, const char* value) { - GOOGLE_DCHECK(value != NULL); - s_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tensorflow.AttrValue.ListValue.s) -} -inline void AttrValue_ListValue::set_s(int index, const void* value, size_t size) { - s_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tensorflow.AttrValue.ListValue.s) -} -inline ::std::string* AttrValue_ListValue::add_s() { - // @@protoc_insertion_point(field_add_mutable:tensorflow.AttrValue.ListValue.s) - return s_.Add(); -} -inline void AttrValue_ListValue::add_s(const ::std::string& value) { - s_.Add()->assign(value); - // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.s) -} -#if LANG_CXX11 -inline void AttrValue_ListValue::add_s(::std::string&& value) { - s_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.s) -} -#endif -inline void AttrValue_ListValue::add_s(const char* value) { - GOOGLE_DCHECK(value != NULL); - s_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tensorflow.AttrValue.ListValue.s) -} -inline void AttrValue_ListValue::add_s(const void* value, size_t size) { - s_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tensorflow.AttrValue.ListValue.s) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -AttrValue_ListValue::s() const { - // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.s) - return s_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -AttrValue_ListValue::mutable_s() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.s) - return &s_; -} - -// repeated int64 i = 3 [packed = true]; -inline int AttrValue_ListValue::i_size() const { - return i_.size(); -} -inline void AttrValue_ListValue::clear_i() { - i_.Clear(); -} -inline ::google::protobuf::int64 AttrValue_ListValue::i(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.i) - return i_.Get(index); -} -inline void AttrValue_ListValue::set_i(int index, ::google::protobuf::int64 value) { - i_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.i) -} -inline void AttrValue_ListValue::add_i(::google::protobuf::int64 value) { - i_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.i) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -AttrValue_ListValue::i() const { - // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.i) - return i_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -AttrValue_ListValue::mutable_i() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.i) - return &i_; -} - -// repeated float f = 4 [packed = true]; -inline int AttrValue_ListValue::f_size() const { - return f_.size(); -} -inline void AttrValue_ListValue::clear_f() { - f_.Clear(); -} -inline float AttrValue_ListValue::f(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.f) - return f_.Get(index); -} -inline void AttrValue_ListValue::set_f(int index, float value) { - f_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.f) -} -inline void AttrValue_ListValue::add_f(float value) { - f_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.f) -} -inline const ::google::protobuf::RepeatedField< float >& -AttrValue_ListValue::f() const { - // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.f) - return f_; -} -inline ::google::protobuf::RepeatedField< float >* -AttrValue_ListValue::mutable_f() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.f) - return &f_; -} - -// repeated bool b = 5 [packed = true]; -inline int AttrValue_ListValue::b_size() const { - return b_.size(); -} -inline void AttrValue_ListValue::clear_b() { - b_.Clear(); -} -inline bool AttrValue_ListValue::b(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.b) - return b_.Get(index); -} -inline void AttrValue_ListValue::set_b(int index, bool value) { - b_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.b) -} -inline void AttrValue_ListValue::add_b(bool value) { - b_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.b) -} -inline const ::google::protobuf::RepeatedField< bool >& -AttrValue_ListValue::b() const { - // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.b) - return b_; -} -inline ::google::protobuf::RepeatedField< bool >* -AttrValue_ListValue::mutable_b() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.b) - return &b_; -} - -// repeated .tensorflow.DataType type = 6 [packed = true]; -inline int AttrValue_ListValue::type_size() const { - return type_.size(); -} -inline void AttrValue_ListValue::clear_type() { - type_.Clear(); -} -inline ::tensorflow::DataType AttrValue_ListValue::type(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.type) - return static_cast< ::tensorflow::DataType >(type_.Get(index)); -} -inline void AttrValue_ListValue::set_type(int index, ::tensorflow::DataType value) { - type_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.ListValue.type) -} -inline void AttrValue_ListValue::add_type(::tensorflow::DataType value) { - type_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.type) -} -inline const ::google::protobuf::RepeatedField& -AttrValue_ListValue::type() const { - // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.type) - return type_; -} -inline ::google::protobuf::RepeatedField* -AttrValue_ListValue::mutable_type() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.type) - return &type_; -} - -// repeated .tensorflow.TensorShapeProto shape = 7; -inline int AttrValue_ListValue::shape_size() const { - return shape_.size(); -} -inline ::tensorflow::TensorShapeProto* AttrValue_ListValue::mutable_shape(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.ListValue.shape) - return shape_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto >* -AttrValue_ListValue::mutable_shape() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.shape) - return &shape_; -} -inline const ::tensorflow::TensorShapeProto& AttrValue_ListValue::shape(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.shape) - return shape_.Get(index); -} -inline ::tensorflow::TensorShapeProto* AttrValue_ListValue::add_shape() { - // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.shape) - return shape_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto >& -AttrValue_ListValue::shape() const { - // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.shape) - return shape_; -} - -// repeated .tensorflow.TensorProto tensor = 8; -inline int AttrValue_ListValue::tensor_size() const { - return tensor_.size(); -} -inline ::tensorflow::TensorProto* AttrValue_ListValue::mutable_tensor(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.ListValue.tensor) - return tensor_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorProto >* -AttrValue_ListValue::mutable_tensor() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.tensor) - return &tensor_; -} -inline const ::tensorflow::TensorProto& AttrValue_ListValue::tensor(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.tensor) - return tensor_.Get(index); -} -inline ::tensorflow::TensorProto* AttrValue_ListValue::add_tensor() { - // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.tensor) - return tensor_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorProto >& -AttrValue_ListValue::tensor() const { - // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.tensor) - return tensor_; -} - -// repeated .tensorflow.NameAttrList func = 9; -inline int AttrValue_ListValue::func_size() const { - return func_.size(); -} -inline void AttrValue_ListValue::clear_func() { - func_.Clear(); -} -inline ::tensorflow::NameAttrList* AttrValue_ListValue::mutable_func(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.ListValue.func) - return func_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::NameAttrList >* -AttrValue_ListValue::mutable_func() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.AttrValue.ListValue.func) - return &func_; -} -inline const ::tensorflow::NameAttrList& AttrValue_ListValue::func(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.ListValue.func) - return func_.Get(index); -} -inline ::tensorflow::NameAttrList* AttrValue_ListValue::add_func() { - // @@protoc_insertion_point(field_add:tensorflow.AttrValue.ListValue.func) - return func_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::NameAttrList >& -AttrValue_ListValue::func() const { - // @@protoc_insertion_point(field_list:tensorflow.AttrValue.ListValue.func) - return func_; -} - -// ------------------------------------------------------------------- - -// AttrValue - -// bytes s = 2; -inline bool AttrValue::has_s() const { - return value_case() == kS; -} -inline void AttrValue::set_has_s() { - _oneof_case_[0] = kS; -} -inline void AttrValue::clear_s() { - if (has_s()) { - value_.s_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - clear_has_value(); - } -} -inline const ::std::string& AttrValue::s() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.s) - if (has_s()) { - return value_.s_.Get(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void AttrValue::set_s(const ::std::string& value) { - if (!has_s()) { - clear_value(); - set_has_s(); - value_.s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.s) -} -#if LANG_CXX11 -inline void AttrValue::set_s(::std::string&& value) { - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.s) - if (!has_s()) { - clear_value(); - set_has_s(); - value_.s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.s_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.AttrValue.s) -} -#endif -inline void AttrValue::set_s(const char* value) { - GOOGLE_DCHECK(value != NULL); - if (!has_s()) { - clear_value(); - set_has_s(); - value_.s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.s_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.AttrValue.s) -} -inline void AttrValue::set_s(const void* value, - size_t size) { - if (!has_s()) { - clear_value(); - set_has_s(); - value_.s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.s_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.AttrValue.s) -} -inline ::std::string* AttrValue::mutable_s() { - if (!has_s()) { - clear_value(); - set_has_s(); - value_.s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - return value_.s_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.s) -} -inline ::std::string* AttrValue::release_s() { - // @@protoc_insertion_point(field_release:tensorflow.AttrValue.s) - if (has_s()) { - clear_has_value(); - return value_.s_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - } else { - return NULL; - } -} -inline void AttrValue::set_allocated_s(::std::string* s) { - if (!has_s()) { - value_.s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - clear_value(); - if (s != NULL) { - set_has_s(); - value_.s_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), s, - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.s) -} -inline ::std::string* AttrValue::unsafe_arena_release_s() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.s) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (has_s()) { - clear_has_value(); - return value_.s_.UnsafeArenaRelease( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - } else { - return NULL; - } -} -inline void AttrValue::unsafe_arena_set_allocated_s(::std::string* s) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (!has_s()) { - value_.s_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - clear_value(); - if (s) { - set_has_s(); - value_.s_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), s, GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.s) -} - -// int64 i = 3; -inline bool AttrValue::has_i() const { - return value_case() == kI; -} -inline void AttrValue::set_has_i() { - _oneof_case_[0] = kI; -} -inline void AttrValue::clear_i() { - if (has_i()) { - value_.i_ = GOOGLE_LONGLONG(0); - clear_has_value(); - } -} -inline ::google::protobuf::int64 AttrValue::i() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.i) - if (has_i()) { - return value_.i_; - } - return GOOGLE_LONGLONG(0); -} -inline void AttrValue::set_i(::google::protobuf::int64 value) { - if (!has_i()) { - clear_value(); - set_has_i(); - } - value_.i_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.i) -} - -// float f = 4; -inline bool AttrValue::has_f() const { - return value_case() == kF; -} -inline void AttrValue::set_has_f() { - _oneof_case_[0] = kF; -} -inline void AttrValue::clear_f() { - if (has_f()) { - value_.f_ = 0; - clear_has_value(); - } -} -inline float AttrValue::f() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.f) - if (has_f()) { - return value_.f_; - } - return 0; -} -inline void AttrValue::set_f(float value) { - if (!has_f()) { - clear_value(); - set_has_f(); - } - value_.f_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.f) -} - -// bool b = 5; -inline bool AttrValue::has_b() const { - return value_case() == kB; -} -inline void AttrValue::set_has_b() { - _oneof_case_[0] = kB; -} -inline void AttrValue::clear_b() { - if (has_b()) { - value_.b_ = false; - clear_has_value(); - } -} -inline bool AttrValue::b() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.b) - if (has_b()) { - return value_.b_; - } - return false; -} -inline void AttrValue::set_b(bool value) { - if (!has_b()) { - clear_value(); - set_has_b(); - } - value_.b_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.b) -} - -// .tensorflow.DataType type = 6; -inline bool AttrValue::has_type() const { - return value_case() == kType; -} -inline void AttrValue::set_has_type() { - _oneof_case_[0] = kType; -} -inline void AttrValue::clear_type() { - if (has_type()) { - value_.type_ = 0; - clear_has_value(); - } -} -inline ::tensorflow::DataType AttrValue::type() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.type) - if (has_type()) { - return static_cast< ::tensorflow::DataType >(value_.type_); - } - return static_cast< ::tensorflow::DataType >(0); -} -inline void AttrValue::set_type(::tensorflow::DataType value) { - if (!has_type()) { - clear_value(); - set_has_type(); - } - value_.type_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.type) -} - -// .tensorflow.TensorShapeProto shape = 7; -inline bool AttrValue::has_shape() const { - return value_case() == kShape; -} -inline void AttrValue::set_has_shape() { - _oneof_case_[0] = kShape; -} -inline const ::tensorflow::TensorShapeProto& AttrValue::_internal_shape() const { - return *value_.shape_; -} -inline ::tensorflow::TensorShapeProto* AttrValue::release_shape() { - // @@protoc_insertion_point(field_release:tensorflow.AttrValue.shape) - if (has_shape()) { - clear_has_value(); - ::tensorflow::TensorShapeProto* temp = value_.shape_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - value_.shape_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::TensorShapeProto& AttrValue::shape() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.shape) - return has_shape() - ? *value_.shape_ - : *reinterpret_cast< ::tensorflow::TensorShapeProto*>(&::tensorflow::_TensorShapeProto_default_instance_); -} -inline ::tensorflow::TensorShapeProto* AttrValue::unsafe_arena_release_shape() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.shape) - if (has_shape()) { - clear_has_value(); - ::tensorflow::TensorShapeProto* temp = value_.shape_; - value_.shape_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void AttrValue::unsafe_arena_set_allocated_shape(::tensorflow::TensorShapeProto* shape) { - clear_value(); - if (shape) { - set_has_shape(); - value_.shape_ = shape; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.shape) -} -inline ::tensorflow::TensorShapeProto* AttrValue::mutable_shape() { - if (!has_shape()) { - clear_value(); - set_has_shape(); - value_.shape_ = CreateMaybeMessage< ::tensorflow::TensorShapeProto >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.shape) - return value_.shape_; -} - -// .tensorflow.TensorProto tensor = 8; -inline bool AttrValue::has_tensor() const { - return value_case() == kTensor; -} -inline void AttrValue::set_has_tensor() { - _oneof_case_[0] = kTensor; -} -inline const ::tensorflow::TensorProto& AttrValue::_internal_tensor() const { - return *value_.tensor_; -} -inline ::tensorflow::TensorProto* AttrValue::release_tensor() { - // @@protoc_insertion_point(field_release:tensorflow.AttrValue.tensor) - if (has_tensor()) { - clear_has_value(); - ::tensorflow::TensorProto* temp = value_.tensor_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - value_.tensor_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::TensorProto& AttrValue::tensor() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.tensor) - return has_tensor() - ? *value_.tensor_ - : *reinterpret_cast< ::tensorflow::TensorProto*>(&::tensorflow::_TensorProto_default_instance_); -} -inline ::tensorflow::TensorProto* AttrValue::unsafe_arena_release_tensor() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.tensor) - if (has_tensor()) { - clear_has_value(); - ::tensorflow::TensorProto* temp = value_.tensor_; - value_.tensor_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void AttrValue::unsafe_arena_set_allocated_tensor(::tensorflow::TensorProto* tensor) { - clear_value(); - if (tensor) { - set_has_tensor(); - value_.tensor_ = tensor; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.tensor) -} -inline ::tensorflow::TensorProto* AttrValue::mutable_tensor() { - if (!has_tensor()) { - clear_value(); - set_has_tensor(); - value_.tensor_ = CreateMaybeMessage< ::tensorflow::TensorProto >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.tensor) - return value_.tensor_; -} - -// .tensorflow.AttrValue.ListValue list = 1; -inline bool AttrValue::has_list() const { - return value_case() == kList; -} -inline void AttrValue::set_has_list() { - _oneof_case_[0] = kList; -} -inline void AttrValue::clear_list() { - if (has_list()) { - if (GetArenaNoVirtual() == NULL) { - delete value_.list_; - } - clear_has_value(); - } -} -inline const ::tensorflow::AttrValue_ListValue& AttrValue::_internal_list() const { - return *value_.list_; -} -inline ::tensorflow::AttrValue_ListValue* AttrValue::release_list() { - // @@protoc_insertion_point(field_release:tensorflow.AttrValue.list) - if (has_list()) { - clear_has_value(); - ::tensorflow::AttrValue_ListValue* temp = value_.list_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - value_.list_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::AttrValue_ListValue& AttrValue::list() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.list) - return has_list() - ? *value_.list_ - : *reinterpret_cast< ::tensorflow::AttrValue_ListValue*>(&::tensorflow::_AttrValue_ListValue_default_instance_); -} -inline ::tensorflow::AttrValue_ListValue* AttrValue::unsafe_arena_release_list() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.list) - if (has_list()) { - clear_has_value(); - ::tensorflow::AttrValue_ListValue* temp = value_.list_; - value_.list_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void AttrValue::unsafe_arena_set_allocated_list(::tensorflow::AttrValue_ListValue* list) { - clear_value(); - if (list) { - set_has_list(); - value_.list_ = list; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.list) -} -inline ::tensorflow::AttrValue_ListValue* AttrValue::mutable_list() { - if (!has_list()) { - clear_value(); - set_has_list(); - value_.list_ = CreateMaybeMessage< ::tensorflow::AttrValue_ListValue >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.list) - return value_.list_; -} - -// .tensorflow.NameAttrList func = 10; -inline bool AttrValue::has_func() const { - return value_case() == kFunc; -} -inline void AttrValue::set_has_func() { - _oneof_case_[0] = kFunc; -} -inline void AttrValue::clear_func() { - if (has_func()) { - if (GetArenaNoVirtual() == NULL) { - delete value_.func_; - } - clear_has_value(); - } -} -inline const ::tensorflow::NameAttrList& AttrValue::_internal_func() const { - return *value_.func_; -} -inline ::tensorflow::NameAttrList* AttrValue::release_func() { - // @@protoc_insertion_point(field_release:tensorflow.AttrValue.func) - if (has_func()) { - clear_has_value(); - ::tensorflow::NameAttrList* temp = value_.func_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - value_.func_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::NameAttrList& AttrValue::func() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.func) - return has_func() - ? *value_.func_ - : *reinterpret_cast< ::tensorflow::NameAttrList*>(&::tensorflow::_NameAttrList_default_instance_); -} -inline ::tensorflow::NameAttrList* AttrValue::unsafe_arena_release_func() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.func) - if (has_func()) { - clear_has_value(); - ::tensorflow::NameAttrList* temp = value_.func_; - value_.func_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void AttrValue::unsafe_arena_set_allocated_func(::tensorflow::NameAttrList* func) { - clear_value(); - if (func) { - set_has_func(); - value_.func_ = func; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.func) -} -inline ::tensorflow::NameAttrList* AttrValue::mutable_func() { - if (!has_func()) { - clear_value(); - set_has_func(); - value_.func_ = CreateMaybeMessage< ::tensorflow::NameAttrList >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.func) - return value_.func_; -} - -// string placeholder = 9; -inline bool AttrValue::has_placeholder() const { - return value_case() == kPlaceholder; -} -inline void AttrValue::set_has_placeholder() { - _oneof_case_[0] = kPlaceholder; -} -inline void AttrValue::clear_placeholder() { - if (has_placeholder()) { - value_.placeholder_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - clear_has_value(); - } -} -inline const ::std::string& AttrValue::placeholder() const { - // @@protoc_insertion_point(field_get:tensorflow.AttrValue.placeholder) - if (has_placeholder()) { - return value_.placeholder_.Get(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void AttrValue::set_placeholder(const ::std::string& value) { - if (!has_placeholder()) { - clear_value(); - set_has_placeholder(); - value_.placeholder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.placeholder_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.placeholder) -} -#if LANG_CXX11 -inline void AttrValue::set_placeholder(::std::string&& value) { - // @@protoc_insertion_point(field_set:tensorflow.AttrValue.placeholder) - if (!has_placeholder()) { - clear_value(); - set_has_placeholder(); - value_.placeholder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.placeholder_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.AttrValue.placeholder) -} -#endif -inline void AttrValue::set_placeholder(const char* value) { - GOOGLE_DCHECK(value != NULL); - if (!has_placeholder()) { - clear_value(); - set_has_placeholder(); - value_.placeholder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.placeholder_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.AttrValue.placeholder) -} -inline void AttrValue::set_placeholder(const char* value, - size_t size) { - if (!has_placeholder()) { - clear_value(); - set_has_placeholder(); - value_.placeholder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.placeholder_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.AttrValue.placeholder) -} -inline ::std::string* AttrValue::mutable_placeholder() { - if (!has_placeholder()) { - clear_value(); - set_has_placeholder(); - value_.placeholder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - return value_.placeholder_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_mutable:tensorflow.AttrValue.placeholder) -} -inline ::std::string* AttrValue::release_placeholder() { - // @@protoc_insertion_point(field_release:tensorflow.AttrValue.placeholder) - if (has_placeholder()) { - clear_has_value(); - return value_.placeholder_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - } else { - return NULL; - } -} -inline void AttrValue::set_allocated_placeholder(::std::string* placeholder) { - if (!has_placeholder()) { - value_.placeholder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - clear_value(); - if (placeholder != NULL) { - set_has_placeholder(); - value_.placeholder_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), placeholder, - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.AttrValue.placeholder) -} -inline ::std::string* AttrValue::unsafe_arena_release_placeholder() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AttrValue.placeholder) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (has_placeholder()) { - clear_has_value(); - return value_.placeholder_.UnsafeArenaRelease( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - } else { - return NULL; - } -} -inline void AttrValue::unsafe_arena_set_allocated_placeholder(::std::string* placeholder) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (!has_placeholder()) { - value_.placeholder_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - clear_value(); - if (placeholder) { - set_has_placeholder(); - value_.placeholder_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), placeholder, GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AttrValue.placeholder) -} - -inline bool AttrValue::has_value() const { - return value_case() != VALUE_NOT_SET; -} -inline void AttrValue::clear_has_value() { - _oneof_case_[0] = VALUE_NOT_SET; -} -inline AttrValue::ValueCase AttrValue::value_case() const { - return AttrValue::ValueCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// NameAttrList - -// string name = 1; -inline void NameAttrList::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& NameAttrList::name() const { - // @@protoc_insertion_point(field_get:tensorflow.NameAttrList.name) - return name_.Get(); -} -inline void NameAttrList::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.NameAttrList.name) -} -#if LANG_CXX11 -inline void NameAttrList::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.NameAttrList.name) -} -#endif -inline void NameAttrList::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.NameAttrList.name) -} -inline void NameAttrList::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.NameAttrList.name) -} -inline ::std::string* NameAttrList::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.NameAttrList.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* NameAttrList::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.NameAttrList.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void NameAttrList::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.NameAttrList.name) -} -inline ::std::string* NameAttrList::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NameAttrList.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void NameAttrList::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NameAttrList.name) -} - -// map attr = 2; -inline int NameAttrList::attr_size() const { - return attr_.size(); -} -inline void NameAttrList::clear_attr() { - attr_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& -NameAttrList::attr() const { - // @@protoc_insertion_point(field_map:tensorflow.NameAttrList.attr) - return attr_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* -NameAttrList::mutable_attr() { - // @@protoc_insertion_point(field_mutable_map:tensorflow.NameAttrList.attr) - return attr_.MutableMap(); -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto diff --git a/linux/include/tensorflow/core/framework/attr_value.pb_text-impl.h b/linux/include/tensorflow/core/framework/attr_value.pb_text-impl.h deleted file mode 100755 index 5c5de009d..000000000 --- a/linux/include/tensorflow/core/framework/attr_value.pb_text-impl.h +++ /dev/null @@ -1,47 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_attr_value_proto_IMPL_H_ -#define tensorflow_core_framework_attr_value_proto_IMPL_H_ - -#include "tensorflow/core/framework/attr_value.pb.h" -#include "tensorflow/core/framework/attr_value.pb_text.h" -#include "tensorflow/core/framework/resource_handle.pb.h" -#include "tensorflow/core/framework/resource_handle.pb_text-impl.h" -#include "tensorflow/core/framework/tensor.pb.h" -#include "tensorflow/core/framework/tensor.pb_text-impl.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb_text-impl.h" -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/framework/types.pb_text-impl.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::AttrValue_ListValue& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::AttrValue_ListValue* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::AttrValue& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::AttrValue* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::NameAttrList& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::NameAttrList* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_attr_value_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/attr_value.pb_text.h b/linux/include/tensorflow/core/framework/attr_value.pb_text.h deleted file mode 100755 index 3e9f069e2..000000000 --- a/linux/include/tensorflow/core/framework/attr_value.pb_text.h +++ /dev/null @@ -1,44 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_attr_value_proto_H_ -#define tensorflow_core_framework_attr_value_proto_H_ - -#include "tensorflow/core/framework/attr_value.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.AttrValue.ListValue -string ProtoDebugString( - const ::tensorflow::AttrValue_ListValue& msg); -string ProtoShortDebugString( - const ::tensorflow::AttrValue_ListValue& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::AttrValue_ListValue* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.AttrValue -string ProtoDebugString( - const ::tensorflow::AttrValue& msg); -string ProtoShortDebugString( - const ::tensorflow::AttrValue& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::AttrValue* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.NameAttrList -string ProtoDebugString( - const ::tensorflow::NameAttrList& msg); -string ProtoShortDebugString( - const ::tensorflow::NameAttrList& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::NameAttrList* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_attr_value_proto_H_ diff --git a/linux/include/tensorflow/core/framework/cost_graph.pb.h b/linux/include/tensorflow/core/framework/cost_graph.pb.h deleted file mode 100755 index f05b0ec71..000000000 --- a/linux/include/tensorflow/core/framework/cost_graph.pb.h +++ /dev/null @@ -1,1344 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/cost_graph.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/types.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[4]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto -namespace tensorflow { -class CostGraphDef; -class CostGraphDefDefaultTypeInternal; -extern CostGraphDefDefaultTypeInternal _CostGraphDef_default_instance_; -class CostGraphDef_Node; -class CostGraphDef_NodeDefaultTypeInternal; -extern CostGraphDef_NodeDefaultTypeInternal _CostGraphDef_Node_default_instance_; -class CostGraphDef_Node_InputInfo; -class CostGraphDef_Node_InputInfoDefaultTypeInternal; -extern CostGraphDef_Node_InputInfoDefaultTypeInternal _CostGraphDef_Node_InputInfo_default_instance_; -class CostGraphDef_Node_OutputInfo; -class CostGraphDef_Node_OutputInfoDefaultTypeInternal; -extern CostGraphDef_Node_OutputInfoDefaultTypeInternal _CostGraphDef_Node_OutputInfo_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::CostGraphDef* Arena::CreateMaybeMessage<::tensorflow::CostGraphDef>(Arena*); -template<> ::tensorflow::CostGraphDef_Node* Arena::CreateMaybeMessage<::tensorflow::CostGraphDef_Node>(Arena*); -template<> ::tensorflow::CostGraphDef_Node_InputInfo* Arena::CreateMaybeMessage<::tensorflow::CostGraphDef_Node_InputInfo>(Arena*); -template<> ::tensorflow::CostGraphDef_Node_OutputInfo* Arena::CreateMaybeMessage<::tensorflow::CostGraphDef_Node_OutputInfo>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class CostGraphDef_Node_InputInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.CostGraphDef.Node.InputInfo) */ { - public: - CostGraphDef_Node_InputInfo(); - virtual ~CostGraphDef_Node_InputInfo(); - - CostGraphDef_Node_InputInfo(const CostGraphDef_Node_InputInfo& from); - - inline CostGraphDef_Node_InputInfo& operator=(const CostGraphDef_Node_InputInfo& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CostGraphDef_Node_InputInfo(CostGraphDef_Node_InputInfo&& from) noexcept - : CostGraphDef_Node_InputInfo() { - *this = ::std::move(from); - } - - inline CostGraphDef_Node_InputInfo& operator=(CostGraphDef_Node_InputInfo&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const CostGraphDef_Node_InputInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CostGraphDef_Node_InputInfo* internal_default_instance() { - return reinterpret_cast( - &_CostGraphDef_Node_InputInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(CostGraphDef_Node_InputInfo* other); - void Swap(CostGraphDef_Node_InputInfo* other); - friend void swap(CostGraphDef_Node_InputInfo& a, CostGraphDef_Node_InputInfo& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CostGraphDef_Node_InputInfo* New() const final { - return CreateMaybeMessage(NULL); - } - - CostGraphDef_Node_InputInfo* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const CostGraphDef_Node_InputInfo& from); - void MergeFrom(const CostGraphDef_Node_InputInfo& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CostGraphDef_Node_InputInfo* other); - protected: - explicit CostGraphDef_Node_InputInfo(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int32 preceding_node = 1; - void clear_preceding_node(); - static const int kPrecedingNodeFieldNumber = 1; - ::google::protobuf::int32 preceding_node() const; - void set_preceding_node(::google::protobuf::int32 value); - - // int32 preceding_port = 2; - void clear_preceding_port(); - static const int kPrecedingPortFieldNumber = 2; - ::google::protobuf::int32 preceding_port() const; - void set_preceding_port(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef.Node.InputInfo) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int32 preceding_node_; - ::google::protobuf::int32 preceding_port_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class CostGraphDef_Node_OutputInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.CostGraphDef.Node.OutputInfo) */ { - public: - CostGraphDef_Node_OutputInfo(); - virtual ~CostGraphDef_Node_OutputInfo(); - - CostGraphDef_Node_OutputInfo(const CostGraphDef_Node_OutputInfo& from); - - inline CostGraphDef_Node_OutputInfo& operator=(const CostGraphDef_Node_OutputInfo& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CostGraphDef_Node_OutputInfo(CostGraphDef_Node_OutputInfo&& from) noexcept - : CostGraphDef_Node_OutputInfo() { - *this = ::std::move(from); - } - - inline CostGraphDef_Node_OutputInfo& operator=(CostGraphDef_Node_OutputInfo&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const CostGraphDef_Node_OutputInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CostGraphDef_Node_OutputInfo* internal_default_instance() { - return reinterpret_cast( - &_CostGraphDef_Node_OutputInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(CostGraphDef_Node_OutputInfo* other); - void Swap(CostGraphDef_Node_OutputInfo* other); - friend void swap(CostGraphDef_Node_OutputInfo& a, CostGraphDef_Node_OutputInfo& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CostGraphDef_Node_OutputInfo* New() const final { - return CreateMaybeMessage(NULL); - } - - CostGraphDef_Node_OutputInfo* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const CostGraphDef_Node_OutputInfo& from); - void MergeFrom(const CostGraphDef_Node_OutputInfo& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CostGraphDef_Node_OutputInfo* other); - protected: - explicit CostGraphDef_Node_OutputInfo(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .tensorflow.TensorShapeProto shape = 3; - bool has_shape() const; - void clear_shape(); - static const int kShapeFieldNumber = 3; - private: - const ::tensorflow::TensorShapeProto& _internal_shape() const; - public: - const ::tensorflow::TensorShapeProto& shape() const; - ::tensorflow::TensorShapeProto* release_shape(); - ::tensorflow::TensorShapeProto* mutable_shape(); - void set_allocated_shape(::tensorflow::TensorShapeProto* shape); - void unsafe_arena_set_allocated_shape( - ::tensorflow::TensorShapeProto* shape); - ::tensorflow::TensorShapeProto* unsafe_arena_release_shape(); - - // int64 size = 1; - void clear_size(); - static const int kSizeFieldNumber = 1; - ::google::protobuf::int64 size() const; - void set_size(::google::protobuf::int64 value); - - // int64 alias_input_port = 2; - void clear_alias_input_port(); - static const int kAliasInputPortFieldNumber = 2; - ::google::protobuf::int64 alias_input_port() const; - void set_alias_input_port(::google::protobuf::int64 value); - - // .tensorflow.DataType dtype = 4; - void clear_dtype(); - static const int kDtypeFieldNumber = 4; - ::tensorflow::DataType dtype() const; - void set_dtype(::tensorflow::DataType value); - - // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef.Node.OutputInfo) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::tensorflow::TensorShapeProto* shape_; - ::google::protobuf::int64 size_; - ::google::protobuf::int64 alias_input_port_; - int dtype_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class CostGraphDef_Node : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.CostGraphDef.Node) */ { - public: - CostGraphDef_Node(); - virtual ~CostGraphDef_Node(); - - CostGraphDef_Node(const CostGraphDef_Node& from); - - inline CostGraphDef_Node& operator=(const CostGraphDef_Node& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CostGraphDef_Node(CostGraphDef_Node&& from) noexcept - : CostGraphDef_Node() { - *this = ::std::move(from); - } - - inline CostGraphDef_Node& operator=(CostGraphDef_Node&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const CostGraphDef_Node& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CostGraphDef_Node* internal_default_instance() { - return reinterpret_cast( - &_CostGraphDef_Node_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void UnsafeArenaSwap(CostGraphDef_Node* other); - void Swap(CostGraphDef_Node* other); - friend void swap(CostGraphDef_Node& a, CostGraphDef_Node& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CostGraphDef_Node* New() const final { - return CreateMaybeMessage(NULL); - } - - CostGraphDef_Node* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const CostGraphDef_Node& from); - void MergeFrom(const CostGraphDef_Node& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CostGraphDef_Node* other); - protected: - explicit CostGraphDef_Node(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef CostGraphDef_Node_InputInfo InputInfo; - typedef CostGraphDef_Node_OutputInfo OutputInfo; - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; - int input_info_size() const; - void clear_input_info(); - static const int kInputInfoFieldNumber = 4; - ::tensorflow::CostGraphDef_Node_InputInfo* mutable_input_info(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_InputInfo >* - mutable_input_info(); - const ::tensorflow::CostGraphDef_Node_InputInfo& input_info(int index) const; - ::tensorflow::CostGraphDef_Node_InputInfo* add_input_info(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_InputInfo >& - input_info() const; - - // repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; - int output_info_size() const; - void clear_output_info(); - static const int kOutputInfoFieldNumber = 5; - ::tensorflow::CostGraphDef_Node_OutputInfo* mutable_output_info(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_OutputInfo >* - mutable_output_info(); - const ::tensorflow::CostGraphDef_Node_OutputInfo& output_info(int index) const; - ::tensorflow::CostGraphDef_Node_OutputInfo* add_output_info(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_OutputInfo >& - output_info() const; - - // repeated int32 control_input = 8; - int control_input_size() const; - void clear_control_input(); - static const int kControlInputFieldNumber = 8; - ::google::protobuf::int32 control_input(int index) const; - void set_control_input(int index, ::google::protobuf::int32 value); - void add_control_input(::google::protobuf::int32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& - control_input() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* - mutable_control_input(); - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // string device = 2; - void clear_device(); - static const int kDeviceFieldNumber = 2; - const ::std::string& device() const; - void set_device(const ::std::string& value); - #if LANG_CXX11 - void set_device(::std::string&& value); - #endif - void set_device(const char* value); - void set_device(const char* value, size_t size); - ::std::string* mutable_device(); - ::std::string* release_device(); - void set_allocated_device(::std::string* device); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_device(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_device( - ::std::string* device); - - // int64 temporary_memory_size = 6; - void clear_temporary_memory_size(); - static const int kTemporaryMemorySizeFieldNumber = 6; - ::google::protobuf::int64 temporary_memory_size() const; - void set_temporary_memory_size(::google::protobuf::int64 value); - - // int64 compute_cost = 9; - void clear_compute_cost(); - static const int kComputeCostFieldNumber = 9; - ::google::protobuf::int64 compute_cost() const; - void set_compute_cost(::google::protobuf::int64 value); - - // int32 id = 3; - void clear_id(); - static const int kIdFieldNumber = 3; - ::google::protobuf::int32 id() const; - void set_id(::google::protobuf::int32 value); - - // bool is_final = 7; - void clear_is_final(); - static const int kIsFinalFieldNumber = 7; - bool is_final() const; - void set_is_final(bool value); - - // bool inaccurate = 17; - void clear_inaccurate(); - static const int kInaccurateFieldNumber = 17; - bool inaccurate() const; - void set_inaccurate(bool value); - - // int64 host_temp_memory_size = 10 [deprecated = true]; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_host_temp_memory_size(); - GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kHostTempMemorySizeFieldNumber = 10; - GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int64 host_temp_memory_size() const; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_host_temp_memory_size(::google::protobuf::int64 value); - - // int64 device_temp_memory_size = 11 [deprecated = true]; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_device_temp_memory_size(); - GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kDeviceTempMemorySizeFieldNumber = 11; - GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int64 device_temp_memory_size() const; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_device_temp_memory_size(::google::protobuf::int64 value); - - // int64 persistent_memory_size = 12; - void clear_persistent_memory_size(); - static const int kPersistentMemorySizeFieldNumber = 12; - ::google::protobuf::int64 persistent_memory_size() const; - void set_persistent_memory_size(::google::protobuf::int64 value); - - // int64 compute_time = 14; - void clear_compute_time(); - static const int kComputeTimeFieldNumber = 14; - ::google::protobuf::int64 compute_time() const; - void set_compute_time(::google::protobuf::int64 value); - - // int64 memory_time = 15; - void clear_memory_time(); - static const int kMemoryTimeFieldNumber = 15; - ::google::protobuf::int64 memory_time() const; - void set_memory_time(::google::protobuf::int64 value); - - // int64 device_persistent_memory_size = 16 [deprecated = true]; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_device_persistent_memory_size(); - GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kDevicePersistentMemorySizeFieldNumber = 16; - GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int64 device_persistent_memory_size() const; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_device_persistent_memory_size(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef.Node) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_InputInfo > input_info_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_OutputInfo > output_info_; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 > control_input_; - mutable int _control_input_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr device_; - ::google::protobuf::int64 temporary_memory_size_; - ::google::protobuf::int64 compute_cost_; - ::google::protobuf::int32 id_; - bool is_final_; - bool inaccurate_; - ::google::protobuf::int64 host_temp_memory_size_; - ::google::protobuf::int64 device_temp_memory_size_; - ::google::protobuf::int64 persistent_memory_size_; - ::google::protobuf::int64 compute_time_; - ::google::protobuf::int64 memory_time_; - ::google::protobuf::int64 device_persistent_memory_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class CostGraphDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.CostGraphDef) */ { - public: - CostGraphDef(); - virtual ~CostGraphDef(); - - CostGraphDef(const CostGraphDef& from); - - inline CostGraphDef& operator=(const CostGraphDef& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CostGraphDef(CostGraphDef&& from) noexcept - : CostGraphDef() { - *this = ::std::move(from); - } - - inline CostGraphDef& operator=(CostGraphDef&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const CostGraphDef& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CostGraphDef* internal_default_instance() { - return reinterpret_cast( - &_CostGraphDef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void UnsafeArenaSwap(CostGraphDef* other); - void Swap(CostGraphDef* other); - friend void swap(CostGraphDef& a, CostGraphDef& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CostGraphDef* New() const final { - return CreateMaybeMessage(NULL); - } - - CostGraphDef* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const CostGraphDef& from); - void MergeFrom(const CostGraphDef& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CostGraphDef* other); - protected: - explicit CostGraphDef(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef CostGraphDef_Node Node; - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.CostGraphDef.Node node = 1; - int node_size() const; - void clear_node(); - static const int kNodeFieldNumber = 1; - ::tensorflow::CostGraphDef_Node* mutable_node(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::CostGraphDef_Node >* - mutable_node(); - const ::tensorflow::CostGraphDef_Node& node(int index) const; - ::tensorflow::CostGraphDef_Node* add_node(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::CostGraphDef_Node >& - node() const; - - // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::CostGraphDef_Node > node_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// CostGraphDef_Node_InputInfo - -// int32 preceding_node = 1; -inline void CostGraphDef_Node_InputInfo::clear_preceding_node() { - preceding_node_ = 0; -} -inline ::google::protobuf::int32 CostGraphDef_Node_InputInfo::preceding_node() const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.InputInfo.preceding_node) - return preceding_node_; -} -inline void CostGraphDef_Node_InputInfo::set_preceding_node(::google::protobuf::int32 value) { - - preceding_node_ = value; - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.InputInfo.preceding_node) -} - -// int32 preceding_port = 2; -inline void CostGraphDef_Node_InputInfo::clear_preceding_port() { - preceding_port_ = 0; -} -inline ::google::protobuf::int32 CostGraphDef_Node_InputInfo::preceding_port() const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.InputInfo.preceding_port) - return preceding_port_; -} -inline void CostGraphDef_Node_InputInfo::set_preceding_port(::google::protobuf::int32 value) { - - preceding_port_ = value; - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.InputInfo.preceding_port) -} - -// ------------------------------------------------------------------- - -// CostGraphDef_Node_OutputInfo - -// int64 size = 1; -inline void CostGraphDef_Node_OutputInfo::clear_size() { - size_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 CostGraphDef_Node_OutputInfo::size() const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.OutputInfo.size) - return size_; -} -inline void CostGraphDef_Node_OutputInfo::set_size(::google::protobuf::int64 value) { - - size_ = value; - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.OutputInfo.size) -} - -// int64 alias_input_port = 2; -inline void CostGraphDef_Node_OutputInfo::clear_alias_input_port() { - alias_input_port_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 CostGraphDef_Node_OutputInfo::alias_input_port() const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.OutputInfo.alias_input_port) - return alias_input_port_; -} -inline void CostGraphDef_Node_OutputInfo::set_alias_input_port(::google::protobuf::int64 value) { - - alias_input_port_ = value; - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.OutputInfo.alias_input_port) -} - -// .tensorflow.TensorShapeProto shape = 3; -inline bool CostGraphDef_Node_OutputInfo::has_shape() const { - return this != internal_default_instance() && shape_ != NULL; -} -inline const ::tensorflow::TensorShapeProto& CostGraphDef_Node_OutputInfo::_internal_shape() const { - return *shape_; -} -inline const ::tensorflow::TensorShapeProto& CostGraphDef_Node_OutputInfo::shape() const { - const ::tensorflow::TensorShapeProto* p = shape_; - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.OutputInfo.shape) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_TensorShapeProto_default_instance_); -} -inline ::tensorflow::TensorShapeProto* CostGraphDef_Node_OutputInfo::release_shape() { - // @@protoc_insertion_point(field_release:tensorflow.CostGraphDef.Node.OutputInfo.shape) - - ::tensorflow::TensorShapeProto* temp = shape_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - shape_ = NULL; - return temp; -} -inline ::tensorflow::TensorShapeProto* CostGraphDef_Node_OutputInfo::unsafe_arena_release_shape() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.CostGraphDef.Node.OutputInfo.shape) - - ::tensorflow::TensorShapeProto* temp = shape_; - shape_ = NULL; - return temp; -} -inline ::tensorflow::TensorShapeProto* CostGraphDef_Node_OutputInfo::mutable_shape() { - - if (shape_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::TensorShapeProto>(GetArenaNoVirtual()); - shape_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.CostGraphDef.Node.OutputInfo.shape) - return shape_; -} -inline void CostGraphDef_Node_OutputInfo::set_allocated_shape(::tensorflow::TensorShapeProto* shape) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(shape_); - } - if (shape) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(shape)->GetArena(); - if (message_arena != submessage_arena) { - shape = ::google::protobuf::internal::GetOwnedMessage( - message_arena, shape, submessage_arena); - } - - } else { - - } - shape_ = shape; - // @@protoc_insertion_point(field_set_allocated:tensorflow.CostGraphDef.Node.OutputInfo.shape) -} - -// .tensorflow.DataType dtype = 4; -inline void CostGraphDef_Node_OutputInfo::clear_dtype() { - dtype_ = 0; -} -inline ::tensorflow::DataType CostGraphDef_Node_OutputInfo::dtype() const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.OutputInfo.dtype) - return static_cast< ::tensorflow::DataType >(dtype_); -} -inline void CostGraphDef_Node_OutputInfo::set_dtype(::tensorflow::DataType value) { - - dtype_ = value; - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.OutputInfo.dtype) -} - -// ------------------------------------------------------------------- - -// CostGraphDef_Node - -// string name = 1; -inline void CostGraphDef_Node::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& CostGraphDef_Node::name() const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.name) - return name_.Get(); -} -inline void CostGraphDef_Node::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.name) -} -#if LANG_CXX11 -inline void CostGraphDef_Node::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.CostGraphDef.Node.name) -} -#endif -inline void CostGraphDef_Node::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.CostGraphDef.Node.name) -} -inline void CostGraphDef_Node::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.CostGraphDef.Node.name) -} -inline ::std::string* CostGraphDef_Node::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.CostGraphDef.Node.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* CostGraphDef_Node::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.CostGraphDef.Node.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void CostGraphDef_Node::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.CostGraphDef.Node.name) -} -inline ::std::string* CostGraphDef_Node::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.CostGraphDef.Node.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void CostGraphDef_Node::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.CostGraphDef.Node.name) -} - -// string device = 2; -inline void CostGraphDef_Node::clear_device() { - device_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& CostGraphDef_Node::device() const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.device) - return device_.Get(); -} -inline void CostGraphDef_Node::set_device(const ::std::string& value) { - - device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.device) -} -#if LANG_CXX11 -inline void CostGraphDef_Node::set_device(::std::string&& value) { - - device_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.CostGraphDef.Node.device) -} -#endif -inline void CostGraphDef_Node::set_device(const char* value) { - GOOGLE_DCHECK(value != NULL); - - device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.CostGraphDef.Node.device) -} -inline void CostGraphDef_Node::set_device(const char* value, - size_t size) { - - device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.CostGraphDef.Node.device) -} -inline ::std::string* CostGraphDef_Node::mutable_device() { - - // @@protoc_insertion_point(field_mutable:tensorflow.CostGraphDef.Node.device) - return device_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* CostGraphDef_Node::release_device() { - // @@protoc_insertion_point(field_release:tensorflow.CostGraphDef.Node.device) - - return device_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void CostGraphDef_Node::set_allocated_device(::std::string* device) { - if (device != NULL) { - - } else { - - } - device_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.CostGraphDef.Node.device) -} -inline ::std::string* CostGraphDef_Node::unsafe_arena_release_device() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.CostGraphDef.Node.device) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return device_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void CostGraphDef_Node::unsafe_arena_set_allocated_device( - ::std::string* device) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (device != NULL) { - - } else { - - } - device_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - device, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.CostGraphDef.Node.device) -} - -// int32 id = 3; -inline void CostGraphDef_Node::clear_id() { - id_ = 0; -} -inline ::google::protobuf::int32 CostGraphDef_Node::id() const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.id) - return id_; -} -inline void CostGraphDef_Node::set_id(::google::protobuf::int32 value) { - - id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.id) -} - -// repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4; -inline int CostGraphDef_Node::input_info_size() const { - return input_info_.size(); -} -inline void CostGraphDef_Node::clear_input_info() { - input_info_.Clear(); -} -inline ::tensorflow::CostGraphDef_Node_InputInfo* CostGraphDef_Node::mutable_input_info(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.CostGraphDef.Node.input_info) - return input_info_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_InputInfo >* -CostGraphDef_Node::mutable_input_info() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.CostGraphDef.Node.input_info) - return &input_info_; -} -inline const ::tensorflow::CostGraphDef_Node_InputInfo& CostGraphDef_Node::input_info(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.input_info) - return input_info_.Get(index); -} -inline ::tensorflow::CostGraphDef_Node_InputInfo* CostGraphDef_Node::add_input_info() { - // @@protoc_insertion_point(field_add:tensorflow.CostGraphDef.Node.input_info) - return input_info_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_InputInfo >& -CostGraphDef_Node::input_info() const { - // @@protoc_insertion_point(field_list:tensorflow.CostGraphDef.Node.input_info) - return input_info_; -} - -// repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5; -inline int CostGraphDef_Node::output_info_size() const { - return output_info_.size(); -} -inline void CostGraphDef_Node::clear_output_info() { - output_info_.Clear(); -} -inline ::tensorflow::CostGraphDef_Node_OutputInfo* CostGraphDef_Node::mutable_output_info(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.CostGraphDef.Node.output_info) - return output_info_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_OutputInfo >* -CostGraphDef_Node::mutable_output_info() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.CostGraphDef.Node.output_info) - return &output_info_; -} -inline const ::tensorflow::CostGraphDef_Node_OutputInfo& CostGraphDef_Node::output_info(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.output_info) - return output_info_.Get(index); -} -inline ::tensorflow::CostGraphDef_Node_OutputInfo* CostGraphDef_Node::add_output_info() { - // @@protoc_insertion_point(field_add:tensorflow.CostGraphDef.Node.output_info) - return output_info_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_OutputInfo >& -CostGraphDef_Node::output_info() const { - // @@protoc_insertion_point(field_list:tensorflow.CostGraphDef.Node.output_info) - return output_info_; -} - -// int64 temporary_memory_size = 6; -inline void CostGraphDef_Node::clear_temporary_memory_size() { - temporary_memory_size_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 CostGraphDef_Node::temporary_memory_size() const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.temporary_memory_size) - return temporary_memory_size_; -} -inline void CostGraphDef_Node::set_temporary_memory_size(::google::protobuf::int64 value) { - - temporary_memory_size_ = value; - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.temporary_memory_size) -} - -// int64 persistent_memory_size = 12; -inline void CostGraphDef_Node::clear_persistent_memory_size() { - persistent_memory_size_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 CostGraphDef_Node::persistent_memory_size() const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.persistent_memory_size) - return persistent_memory_size_; -} -inline void CostGraphDef_Node::set_persistent_memory_size(::google::protobuf::int64 value) { - - persistent_memory_size_ = value; - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.persistent_memory_size) -} - -// int64 host_temp_memory_size = 10 [deprecated = true]; -inline void CostGraphDef_Node::clear_host_temp_memory_size() { - host_temp_memory_size_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 CostGraphDef_Node::host_temp_memory_size() const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.host_temp_memory_size) - return host_temp_memory_size_; -} -inline void CostGraphDef_Node::set_host_temp_memory_size(::google::protobuf::int64 value) { - - host_temp_memory_size_ = value; - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.host_temp_memory_size) -} - -// int64 device_temp_memory_size = 11 [deprecated = true]; -inline void CostGraphDef_Node::clear_device_temp_memory_size() { - device_temp_memory_size_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 CostGraphDef_Node::device_temp_memory_size() const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.device_temp_memory_size) - return device_temp_memory_size_; -} -inline void CostGraphDef_Node::set_device_temp_memory_size(::google::protobuf::int64 value) { - - device_temp_memory_size_ = value; - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.device_temp_memory_size) -} - -// int64 device_persistent_memory_size = 16 [deprecated = true]; -inline void CostGraphDef_Node::clear_device_persistent_memory_size() { - device_persistent_memory_size_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 CostGraphDef_Node::device_persistent_memory_size() const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.device_persistent_memory_size) - return device_persistent_memory_size_; -} -inline void CostGraphDef_Node::set_device_persistent_memory_size(::google::protobuf::int64 value) { - - device_persistent_memory_size_ = value; - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.device_persistent_memory_size) -} - -// int64 compute_cost = 9; -inline void CostGraphDef_Node::clear_compute_cost() { - compute_cost_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 CostGraphDef_Node::compute_cost() const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.compute_cost) - return compute_cost_; -} -inline void CostGraphDef_Node::set_compute_cost(::google::protobuf::int64 value) { - - compute_cost_ = value; - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.compute_cost) -} - -// int64 compute_time = 14; -inline void CostGraphDef_Node::clear_compute_time() { - compute_time_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 CostGraphDef_Node::compute_time() const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.compute_time) - return compute_time_; -} -inline void CostGraphDef_Node::set_compute_time(::google::protobuf::int64 value) { - - compute_time_ = value; - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.compute_time) -} - -// int64 memory_time = 15; -inline void CostGraphDef_Node::clear_memory_time() { - memory_time_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 CostGraphDef_Node::memory_time() const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.memory_time) - return memory_time_; -} -inline void CostGraphDef_Node::set_memory_time(::google::protobuf::int64 value) { - - memory_time_ = value; - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.memory_time) -} - -// bool is_final = 7; -inline void CostGraphDef_Node::clear_is_final() { - is_final_ = false; -} -inline bool CostGraphDef_Node::is_final() const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.is_final) - return is_final_; -} -inline void CostGraphDef_Node::set_is_final(bool value) { - - is_final_ = value; - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.is_final) -} - -// repeated int32 control_input = 8; -inline int CostGraphDef_Node::control_input_size() const { - return control_input_.size(); -} -inline void CostGraphDef_Node::clear_control_input() { - control_input_.Clear(); -} -inline ::google::protobuf::int32 CostGraphDef_Node::control_input(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.control_input) - return control_input_.Get(index); -} -inline void CostGraphDef_Node::set_control_input(int index, ::google::protobuf::int32 value) { - control_input_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.control_input) -} -inline void CostGraphDef_Node::add_control_input(::google::protobuf::int32 value) { - control_input_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.CostGraphDef.Node.control_input) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -CostGraphDef_Node::control_input() const { - // @@protoc_insertion_point(field_list:tensorflow.CostGraphDef.Node.control_input) - return control_input_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -CostGraphDef_Node::mutable_control_input() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.CostGraphDef.Node.control_input) - return &control_input_; -} - -// bool inaccurate = 17; -inline void CostGraphDef_Node::clear_inaccurate() { - inaccurate_ = false; -} -inline bool CostGraphDef_Node::inaccurate() const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.inaccurate) - return inaccurate_; -} -inline void CostGraphDef_Node::set_inaccurate(bool value) { - - inaccurate_ = value; - // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.inaccurate) -} - -// ------------------------------------------------------------------- - -// CostGraphDef - -// repeated .tensorflow.CostGraphDef.Node node = 1; -inline int CostGraphDef::node_size() const { - return node_.size(); -} -inline void CostGraphDef::clear_node() { - node_.Clear(); -} -inline ::tensorflow::CostGraphDef_Node* CostGraphDef::mutable_node(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.CostGraphDef.node) - return node_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::CostGraphDef_Node >* -CostGraphDef::mutable_node() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.CostGraphDef.node) - return &node_; -} -inline const ::tensorflow::CostGraphDef_Node& CostGraphDef::node(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.node) - return node_.Get(index); -} -inline ::tensorflow::CostGraphDef_Node* CostGraphDef::add_node() { - // @@protoc_insertion_point(field_add:tensorflow.CostGraphDef.node) - return node_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::CostGraphDef_Node >& -CostGraphDef::node() const { - // @@protoc_insertion_point(field_list:tensorflow.CostGraphDef.node) - return node_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto diff --git a/linux/include/tensorflow/core/framework/cost_graph.pb_text-impl.h b/linux/include/tensorflow/core/framework/cost_graph.pb_text-impl.h deleted file mode 100755 index fb2e2f857..000000000 --- a/linux/include/tensorflow/core/framework/cost_graph.pb_text-impl.h +++ /dev/null @@ -1,50 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_cost_graph_proto_IMPL_H_ -#define tensorflow_core_framework_cost_graph_proto_IMPL_H_ - -#include "tensorflow/core/framework/cost_graph.pb.h" -#include "tensorflow/core/framework/cost_graph.pb_text.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb_text-impl.h" -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/framework/types.pb_text-impl.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::CostGraphDef_Node_InputInfo& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::CostGraphDef_Node_InputInfo* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::CostGraphDef_Node_OutputInfo& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::CostGraphDef_Node_OutputInfo* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::CostGraphDef_Node& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::CostGraphDef_Node* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::CostGraphDef& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::CostGraphDef* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_cost_graph_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/cost_graph.pb_text.h b/linux/include/tensorflow/core/framework/cost_graph.pb_text.h deleted file mode 100755 index 2c1825331..000000000 --- a/linux/include/tensorflow/core/framework/cost_graph.pb_text.h +++ /dev/null @@ -1,54 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_cost_graph_proto_H_ -#define tensorflow_core_framework_cost_graph_proto_H_ - -#include "tensorflow/core/framework/cost_graph.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.CostGraphDef.Node.InputInfo -string ProtoDebugString( - const ::tensorflow::CostGraphDef_Node_InputInfo& msg); -string ProtoShortDebugString( - const ::tensorflow::CostGraphDef_Node_InputInfo& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::CostGraphDef_Node_InputInfo* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.CostGraphDef.Node.OutputInfo -string ProtoDebugString( - const ::tensorflow::CostGraphDef_Node_OutputInfo& msg); -string ProtoShortDebugString( - const ::tensorflow::CostGraphDef_Node_OutputInfo& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::CostGraphDef_Node_OutputInfo* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.CostGraphDef.Node -string ProtoDebugString( - const ::tensorflow::CostGraphDef_Node& msg); -string ProtoShortDebugString( - const ::tensorflow::CostGraphDef_Node& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::CostGraphDef_Node* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.CostGraphDef -string ProtoDebugString( - const ::tensorflow::CostGraphDef& msg); -string ProtoShortDebugString( - const ::tensorflow::CostGraphDef& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::CostGraphDef* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_cost_graph_proto_H_ diff --git a/linux/include/tensorflow/core/framework/device_attributes.pb.h b/linux/include/tensorflow/core/framework/device_attributes.pb.h deleted file mode 100755 index 5f9559bf0..000000000 --- a/linux/include/tensorflow/core/framework/device_attributes.pb.h +++ /dev/null @@ -1,1282 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/device_attributes.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[4]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto -namespace tensorflow { -class DeviceAttributes; -class DeviceAttributesDefaultTypeInternal; -extern DeviceAttributesDefaultTypeInternal _DeviceAttributes_default_instance_; -class DeviceLocality; -class DeviceLocalityDefaultTypeInternal; -extern DeviceLocalityDefaultTypeInternal _DeviceLocality_default_instance_; -class InterconnectLink; -class InterconnectLinkDefaultTypeInternal; -extern InterconnectLinkDefaultTypeInternal _InterconnectLink_default_instance_; -class LocalLinks; -class LocalLinksDefaultTypeInternal; -extern LocalLinksDefaultTypeInternal _LocalLinks_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::DeviceAttributes* Arena::CreateMaybeMessage<::tensorflow::DeviceAttributes>(Arena*); -template<> ::tensorflow::DeviceLocality* Arena::CreateMaybeMessage<::tensorflow::DeviceLocality>(Arena*); -template<> ::tensorflow::InterconnectLink* Arena::CreateMaybeMessage<::tensorflow::InterconnectLink>(Arena*); -template<> ::tensorflow::LocalLinks* Arena::CreateMaybeMessage<::tensorflow::LocalLinks>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class InterconnectLink : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.InterconnectLink) */ { - public: - InterconnectLink(); - virtual ~InterconnectLink(); - - InterconnectLink(const InterconnectLink& from); - - inline InterconnectLink& operator=(const InterconnectLink& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - InterconnectLink(InterconnectLink&& from) noexcept - : InterconnectLink() { - *this = ::std::move(from); - } - - inline InterconnectLink& operator=(InterconnectLink&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const InterconnectLink& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const InterconnectLink* internal_default_instance() { - return reinterpret_cast( - &_InterconnectLink_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(InterconnectLink* other); - void Swap(InterconnectLink* other); - friend void swap(InterconnectLink& a, InterconnectLink& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline InterconnectLink* New() const final { - return CreateMaybeMessage(NULL); - } - - InterconnectLink* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const InterconnectLink& from); - void MergeFrom(const InterconnectLink& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(InterconnectLink* other); - protected: - explicit InterconnectLink(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string type = 2; - void clear_type(); - static const int kTypeFieldNumber = 2; - const ::std::string& type() const; - void set_type(const ::std::string& value); - #if LANG_CXX11 - void set_type(::std::string&& value); - #endif - void set_type(const char* value); - void set_type(const char* value, size_t size); - ::std::string* mutable_type(); - ::std::string* release_type(); - void set_allocated_type(::std::string* type); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_type(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_type( - ::std::string* type); - - // int32 device_id = 1; - void clear_device_id(); - static const int kDeviceIdFieldNumber = 1; - ::google::protobuf::int32 device_id() const; - void set_device_id(::google::protobuf::int32 value); - - // int32 strength = 3; - void clear_strength(); - static const int kStrengthFieldNumber = 3; - ::google::protobuf::int32 strength() const; - void set_strength(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:tensorflow.InterconnectLink) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::int32 device_id_; - ::google::protobuf::int32 strength_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class LocalLinks : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.LocalLinks) */ { - public: - LocalLinks(); - virtual ~LocalLinks(); - - LocalLinks(const LocalLinks& from); - - inline LocalLinks& operator=(const LocalLinks& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LocalLinks(LocalLinks&& from) noexcept - : LocalLinks() { - *this = ::std::move(from); - } - - inline LocalLinks& operator=(LocalLinks&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const LocalLinks& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LocalLinks* internal_default_instance() { - return reinterpret_cast( - &_LocalLinks_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(LocalLinks* other); - void Swap(LocalLinks* other); - friend void swap(LocalLinks& a, LocalLinks& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LocalLinks* New() const final { - return CreateMaybeMessage(NULL); - } - - LocalLinks* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const LocalLinks& from); - void MergeFrom(const LocalLinks& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LocalLinks* other); - protected: - explicit LocalLinks(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.InterconnectLink link = 1; - int link_size() const; - void clear_link(); - static const int kLinkFieldNumber = 1; - ::tensorflow::InterconnectLink* mutable_link(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::InterconnectLink >* - mutable_link(); - const ::tensorflow::InterconnectLink& link(int index) const; - ::tensorflow::InterconnectLink* add_link(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::InterconnectLink >& - link() const; - - // @@protoc_insertion_point(class_scope:tensorflow.LocalLinks) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::InterconnectLink > link_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class DeviceLocality : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.DeviceLocality) */ { - public: - DeviceLocality(); - virtual ~DeviceLocality(); - - DeviceLocality(const DeviceLocality& from); - - inline DeviceLocality& operator=(const DeviceLocality& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DeviceLocality(DeviceLocality&& from) noexcept - : DeviceLocality() { - *this = ::std::move(from); - } - - inline DeviceLocality& operator=(DeviceLocality&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const DeviceLocality& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DeviceLocality* internal_default_instance() { - return reinterpret_cast( - &_DeviceLocality_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void UnsafeArenaSwap(DeviceLocality* other); - void Swap(DeviceLocality* other); - friend void swap(DeviceLocality& a, DeviceLocality& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DeviceLocality* New() const final { - return CreateMaybeMessage(NULL); - } - - DeviceLocality* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const DeviceLocality& from); - void MergeFrom(const DeviceLocality& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DeviceLocality* other); - protected: - explicit DeviceLocality(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .tensorflow.LocalLinks links = 3; - bool has_links() const; - void clear_links(); - static const int kLinksFieldNumber = 3; - private: - const ::tensorflow::LocalLinks& _internal_links() const; - public: - const ::tensorflow::LocalLinks& links() const; - ::tensorflow::LocalLinks* release_links(); - ::tensorflow::LocalLinks* mutable_links(); - void set_allocated_links(::tensorflow::LocalLinks* links); - void unsafe_arena_set_allocated_links( - ::tensorflow::LocalLinks* links); - ::tensorflow::LocalLinks* unsafe_arena_release_links(); - - // int32 bus_id = 1; - void clear_bus_id(); - static const int kBusIdFieldNumber = 1; - ::google::protobuf::int32 bus_id() const; - void set_bus_id(::google::protobuf::int32 value); - - // int32 numa_node = 2; - void clear_numa_node(); - static const int kNumaNodeFieldNumber = 2; - ::google::protobuf::int32 numa_node() const; - void set_numa_node(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:tensorflow.DeviceLocality) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::tensorflow::LocalLinks* links_; - ::google::protobuf::int32 bus_id_; - ::google::protobuf::int32 numa_node_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class DeviceAttributes : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.DeviceAttributes) */ { - public: - DeviceAttributes(); - virtual ~DeviceAttributes(); - - DeviceAttributes(const DeviceAttributes& from); - - inline DeviceAttributes& operator=(const DeviceAttributes& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DeviceAttributes(DeviceAttributes&& from) noexcept - : DeviceAttributes() { - *this = ::std::move(from); - } - - inline DeviceAttributes& operator=(DeviceAttributes&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const DeviceAttributes& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DeviceAttributes* internal_default_instance() { - return reinterpret_cast( - &_DeviceAttributes_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void UnsafeArenaSwap(DeviceAttributes* other); - void Swap(DeviceAttributes* other); - friend void swap(DeviceAttributes& a, DeviceAttributes& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DeviceAttributes* New() const final { - return CreateMaybeMessage(NULL); - } - - DeviceAttributes* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const DeviceAttributes& from); - void MergeFrom(const DeviceAttributes& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DeviceAttributes* other); - protected: - explicit DeviceAttributes(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // string device_type = 2; - void clear_device_type(); - static const int kDeviceTypeFieldNumber = 2; - const ::std::string& device_type() const; - void set_device_type(const ::std::string& value); - #if LANG_CXX11 - void set_device_type(::std::string&& value); - #endif - void set_device_type(const char* value); - void set_device_type(const char* value, size_t size); - ::std::string* mutable_device_type(); - ::std::string* release_device_type(); - void set_allocated_device_type(::std::string* device_type); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_device_type(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_device_type( - ::std::string* device_type); - - // string physical_device_desc = 7; - void clear_physical_device_desc(); - static const int kPhysicalDeviceDescFieldNumber = 7; - const ::std::string& physical_device_desc() const; - void set_physical_device_desc(const ::std::string& value); - #if LANG_CXX11 - void set_physical_device_desc(::std::string&& value); - #endif - void set_physical_device_desc(const char* value); - void set_physical_device_desc(const char* value, size_t size); - ::std::string* mutable_physical_device_desc(); - ::std::string* release_physical_device_desc(); - void set_allocated_physical_device_desc(::std::string* physical_device_desc); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_physical_device_desc(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_physical_device_desc( - ::std::string* physical_device_desc); - - // .tensorflow.DeviceLocality locality = 5; - bool has_locality() const; - void clear_locality(); - static const int kLocalityFieldNumber = 5; - private: - const ::tensorflow::DeviceLocality& _internal_locality() const; - public: - const ::tensorflow::DeviceLocality& locality() const; - ::tensorflow::DeviceLocality* release_locality(); - ::tensorflow::DeviceLocality* mutable_locality(); - void set_allocated_locality(::tensorflow::DeviceLocality* locality); - void unsafe_arena_set_allocated_locality( - ::tensorflow::DeviceLocality* locality); - ::tensorflow::DeviceLocality* unsafe_arena_release_locality(); - - // int64 memory_limit = 4; - void clear_memory_limit(); - static const int kMemoryLimitFieldNumber = 4; - ::google::protobuf::int64 memory_limit() const; - void set_memory_limit(::google::protobuf::int64 value); - - // fixed64 incarnation = 6; - void clear_incarnation(); - static const int kIncarnationFieldNumber = 6; - ::google::protobuf::uint64 incarnation() const; - void set_incarnation(::google::protobuf::uint64 value); - - // @@protoc_insertion_point(class_scope:tensorflow.DeviceAttributes) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr device_type_; - ::google::protobuf::internal::ArenaStringPtr physical_device_desc_; - ::tensorflow::DeviceLocality* locality_; - ::google::protobuf::int64 memory_limit_; - ::google::protobuf::uint64 incarnation_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// InterconnectLink - -// int32 device_id = 1; -inline void InterconnectLink::clear_device_id() { - device_id_ = 0; -} -inline ::google::protobuf::int32 InterconnectLink::device_id() const { - // @@protoc_insertion_point(field_get:tensorflow.InterconnectLink.device_id) - return device_id_; -} -inline void InterconnectLink::set_device_id(::google::protobuf::int32 value) { - - device_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.InterconnectLink.device_id) -} - -// string type = 2; -inline void InterconnectLink::clear_type() { - type_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& InterconnectLink::type() const { - // @@protoc_insertion_point(field_get:tensorflow.InterconnectLink.type) - return type_.Get(); -} -inline void InterconnectLink::set_type(const ::std::string& value) { - - type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.InterconnectLink.type) -} -#if LANG_CXX11 -inline void InterconnectLink::set_type(::std::string&& value) { - - type_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.InterconnectLink.type) -} -#endif -inline void InterconnectLink::set_type(const char* value) { - GOOGLE_DCHECK(value != NULL); - - type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.InterconnectLink.type) -} -inline void InterconnectLink::set_type(const char* value, - size_t size) { - - type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.InterconnectLink.type) -} -inline ::std::string* InterconnectLink::mutable_type() { - - // @@protoc_insertion_point(field_mutable:tensorflow.InterconnectLink.type) - return type_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* InterconnectLink::release_type() { - // @@protoc_insertion_point(field_release:tensorflow.InterconnectLink.type) - - return type_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void InterconnectLink::set_allocated_type(::std::string* type) { - if (type != NULL) { - - } else { - - } - type_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.InterconnectLink.type) -} -inline ::std::string* InterconnectLink::unsafe_arena_release_type() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.InterconnectLink.type) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return type_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void InterconnectLink::unsafe_arena_set_allocated_type( - ::std::string* type) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (type != NULL) { - - } else { - - } - type_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - type, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.InterconnectLink.type) -} - -// int32 strength = 3; -inline void InterconnectLink::clear_strength() { - strength_ = 0; -} -inline ::google::protobuf::int32 InterconnectLink::strength() const { - // @@protoc_insertion_point(field_get:tensorflow.InterconnectLink.strength) - return strength_; -} -inline void InterconnectLink::set_strength(::google::protobuf::int32 value) { - - strength_ = value; - // @@protoc_insertion_point(field_set:tensorflow.InterconnectLink.strength) -} - -// ------------------------------------------------------------------- - -// LocalLinks - -// repeated .tensorflow.InterconnectLink link = 1; -inline int LocalLinks::link_size() const { - return link_.size(); -} -inline void LocalLinks::clear_link() { - link_.Clear(); -} -inline ::tensorflow::InterconnectLink* LocalLinks::mutable_link(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.LocalLinks.link) - return link_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::InterconnectLink >* -LocalLinks::mutable_link() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.LocalLinks.link) - return &link_; -} -inline const ::tensorflow::InterconnectLink& LocalLinks::link(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.LocalLinks.link) - return link_.Get(index); -} -inline ::tensorflow::InterconnectLink* LocalLinks::add_link() { - // @@protoc_insertion_point(field_add:tensorflow.LocalLinks.link) - return link_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::InterconnectLink >& -LocalLinks::link() const { - // @@protoc_insertion_point(field_list:tensorflow.LocalLinks.link) - return link_; -} - -// ------------------------------------------------------------------- - -// DeviceLocality - -// int32 bus_id = 1; -inline void DeviceLocality::clear_bus_id() { - bus_id_ = 0; -} -inline ::google::protobuf::int32 DeviceLocality::bus_id() const { - // @@protoc_insertion_point(field_get:tensorflow.DeviceLocality.bus_id) - return bus_id_; -} -inline void DeviceLocality::set_bus_id(::google::protobuf::int32 value) { - - bus_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.DeviceLocality.bus_id) -} - -// int32 numa_node = 2; -inline void DeviceLocality::clear_numa_node() { - numa_node_ = 0; -} -inline ::google::protobuf::int32 DeviceLocality::numa_node() const { - // @@protoc_insertion_point(field_get:tensorflow.DeviceLocality.numa_node) - return numa_node_; -} -inline void DeviceLocality::set_numa_node(::google::protobuf::int32 value) { - - numa_node_ = value; - // @@protoc_insertion_point(field_set:tensorflow.DeviceLocality.numa_node) -} - -// .tensorflow.LocalLinks links = 3; -inline bool DeviceLocality::has_links() const { - return this != internal_default_instance() && links_ != NULL; -} -inline void DeviceLocality::clear_links() { - if (GetArenaNoVirtual() == NULL && links_ != NULL) { - delete links_; - } - links_ = NULL; -} -inline const ::tensorflow::LocalLinks& DeviceLocality::_internal_links() const { - return *links_; -} -inline const ::tensorflow::LocalLinks& DeviceLocality::links() const { - const ::tensorflow::LocalLinks* p = links_; - // @@protoc_insertion_point(field_get:tensorflow.DeviceLocality.links) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_LocalLinks_default_instance_); -} -inline ::tensorflow::LocalLinks* DeviceLocality::release_links() { - // @@protoc_insertion_point(field_release:tensorflow.DeviceLocality.links) - - ::tensorflow::LocalLinks* temp = links_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - links_ = NULL; - return temp; -} -inline ::tensorflow::LocalLinks* DeviceLocality::unsafe_arena_release_links() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.DeviceLocality.links) - - ::tensorflow::LocalLinks* temp = links_; - links_ = NULL; - return temp; -} -inline ::tensorflow::LocalLinks* DeviceLocality::mutable_links() { - - if (links_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::LocalLinks>(GetArenaNoVirtual()); - links_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.DeviceLocality.links) - return links_; -} -inline void DeviceLocality::set_allocated_links(::tensorflow::LocalLinks* links) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete links_; - } - if (links) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(links); - if (message_arena != submessage_arena) { - links = ::google::protobuf::internal::GetOwnedMessage( - message_arena, links, submessage_arena); - } - - } else { - - } - links_ = links; - // @@protoc_insertion_point(field_set_allocated:tensorflow.DeviceLocality.links) -} - -// ------------------------------------------------------------------- - -// DeviceAttributes - -// string name = 1; -inline void DeviceAttributes::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& DeviceAttributes::name() const { - // @@protoc_insertion_point(field_get:tensorflow.DeviceAttributes.name) - return name_.Get(); -} -inline void DeviceAttributes::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.DeviceAttributes.name) -} -#if LANG_CXX11 -inline void DeviceAttributes::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.DeviceAttributes.name) -} -#endif -inline void DeviceAttributes::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.DeviceAttributes.name) -} -inline void DeviceAttributes::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.DeviceAttributes.name) -} -inline ::std::string* DeviceAttributes::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.DeviceAttributes.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* DeviceAttributes::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.DeviceAttributes.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void DeviceAttributes::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.DeviceAttributes.name) -} -inline ::std::string* DeviceAttributes::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.DeviceAttributes.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void DeviceAttributes::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.DeviceAttributes.name) -} - -// string device_type = 2; -inline void DeviceAttributes::clear_device_type() { - device_type_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& DeviceAttributes::device_type() const { - // @@protoc_insertion_point(field_get:tensorflow.DeviceAttributes.device_type) - return device_type_.Get(); -} -inline void DeviceAttributes::set_device_type(const ::std::string& value) { - - device_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.DeviceAttributes.device_type) -} -#if LANG_CXX11 -inline void DeviceAttributes::set_device_type(::std::string&& value) { - - device_type_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.DeviceAttributes.device_type) -} -#endif -inline void DeviceAttributes::set_device_type(const char* value) { - GOOGLE_DCHECK(value != NULL); - - device_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.DeviceAttributes.device_type) -} -inline void DeviceAttributes::set_device_type(const char* value, - size_t size) { - - device_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.DeviceAttributes.device_type) -} -inline ::std::string* DeviceAttributes::mutable_device_type() { - - // @@protoc_insertion_point(field_mutable:tensorflow.DeviceAttributes.device_type) - return device_type_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* DeviceAttributes::release_device_type() { - // @@protoc_insertion_point(field_release:tensorflow.DeviceAttributes.device_type) - - return device_type_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void DeviceAttributes::set_allocated_device_type(::std::string* device_type) { - if (device_type != NULL) { - - } else { - - } - device_type_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device_type, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.DeviceAttributes.device_type) -} -inline ::std::string* DeviceAttributes::unsafe_arena_release_device_type() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.DeviceAttributes.device_type) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return device_type_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void DeviceAttributes::unsafe_arena_set_allocated_device_type( - ::std::string* device_type) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (device_type != NULL) { - - } else { - - } - device_type_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - device_type, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.DeviceAttributes.device_type) -} - -// int64 memory_limit = 4; -inline void DeviceAttributes::clear_memory_limit() { - memory_limit_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 DeviceAttributes::memory_limit() const { - // @@protoc_insertion_point(field_get:tensorflow.DeviceAttributes.memory_limit) - return memory_limit_; -} -inline void DeviceAttributes::set_memory_limit(::google::protobuf::int64 value) { - - memory_limit_ = value; - // @@protoc_insertion_point(field_set:tensorflow.DeviceAttributes.memory_limit) -} - -// .tensorflow.DeviceLocality locality = 5; -inline bool DeviceAttributes::has_locality() const { - return this != internal_default_instance() && locality_ != NULL; -} -inline void DeviceAttributes::clear_locality() { - if (GetArenaNoVirtual() == NULL && locality_ != NULL) { - delete locality_; - } - locality_ = NULL; -} -inline const ::tensorflow::DeviceLocality& DeviceAttributes::_internal_locality() const { - return *locality_; -} -inline const ::tensorflow::DeviceLocality& DeviceAttributes::locality() const { - const ::tensorflow::DeviceLocality* p = locality_; - // @@protoc_insertion_point(field_get:tensorflow.DeviceAttributes.locality) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_DeviceLocality_default_instance_); -} -inline ::tensorflow::DeviceLocality* DeviceAttributes::release_locality() { - // @@protoc_insertion_point(field_release:tensorflow.DeviceAttributes.locality) - - ::tensorflow::DeviceLocality* temp = locality_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - locality_ = NULL; - return temp; -} -inline ::tensorflow::DeviceLocality* DeviceAttributes::unsafe_arena_release_locality() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.DeviceAttributes.locality) - - ::tensorflow::DeviceLocality* temp = locality_; - locality_ = NULL; - return temp; -} -inline ::tensorflow::DeviceLocality* DeviceAttributes::mutable_locality() { - - if (locality_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::DeviceLocality>(GetArenaNoVirtual()); - locality_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.DeviceAttributes.locality) - return locality_; -} -inline void DeviceAttributes::set_allocated_locality(::tensorflow::DeviceLocality* locality) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete locality_; - } - if (locality) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(locality); - if (message_arena != submessage_arena) { - locality = ::google::protobuf::internal::GetOwnedMessage( - message_arena, locality, submessage_arena); - } - - } else { - - } - locality_ = locality; - // @@protoc_insertion_point(field_set_allocated:tensorflow.DeviceAttributes.locality) -} - -// fixed64 incarnation = 6; -inline void DeviceAttributes::clear_incarnation() { - incarnation_ = GOOGLE_ULONGLONG(0); -} -inline ::google::protobuf::uint64 DeviceAttributes::incarnation() const { - // @@protoc_insertion_point(field_get:tensorflow.DeviceAttributes.incarnation) - return incarnation_; -} -inline void DeviceAttributes::set_incarnation(::google::protobuf::uint64 value) { - - incarnation_ = value; - // @@protoc_insertion_point(field_set:tensorflow.DeviceAttributes.incarnation) -} - -// string physical_device_desc = 7; -inline void DeviceAttributes::clear_physical_device_desc() { - physical_device_desc_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& DeviceAttributes::physical_device_desc() const { - // @@protoc_insertion_point(field_get:tensorflow.DeviceAttributes.physical_device_desc) - return physical_device_desc_.Get(); -} -inline void DeviceAttributes::set_physical_device_desc(const ::std::string& value) { - - physical_device_desc_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.DeviceAttributes.physical_device_desc) -} -#if LANG_CXX11 -inline void DeviceAttributes::set_physical_device_desc(::std::string&& value) { - - physical_device_desc_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.DeviceAttributes.physical_device_desc) -} -#endif -inline void DeviceAttributes::set_physical_device_desc(const char* value) { - GOOGLE_DCHECK(value != NULL); - - physical_device_desc_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.DeviceAttributes.physical_device_desc) -} -inline void DeviceAttributes::set_physical_device_desc(const char* value, - size_t size) { - - physical_device_desc_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.DeviceAttributes.physical_device_desc) -} -inline ::std::string* DeviceAttributes::mutable_physical_device_desc() { - - // @@protoc_insertion_point(field_mutable:tensorflow.DeviceAttributes.physical_device_desc) - return physical_device_desc_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* DeviceAttributes::release_physical_device_desc() { - // @@protoc_insertion_point(field_release:tensorflow.DeviceAttributes.physical_device_desc) - - return physical_device_desc_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void DeviceAttributes::set_allocated_physical_device_desc(::std::string* physical_device_desc) { - if (physical_device_desc != NULL) { - - } else { - - } - physical_device_desc_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), physical_device_desc, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.DeviceAttributes.physical_device_desc) -} -inline ::std::string* DeviceAttributes::unsafe_arena_release_physical_device_desc() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.DeviceAttributes.physical_device_desc) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return physical_device_desc_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void DeviceAttributes::unsafe_arena_set_allocated_physical_device_desc( - ::std::string* physical_device_desc) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (physical_device_desc != NULL) { - - } else { - - } - physical_device_desc_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - physical_device_desc, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.DeviceAttributes.physical_device_desc) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fdevice_5fattributes_2eproto diff --git a/linux/include/tensorflow/core/framework/device_attributes.pb_text-impl.h b/linux/include/tensorflow/core/framework/device_attributes.pb_text-impl.h deleted file mode 100755 index f282c1465..000000000 --- a/linux/include/tensorflow/core/framework/device_attributes.pb_text-impl.h +++ /dev/null @@ -1,46 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_device_attributes_proto_IMPL_H_ -#define tensorflow_core_framework_device_attributes_proto_IMPL_H_ - -#include "tensorflow/core/framework/device_attributes.pb.h" -#include "tensorflow/core/framework/device_attributes.pb_text.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::InterconnectLink& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::InterconnectLink* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::LocalLinks& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::LocalLinks* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::DeviceLocality& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::DeviceLocality* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::DeviceAttributes& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::DeviceAttributes* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_device_attributes_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/device_attributes.pb_text.h b/linux/include/tensorflow/core/framework/device_attributes.pb_text.h deleted file mode 100755 index 6d1326f82..000000000 --- a/linux/include/tensorflow/core/framework/device_attributes.pb_text.h +++ /dev/null @@ -1,54 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_device_attributes_proto_H_ -#define tensorflow_core_framework_device_attributes_proto_H_ - -#include "tensorflow/core/framework/device_attributes.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.InterconnectLink -string ProtoDebugString( - const ::tensorflow::InterconnectLink& msg); -string ProtoShortDebugString( - const ::tensorflow::InterconnectLink& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::InterconnectLink* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.LocalLinks -string ProtoDebugString( - const ::tensorflow::LocalLinks& msg); -string ProtoShortDebugString( - const ::tensorflow::LocalLinks& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::LocalLinks* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.DeviceLocality -string ProtoDebugString( - const ::tensorflow::DeviceLocality& msg); -string ProtoShortDebugString( - const ::tensorflow::DeviceLocality& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::DeviceLocality* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.DeviceAttributes -string ProtoDebugString( - const ::tensorflow::DeviceAttributes& msg); -string ProtoShortDebugString( - const ::tensorflow::DeviceAttributes& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::DeviceAttributes* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_device_attributes_proto_H_ diff --git a/linux/include/tensorflow/core/framework/function.pb.h b/linux/include/tensorflow/core/framework/function.pb.h deleted file mode 100755 index 24710985e..000000000 --- a/linux/include/tensorflow/core/framework/function.pb.h +++ /dev/null @@ -1,961 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/function.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ffunction_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ffunction_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include "tensorflow/core/framework/attr_value.pb.h" -#include "tensorflow/core/framework/node_def.pb.h" -#include "tensorflow/core/framework/op_def.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2ffunction_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2ffunction_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[5]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2ffunction_2eproto -namespace tensorflow { -class FunctionDef; -class FunctionDefDefaultTypeInternal; -extern FunctionDefDefaultTypeInternal _FunctionDef_default_instance_; -class FunctionDefLibrary; -class FunctionDefLibraryDefaultTypeInternal; -extern FunctionDefLibraryDefaultTypeInternal _FunctionDefLibrary_default_instance_; -class FunctionDef_AttrEntry_DoNotUse; -class FunctionDef_AttrEntry_DoNotUseDefaultTypeInternal; -extern FunctionDef_AttrEntry_DoNotUseDefaultTypeInternal _FunctionDef_AttrEntry_DoNotUse_default_instance_; -class FunctionDef_RetEntry_DoNotUse; -class FunctionDef_RetEntry_DoNotUseDefaultTypeInternal; -extern FunctionDef_RetEntry_DoNotUseDefaultTypeInternal _FunctionDef_RetEntry_DoNotUse_default_instance_; -class GradientDef; -class GradientDefDefaultTypeInternal; -extern GradientDefDefaultTypeInternal _GradientDef_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::FunctionDef* Arena::CreateMaybeMessage<::tensorflow::FunctionDef>(Arena*); -template<> ::tensorflow::FunctionDefLibrary* Arena::CreateMaybeMessage<::tensorflow::FunctionDefLibrary>(Arena*); -template<> ::tensorflow::FunctionDef_AttrEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::FunctionDef_AttrEntry_DoNotUse>(Arena*); -template<> ::tensorflow::FunctionDef_RetEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::FunctionDef_RetEntry_DoNotUse>(Arena*); -template<> ::tensorflow::GradientDef* Arena::CreateMaybeMessage<::tensorflow::GradientDef>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class FunctionDefLibrary : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.FunctionDefLibrary) */ { - public: - FunctionDefLibrary(); - virtual ~FunctionDefLibrary(); - - FunctionDefLibrary(const FunctionDefLibrary& from); - - inline FunctionDefLibrary& operator=(const FunctionDefLibrary& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - FunctionDefLibrary(FunctionDefLibrary&& from) noexcept - : FunctionDefLibrary() { - *this = ::std::move(from); - } - - inline FunctionDefLibrary& operator=(FunctionDefLibrary&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const FunctionDefLibrary& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FunctionDefLibrary* internal_default_instance() { - return reinterpret_cast( - &_FunctionDefLibrary_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(FunctionDefLibrary* other); - void Swap(FunctionDefLibrary* other); - friend void swap(FunctionDefLibrary& a, FunctionDefLibrary& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline FunctionDefLibrary* New() const final { - return CreateMaybeMessage(NULL); - } - - FunctionDefLibrary* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const FunctionDefLibrary& from); - void MergeFrom(const FunctionDefLibrary& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FunctionDefLibrary* other); - protected: - explicit FunctionDefLibrary(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.FunctionDef function = 1; - int function_size() const; - void clear_function(); - static const int kFunctionFieldNumber = 1; - ::tensorflow::FunctionDef* mutable_function(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef >* - mutable_function(); - const ::tensorflow::FunctionDef& function(int index) const; - ::tensorflow::FunctionDef* add_function(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef >& - function() const; - - // repeated .tensorflow.GradientDef gradient = 2; - int gradient_size() const; - void clear_gradient(); - static const int kGradientFieldNumber = 2; - ::tensorflow::GradientDef* mutable_gradient(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::GradientDef >* - mutable_gradient(); - const ::tensorflow::GradientDef& gradient(int index) const; - ::tensorflow::GradientDef* add_gradient(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::GradientDef >& - gradient() const; - - // @@protoc_insertion_point(class_scope:tensorflow.FunctionDefLibrary) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef > function_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::GradientDef > gradient_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2ffunction_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class FunctionDef_AttrEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: - typedef ::google::protobuf::internal::MapEntry SuperType; - FunctionDef_AttrEntry_DoNotUse(); - FunctionDef_AttrEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const FunctionDef_AttrEntry_DoNotUse& other); - static const FunctionDef_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_FunctionDef_AttrEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class FunctionDef_RetEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: - typedef ::google::protobuf::internal::MapEntry SuperType; - FunctionDef_RetEntry_DoNotUse(); - FunctionDef_RetEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const FunctionDef_RetEntry_DoNotUse& other); - static const FunctionDef_RetEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_FunctionDef_RetEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class FunctionDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.FunctionDef) */ { - public: - FunctionDef(); - virtual ~FunctionDef(); - - FunctionDef(const FunctionDef& from); - - inline FunctionDef& operator=(const FunctionDef& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - FunctionDef(FunctionDef&& from) noexcept - : FunctionDef() { - *this = ::std::move(from); - } - - inline FunctionDef& operator=(FunctionDef&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const FunctionDef& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const FunctionDef* internal_default_instance() { - return reinterpret_cast( - &_FunctionDef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void UnsafeArenaSwap(FunctionDef* other); - void Swap(FunctionDef* other); - friend void swap(FunctionDef& a, FunctionDef& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline FunctionDef* New() const final { - return CreateMaybeMessage(NULL); - } - - FunctionDef* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const FunctionDef& from); - void MergeFrom(const FunctionDef& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(FunctionDef* other); - protected: - explicit FunctionDef(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.NodeDef node_def = 3; - int node_def_size() const; - void clear_node_def(); - static const int kNodeDefFieldNumber = 3; - ::tensorflow::NodeDef* mutable_node_def(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >* - mutable_node_def(); - const ::tensorflow::NodeDef& node_def(int index) const; - ::tensorflow::NodeDef* add_node_def(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >& - node_def() const; - - // map ret = 4; - int ret_size() const; - void clear_ret(); - static const int kRetFieldNumber = 4; - const ::google::protobuf::Map< ::std::string, ::std::string >& - ret() const; - ::google::protobuf::Map< ::std::string, ::std::string >* - mutable_ret(); - - // map attr = 5; - int attr_size() const; - void clear_attr(); - static const int kAttrFieldNumber = 5; - const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& - attr() const; - ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* - mutable_attr(); - - // .tensorflow.OpDef signature = 1; - bool has_signature() const; - void clear_signature(); - static const int kSignatureFieldNumber = 1; - private: - const ::tensorflow::OpDef& _internal_signature() const; - public: - const ::tensorflow::OpDef& signature() const; - ::tensorflow::OpDef* release_signature(); - ::tensorflow::OpDef* mutable_signature(); - void set_allocated_signature(::tensorflow::OpDef* signature); - void unsafe_arena_set_allocated_signature( - ::tensorflow::OpDef* signature); - ::tensorflow::OpDef* unsafe_arena_release_signature(); - - // @@protoc_insertion_point(class_scope:tensorflow.FunctionDef) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef > node_def_; - ::google::protobuf::internal::MapField< - FunctionDef_RetEntry_DoNotUse, - ::std::string, ::std::string, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - 0 > ret_; - ::google::protobuf::internal::MapField< - FunctionDef_AttrEntry_DoNotUse, - ::std::string, ::tensorflow::AttrValue, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > attr_; - ::tensorflow::OpDef* signature_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2ffunction_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GradientDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.GradientDef) */ { - public: - GradientDef(); - virtual ~GradientDef(); - - GradientDef(const GradientDef& from); - - inline GradientDef& operator=(const GradientDef& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GradientDef(GradientDef&& from) noexcept - : GradientDef() { - *this = ::std::move(from); - } - - inline GradientDef& operator=(GradientDef&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const GradientDef& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GradientDef* internal_default_instance() { - return reinterpret_cast( - &_GradientDef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void UnsafeArenaSwap(GradientDef* other); - void Swap(GradientDef* other); - friend void swap(GradientDef& a, GradientDef& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GradientDef* New() const final { - return CreateMaybeMessage(NULL); - } - - GradientDef* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GradientDef& from); - void MergeFrom(const GradientDef& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GradientDef* other); - protected: - explicit GradientDef(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string function_name = 1; - void clear_function_name(); - static const int kFunctionNameFieldNumber = 1; - const ::std::string& function_name() const; - void set_function_name(const ::std::string& value); - #if LANG_CXX11 - void set_function_name(::std::string&& value); - #endif - void set_function_name(const char* value); - void set_function_name(const char* value, size_t size); - ::std::string* mutable_function_name(); - ::std::string* release_function_name(); - void set_allocated_function_name(::std::string* function_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_function_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_function_name( - ::std::string* function_name); - - // string gradient_func = 2; - void clear_gradient_func(); - static const int kGradientFuncFieldNumber = 2; - const ::std::string& gradient_func() const; - void set_gradient_func(const ::std::string& value); - #if LANG_CXX11 - void set_gradient_func(::std::string&& value); - #endif - void set_gradient_func(const char* value); - void set_gradient_func(const char* value, size_t size); - ::std::string* mutable_gradient_func(); - ::std::string* release_gradient_func(); - void set_allocated_gradient_func(::std::string* gradient_func); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_gradient_func(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_gradient_func( - ::std::string* gradient_func); - - // @@protoc_insertion_point(class_scope:tensorflow.GradientDef) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr function_name_; - ::google::protobuf::internal::ArenaStringPtr gradient_func_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2ffunction_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// FunctionDefLibrary - -// repeated .tensorflow.FunctionDef function = 1; -inline int FunctionDefLibrary::function_size() const { - return function_.size(); -} -inline void FunctionDefLibrary::clear_function() { - function_.Clear(); -} -inline ::tensorflow::FunctionDef* FunctionDefLibrary::mutable_function(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.FunctionDefLibrary.function) - return function_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef >* -FunctionDefLibrary::mutable_function() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDefLibrary.function) - return &function_; -} -inline const ::tensorflow::FunctionDef& FunctionDefLibrary::function(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.FunctionDefLibrary.function) - return function_.Get(index); -} -inline ::tensorflow::FunctionDef* FunctionDefLibrary::add_function() { - // @@protoc_insertion_point(field_add:tensorflow.FunctionDefLibrary.function) - return function_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::FunctionDef >& -FunctionDefLibrary::function() const { - // @@protoc_insertion_point(field_list:tensorflow.FunctionDefLibrary.function) - return function_; -} - -// repeated .tensorflow.GradientDef gradient = 2; -inline int FunctionDefLibrary::gradient_size() const { - return gradient_.size(); -} -inline void FunctionDefLibrary::clear_gradient() { - gradient_.Clear(); -} -inline ::tensorflow::GradientDef* FunctionDefLibrary::mutable_gradient(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.FunctionDefLibrary.gradient) - return gradient_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::GradientDef >* -FunctionDefLibrary::mutable_gradient() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDefLibrary.gradient) - return &gradient_; -} -inline const ::tensorflow::GradientDef& FunctionDefLibrary::gradient(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.FunctionDefLibrary.gradient) - return gradient_.Get(index); -} -inline ::tensorflow::GradientDef* FunctionDefLibrary::add_gradient() { - // @@protoc_insertion_point(field_add:tensorflow.FunctionDefLibrary.gradient) - return gradient_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::GradientDef >& -FunctionDefLibrary::gradient() const { - // @@protoc_insertion_point(field_list:tensorflow.FunctionDefLibrary.gradient) - return gradient_; -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// FunctionDef - -// .tensorflow.OpDef signature = 1; -inline bool FunctionDef::has_signature() const { - return this != internal_default_instance() && signature_ != NULL; -} -inline const ::tensorflow::OpDef& FunctionDef::_internal_signature() const { - return *signature_; -} -inline const ::tensorflow::OpDef& FunctionDef::signature() const { - const ::tensorflow::OpDef* p = signature_; - // @@protoc_insertion_point(field_get:tensorflow.FunctionDef.signature) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_OpDef_default_instance_); -} -inline ::tensorflow::OpDef* FunctionDef::release_signature() { - // @@protoc_insertion_point(field_release:tensorflow.FunctionDef.signature) - - ::tensorflow::OpDef* temp = signature_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - signature_ = NULL; - return temp; -} -inline ::tensorflow::OpDef* FunctionDef::unsafe_arena_release_signature() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.FunctionDef.signature) - - ::tensorflow::OpDef* temp = signature_; - signature_ = NULL; - return temp; -} -inline ::tensorflow::OpDef* FunctionDef::mutable_signature() { - - if (signature_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::OpDef>(GetArenaNoVirtual()); - signature_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.FunctionDef.signature) - return signature_; -} -inline void FunctionDef::set_allocated_signature(::tensorflow::OpDef* signature) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(signature_); - } - if (signature) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(signature)->GetArena(); - if (message_arena != submessage_arena) { - signature = ::google::protobuf::internal::GetOwnedMessage( - message_arena, signature, submessage_arena); - } - - } else { - - } - signature_ = signature; - // @@protoc_insertion_point(field_set_allocated:tensorflow.FunctionDef.signature) -} - -// map attr = 5; -inline int FunctionDef::attr_size() const { - return attr_.size(); -} -inline const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& -FunctionDef::attr() const { - // @@protoc_insertion_point(field_map:tensorflow.FunctionDef.attr) - return attr_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* -FunctionDef::mutable_attr() { - // @@protoc_insertion_point(field_mutable_map:tensorflow.FunctionDef.attr) - return attr_.MutableMap(); -} - -// repeated .tensorflow.NodeDef node_def = 3; -inline int FunctionDef::node_def_size() const { - return node_def_.size(); -} -inline ::tensorflow::NodeDef* FunctionDef::mutable_node_def(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.FunctionDef.node_def) - return node_def_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >* -FunctionDef::mutable_node_def() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDef.node_def) - return &node_def_; -} -inline const ::tensorflow::NodeDef& FunctionDef::node_def(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.FunctionDef.node_def) - return node_def_.Get(index); -} -inline ::tensorflow::NodeDef* FunctionDef::add_node_def() { - // @@protoc_insertion_point(field_add:tensorflow.FunctionDef.node_def) - return node_def_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >& -FunctionDef::node_def() const { - // @@protoc_insertion_point(field_list:tensorflow.FunctionDef.node_def) - return node_def_; -} - -// map ret = 4; -inline int FunctionDef::ret_size() const { - return ret_.size(); -} -inline void FunctionDef::clear_ret() { - ret_.Clear(); -} -inline const ::google::protobuf::Map< ::std::string, ::std::string >& -FunctionDef::ret() const { - // @@protoc_insertion_point(field_map:tensorflow.FunctionDef.ret) - return ret_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::std::string >* -FunctionDef::mutable_ret() { - // @@protoc_insertion_point(field_mutable_map:tensorflow.FunctionDef.ret) - return ret_.MutableMap(); -} - -// ------------------------------------------------------------------- - -// GradientDef - -// string function_name = 1; -inline void GradientDef::clear_function_name() { - function_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& GradientDef::function_name() const { - // @@protoc_insertion_point(field_get:tensorflow.GradientDef.function_name) - return function_name_.Get(); -} -inline void GradientDef::set_function_name(const ::std::string& value) { - - function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.GradientDef.function_name) -} -#if LANG_CXX11 -inline void GradientDef::set_function_name(::std::string&& value) { - - function_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.GradientDef.function_name) -} -#endif -inline void GradientDef::set_function_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.GradientDef.function_name) -} -inline void GradientDef::set_function_name(const char* value, - size_t size) { - - function_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.GradientDef.function_name) -} -inline ::std::string* GradientDef::mutable_function_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.GradientDef.function_name) - return function_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* GradientDef::release_function_name() { - // @@protoc_insertion_point(field_release:tensorflow.GradientDef.function_name) - - return function_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void GradientDef::set_allocated_function_name(::std::string* function_name) { - if (function_name != NULL) { - - } else { - - } - function_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), function_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.GradientDef.function_name) -} -inline ::std::string* GradientDef::unsafe_arena_release_function_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GradientDef.function_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return function_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void GradientDef::unsafe_arena_set_allocated_function_name( - ::std::string* function_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (function_name != NULL) { - - } else { - - } - function_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - function_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GradientDef.function_name) -} - -// string gradient_func = 2; -inline void GradientDef::clear_gradient_func() { - gradient_func_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& GradientDef::gradient_func() const { - // @@protoc_insertion_point(field_get:tensorflow.GradientDef.gradient_func) - return gradient_func_.Get(); -} -inline void GradientDef::set_gradient_func(const ::std::string& value) { - - gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.GradientDef.gradient_func) -} -#if LANG_CXX11 -inline void GradientDef::set_gradient_func(::std::string&& value) { - - gradient_func_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.GradientDef.gradient_func) -} -#endif -inline void GradientDef::set_gradient_func(const char* value) { - GOOGLE_DCHECK(value != NULL); - - gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.GradientDef.gradient_func) -} -inline void GradientDef::set_gradient_func(const char* value, - size_t size) { - - gradient_func_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.GradientDef.gradient_func) -} -inline ::std::string* GradientDef::mutable_gradient_func() { - - // @@protoc_insertion_point(field_mutable:tensorflow.GradientDef.gradient_func) - return gradient_func_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* GradientDef::release_gradient_func() { - // @@protoc_insertion_point(field_release:tensorflow.GradientDef.gradient_func) - - return gradient_func_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void GradientDef::set_allocated_gradient_func(::std::string* gradient_func) { - if (gradient_func != NULL) { - - } else { - - } - gradient_func_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), gradient_func, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.GradientDef.gradient_func) -} -inline ::std::string* GradientDef::unsafe_arena_release_gradient_func() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GradientDef.gradient_func) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return gradient_func_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void GradientDef::unsafe_arena_set_allocated_gradient_func( - ::std::string* gradient_func) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (gradient_func != NULL) { - - } else { - - } - gradient_func_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - gradient_func, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GradientDef.gradient_func) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ffunction_2eproto diff --git a/linux/include/tensorflow/core/framework/function.pb_text-impl.h b/linux/include/tensorflow/core/framework/function.pb_text-impl.h deleted file mode 100755 index 77f643364..000000000 --- a/linux/include/tensorflow/core/framework/function.pb_text-impl.h +++ /dev/null @@ -1,53 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_function_proto_IMPL_H_ -#define tensorflow_core_framework_function_proto_IMPL_H_ - -#include "tensorflow/core/framework/attr_value.pb.h" -#include "tensorflow/core/framework/attr_value.pb_text-impl.h" -#include "tensorflow/core/framework/function.pb.h" -#include "tensorflow/core/framework/function.pb_text.h" -#include "tensorflow/core/framework/node_def.pb.h" -#include "tensorflow/core/framework/node_def.pb_text-impl.h" -#include "tensorflow/core/framework/op_def.pb.h" -#include "tensorflow/core/framework/op_def.pb_text-impl.h" -#include "tensorflow/core/framework/resource_handle.pb.h" -#include "tensorflow/core/framework/resource_handle.pb_text-impl.h" -#include "tensorflow/core/framework/tensor.pb.h" -#include "tensorflow/core/framework/tensor.pb_text-impl.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb_text-impl.h" -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/framework/types.pb_text-impl.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::FunctionDefLibrary& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::FunctionDefLibrary* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::FunctionDef& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::FunctionDef* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::GradientDef& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::GradientDef* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_function_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/function.pb_text.h b/linux/include/tensorflow/core/framework/function.pb_text.h deleted file mode 100755 index ca49f7ed4..000000000 --- a/linux/include/tensorflow/core/framework/function.pb_text.h +++ /dev/null @@ -1,44 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_function_proto_H_ -#define tensorflow_core_framework_function_proto_H_ - -#include "tensorflow/core/framework/function.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.FunctionDefLibrary -string ProtoDebugString( - const ::tensorflow::FunctionDefLibrary& msg); -string ProtoShortDebugString( - const ::tensorflow::FunctionDefLibrary& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::FunctionDefLibrary* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.FunctionDef -string ProtoDebugString( - const ::tensorflow::FunctionDef& msg); -string ProtoShortDebugString( - const ::tensorflow::FunctionDef& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::FunctionDef* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.GradientDef -string ProtoDebugString( - const ::tensorflow::GradientDef& msg); -string ProtoShortDebugString( - const ::tensorflow::GradientDef& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::GradientDef* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_function_proto_H_ diff --git a/linux/include/tensorflow/core/framework/graph.pb.h b/linux/include/tensorflow/core/framework/graph.pb.h deleted file mode 100755 index 8e980f25d..000000000 --- a/linux/include/tensorflow/core/framework/graph.pb.h +++ /dev/null @@ -1,406 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/graph.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fgraph_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fgraph_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "tensorflow/core/framework/node_def.pb.h" -#include "tensorflow/core/framework/function.pb.h" -#include "tensorflow/core/framework/versions.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fgraph_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2fgraph_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[1]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2fgraph_2eproto -namespace tensorflow { -class GraphDef; -class GraphDefDefaultTypeInternal; -extern GraphDefDefaultTypeInternal _GraphDef_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::GraphDef* Arena::CreateMaybeMessage<::tensorflow::GraphDef>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class GraphDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.GraphDef) */ { - public: - GraphDef(); - virtual ~GraphDef(); - - GraphDef(const GraphDef& from); - - inline GraphDef& operator=(const GraphDef& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GraphDef(GraphDef&& from) noexcept - : GraphDef() { - *this = ::std::move(from); - } - - inline GraphDef& operator=(GraphDef&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const GraphDef& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GraphDef* internal_default_instance() { - return reinterpret_cast( - &_GraphDef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(GraphDef* other); - void Swap(GraphDef* other); - friend void swap(GraphDef& a, GraphDef& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GraphDef* New() const final { - return CreateMaybeMessage(NULL); - } - - GraphDef* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GraphDef& from); - void MergeFrom(const GraphDef& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GraphDef* other); - protected: - explicit GraphDef(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.NodeDef node = 1; - int node_size() const; - void clear_node(); - static const int kNodeFieldNumber = 1; - ::tensorflow::NodeDef* mutable_node(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >* - mutable_node(); - const ::tensorflow::NodeDef& node(int index) const; - ::tensorflow::NodeDef* add_node(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >& - node() const; - - // .tensorflow.FunctionDefLibrary library = 2; - bool has_library() const; - void clear_library(); - static const int kLibraryFieldNumber = 2; - private: - const ::tensorflow::FunctionDefLibrary& _internal_library() const; - public: - const ::tensorflow::FunctionDefLibrary& library() const; - ::tensorflow::FunctionDefLibrary* release_library(); - ::tensorflow::FunctionDefLibrary* mutable_library(); - void set_allocated_library(::tensorflow::FunctionDefLibrary* library); - void unsafe_arena_set_allocated_library( - ::tensorflow::FunctionDefLibrary* library); - ::tensorflow::FunctionDefLibrary* unsafe_arena_release_library(); - - // .tensorflow.VersionDef versions = 4; - bool has_versions() const; - void clear_versions(); - static const int kVersionsFieldNumber = 4; - private: - const ::tensorflow::VersionDef& _internal_versions() const; - public: - const ::tensorflow::VersionDef& versions() const; - ::tensorflow::VersionDef* release_versions(); - ::tensorflow::VersionDef* mutable_versions(); - void set_allocated_versions(::tensorflow::VersionDef* versions); - void unsafe_arena_set_allocated_versions( - ::tensorflow::VersionDef* versions); - ::tensorflow::VersionDef* unsafe_arena_release_versions(); - - // int32 version = 3 [deprecated = true]; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_version(); - GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kVersionFieldNumber = 3; - GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int32 version() const; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_version(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:tensorflow.GraphDef) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef > node_; - ::tensorflow::FunctionDefLibrary* library_; - ::tensorflow::VersionDef* versions_; - ::google::protobuf::int32 version_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fgraph_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// GraphDef - -// repeated .tensorflow.NodeDef node = 1; -inline int GraphDef::node_size() const { - return node_.size(); -} -inline ::tensorflow::NodeDef* GraphDef::mutable_node(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.node) - return node_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >* -GraphDef::mutable_node() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.GraphDef.node) - return &node_; -} -inline const ::tensorflow::NodeDef& GraphDef::node(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.GraphDef.node) - return node_.Get(index); -} -inline ::tensorflow::NodeDef* GraphDef::add_node() { - // @@protoc_insertion_point(field_add:tensorflow.GraphDef.node) - return node_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeDef >& -GraphDef::node() const { - // @@protoc_insertion_point(field_list:tensorflow.GraphDef.node) - return node_; -} - -// .tensorflow.VersionDef versions = 4; -inline bool GraphDef::has_versions() const { - return this != internal_default_instance() && versions_ != NULL; -} -inline const ::tensorflow::VersionDef& GraphDef::_internal_versions() const { - return *versions_; -} -inline const ::tensorflow::VersionDef& GraphDef::versions() const { - const ::tensorflow::VersionDef* p = versions_; - // @@protoc_insertion_point(field_get:tensorflow.GraphDef.versions) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_VersionDef_default_instance_); -} -inline ::tensorflow::VersionDef* GraphDef::release_versions() { - // @@protoc_insertion_point(field_release:tensorflow.GraphDef.versions) - - ::tensorflow::VersionDef* temp = versions_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - versions_ = NULL; - return temp; -} -inline ::tensorflow::VersionDef* GraphDef::unsafe_arena_release_versions() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphDef.versions) - - ::tensorflow::VersionDef* temp = versions_; - versions_ = NULL; - return temp; -} -inline ::tensorflow::VersionDef* GraphDef::mutable_versions() { - - if (versions_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::VersionDef>(GetArenaNoVirtual()); - versions_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.versions) - return versions_; -} -inline void GraphDef::set_allocated_versions(::tensorflow::VersionDef* versions) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(versions_); - } - if (versions) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(versions)->GetArena(); - if (message_arena != submessage_arena) { - versions = ::google::protobuf::internal::GetOwnedMessage( - message_arena, versions, submessage_arena); - } - - } else { - - } - versions_ = versions; - // @@protoc_insertion_point(field_set_allocated:tensorflow.GraphDef.versions) -} - -// int32 version = 3 [deprecated = true]; -inline void GraphDef::clear_version() { - version_ = 0; -} -inline ::google::protobuf::int32 GraphDef::version() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphDef.version) - return version_; -} -inline void GraphDef::set_version(::google::protobuf::int32 value) { - - version_ = value; - // @@protoc_insertion_point(field_set:tensorflow.GraphDef.version) -} - -// .tensorflow.FunctionDefLibrary library = 2; -inline bool GraphDef::has_library() const { - return this != internal_default_instance() && library_ != NULL; -} -inline const ::tensorflow::FunctionDefLibrary& GraphDef::_internal_library() const { - return *library_; -} -inline const ::tensorflow::FunctionDefLibrary& GraphDef::library() const { - const ::tensorflow::FunctionDefLibrary* p = library_; - // @@protoc_insertion_point(field_get:tensorflow.GraphDef.library) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_FunctionDefLibrary_default_instance_); -} -inline ::tensorflow::FunctionDefLibrary* GraphDef::release_library() { - // @@protoc_insertion_point(field_release:tensorflow.GraphDef.library) - - ::tensorflow::FunctionDefLibrary* temp = library_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - library_ = NULL; - return temp; -} -inline ::tensorflow::FunctionDefLibrary* GraphDef::unsafe_arena_release_library() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphDef.library) - - ::tensorflow::FunctionDefLibrary* temp = library_; - library_ = NULL; - return temp; -} -inline ::tensorflow::FunctionDefLibrary* GraphDef::mutable_library() { - - if (library_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::FunctionDefLibrary>(GetArenaNoVirtual()); - library_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.GraphDef.library) - return library_; -} -inline void GraphDef::set_allocated_library(::tensorflow::FunctionDefLibrary* library) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(library_); - } - if (library) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(library)->GetArena(); - if (message_arena != submessage_arena) { - library = ::google::protobuf::internal::GetOwnedMessage( - message_arena, library, submessage_arena); - } - - } else { - - } - library_ = library; - // @@protoc_insertion_point(field_set_allocated:tensorflow.GraphDef.library) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fgraph_2eproto diff --git a/linux/include/tensorflow/core/framework/graph.pb_text-impl.h b/linux/include/tensorflow/core/framework/graph.pb_text-impl.h deleted file mode 100755 index acab99edd..000000000 --- a/linux/include/tensorflow/core/framework/graph.pb_text-impl.h +++ /dev/null @@ -1,43 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_graph_proto_IMPL_H_ -#define tensorflow_core_framework_graph_proto_IMPL_H_ - -#include "tensorflow/core/framework/attr_value.pb.h" -#include "tensorflow/core/framework/attr_value.pb_text-impl.h" -#include "tensorflow/core/framework/function.pb.h" -#include "tensorflow/core/framework/function.pb_text-impl.h" -#include "tensorflow/core/framework/graph.pb.h" -#include "tensorflow/core/framework/graph.pb_text.h" -#include "tensorflow/core/framework/node_def.pb.h" -#include "tensorflow/core/framework/node_def.pb_text-impl.h" -#include "tensorflow/core/framework/op_def.pb.h" -#include "tensorflow/core/framework/op_def.pb_text-impl.h" -#include "tensorflow/core/framework/resource_handle.pb.h" -#include "tensorflow/core/framework/resource_handle.pb_text-impl.h" -#include "tensorflow/core/framework/tensor.pb.h" -#include "tensorflow/core/framework/tensor.pb_text-impl.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb_text-impl.h" -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/framework/types.pb_text-impl.h" -#include "tensorflow/core/framework/versions.pb.h" -#include "tensorflow/core/framework/versions.pb_text-impl.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::GraphDef& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::GraphDef* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_graph_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/graph.pb_text.h b/linux/include/tensorflow/core/framework/graph.pb_text.h deleted file mode 100755 index decf17f0a..000000000 --- a/linux/include/tensorflow/core/framework/graph.pb_text.h +++ /dev/null @@ -1,24 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_graph_proto_H_ -#define tensorflow_core_framework_graph_proto_H_ - -#include "tensorflow/core/framework/graph.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.GraphDef -string ProtoDebugString( - const ::tensorflow::GraphDef& msg); -string ProtoShortDebugString( - const ::tensorflow::GraphDef& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::GraphDef* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_graph_proto_H_ diff --git a/linux/include/tensorflow/core/framework/graph_transfer_info.pb.h b/linux/include/tensorflow/core/framework/graph_transfer_info.pb.h deleted file mode 100755 index 35269bfec..000000000 --- a/linux/include/tensorflow/core/framework/graph_transfer_info.pb.h +++ /dev/null @@ -1,2465 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/graph_transfer_info.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fgraph_5ftransfer_5finfo_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fgraph_5ftransfer_5finfo_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include "tensorflow/core/framework/types.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fgraph_5ftransfer_5finfo_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2fgraph_5ftransfer_5finfo_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[8]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2fgraph_5ftransfer_5finfo_2eproto -namespace tensorflow { -class GraphTransferConstNodeInfo; -class GraphTransferConstNodeInfoDefaultTypeInternal; -extern GraphTransferConstNodeInfoDefaultTypeInternal _GraphTransferConstNodeInfo_default_instance_; -class GraphTransferGraphInputNodeInfo; -class GraphTransferGraphInputNodeInfoDefaultTypeInternal; -extern GraphTransferGraphInputNodeInfoDefaultTypeInternal _GraphTransferGraphInputNodeInfo_default_instance_; -class GraphTransferGraphOutputNodeInfo; -class GraphTransferGraphOutputNodeInfoDefaultTypeInternal; -extern GraphTransferGraphOutputNodeInfoDefaultTypeInternal _GraphTransferGraphOutputNodeInfo_default_instance_; -class GraphTransferInfo; -class GraphTransferInfoDefaultTypeInternal; -extern GraphTransferInfoDefaultTypeInternal _GraphTransferInfo_default_instance_; -class GraphTransferNodeInfo; -class GraphTransferNodeInfoDefaultTypeInternal; -extern GraphTransferNodeInfoDefaultTypeInternal _GraphTransferNodeInfo_default_instance_; -class GraphTransferNodeInput; -class GraphTransferNodeInputDefaultTypeInternal; -extern GraphTransferNodeInputDefaultTypeInternal _GraphTransferNodeInput_default_instance_; -class GraphTransferNodeInputInfo; -class GraphTransferNodeInputInfoDefaultTypeInternal; -extern GraphTransferNodeInputInfoDefaultTypeInternal _GraphTransferNodeInputInfo_default_instance_; -class GraphTransferNodeOutputInfo; -class GraphTransferNodeOutputInfoDefaultTypeInternal; -extern GraphTransferNodeOutputInfoDefaultTypeInternal _GraphTransferNodeOutputInfo_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::GraphTransferConstNodeInfo* Arena::CreateMaybeMessage<::tensorflow::GraphTransferConstNodeInfo>(Arena*); -template<> ::tensorflow::GraphTransferGraphInputNodeInfo* Arena::CreateMaybeMessage<::tensorflow::GraphTransferGraphInputNodeInfo>(Arena*); -template<> ::tensorflow::GraphTransferGraphOutputNodeInfo* Arena::CreateMaybeMessage<::tensorflow::GraphTransferGraphOutputNodeInfo>(Arena*); -template<> ::tensorflow::GraphTransferInfo* Arena::CreateMaybeMessage<::tensorflow::GraphTransferInfo>(Arena*); -template<> ::tensorflow::GraphTransferNodeInfo* Arena::CreateMaybeMessage<::tensorflow::GraphTransferNodeInfo>(Arena*); -template<> ::tensorflow::GraphTransferNodeInput* Arena::CreateMaybeMessage<::tensorflow::GraphTransferNodeInput>(Arena*); -template<> ::tensorflow::GraphTransferNodeInputInfo* Arena::CreateMaybeMessage<::tensorflow::GraphTransferNodeInputInfo>(Arena*); -template<> ::tensorflow::GraphTransferNodeOutputInfo* Arena::CreateMaybeMessage<::tensorflow::GraphTransferNodeOutputInfo>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -enum GraphTransferInfo_Destination { - GraphTransferInfo_Destination_NOP = 0, - GraphTransferInfo_Destination_HEXAGON = 1, - GraphTransferInfo_Destination_GraphTransferInfo_Destination_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - GraphTransferInfo_Destination_GraphTransferInfo_Destination_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool GraphTransferInfo_Destination_IsValid(int value); -const GraphTransferInfo_Destination GraphTransferInfo_Destination_Destination_MIN = GraphTransferInfo_Destination_NOP; -const GraphTransferInfo_Destination GraphTransferInfo_Destination_Destination_MAX = GraphTransferInfo_Destination_HEXAGON; -const int GraphTransferInfo_Destination_Destination_ARRAYSIZE = GraphTransferInfo_Destination_Destination_MAX + 1; - -const ::google::protobuf::EnumDescriptor* GraphTransferInfo_Destination_descriptor(); -inline const ::std::string& GraphTransferInfo_Destination_Name(GraphTransferInfo_Destination value) { - return ::google::protobuf::internal::NameOfEnum( - GraphTransferInfo_Destination_descriptor(), value); -} -inline bool GraphTransferInfo_Destination_Parse( - const ::std::string& name, GraphTransferInfo_Destination* value) { - return ::google::protobuf::internal::ParseNamedEnum( - GraphTransferInfo_Destination_descriptor(), name, value); -} -// =================================================================== - -class GraphTransferNodeInput : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.GraphTransferNodeInput) */ { - public: - GraphTransferNodeInput(); - virtual ~GraphTransferNodeInput(); - - GraphTransferNodeInput(const GraphTransferNodeInput& from); - - inline GraphTransferNodeInput& operator=(const GraphTransferNodeInput& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GraphTransferNodeInput(GraphTransferNodeInput&& from) noexcept - : GraphTransferNodeInput() { - *this = ::std::move(from); - } - - inline GraphTransferNodeInput& operator=(GraphTransferNodeInput&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const GraphTransferNodeInput& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GraphTransferNodeInput* internal_default_instance() { - return reinterpret_cast( - &_GraphTransferNodeInput_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(GraphTransferNodeInput* other); - void Swap(GraphTransferNodeInput* other); - friend void swap(GraphTransferNodeInput& a, GraphTransferNodeInput& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GraphTransferNodeInput* New() const final { - return CreateMaybeMessage(NULL); - } - - GraphTransferNodeInput* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GraphTransferNodeInput& from); - void MergeFrom(const GraphTransferNodeInput& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GraphTransferNodeInput* other); - protected: - explicit GraphTransferNodeInput(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int32 node_id = 1; - void clear_node_id(); - static const int kNodeIdFieldNumber = 1; - ::google::protobuf::int32 node_id() const; - void set_node_id(::google::protobuf::int32 value); - - // int32 output_port = 2; - void clear_output_port(); - static const int kOutputPortFieldNumber = 2; - ::google::protobuf::int32 output_port() const; - void set_output_port(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferNodeInput) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int32 node_id_; - ::google::protobuf::int32 output_port_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fgraph_5ftransfer_5finfo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GraphTransferNodeInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.GraphTransferNodeInfo) */ { - public: - GraphTransferNodeInfo(); - virtual ~GraphTransferNodeInfo(); - - GraphTransferNodeInfo(const GraphTransferNodeInfo& from); - - inline GraphTransferNodeInfo& operator=(const GraphTransferNodeInfo& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GraphTransferNodeInfo(GraphTransferNodeInfo&& from) noexcept - : GraphTransferNodeInfo() { - *this = ::std::move(from); - } - - inline GraphTransferNodeInfo& operator=(GraphTransferNodeInfo&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const GraphTransferNodeInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GraphTransferNodeInfo* internal_default_instance() { - return reinterpret_cast( - &_GraphTransferNodeInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(GraphTransferNodeInfo* other); - void Swap(GraphTransferNodeInfo* other); - friend void swap(GraphTransferNodeInfo& a, GraphTransferNodeInfo& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GraphTransferNodeInfo* New() const final { - return CreateMaybeMessage(NULL); - } - - GraphTransferNodeInfo* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GraphTransferNodeInfo& from); - void MergeFrom(const GraphTransferNodeInfo& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GraphTransferNodeInfo* other); - protected: - explicit GraphTransferNodeInfo(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // string type_name = 3; - void clear_type_name(); - static const int kTypeNameFieldNumber = 3; - const ::std::string& type_name() const; - void set_type_name(const ::std::string& value); - #if LANG_CXX11 - void set_type_name(::std::string&& value); - #endif - void set_type_name(const char* value); - void set_type_name(const char* value, size_t size); - ::std::string* mutable_type_name(); - ::std::string* release_type_name(); - void set_allocated_type_name(::std::string* type_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_type_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_type_name( - ::std::string* type_name); - - // int32 node_id = 2; - void clear_node_id(); - static const int kNodeIdFieldNumber = 2; - ::google::protobuf::int32 node_id() const; - void set_node_id(::google::protobuf::int32 value); - - // int32 soc_op_id = 4; - void clear_soc_op_id(); - static const int kSocOpIdFieldNumber = 4; - ::google::protobuf::int32 soc_op_id() const; - void set_soc_op_id(::google::protobuf::int32 value); - - // int32 padding_id = 5; - void clear_padding_id(); - static const int kPaddingIdFieldNumber = 5; - ::google::protobuf::int32 padding_id() const; - void set_padding_id(::google::protobuf::int32 value); - - // int32 input_count = 6; - void clear_input_count(); - static const int kInputCountFieldNumber = 6; - ::google::protobuf::int32 input_count() const; - void set_input_count(::google::protobuf::int32 value); - - // int32 output_count = 7; - void clear_output_count(); - static const int kOutputCountFieldNumber = 7; - ::google::protobuf::int32 output_count() const; - void set_output_count(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferNodeInfo) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr type_name_; - ::google::protobuf::int32 node_id_; - ::google::protobuf::int32 soc_op_id_; - ::google::protobuf::int32 padding_id_; - ::google::protobuf::int32 input_count_; - ::google::protobuf::int32 output_count_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fgraph_5ftransfer_5finfo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GraphTransferConstNodeInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.GraphTransferConstNodeInfo) */ { - public: - GraphTransferConstNodeInfo(); - virtual ~GraphTransferConstNodeInfo(); - - GraphTransferConstNodeInfo(const GraphTransferConstNodeInfo& from); - - inline GraphTransferConstNodeInfo& operator=(const GraphTransferConstNodeInfo& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GraphTransferConstNodeInfo(GraphTransferConstNodeInfo&& from) noexcept - : GraphTransferConstNodeInfo() { - *this = ::std::move(from); - } - - inline GraphTransferConstNodeInfo& operator=(GraphTransferConstNodeInfo&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const GraphTransferConstNodeInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GraphTransferConstNodeInfo* internal_default_instance() { - return reinterpret_cast( - &_GraphTransferConstNodeInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void UnsafeArenaSwap(GraphTransferConstNodeInfo* other); - void Swap(GraphTransferConstNodeInfo* other); - friend void swap(GraphTransferConstNodeInfo& a, GraphTransferConstNodeInfo& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GraphTransferConstNodeInfo* New() const final { - return CreateMaybeMessage(NULL); - } - - GraphTransferConstNodeInfo* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GraphTransferConstNodeInfo& from); - void MergeFrom(const GraphTransferConstNodeInfo& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GraphTransferConstNodeInfo* other); - protected: - explicit GraphTransferConstNodeInfo(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int64 shape = 3; - int shape_size() const; - void clear_shape(); - static const int kShapeFieldNumber = 3; - ::google::protobuf::int64 shape(int index) const; - void set_shape(int index, ::google::protobuf::int64 value); - void add_shape(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - shape() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_shape(); - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // bytes data = 4; - void clear_data(); - static const int kDataFieldNumber = 4; - const ::std::string& data() const; - void set_data(const ::std::string& value); - #if LANG_CXX11 - void set_data(::std::string&& value); - #endif - void set_data(const char* value); - void set_data(const void* value, size_t size); - ::std::string* mutable_data(); - ::std::string* release_data(); - void set_allocated_data(::std::string* data); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_data(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_data( - ::std::string* data); - - // int32 node_id = 2; - void clear_node_id(); - static const int kNodeIdFieldNumber = 2; - ::google::protobuf::int32 node_id() const; - void set_node_id(::google::protobuf::int32 value); - - // .tensorflow.DataType dtype = 5; - void clear_dtype(); - static const int kDtypeFieldNumber = 5; - ::tensorflow::DataType dtype() const; - void set_dtype(::tensorflow::DataType value); - - // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferConstNodeInfo) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > shape_; - mutable int _shape_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr data_; - ::google::protobuf::int32 node_id_; - int dtype_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fgraph_5ftransfer_5finfo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GraphTransferNodeInputInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.GraphTransferNodeInputInfo) */ { - public: - GraphTransferNodeInputInfo(); - virtual ~GraphTransferNodeInputInfo(); - - GraphTransferNodeInputInfo(const GraphTransferNodeInputInfo& from); - - inline GraphTransferNodeInputInfo& operator=(const GraphTransferNodeInputInfo& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GraphTransferNodeInputInfo(GraphTransferNodeInputInfo&& from) noexcept - : GraphTransferNodeInputInfo() { - *this = ::std::move(from); - } - - inline GraphTransferNodeInputInfo& operator=(GraphTransferNodeInputInfo&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const GraphTransferNodeInputInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GraphTransferNodeInputInfo* internal_default_instance() { - return reinterpret_cast( - &_GraphTransferNodeInputInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void UnsafeArenaSwap(GraphTransferNodeInputInfo* other); - void Swap(GraphTransferNodeInputInfo* other); - friend void swap(GraphTransferNodeInputInfo& a, GraphTransferNodeInputInfo& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GraphTransferNodeInputInfo* New() const final { - return CreateMaybeMessage(NULL); - } - - GraphTransferNodeInputInfo* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GraphTransferNodeInputInfo& from); - void MergeFrom(const GraphTransferNodeInputInfo& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GraphTransferNodeInputInfo* other); - protected: - explicit GraphTransferNodeInputInfo(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.GraphTransferNodeInput node_input = 2; - int node_input_size() const; - void clear_node_input(); - static const int kNodeInputFieldNumber = 2; - ::tensorflow::GraphTransferNodeInput* mutable_node_input(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeInput >* - mutable_node_input(); - const ::tensorflow::GraphTransferNodeInput& node_input(int index) const; - ::tensorflow::GraphTransferNodeInput* add_node_input(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeInput >& - node_input() const; - - // int32 node_id = 1; - void clear_node_id(); - static const int kNodeIdFieldNumber = 1; - ::google::protobuf::int32 node_id() const; - void set_node_id(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferNodeInputInfo) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeInput > node_input_; - ::google::protobuf::int32 node_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fgraph_5ftransfer_5finfo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GraphTransferNodeOutputInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.GraphTransferNodeOutputInfo) */ { - public: - GraphTransferNodeOutputInfo(); - virtual ~GraphTransferNodeOutputInfo(); - - GraphTransferNodeOutputInfo(const GraphTransferNodeOutputInfo& from); - - inline GraphTransferNodeOutputInfo& operator=(const GraphTransferNodeOutputInfo& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GraphTransferNodeOutputInfo(GraphTransferNodeOutputInfo&& from) noexcept - : GraphTransferNodeOutputInfo() { - *this = ::std::move(from); - } - - inline GraphTransferNodeOutputInfo& operator=(GraphTransferNodeOutputInfo&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const GraphTransferNodeOutputInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GraphTransferNodeOutputInfo* internal_default_instance() { - return reinterpret_cast( - &_GraphTransferNodeOutputInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void UnsafeArenaSwap(GraphTransferNodeOutputInfo* other); - void Swap(GraphTransferNodeOutputInfo* other); - friend void swap(GraphTransferNodeOutputInfo& a, GraphTransferNodeOutputInfo& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GraphTransferNodeOutputInfo* New() const final { - return CreateMaybeMessage(NULL); - } - - GraphTransferNodeOutputInfo* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GraphTransferNodeOutputInfo& from); - void MergeFrom(const GraphTransferNodeOutputInfo& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GraphTransferNodeOutputInfo* other); - protected: - explicit GraphTransferNodeOutputInfo(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int32 max_byte_size = 2; - int max_byte_size_size() const; - void clear_max_byte_size(); - static const int kMaxByteSizeFieldNumber = 2; - ::google::protobuf::int32 max_byte_size(int index) const; - void set_max_byte_size(int index, ::google::protobuf::int32 value); - void add_max_byte_size(::google::protobuf::int32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& - max_byte_size() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* - mutable_max_byte_size(); - - // int32 node_id = 1; - void clear_node_id(); - static const int kNodeIdFieldNumber = 1; - ::google::protobuf::int32 node_id() const; - void set_node_id(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferNodeOutputInfo) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 > max_byte_size_; - mutable int _max_byte_size_cached_byte_size_; - ::google::protobuf::int32 node_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fgraph_5ftransfer_5finfo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GraphTransferGraphInputNodeInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.GraphTransferGraphInputNodeInfo) */ { - public: - GraphTransferGraphInputNodeInfo(); - virtual ~GraphTransferGraphInputNodeInfo(); - - GraphTransferGraphInputNodeInfo(const GraphTransferGraphInputNodeInfo& from); - - inline GraphTransferGraphInputNodeInfo& operator=(const GraphTransferGraphInputNodeInfo& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GraphTransferGraphInputNodeInfo(GraphTransferGraphInputNodeInfo&& from) noexcept - : GraphTransferGraphInputNodeInfo() { - *this = ::std::move(from); - } - - inline GraphTransferGraphInputNodeInfo& operator=(GraphTransferGraphInputNodeInfo&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const GraphTransferGraphInputNodeInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GraphTransferGraphInputNodeInfo* internal_default_instance() { - return reinterpret_cast( - &_GraphTransferGraphInputNodeInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void UnsafeArenaSwap(GraphTransferGraphInputNodeInfo* other); - void Swap(GraphTransferGraphInputNodeInfo* other); - friend void swap(GraphTransferGraphInputNodeInfo& a, GraphTransferGraphInputNodeInfo& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GraphTransferGraphInputNodeInfo* New() const final { - return CreateMaybeMessage(NULL); - } - - GraphTransferGraphInputNodeInfo* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GraphTransferGraphInputNodeInfo& from); - void MergeFrom(const GraphTransferGraphInputNodeInfo& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GraphTransferGraphInputNodeInfo* other); - protected: - explicit GraphTransferGraphInputNodeInfo(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int64 shape = 2; - int shape_size() const; - void clear_shape(); - static const int kShapeFieldNumber = 2; - ::google::protobuf::int64 shape(int index) const; - void set_shape(int index, ::google::protobuf::int64 value); - void add_shape(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - shape() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_shape(); - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // .tensorflow.DataType dtype = 3; - void clear_dtype(); - static const int kDtypeFieldNumber = 3; - ::tensorflow::DataType dtype() const; - void set_dtype(::tensorflow::DataType value); - - // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferGraphInputNodeInfo) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > shape_; - mutable int _shape_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - int dtype_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fgraph_5ftransfer_5finfo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GraphTransferGraphOutputNodeInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.GraphTransferGraphOutputNodeInfo) */ { - public: - GraphTransferGraphOutputNodeInfo(); - virtual ~GraphTransferGraphOutputNodeInfo(); - - GraphTransferGraphOutputNodeInfo(const GraphTransferGraphOutputNodeInfo& from); - - inline GraphTransferGraphOutputNodeInfo& operator=(const GraphTransferGraphOutputNodeInfo& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GraphTransferGraphOutputNodeInfo(GraphTransferGraphOutputNodeInfo&& from) noexcept - : GraphTransferGraphOutputNodeInfo() { - *this = ::std::move(from); - } - - inline GraphTransferGraphOutputNodeInfo& operator=(GraphTransferGraphOutputNodeInfo&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const GraphTransferGraphOutputNodeInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GraphTransferGraphOutputNodeInfo* internal_default_instance() { - return reinterpret_cast( - &_GraphTransferGraphOutputNodeInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void UnsafeArenaSwap(GraphTransferGraphOutputNodeInfo* other); - void Swap(GraphTransferGraphOutputNodeInfo* other); - friend void swap(GraphTransferGraphOutputNodeInfo& a, GraphTransferGraphOutputNodeInfo& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GraphTransferGraphOutputNodeInfo* New() const final { - return CreateMaybeMessage(NULL); - } - - GraphTransferGraphOutputNodeInfo* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GraphTransferGraphOutputNodeInfo& from); - void MergeFrom(const GraphTransferGraphOutputNodeInfo& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GraphTransferGraphOutputNodeInfo* other); - protected: - explicit GraphTransferGraphOutputNodeInfo(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int64 shape = 2; - int shape_size() const; - void clear_shape(); - static const int kShapeFieldNumber = 2; - ::google::protobuf::int64 shape(int index) const; - void set_shape(int index, ::google::protobuf::int64 value); - void add_shape(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - shape() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_shape(); - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // .tensorflow.DataType dtype = 3; - void clear_dtype(); - static const int kDtypeFieldNumber = 3; - ::tensorflow::DataType dtype() const; - void set_dtype(::tensorflow::DataType value); - - // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferGraphOutputNodeInfo) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > shape_; - mutable int _shape_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr name_; - int dtype_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fgraph_5ftransfer_5finfo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GraphTransferInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.GraphTransferInfo) */ { - public: - GraphTransferInfo(); - virtual ~GraphTransferInfo(); - - GraphTransferInfo(const GraphTransferInfo& from); - - inline GraphTransferInfo& operator=(const GraphTransferInfo& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GraphTransferInfo(GraphTransferInfo&& from) noexcept - : GraphTransferInfo() { - *this = ::std::move(from); - } - - inline GraphTransferInfo& operator=(GraphTransferInfo&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const GraphTransferInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GraphTransferInfo* internal_default_instance() { - return reinterpret_cast( - &_GraphTransferInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void UnsafeArenaSwap(GraphTransferInfo* other); - void Swap(GraphTransferInfo* other); - friend void swap(GraphTransferInfo& a, GraphTransferInfo& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GraphTransferInfo* New() const final { - return CreateMaybeMessage(NULL); - } - - GraphTransferInfo* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GraphTransferInfo& from); - void MergeFrom(const GraphTransferInfo& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GraphTransferInfo* other); - protected: - explicit GraphTransferInfo(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef GraphTransferInfo_Destination Destination; - static const Destination NOP = - GraphTransferInfo_Destination_NOP; - static const Destination HEXAGON = - GraphTransferInfo_Destination_HEXAGON; - static inline bool Destination_IsValid(int value) { - return GraphTransferInfo_Destination_IsValid(value); - } - static const Destination Destination_MIN = - GraphTransferInfo_Destination_Destination_MIN; - static const Destination Destination_MAX = - GraphTransferInfo_Destination_Destination_MAX; - static const int Destination_ARRAYSIZE = - GraphTransferInfo_Destination_Destination_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Destination_descriptor() { - return GraphTransferInfo_Destination_descriptor(); - } - static inline const ::std::string& Destination_Name(Destination value) { - return GraphTransferInfo_Destination_Name(value); - } - static inline bool Destination_Parse(const ::std::string& name, - Destination* value) { - return GraphTransferInfo_Destination_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.GraphTransferNodeInfo node_info = 1; - int node_info_size() const; - void clear_node_info(); - static const int kNodeInfoFieldNumber = 1; - ::tensorflow::GraphTransferNodeInfo* mutable_node_info(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeInfo >* - mutable_node_info(); - const ::tensorflow::GraphTransferNodeInfo& node_info(int index) const; - ::tensorflow::GraphTransferNodeInfo* add_node_info(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeInfo >& - node_info() const; - - // repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; - int const_node_info_size() const; - void clear_const_node_info(); - static const int kConstNodeInfoFieldNumber = 2; - ::tensorflow::GraphTransferConstNodeInfo* mutable_const_node_info(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferConstNodeInfo >* - mutable_const_node_info(); - const ::tensorflow::GraphTransferConstNodeInfo& const_node_info(int index) const; - ::tensorflow::GraphTransferConstNodeInfo* add_const_node_info(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferConstNodeInfo >& - const_node_info() const; - - // repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; - int node_input_info_size() const; - void clear_node_input_info(); - static const int kNodeInputInfoFieldNumber = 3; - ::tensorflow::GraphTransferNodeInputInfo* mutable_node_input_info(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeInputInfo >* - mutable_node_input_info(); - const ::tensorflow::GraphTransferNodeInputInfo& node_input_info(int index) const; - ::tensorflow::GraphTransferNodeInputInfo* add_node_input_info(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeInputInfo >& - node_input_info() const; - - // repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; - int node_output_info_size() const; - void clear_node_output_info(); - static const int kNodeOutputInfoFieldNumber = 4; - ::tensorflow::GraphTransferNodeOutputInfo* mutable_node_output_info(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeOutputInfo >* - mutable_node_output_info(); - const ::tensorflow::GraphTransferNodeOutputInfo& node_output_info(int index) const; - ::tensorflow::GraphTransferNodeOutputInfo* add_node_output_info(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeOutputInfo >& - node_output_info() const; - - // repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; - int graph_input_node_info_size() const; - void clear_graph_input_node_info(); - static const int kGraphInputNodeInfoFieldNumber = 5; - ::tensorflow::GraphTransferGraphInputNodeInfo* mutable_graph_input_node_info(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferGraphInputNodeInfo >* - mutable_graph_input_node_info(); - const ::tensorflow::GraphTransferGraphInputNodeInfo& graph_input_node_info(int index) const; - ::tensorflow::GraphTransferGraphInputNodeInfo* add_graph_input_node_info(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferGraphInputNodeInfo >& - graph_input_node_info() const; - - // repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; - int graph_output_node_info_size() const; - void clear_graph_output_node_info(); - static const int kGraphOutputNodeInfoFieldNumber = 6; - ::tensorflow::GraphTransferGraphOutputNodeInfo* mutable_graph_output_node_info(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferGraphOutputNodeInfo >* - mutable_graph_output_node_info(); - const ::tensorflow::GraphTransferGraphOutputNodeInfo& graph_output_node_info(int index) const; - ::tensorflow::GraphTransferGraphOutputNodeInfo* add_graph_output_node_info(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferGraphOutputNodeInfo >& - graph_output_node_info() const; - - // .tensorflow.GraphTransferInfo.Destination destination = 7; - void clear_destination(); - static const int kDestinationFieldNumber = 7; - ::tensorflow::GraphTransferInfo_Destination destination() const; - void set_destination(::tensorflow::GraphTransferInfo_Destination value); - - // @@protoc_insertion_point(class_scope:tensorflow.GraphTransferInfo) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeInfo > node_info_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferConstNodeInfo > const_node_info_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeInputInfo > node_input_info_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeOutputInfo > node_output_info_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferGraphInputNodeInfo > graph_input_node_info_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferGraphOutputNodeInfo > graph_output_node_info_; - int destination_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fgraph_5ftransfer_5finfo_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// GraphTransferNodeInput - -// int32 node_id = 1; -inline void GraphTransferNodeInput::clear_node_id() { - node_id_ = 0; -} -inline ::google::protobuf::int32 GraphTransferNodeInput::node_id() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferNodeInput.node_id) - return node_id_; -} -inline void GraphTransferNodeInput::set_node_id(::google::protobuf::int32 value) { - - node_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferNodeInput.node_id) -} - -// int32 output_port = 2; -inline void GraphTransferNodeInput::clear_output_port() { - output_port_ = 0; -} -inline ::google::protobuf::int32 GraphTransferNodeInput::output_port() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferNodeInput.output_port) - return output_port_; -} -inline void GraphTransferNodeInput::set_output_port(::google::protobuf::int32 value) { - - output_port_ = value; - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferNodeInput.output_port) -} - -// ------------------------------------------------------------------- - -// GraphTransferNodeInfo - -// string name = 1; -inline void GraphTransferNodeInfo::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& GraphTransferNodeInfo::name() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferNodeInfo.name) - return name_.Get(); -} -inline void GraphTransferNodeInfo::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferNodeInfo.name) -} -#if LANG_CXX11 -inline void GraphTransferNodeInfo::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.GraphTransferNodeInfo.name) -} -#endif -inline void GraphTransferNodeInfo::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.GraphTransferNodeInfo.name) -} -inline void GraphTransferNodeInfo::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.GraphTransferNodeInfo.name) -} -inline ::std::string* GraphTransferNodeInfo::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.GraphTransferNodeInfo.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* GraphTransferNodeInfo::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.GraphTransferNodeInfo.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void GraphTransferNodeInfo::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.GraphTransferNodeInfo.name) -} -inline ::std::string* GraphTransferNodeInfo::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphTransferNodeInfo.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void GraphTransferNodeInfo::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GraphTransferNodeInfo.name) -} - -// int32 node_id = 2; -inline void GraphTransferNodeInfo::clear_node_id() { - node_id_ = 0; -} -inline ::google::protobuf::int32 GraphTransferNodeInfo::node_id() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferNodeInfo.node_id) - return node_id_; -} -inline void GraphTransferNodeInfo::set_node_id(::google::protobuf::int32 value) { - - node_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferNodeInfo.node_id) -} - -// string type_name = 3; -inline void GraphTransferNodeInfo::clear_type_name() { - type_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& GraphTransferNodeInfo::type_name() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferNodeInfo.type_name) - return type_name_.Get(); -} -inline void GraphTransferNodeInfo::set_type_name(const ::std::string& value) { - - type_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferNodeInfo.type_name) -} -#if LANG_CXX11 -inline void GraphTransferNodeInfo::set_type_name(::std::string&& value) { - - type_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.GraphTransferNodeInfo.type_name) -} -#endif -inline void GraphTransferNodeInfo::set_type_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - type_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.GraphTransferNodeInfo.type_name) -} -inline void GraphTransferNodeInfo::set_type_name(const char* value, - size_t size) { - - type_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.GraphTransferNodeInfo.type_name) -} -inline ::std::string* GraphTransferNodeInfo::mutable_type_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.GraphTransferNodeInfo.type_name) - return type_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* GraphTransferNodeInfo::release_type_name() { - // @@protoc_insertion_point(field_release:tensorflow.GraphTransferNodeInfo.type_name) - - return type_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void GraphTransferNodeInfo::set_allocated_type_name(::std::string* type_name) { - if (type_name != NULL) { - - } else { - - } - type_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.GraphTransferNodeInfo.type_name) -} -inline ::std::string* GraphTransferNodeInfo::unsafe_arena_release_type_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphTransferNodeInfo.type_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return type_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void GraphTransferNodeInfo::unsafe_arena_set_allocated_type_name( - ::std::string* type_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (type_name != NULL) { - - } else { - - } - type_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - type_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GraphTransferNodeInfo.type_name) -} - -// int32 soc_op_id = 4; -inline void GraphTransferNodeInfo::clear_soc_op_id() { - soc_op_id_ = 0; -} -inline ::google::protobuf::int32 GraphTransferNodeInfo::soc_op_id() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferNodeInfo.soc_op_id) - return soc_op_id_; -} -inline void GraphTransferNodeInfo::set_soc_op_id(::google::protobuf::int32 value) { - - soc_op_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferNodeInfo.soc_op_id) -} - -// int32 padding_id = 5; -inline void GraphTransferNodeInfo::clear_padding_id() { - padding_id_ = 0; -} -inline ::google::protobuf::int32 GraphTransferNodeInfo::padding_id() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferNodeInfo.padding_id) - return padding_id_; -} -inline void GraphTransferNodeInfo::set_padding_id(::google::protobuf::int32 value) { - - padding_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferNodeInfo.padding_id) -} - -// int32 input_count = 6; -inline void GraphTransferNodeInfo::clear_input_count() { - input_count_ = 0; -} -inline ::google::protobuf::int32 GraphTransferNodeInfo::input_count() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferNodeInfo.input_count) - return input_count_; -} -inline void GraphTransferNodeInfo::set_input_count(::google::protobuf::int32 value) { - - input_count_ = value; - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferNodeInfo.input_count) -} - -// int32 output_count = 7; -inline void GraphTransferNodeInfo::clear_output_count() { - output_count_ = 0; -} -inline ::google::protobuf::int32 GraphTransferNodeInfo::output_count() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferNodeInfo.output_count) - return output_count_; -} -inline void GraphTransferNodeInfo::set_output_count(::google::protobuf::int32 value) { - - output_count_ = value; - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferNodeInfo.output_count) -} - -// ------------------------------------------------------------------- - -// GraphTransferConstNodeInfo - -// string name = 1; -inline void GraphTransferConstNodeInfo::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& GraphTransferConstNodeInfo::name() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferConstNodeInfo.name) - return name_.Get(); -} -inline void GraphTransferConstNodeInfo::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferConstNodeInfo.name) -} -#if LANG_CXX11 -inline void GraphTransferConstNodeInfo::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.GraphTransferConstNodeInfo.name) -} -#endif -inline void GraphTransferConstNodeInfo::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.GraphTransferConstNodeInfo.name) -} -inline void GraphTransferConstNodeInfo::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.GraphTransferConstNodeInfo.name) -} -inline ::std::string* GraphTransferConstNodeInfo::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.GraphTransferConstNodeInfo.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* GraphTransferConstNodeInfo::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.GraphTransferConstNodeInfo.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void GraphTransferConstNodeInfo::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.GraphTransferConstNodeInfo.name) -} -inline ::std::string* GraphTransferConstNodeInfo::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphTransferConstNodeInfo.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void GraphTransferConstNodeInfo::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GraphTransferConstNodeInfo.name) -} - -// int32 node_id = 2; -inline void GraphTransferConstNodeInfo::clear_node_id() { - node_id_ = 0; -} -inline ::google::protobuf::int32 GraphTransferConstNodeInfo::node_id() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferConstNodeInfo.node_id) - return node_id_; -} -inline void GraphTransferConstNodeInfo::set_node_id(::google::protobuf::int32 value) { - - node_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferConstNodeInfo.node_id) -} - -// repeated int64 shape = 3; -inline int GraphTransferConstNodeInfo::shape_size() const { - return shape_.size(); -} -inline void GraphTransferConstNodeInfo::clear_shape() { - shape_.Clear(); -} -inline ::google::protobuf::int64 GraphTransferConstNodeInfo::shape(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferConstNodeInfo.shape) - return shape_.Get(index); -} -inline void GraphTransferConstNodeInfo::set_shape(int index, ::google::protobuf::int64 value) { - shape_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferConstNodeInfo.shape) -} -inline void GraphTransferConstNodeInfo::add_shape(::google::protobuf::int64 value) { - shape_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.GraphTransferConstNodeInfo.shape) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -GraphTransferConstNodeInfo::shape() const { - // @@protoc_insertion_point(field_list:tensorflow.GraphTransferConstNodeInfo.shape) - return shape_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -GraphTransferConstNodeInfo::mutable_shape() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.GraphTransferConstNodeInfo.shape) - return &shape_; -} - -// bytes data = 4; -inline void GraphTransferConstNodeInfo::clear_data() { - data_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& GraphTransferConstNodeInfo::data() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferConstNodeInfo.data) - return data_.Get(); -} -inline void GraphTransferConstNodeInfo::set_data(const ::std::string& value) { - - data_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferConstNodeInfo.data) -} -#if LANG_CXX11 -inline void GraphTransferConstNodeInfo::set_data(::std::string&& value) { - - data_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.GraphTransferConstNodeInfo.data) -} -#endif -inline void GraphTransferConstNodeInfo::set_data(const char* value) { - GOOGLE_DCHECK(value != NULL); - - data_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.GraphTransferConstNodeInfo.data) -} -inline void GraphTransferConstNodeInfo::set_data(const void* value, - size_t size) { - - data_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.GraphTransferConstNodeInfo.data) -} -inline ::std::string* GraphTransferConstNodeInfo::mutable_data() { - - // @@protoc_insertion_point(field_mutable:tensorflow.GraphTransferConstNodeInfo.data) - return data_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* GraphTransferConstNodeInfo::release_data() { - // @@protoc_insertion_point(field_release:tensorflow.GraphTransferConstNodeInfo.data) - - return data_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void GraphTransferConstNodeInfo::set_allocated_data(::std::string* data) { - if (data != NULL) { - - } else { - - } - data_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.GraphTransferConstNodeInfo.data) -} -inline ::std::string* GraphTransferConstNodeInfo::unsafe_arena_release_data() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphTransferConstNodeInfo.data) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return data_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void GraphTransferConstNodeInfo::unsafe_arena_set_allocated_data( - ::std::string* data) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (data != NULL) { - - } else { - - } - data_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - data, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GraphTransferConstNodeInfo.data) -} - -// .tensorflow.DataType dtype = 5; -inline void GraphTransferConstNodeInfo::clear_dtype() { - dtype_ = 0; -} -inline ::tensorflow::DataType GraphTransferConstNodeInfo::dtype() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferConstNodeInfo.dtype) - return static_cast< ::tensorflow::DataType >(dtype_); -} -inline void GraphTransferConstNodeInfo::set_dtype(::tensorflow::DataType value) { - - dtype_ = value; - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferConstNodeInfo.dtype) -} - -// ------------------------------------------------------------------- - -// GraphTransferNodeInputInfo - -// int32 node_id = 1; -inline void GraphTransferNodeInputInfo::clear_node_id() { - node_id_ = 0; -} -inline ::google::protobuf::int32 GraphTransferNodeInputInfo::node_id() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferNodeInputInfo.node_id) - return node_id_; -} -inline void GraphTransferNodeInputInfo::set_node_id(::google::protobuf::int32 value) { - - node_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferNodeInputInfo.node_id) -} - -// repeated .tensorflow.GraphTransferNodeInput node_input = 2; -inline int GraphTransferNodeInputInfo::node_input_size() const { - return node_input_.size(); -} -inline void GraphTransferNodeInputInfo::clear_node_input() { - node_input_.Clear(); -} -inline ::tensorflow::GraphTransferNodeInput* GraphTransferNodeInputInfo::mutable_node_input(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.GraphTransferNodeInputInfo.node_input) - return node_input_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeInput >* -GraphTransferNodeInputInfo::mutable_node_input() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.GraphTransferNodeInputInfo.node_input) - return &node_input_; -} -inline const ::tensorflow::GraphTransferNodeInput& GraphTransferNodeInputInfo::node_input(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferNodeInputInfo.node_input) - return node_input_.Get(index); -} -inline ::tensorflow::GraphTransferNodeInput* GraphTransferNodeInputInfo::add_node_input() { - // @@protoc_insertion_point(field_add:tensorflow.GraphTransferNodeInputInfo.node_input) - return node_input_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeInput >& -GraphTransferNodeInputInfo::node_input() const { - // @@protoc_insertion_point(field_list:tensorflow.GraphTransferNodeInputInfo.node_input) - return node_input_; -} - -// ------------------------------------------------------------------- - -// GraphTransferNodeOutputInfo - -// int32 node_id = 1; -inline void GraphTransferNodeOutputInfo::clear_node_id() { - node_id_ = 0; -} -inline ::google::protobuf::int32 GraphTransferNodeOutputInfo::node_id() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferNodeOutputInfo.node_id) - return node_id_; -} -inline void GraphTransferNodeOutputInfo::set_node_id(::google::protobuf::int32 value) { - - node_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferNodeOutputInfo.node_id) -} - -// repeated int32 max_byte_size = 2; -inline int GraphTransferNodeOutputInfo::max_byte_size_size() const { - return max_byte_size_.size(); -} -inline void GraphTransferNodeOutputInfo::clear_max_byte_size() { - max_byte_size_.Clear(); -} -inline ::google::protobuf::int32 GraphTransferNodeOutputInfo::max_byte_size(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferNodeOutputInfo.max_byte_size) - return max_byte_size_.Get(index); -} -inline void GraphTransferNodeOutputInfo::set_max_byte_size(int index, ::google::protobuf::int32 value) { - max_byte_size_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferNodeOutputInfo.max_byte_size) -} -inline void GraphTransferNodeOutputInfo::add_max_byte_size(::google::protobuf::int32 value) { - max_byte_size_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.GraphTransferNodeOutputInfo.max_byte_size) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -GraphTransferNodeOutputInfo::max_byte_size() const { - // @@protoc_insertion_point(field_list:tensorflow.GraphTransferNodeOutputInfo.max_byte_size) - return max_byte_size_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -GraphTransferNodeOutputInfo::mutable_max_byte_size() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.GraphTransferNodeOutputInfo.max_byte_size) - return &max_byte_size_; -} - -// ------------------------------------------------------------------- - -// GraphTransferGraphInputNodeInfo - -// string name = 1; -inline void GraphTransferGraphInputNodeInfo::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& GraphTransferGraphInputNodeInfo::name() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferGraphInputNodeInfo.name) - return name_.Get(); -} -inline void GraphTransferGraphInputNodeInfo::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferGraphInputNodeInfo.name) -} -#if LANG_CXX11 -inline void GraphTransferGraphInputNodeInfo::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.GraphTransferGraphInputNodeInfo.name) -} -#endif -inline void GraphTransferGraphInputNodeInfo::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.GraphTransferGraphInputNodeInfo.name) -} -inline void GraphTransferGraphInputNodeInfo::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.GraphTransferGraphInputNodeInfo.name) -} -inline ::std::string* GraphTransferGraphInputNodeInfo::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.GraphTransferGraphInputNodeInfo.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* GraphTransferGraphInputNodeInfo::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.GraphTransferGraphInputNodeInfo.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void GraphTransferGraphInputNodeInfo::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.GraphTransferGraphInputNodeInfo.name) -} -inline ::std::string* GraphTransferGraphInputNodeInfo::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphTransferGraphInputNodeInfo.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void GraphTransferGraphInputNodeInfo::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GraphTransferGraphInputNodeInfo.name) -} - -// repeated int64 shape = 2; -inline int GraphTransferGraphInputNodeInfo::shape_size() const { - return shape_.size(); -} -inline void GraphTransferGraphInputNodeInfo::clear_shape() { - shape_.Clear(); -} -inline ::google::protobuf::int64 GraphTransferGraphInputNodeInfo::shape(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferGraphInputNodeInfo.shape) - return shape_.Get(index); -} -inline void GraphTransferGraphInputNodeInfo::set_shape(int index, ::google::protobuf::int64 value) { - shape_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferGraphInputNodeInfo.shape) -} -inline void GraphTransferGraphInputNodeInfo::add_shape(::google::protobuf::int64 value) { - shape_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.GraphTransferGraphInputNodeInfo.shape) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -GraphTransferGraphInputNodeInfo::shape() const { - // @@protoc_insertion_point(field_list:tensorflow.GraphTransferGraphInputNodeInfo.shape) - return shape_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -GraphTransferGraphInputNodeInfo::mutable_shape() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.GraphTransferGraphInputNodeInfo.shape) - return &shape_; -} - -// .tensorflow.DataType dtype = 3; -inline void GraphTransferGraphInputNodeInfo::clear_dtype() { - dtype_ = 0; -} -inline ::tensorflow::DataType GraphTransferGraphInputNodeInfo::dtype() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferGraphInputNodeInfo.dtype) - return static_cast< ::tensorflow::DataType >(dtype_); -} -inline void GraphTransferGraphInputNodeInfo::set_dtype(::tensorflow::DataType value) { - - dtype_ = value; - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferGraphInputNodeInfo.dtype) -} - -// ------------------------------------------------------------------- - -// GraphTransferGraphOutputNodeInfo - -// string name = 1; -inline void GraphTransferGraphOutputNodeInfo::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& GraphTransferGraphOutputNodeInfo::name() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferGraphOutputNodeInfo.name) - return name_.Get(); -} -inline void GraphTransferGraphOutputNodeInfo::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferGraphOutputNodeInfo.name) -} -#if LANG_CXX11 -inline void GraphTransferGraphOutputNodeInfo::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.GraphTransferGraphOutputNodeInfo.name) -} -#endif -inline void GraphTransferGraphOutputNodeInfo::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.GraphTransferGraphOutputNodeInfo.name) -} -inline void GraphTransferGraphOutputNodeInfo::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.GraphTransferGraphOutputNodeInfo.name) -} -inline ::std::string* GraphTransferGraphOutputNodeInfo::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.GraphTransferGraphOutputNodeInfo.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* GraphTransferGraphOutputNodeInfo::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.GraphTransferGraphOutputNodeInfo.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void GraphTransferGraphOutputNodeInfo::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.GraphTransferGraphOutputNodeInfo.name) -} -inline ::std::string* GraphTransferGraphOutputNodeInfo::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GraphTransferGraphOutputNodeInfo.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void GraphTransferGraphOutputNodeInfo::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GraphTransferGraphOutputNodeInfo.name) -} - -// repeated int64 shape = 2; -inline int GraphTransferGraphOutputNodeInfo::shape_size() const { - return shape_.size(); -} -inline void GraphTransferGraphOutputNodeInfo::clear_shape() { - shape_.Clear(); -} -inline ::google::protobuf::int64 GraphTransferGraphOutputNodeInfo::shape(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferGraphOutputNodeInfo.shape) - return shape_.Get(index); -} -inline void GraphTransferGraphOutputNodeInfo::set_shape(int index, ::google::protobuf::int64 value) { - shape_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferGraphOutputNodeInfo.shape) -} -inline void GraphTransferGraphOutputNodeInfo::add_shape(::google::protobuf::int64 value) { - shape_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.GraphTransferGraphOutputNodeInfo.shape) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -GraphTransferGraphOutputNodeInfo::shape() const { - // @@protoc_insertion_point(field_list:tensorflow.GraphTransferGraphOutputNodeInfo.shape) - return shape_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -GraphTransferGraphOutputNodeInfo::mutable_shape() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.GraphTransferGraphOutputNodeInfo.shape) - return &shape_; -} - -// .tensorflow.DataType dtype = 3; -inline void GraphTransferGraphOutputNodeInfo::clear_dtype() { - dtype_ = 0; -} -inline ::tensorflow::DataType GraphTransferGraphOutputNodeInfo::dtype() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferGraphOutputNodeInfo.dtype) - return static_cast< ::tensorflow::DataType >(dtype_); -} -inline void GraphTransferGraphOutputNodeInfo::set_dtype(::tensorflow::DataType value) { - - dtype_ = value; - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferGraphOutputNodeInfo.dtype) -} - -// ------------------------------------------------------------------- - -// GraphTransferInfo - -// repeated .tensorflow.GraphTransferNodeInfo node_info = 1; -inline int GraphTransferInfo::node_info_size() const { - return node_info_.size(); -} -inline void GraphTransferInfo::clear_node_info() { - node_info_.Clear(); -} -inline ::tensorflow::GraphTransferNodeInfo* GraphTransferInfo::mutable_node_info(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.GraphTransferInfo.node_info) - return node_info_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeInfo >* -GraphTransferInfo::mutable_node_info() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.GraphTransferInfo.node_info) - return &node_info_; -} -inline const ::tensorflow::GraphTransferNodeInfo& GraphTransferInfo::node_info(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferInfo.node_info) - return node_info_.Get(index); -} -inline ::tensorflow::GraphTransferNodeInfo* GraphTransferInfo::add_node_info() { - // @@protoc_insertion_point(field_add:tensorflow.GraphTransferInfo.node_info) - return node_info_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeInfo >& -GraphTransferInfo::node_info() const { - // @@protoc_insertion_point(field_list:tensorflow.GraphTransferInfo.node_info) - return node_info_; -} - -// repeated .tensorflow.GraphTransferConstNodeInfo const_node_info = 2; -inline int GraphTransferInfo::const_node_info_size() const { - return const_node_info_.size(); -} -inline void GraphTransferInfo::clear_const_node_info() { - const_node_info_.Clear(); -} -inline ::tensorflow::GraphTransferConstNodeInfo* GraphTransferInfo::mutable_const_node_info(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.GraphTransferInfo.const_node_info) - return const_node_info_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferConstNodeInfo >* -GraphTransferInfo::mutable_const_node_info() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.GraphTransferInfo.const_node_info) - return &const_node_info_; -} -inline const ::tensorflow::GraphTransferConstNodeInfo& GraphTransferInfo::const_node_info(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferInfo.const_node_info) - return const_node_info_.Get(index); -} -inline ::tensorflow::GraphTransferConstNodeInfo* GraphTransferInfo::add_const_node_info() { - // @@protoc_insertion_point(field_add:tensorflow.GraphTransferInfo.const_node_info) - return const_node_info_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferConstNodeInfo >& -GraphTransferInfo::const_node_info() const { - // @@protoc_insertion_point(field_list:tensorflow.GraphTransferInfo.const_node_info) - return const_node_info_; -} - -// repeated .tensorflow.GraphTransferNodeInputInfo node_input_info = 3; -inline int GraphTransferInfo::node_input_info_size() const { - return node_input_info_.size(); -} -inline void GraphTransferInfo::clear_node_input_info() { - node_input_info_.Clear(); -} -inline ::tensorflow::GraphTransferNodeInputInfo* GraphTransferInfo::mutable_node_input_info(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.GraphTransferInfo.node_input_info) - return node_input_info_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeInputInfo >* -GraphTransferInfo::mutable_node_input_info() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.GraphTransferInfo.node_input_info) - return &node_input_info_; -} -inline const ::tensorflow::GraphTransferNodeInputInfo& GraphTransferInfo::node_input_info(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferInfo.node_input_info) - return node_input_info_.Get(index); -} -inline ::tensorflow::GraphTransferNodeInputInfo* GraphTransferInfo::add_node_input_info() { - // @@protoc_insertion_point(field_add:tensorflow.GraphTransferInfo.node_input_info) - return node_input_info_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeInputInfo >& -GraphTransferInfo::node_input_info() const { - // @@protoc_insertion_point(field_list:tensorflow.GraphTransferInfo.node_input_info) - return node_input_info_; -} - -// repeated .tensorflow.GraphTransferNodeOutputInfo node_output_info = 4; -inline int GraphTransferInfo::node_output_info_size() const { - return node_output_info_.size(); -} -inline void GraphTransferInfo::clear_node_output_info() { - node_output_info_.Clear(); -} -inline ::tensorflow::GraphTransferNodeOutputInfo* GraphTransferInfo::mutable_node_output_info(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.GraphTransferInfo.node_output_info) - return node_output_info_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeOutputInfo >* -GraphTransferInfo::mutable_node_output_info() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.GraphTransferInfo.node_output_info) - return &node_output_info_; -} -inline const ::tensorflow::GraphTransferNodeOutputInfo& GraphTransferInfo::node_output_info(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferInfo.node_output_info) - return node_output_info_.Get(index); -} -inline ::tensorflow::GraphTransferNodeOutputInfo* GraphTransferInfo::add_node_output_info() { - // @@protoc_insertion_point(field_add:tensorflow.GraphTransferInfo.node_output_info) - return node_output_info_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferNodeOutputInfo >& -GraphTransferInfo::node_output_info() const { - // @@protoc_insertion_point(field_list:tensorflow.GraphTransferInfo.node_output_info) - return node_output_info_; -} - -// repeated .tensorflow.GraphTransferGraphInputNodeInfo graph_input_node_info = 5; -inline int GraphTransferInfo::graph_input_node_info_size() const { - return graph_input_node_info_.size(); -} -inline void GraphTransferInfo::clear_graph_input_node_info() { - graph_input_node_info_.Clear(); -} -inline ::tensorflow::GraphTransferGraphInputNodeInfo* GraphTransferInfo::mutable_graph_input_node_info(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.GraphTransferInfo.graph_input_node_info) - return graph_input_node_info_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferGraphInputNodeInfo >* -GraphTransferInfo::mutable_graph_input_node_info() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.GraphTransferInfo.graph_input_node_info) - return &graph_input_node_info_; -} -inline const ::tensorflow::GraphTransferGraphInputNodeInfo& GraphTransferInfo::graph_input_node_info(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferInfo.graph_input_node_info) - return graph_input_node_info_.Get(index); -} -inline ::tensorflow::GraphTransferGraphInputNodeInfo* GraphTransferInfo::add_graph_input_node_info() { - // @@protoc_insertion_point(field_add:tensorflow.GraphTransferInfo.graph_input_node_info) - return graph_input_node_info_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferGraphInputNodeInfo >& -GraphTransferInfo::graph_input_node_info() const { - // @@protoc_insertion_point(field_list:tensorflow.GraphTransferInfo.graph_input_node_info) - return graph_input_node_info_; -} - -// repeated .tensorflow.GraphTransferGraphOutputNodeInfo graph_output_node_info = 6; -inline int GraphTransferInfo::graph_output_node_info_size() const { - return graph_output_node_info_.size(); -} -inline void GraphTransferInfo::clear_graph_output_node_info() { - graph_output_node_info_.Clear(); -} -inline ::tensorflow::GraphTransferGraphOutputNodeInfo* GraphTransferInfo::mutable_graph_output_node_info(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.GraphTransferInfo.graph_output_node_info) - return graph_output_node_info_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferGraphOutputNodeInfo >* -GraphTransferInfo::mutable_graph_output_node_info() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.GraphTransferInfo.graph_output_node_info) - return &graph_output_node_info_; -} -inline const ::tensorflow::GraphTransferGraphOutputNodeInfo& GraphTransferInfo::graph_output_node_info(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferInfo.graph_output_node_info) - return graph_output_node_info_.Get(index); -} -inline ::tensorflow::GraphTransferGraphOutputNodeInfo* GraphTransferInfo::add_graph_output_node_info() { - // @@protoc_insertion_point(field_add:tensorflow.GraphTransferInfo.graph_output_node_info) - return graph_output_node_info_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::GraphTransferGraphOutputNodeInfo >& -GraphTransferInfo::graph_output_node_info() const { - // @@protoc_insertion_point(field_list:tensorflow.GraphTransferInfo.graph_output_node_info) - return graph_output_node_info_; -} - -// .tensorflow.GraphTransferInfo.Destination destination = 7; -inline void GraphTransferInfo::clear_destination() { - destination_ = 0; -} -inline ::tensorflow::GraphTransferInfo_Destination GraphTransferInfo::destination() const { - // @@protoc_insertion_point(field_get:tensorflow.GraphTransferInfo.destination) - return static_cast< ::tensorflow::GraphTransferInfo_Destination >(destination_); -} -inline void GraphTransferInfo::set_destination(::tensorflow::GraphTransferInfo_Destination value) { - - destination_ = value; - // @@protoc_insertion_point(field_set:tensorflow.GraphTransferInfo.destination) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::tensorflow::GraphTransferInfo_Destination> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::GraphTransferInfo_Destination>() { - return ::tensorflow::GraphTransferInfo_Destination_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fgraph_5ftransfer_5finfo_2eproto diff --git a/linux/include/tensorflow/core/framework/graph_transfer_info.pb_text-impl.h b/linux/include/tensorflow/core/framework/graph_transfer_info.pb_text-impl.h deleted file mode 100755 index 426ff6eb2..000000000 --- a/linux/include/tensorflow/core/framework/graph_transfer_info.pb_text-impl.h +++ /dev/null @@ -1,76 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_graph_transfer_info_proto_IMPL_H_ -#define tensorflow_core_framework_graph_transfer_info_proto_IMPL_H_ - -#include "tensorflow/core/framework/graph_transfer_info.pb.h" -#include "tensorflow/core/framework/graph_transfer_info.pb_text.h" -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/framework/types.pb_text-impl.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::GraphTransferNodeInput& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::GraphTransferNodeInput* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::GraphTransferNodeInfo& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::GraphTransferNodeInfo* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::GraphTransferConstNodeInfo& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::GraphTransferConstNodeInfo* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::GraphTransferNodeInputInfo& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::GraphTransferNodeInputInfo* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::GraphTransferNodeOutputInfo& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::GraphTransferNodeOutputInfo* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::GraphTransferGraphInputNodeInfo& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::GraphTransferGraphInputNodeInfo* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::GraphTransferGraphOutputNodeInfo& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::GraphTransferGraphOutputNodeInfo* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::GraphTransferInfo& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::GraphTransferInfo* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_graph_transfer_info_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/graph_transfer_info.pb_text.h b/linux/include/tensorflow/core/framework/graph_transfer_info.pb_text.h deleted file mode 100755 index ae664e299..000000000 --- a/linux/include/tensorflow/core/framework/graph_transfer_info.pb_text.h +++ /dev/null @@ -1,98 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_graph_transfer_info_proto_H_ -#define tensorflow_core_framework_graph_transfer_info_proto_H_ - -#include "tensorflow/core/framework/graph_transfer_info.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.GraphTransferNodeInput -string ProtoDebugString( - const ::tensorflow::GraphTransferNodeInput& msg); -string ProtoShortDebugString( - const ::tensorflow::GraphTransferNodeInput& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::GraphTransferNodeInput* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.GraphTransferNodeInfo -string ProtoDebugString( - const ::tensorflow::GraphTransferNodeInfo& msg); -string ProtoShortDebugString( - const ::tensorflow::GraphTransferNodeInfo& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::GraphTransferNodeInfo* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.GraphTransferConstNodeInfo -string ProtoDebugString( - const ::tensorflow::GraphTransferConstNodeInfo& msg); -string ProtoShortDebugString( - const ::tensorflow::GraphTransferConstNodeInfo& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::GraphTransferConstNodeInfo* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.GraphTransferNodeInputInfo -string ProtoDebugString( - const ::tensorflow::GraphTransferNodeInputInfo& msg); -string ProtoShortDebugString( - const ::tensorflow::GraphTransferNodeInputInfo& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::GraphTransferNodeInputInfo* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.GraphTransferNodeOutputInfo -string ProtoDebugString( - const ::tensorflow::GraphTransferNodeOutputInfo& msg); -string ProtoShortDebugString( - const ::tensorflow::GraphTransferNodeOutputInfo& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::GraphTransferNodeOutputInfo* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.GraphTransferGraphInputNodeInfo -string ProtoDebugString( - const ::tensorflow::GraphTransferGraphInputNodeInfo& msg); -string ProtoShortDebugString( - const ::tensorflow::GraphTransferGraphInputNodeInfo& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::GraphTransferGraphInputNodeInfo* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.GraphTransferGraphOutputNodeInfo -string ProtoDebugString( - const ::tensorflow::GraphTransferGraphOutputNodeInfo& msg); -string ProtoShortDebugString( - const ::tensorflow::GraphTransferGraphOutputNodeInfo& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::GraphTransferGraphOutputNodeInfo* msg) - TF_MUST_USE_RESULT; - -// Enum text output for tensorflow.GraphTransferInfo.Destination -const char* EnumName_GraphTransferInfo_Destination( - ::tensorflow::GraphTransferInfo_Destination value); - -// Message-text conversion for tensorflow.GraphTransferInfo -string ProtoDebugString( - const ::tensorflow::GraphTransferInfo& msg); -string ProtoShortDebugString( - const ::tensorflow::GraphTransferInfo& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::GraphTransferInfo* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_graph_transfer_info_proto_H_ diff --git a/linux/include/tensorflow/core/framework/iterator.pb.h b/linux/include/tensorflow/core/framework/iterator.pb.h deleted file mode 100755 index 2defd8ed2..000000000 --- a/linux/include/tensorflow/core/framework/iterator.pb.h +++ /dev/null @@ -1,383 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/iterator.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fiterator_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fiterator_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fiterator_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2fiterator_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[1]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2fiterator_2eproto -namespace tensorflow { -class IteratorStateMetadata; -class IteratorStateMetadataDefaultTypeInternal; -extern IteratorStateMetadataDefaultTypeInternal _IteratorStateMetadata_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::IteratorStateMetadata* Arena::CreateMaybeMessage<::tensorflow::IteratorStateMetadata>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class IteratorStateMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.IteratorStateMetadata) */ { - public: - IteratorStateMetadata(); - virtual ~IteratorStateMetadata(); - - IteratorStateMetadata(const IteratorStateMetadata& from); - - inline IteratorStateMetadata& operator=(const IteratorStateMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - IteratorStateMetadata(IteratorStateMetadata&& from) noexcept - : IteratorStateMetadata() { - *this = ::std::move(from); - } - - inline IteratorStateMetadata& operator=(IteratorStateMetadata&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const IteratorStateMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const IteratorStateMetadata* internal_default_instance() { - return reinterpret_cast( - &_IteratorStateMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(IteratorStateMetadata* other); - void Swap(IteratorStateMetadata* other); - friend void swap(IteratorStateMetadata& a, IteratorStateMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline IteratorStateMetadata* New() const final { - return CreateMaybeMessage(NULL); - } - - IteratorStateMetadata* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const IteratorStateMetadata& from); - void MergeFrom(const IteratorStateMetadata& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(IteratorStateMetadata* other); - protected: - explicit IteratorStateMetadata(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated string keys = 2; - int keys_size() const; - void clear_keys(); - static const int kKeysFieldNumber = 2; - const ::std::string& keys(int index) const; - ::std::string* mutable_keys(int index); - void set_keys(int index, const ::std::string& value); - #if LANG_CXX11 - void set_keys(int index, ::std::string&& value); - #endif - void set_keys(int index, const char* value); - void set_keys(int index, const char* value, size_t size); - ::std::string* add_keys(); - void add_keys(const ::std::string& value); - #if LANG_CXX11 - void add_keys(::std::string&& value); - #endif - void add_keys(const char* value); - void add_keys(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& keys() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_keys(); - - // string version = 1; - void clear_version(); - static const int kVersionFieldNumber = 1; - const ::std::string& version() const; - void set_version(const ::std::string& value); - #if LANG_CXX11 - void set_version(::std::string&& value); - #endif - void set_version(const char* value); - void set_version(const char* value, size_t size); - ::std::string* mutable_version(); - ::std::string* release_version(); - void set_allocated_version(::std::string* version); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_version(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_version( - ::std::string* version); - - // @@protoc_insertion_point(class_scope:tensorflow.IteratorStateMetadata) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::std::string> keys_; - ::google::protobuf::internal::ArenaStringPtr version_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fiterator_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// IteratorStateMetadata - -// string version = 1; -inline void IteratorStateMetadata::clear_version() { - version_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& IteratorStateMetadata::version() const { - // @@protoc_insertion_point(field_get:tensorflow.IteratorStateMetadata.version) - return version_.Get(); -} -inline void IteratorStateMetadata::set_version(const ::std::string& value) { - - version_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.IteratorStateMetadata.version) -} -#if LANG_CXX11 -inline void IteratorStateMetadata::set_version(::std::string&& value) { - - version_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.IteratorStateMetadata.version) -} -#endif -inline void IteratorStateMetadata::set_version(const char* value) { - GOOGLE_DCHECK(value != NULL); - - version_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.IteratorStateMetadata.version) -} -inline void IteratorStateMetadata::set_version(const char* value, - size_t size) { - - version_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.IteratorStateMetadata.version) -} -inline ::std::string* IteratorStateMetadata::mutable_version() { - - // @@protoc_insertion_point(field_mutable:tensorflow.IteratorStateMetadata.version) - return version_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* IteratorStateMetadata::release_version() { - // @@protoc_insertion_point(field_release:tensorflow.IteratorStateMetadata.version) - - return version_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void IteratorStateMetadata::set_allocated_version(::std::string* version) { - if (version != NULL) { - - } else { - - } - version_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), version, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.IteratorStateMetadata.version) -} -inline ::std::string* IteratorStateMetadata::unsafe_arena_release_version() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.IteratorStateMetadata.version) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return version_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void IteratorStateMetadata::unsafe_arena_set_allocated_version( - ::std::string* version) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (version != NULL) { - - } else { - - } - version_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - version, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.IteratorStateMetadata.version) -} - -// repeated string keys = 2; -inline int IteratorStateMetadata::keys_size() const { - return keys_.size(); -} -inline void IteratorStateMetadata::clear_keys() { - keys_.Clear(); -} -inline const ::std::string& IteratorStateMetadata::keys(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.IteratorStateMetadata.keys) - return keys_.Get(index); -} -inline ::std::string* IteratorStateMetadata::mutable_keys(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.IteratorStateMetadata.keys) - return keys_.Mutable(index); -} -inline void IteratorStateMetadata::set_keys(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:tensorflow.IteratorStateMetadata.keys) - keys_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void IteratorStateMetadata::set_keys(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:tensorflow.IteratorStateMetadata.keys) - keys_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void IteratorStateMetadata::set_keys(int index, const char* value) { - GOOGLE_DCHECK(value != NULL); - keys_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tensorflow.IteratorStateMetadata.keys) -} -inline void IteratorStateMetadata::set_keys(int index, const char* value, size_t size) { - keys_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tensorflow.IteratorStateMetadata.keys) -} -inline ::std::string* IteratorStateMetadata::add_keys() { - // @@protoc_insertion_point(field_add_mutable:tensorflow.IteratorStateMetadata.keys) - return keys_.Add(); -} -inline void IteratorStateMetadata::add_keys(const ::std::string& value) { - keys_.Add()->assign(value); - // @@protoc_insertion_point(field_add:tensorflow.IteratorStateMetadata.keys) -} -#if LANG_CXX11 -inline void IteratorStateMetadata::add_keys(::std::string&& value) { - keys_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:tensorflow.IteratorStateMetadata.keys) -} -#endif -inline void IteratorStateMetadata::add_keys(const char* value) { - GOOGLE_DCHECK(value != NULL); - keys_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tensorflow.IteratorStateMetadata.keys) -} -inline void IteratorStateMetadata::add_keys(const char* value, size_t size) { - keys_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tensorflow.IteratorStateMetadata.keys) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -IteratorStateMetadata::keys() const { - // @@protoc_insertion_point(field_list:tensorflow.IteratorStateMetadata.keys) - return keys_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -IteratorStateMetadata::mutable_keys() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.IteratorStateMetadata.keys) - return &keys_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fiterator_2eproto diff --git a/linux/include/tensorflow/core/framework/iterator.pb_text-impl.h b/linux/include/tensorflow/core/framework/iterator.pb_text-impl.h deleted file mode 100755 index 723f118c6..000000000 --- a/linux/include/tensorflow/core/framework/iterator.pb_text-impl.h +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_iterator_proto_IMPL_H_ -#define tensorflow_core_framework_iterator_proto_IMPL_H_ - -#include "tensorflow/core/framework/iterator.pb.h" -#include "tensorflow/core/framework/iterator.pb_text.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::IteratorStateMetadata& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::IteratorStateMetadata* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_iterator_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/iterator.pb_text.h b/linux/include/tensorflow/core/framework/iterator.pb_text.h deleted file mode 100755 index 56304d627..000000000 --- a/linux/include/tensorflow/core/framework/iterator.pb_text.h +++ /dev/null @@ -1,24 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_iterator_proto_H_ -#define tensorflow_core_framework_iterator_proto_H_ - -#include "tensorflow/core/framework/iterator.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.IteratorStateMetadata -string ProtoDebugString( - const ::tensorflow::IteratorStateMetadata& msg); -string ProtoShortDebugString( - const ::tensorflow::IteratorStateMetadata& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::IteratorStateMetadata* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_iterator_proto_H_ diff --git a/linux/include/tensorflow/core/framework/kernel_def.pb.h b/linux/include/tensorflow/core/framework/kernel_def.pb.h deleted file mode 100755 index 505f7a5cb..000000000 --- a/linux/include/tensorflow/core/framework/kernel_def.pb.h +++ /dev/null @@ -1,1086 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/kernel_def.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fkernel_5fdef_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fkernel_5fdef_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "tensorflow/core/framework/attr_value.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fkernel_5fdef_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2fkernel_5fdef_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[3]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2fkernel_5fdef_2eproto -namespace tensorflow { -class KernelDef; -class KernelDefDefaultTypeInternal; -extern KernelDefDefaultTypeInternal _KernelDef_default_instance_; -class KernelDef_AttrConstraint; -class KernelDef_AttrConstraintDefaultTypeInternal; -extern KernelDef_AttrConstraintDefaultTypeInternal _KernelDef_AttrConstraint_default_instance_; -class KernelList; -class KernelListDefaultTypeInternal; -extern KernelListDefaultTypeInternal _KernelList_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::KernelDef* Arena::CreateMaybeMessage<::tensorflow::KernelDef>(Arena*); -template<> ::tensorflow::KernelDef_AttrConstraint* Arena::CreateMaybeMessage<::tensorflow::KernelDef_AttrConstraint>(Arena*); -template<> ::tensorflow::KernelList* Arena::CreateMaybeMessage<::tensorflow::KernelList>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class KernelDef_AttrConstraint : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.KernelDef.AttrConstraint) */ { - public: - KernelDef_AttrConstraint(); - virtual ~KernelDef_AttrConstraint(); - - KernelDef_AttrConstraint(const KernelDef_AttrConstraint& from); - - inline KernelDef_AttrConstraint& operator=(const KernelDef_AttrConstraint& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - KernelDef_AttrConstraint(KernelDef_AttrConstraint&& from) noexcept - : KernelDef_AttrConstraint() { - *this = ::std::move(from); - } - - inline KernelDef_AttrConstraint& operator=(KernelDef_AttrConstraint&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const KernelDef_AttrConstraint& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const KernelDef_AttrConstraint* internal_default_instance() { - return reinterpret_cast( - &_KernelDef_AttrConstraint_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(KernelDef_AttrConstraint* other); - void Swap(KernelDef_AttrConstraint* other); - friend void swap(KernelDef_AttrConstraint& a, KernelDef_AttrConstraint& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline KernelDef_AttrConstraint* New() const final { - return CreateMaybeMessage(NULL); - } - - KernelDef_AttrConstraint* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const KernelDef_AttrConstraint& from); - void MergeFrom(const KernelDef_AttrConstraint& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(KernelDef_AttrConstraint* other); - protected: - explicit KernelDef_AttrConstraint(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // .tensorflow.AttrValue allowed_values = 2; - bool has_allowed_values() const; - void clear_allowed_values(); - static const int kAllowedValuesFieldNumber = 2; - private: - const ::tensorflow::AttrValue& _internal_allowed_values() const; - public: - const ::tensorflow::AttrValue& allowed_values() const; - ::tensorflow::AttrValue* release_allowed_values(); - ::tensorflow::AttrValue* mutable_allowed_values(); - void set_allocated_allowed_values(::tensorflow::AttrValue* allowed_values); - void unsafe_arena_set_allocated_allowed_values( - ::tensorflow::AttrValue* allowed_values); - ::tensorflow::AttrValue* unsafe_arena_release_allowed_values(); - - // @@protoc_insertion_point(class_scope:tensorflow.KernelDef.AttrConstraint) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::tensorflow::AttrValue* allowed_values_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fkernel_5fdef_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class KernelDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.KernelDef) */ { - public: - KernelDef(); - virtual ~KernelDef(); - - KernelDef(const KernelDef& from); - - inline KernelDef& operator=(const KernelDef& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - KernelDef(KernelDef&& from) noexcept - : KernelDef() { - *this = ::std::move(from); - } - - inline KernelDef& operator=(KernelDef&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const KernelDef& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const KernelDef* internal_default_instance() { - return reinterpret_cast( - &_KernelDef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(KernelDef* other); - void Swap(KernelDef* other); - friend void swap(KernelDef& a, KernelDef& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline KernelDef* New() const final { - return CreateMaybeMessage(NULL); - } - - KernelDef* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const KernelDef& from); - void MergeFrom(const KernelDef& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(KernelDef* other); - protected: - explicit KernelDef(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef KernelDef_AttrConstraint AttrConstraint; - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; - int constraint_size() const; - void clear_constraint(); - static const int kConstraintFieldNumber = 3; - ::tensorflow::KernelDef_AttrConstraint* mutable_constraint(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::KernelDef_AttrConstraint >* - mutable_constraint(); - const ::tensorflow::KernelDef_AttrConstraint& constraint(int index) const; - ::tensorflow::KernelDef_AttrConstraint* add_constraint(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::KernelDef_AttrConstraint >& - constraint() const; - - // repeated string host_memory_arg = 4; - int host_memory_arg_size() const; - void clear_host_memory_arg(); - static const int kHostMemoryArgFieldNumber = 4; - const ::std::string& host_memory_arg(int index) const; - ::std::string* mutable_host_memory_arg(int index); - void set_host_memory_arg(int index, const ::std::string& value); - #if LANG_CXX11 - void set_host_memory_arg(int index, ::std::string&& value); - #endif - void set_host_memory_arg(int index, const char* value); - void set_host_memory_arg(int index, const char* value, size_t size); - ::std::string* add_host_memory_arg(); - void add_host_memory_arg(const ::std::string& value); - #if LANG_CXX11 - void add_host_memory_arg(::std::string&& value); - #endif - void add_host_memory_arg(const char* value); - void add_host_memory_arg(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& host_memory_arg() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_host_memory_arg(); - - // string op = 1; - void clear_op(); - static const int kOpFieldNumber = 1; - const ::std::string& op() const; - void set_op(const ::std::string& value); - #if LANG_CXX11 - void set_op(::std::string&& value); - #endif - void set_op(const char* value); - void set_op(const char* value, size_t size); - ::std::string* mutable_op(); - ::std::string* release_op(); - void set_allocated_op(::std::string* op); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_op(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_op( - ::std::string* op); - - // string device_type = 2; - void clear_device_type(); - static const int kDeviceTypeFieldNumber = 2; - const ::std::string& device_type() const; - void set_device_type(const ::std::string& value); - #if LANG_CXX11 - void set_device_type(::std::string&& value); - #endif - void set_device_type(const char* value); - void set_device_type(const char* value, size_t size); - ::std::string* mutable_device_type(); - ::std::string* release_device_type(); - void set_allocated_device_type(::std::string* device_type); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_device_type(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_device_type( - ::std::string* device_type); - - // string label = 5; - void clear_label(); - static const int kLabelFieldNumber = 5; - const ::std::string& label() const; - void set_label(const ::std::string& value); - #if LANG_CXX11 - void set_label(::std::string&& value); - #endif - void set_label(const char* value); - void set_label(const char* value, size_t size); - ::std::string* mutable_label(); - ::std::string* release_label(); - void set_allocated_label(::std::string* label); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_label(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_label( - ::std::string* label); - - // @@protoc_insertion_point(class_scope:tensorflow.KernelDef) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::KernelDef_AttrConstraint > constraint_; - ::google::protobuf::RepeatedPtrField< ::std::string> host_memory_arg_; - ::google::protobuf::internal::ArenaStringPtr op_; - ::google::protobuf::internal::ArenaStringPtr device_type_; - ::google::protobuf::internal::ArenaStringPtr label_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fkernel_5fdef_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class KernelList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.KernelList) */ { - public: - KernelList(); - virtual ~KernelList(); - - KernelList(const KernelList& from); - - inline KernelList& operator=(const KernelList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - KernelList(KernelList&& from) noexcept - : KernelList() { - *this = ::std::move(from); - } - - inline KernelList& operator=(KernelList&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const KernelList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const KernelList* internal_default_instance() { - return reinterpret_cast( - &_KernelList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void UnsafeArenaSwap(KernelList* other); - void Swap(KernelList* other); - friend void swap(KernelList& a, KernelList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline KernelList* New() const final { - return CreateMaybeMessage(NULL); - } - - KernelList* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const KernelList& from); - void MergeFrom(const KernelList& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(KernelList* other); - protected: - explicit KernelList(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.KernelDef kernel = 1; - int kernel_size() const; - void clear_kernel(); - static const int kKernelFieldNumber = 1; - ::tensorflow::KernelDef* mutable_kernel(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::KernelDef >* - mutable_kernel(); - const ::tensorflow::KernelDef& kernel(int index) const; - ::tensorflow::KernelDef* add_kernel(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::KernelDef >& - kernel() const; - - // @@protoc_insertion_point(class_scope:tensorflow.KernelList) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::KernelDef > kernel_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fkernel_5fdef_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// KernelDef_AttrConstraint - -// string name = 1; -inline void KernelDef_AttrConstraint::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& KernelDef_AttrConstraint::name() const { - // @@protoc_insertion_point(field_get:tensorflow.KernelDef.AttrConstraint.name) - return name_.Get(); -} -inline void KernelDef_AttrConstraint::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.KernelDef.AttrConstraint.name) -} -#if LANG_CXX11 -inline void KernelDef_AttrConstraint::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.KernelDef.AttrConstraint.name) -} -#endif -inline void KernelDef_AttrConstraint::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.KernelDef.AttrConstraint.name) -} -inline void KernelDef_AttrConstraint::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.KernelDef.AttrConstraint.name) -} -inline ::std::string* KernelDef_AttrConstraint::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.KernelDef.AttrConstraint.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* KernelDef_AttrConstraint::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.KernelDef.AttrConstraint.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void KernelDef_AttrConstraint::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.KernelDef.AttrConstraint.name) -} -inline ::std::string* KernelDef_AttrConstraint::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.KernelDef.AttrConstraint.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void KernelDef_AttrConstraint::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.KernelDef.AttrConstraint.name) -} - -// .tensorflow.AttrValue allowed_values = 2; -inline bool KernelDef_AttrConstraint::has_allowed_values() const { - return this != internal_default_instance() && allowed_values_ != NULL; -} -inline const ::tensorflow::AttrValue& KernelDef_AttrConstraint::_internal_allowed_values() const { - return *allowed_values_; -} -inline const ::tensorflow::AttrValue& KernelDef_AttrConstraint::allowed_values() const { - const ::tensorflow::AttrValue* p = allowed_values_; - // @@protoc_insertion_point(field_get:tensorflow.KernelDef.AttrConstraint.allowed_values) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_AttrValue_default_instance_); -} -inline ::tensorflow::AttrValue* KernelDef_AttrConstraint::release_allowed_values() { - // @@protoc_insertion_point(field_release:tensorflow.KernelDef.AttrConstraint.allowed_values) - - ::tensorflow::AttrValue* temp = allowed_values_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - allowed_values_ = NULL; - return temp; -} -inline ::tensorflow::AttrValue* KernelDef_AttrConstraint::unsafe_arena_release_allowed_values() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.KernelDef.AttrConstraint.allowed_values) - - ::tensorflow::AttrValue* temp = allowed_values_; - allowed_values_ = NULL; - return temp; -} -inline ::tensorflow::AttrValue* KernelDef_AttrConstraint::mutable_allowed_values() { - - if (allowed_values_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::AttrValue>(GetArenaNoVirtual()); - allowed_values_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.KernelDef.AttrConstraint.allowed_values) - return allowed_values_; -} -inline void KernelDef_AttrConstraint::set_allocated_allowed_values(::tensorflow::AttrValue* allowed_values) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(allowed_values_); - } - if (allowed_values) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(allowed_values)->GetArena(); - if (message_arena != submessage_arena) { - allowed_values = ::google::protobuf::internal::GetOwnedMessage( - message_arena, allowed_values, submessage_arena); - } - - } else { - - } - allowed_values_ = allowed_values; - // @@protoc_insertion_point(field_set_allocated:tensorflow.KernelDef.AttrConstraint.allowed_values) -} - -// ------------------------------------------------------------------- - -// KernelDef - -// string op = 1; -inline void KernelDef::clear_op() { - op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& KernelDef::op() const { - // @@protoc_insertion_point(field_get:tensorflow.KernelDef.op) - return op_.Get(); -} -inline void KernelDef::set_op(const ::std::string& value) { - - op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.KernelDef.op) -} -#if LANG_CXX11 -inline void KernelDef::set_op(::std::string&& value) { - - op_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.KernelDef.op) -} -#endif -inline void KernelDef::set_op(const char* value) { - GOOGLE_DCHECK(value != NULL); - - op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.KernelDef.op) -} -inline void KernelDef::set_op(const char* value, - size_t size) { - - op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.KernelDef.op) -} -inline ::std::string* KernelDef::mutable_op() { - - // @@protoc_insertion_point(field_mutable:tensorflow.KernelDef.op) - return op_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* KernelDef::release_op() { - // @@protoc_insertion_point(field_release:tensorflow.KernelDef.op) - - return op_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void KernelDef::set_allocated_op(::std::string* op) { - if (op != NULL) { - - } else { - - } - op_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.KernelDef.op) -} -inline ::std::string* KernelDef::unsafe_arena_release_op() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.KernelDef.op) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return op_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void KernelDef::unsafe_arena_set_allocated_op( - ::std::string* op) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (op != NULL) { - - } else { - - } - op_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - op, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.KernelDef.op) -} - -// string device_type = 2; -inline void KernelDef::clear_device_type() { - device_type_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& KernelDef::device_type() const { - // @@protoc_insertion_point(field_get:tensorflow.KernelDef.device_type) - return device_type_.Get(); -} -inline void KernelDef::set_device_type(const ::std::string& value) { - - device_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.KernelDef.device_type) -} -#if LANG_CXX11 -inline void KernelDef::set_device_type(::std::string&& value) { - - device_type_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.KernelDef.device_type) -} -#endif -inline void KernelDef::set_device_type(const char* value) { - GOOGLE_DCHECK(value != NULL); - - device_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.KernelDef.device_type) -} -inline void KernelDef::set_device_type(const char* value, - size_t size) { - - device_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.KernelDef.device_type) -} -inline ::std::string* KernelDef::mutable_device_type() { - - // @@protoc_insertion_point(field_mutable:tensorflow.KernelDef.device_type) - return device_type_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* KernelDef::release_device_type() { - // @@protoc_insertion_point(field_release:tensorflow.KernelDef.device_type) - - return device_type_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void KernelDef::set_allocated_device_type(::std::string* device_type) { - if (device_type != NULL) { - - } else { - - } - device_type_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device_type, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.KernelDef.device_type) -} -inline ::std::string* KernelDef::unsafe_arena_release_device_type() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.KernelDef.device_type) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return device_type_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void KernelDef::unsafe_arena_set_allocated_device_type( - ::std::string* device_type) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (device_type != NULL) { - - } else { - - } - device_type_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - device_type, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.KernelDef.device_type) -} - -// repeated .tensorflow.KernelDef.AttrConstraint constraint = 3; -inline int KernelDef::constraint_size() const { - return constraint_.size(); -} -inline void KernelDef::clear_constraint() { - constraint_.Clear(); -} -inline ::tensorflow::KernelDef_AttrConstraint* KernelDef::mutable_constraint(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.KernelDef.constraint) - return constraint_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::KernelDef_AttrConstraint >* -KernelDef::mutable_constraint() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.KernelDef.constraint) - return &constraint_; -} -inline const ::tensorflow::KernelDef_AttrConstraint& KernelDef::constraint(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.KernelDef.constraint) - return constraint_.Get(index); -} -inline ::tensorflow::KernelDef_AttrConstraint* KernelDef::add_constraint() { - // @@protoc_insertion_point(field_add:tensorflow.KernelDef.constraint) - return constraint_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::KernelDef_AttrConstraint >& -KernelDef::constraint() const { - // @@protoc_insertion_point(field_list:tensorflow.KernelDef.constraint) - return constraint_; -} - -// repeated string host_memory_arg = 4; -inline int KernelDef::host_memory_arg_size() const { - return host_memory_arg_.size(); -} -inline void KernelDef::clear_host_memory_arg() { - host_memory_arg_.Clear(); -} -inline const ::std::string& KernelDef::host_memory_arg(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.KernelDef.host_memory_arg) - return host_memory_arg_.Get(index); -} -inline ::std::string* KernelDef::mutable_host_memory_arg(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.KernelDef.host_memory_arg) - return host_memory_arg_.Mutable(index); -} -inline void KernelDef::set_host_memory_arg(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:tensorflow.KernelDef.host_memory_arg) - host_memory_arg_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void KernelDef::set_host_memory_arg(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:tensorflow.KernelDef.host_memory_arg) - host_memory_arg_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void KernelDef::set_host_memory_arg(int index, const char* value) { - GOOGLE_DCHECK(value != NULL); - host_memory_arg_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tensorflow.KernelDef.host_memory_arg) -} -inline void KernelDef::set_host_memory_arg(int index, const char* value, size_t size) { - host_memory_arg_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tensorflow.KernelDef.host_memory_arg) -} -inline ::std::string* KernelDef::add_host_memory_arg() { - // @@protoc_insertion_point(field_add_mutable:tensorflow.KernelDef.host_memory_arg) - return host_memory_arg_.Add(); -} -inline void KernelDef::add_host_memory_arg(const ::std::string& value) { - host_memory_arg_.Add()->assign(value); - // @@protoc_insertion_point(field_add:tensorflow.KernelDef.host_memory_arg) -} -#if LANG_CXX11 -inline void KernelDef::add_host_memory_arg(::std::string&& value) { - host_memory_arg_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:tensorflow.KernelDef.host_memory_arg) -} -#endif -inline void KernelDef::add_host_memory_arg(const char* value) { - GOOGLE_DCHECK(value != NULL); - host_memory_arg_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tensorflow.KernelDef.host_memory_arg) -} -inline void KernelDef::add_host_memory_arg(const char* value, size_t size) { - host_memory_arg_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tensorflow.KernelDef.host_memory_arg) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -KernelDef::host_memory_arg() const { - // @@protoc_insertion_point(field_list:tensorflow.KernelDef.host_memory_arg) - return host_memory_arg_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -KernelDef::mutable_host_memory_arg() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.KernelDef.host_memory_arg) - return &host_memory_arg_; -} - -// string label = 5; -inline void KernelDef::clear_label() { - label_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& KernelDef::label() const { - // @@protoc_insertion_point(field_get:tensorflow.KernelDef.label) - return label_.Get(); -} -inline void KernelDef::set_label(const ::std::string& value) { - - label_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.KernelDef.label) -} -#if LANG_CXX11 -inline void KernelDef::set_label(::std::string&& value) { - - label_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.KernelDef.label) -} -#endif -inline void KernelDef::set_label(const char* value) { - GOOGLE_DCHECK(value != NULL); - - label_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.KernelDef.label) -} -inline void KernelDef::set_label(const char* value, - size_t size) { - - label_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.KernelDef.label) -} -inline ::std::string* KernelDef::mutable_label() { - - // @@protoc_insertion_point(field_mutable:tensorflow.KernelDef.label) - return label_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* KernelDef::release_label() { - // @@protoc_insertion_point(field_release:tensorflow.KernelDef.label) - - return label_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void KernelDef::set_allocated_label(::std::string* label) { - if (label != NULL) { - - } else { - - } - label_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), label, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.KernelDef.label) -} -inline ::std::string* KernelDef::unsafe_arena_release_label() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.KernelDef.label) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return label_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void KernelDef::unsafe_arena_set_allocated_label( - ::std::string* label) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (label != NULL) { - - } else { - - } - label_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - label, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.KernelDef.label) -} - -// ------------------------------------------------------------------- - -// KernelList - -// repeated .tensorflow.KernelDef kernel = 1; -inline int KernelList::kernel_size() const { - return kernel_.size(); -} -inline void KernelList::clear_kernel() { - kernel_.Clear(); -} -inline ::tensorflow::KernelDef* KernelList::mutable_kernel(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.KernelList.kernel) - return kernel_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::KernelDef >* -KernelList::mutable_kernel() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.KernelList.kernel) - return &kernel_; -} -inline const ::tensorflow::KernelDef& KernelList::kernel(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.KernelList.kernel) - return kernel_.Get(index); -} -inline ::tensorflow::KernelDef* KernelList::add_kernel() { - // @@protoc_insertion_point(field_add:tensorflow.KernelList.kernel) - return kernel_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::KernelDef >& -KernelList::kernel() const { - // @@protoc_insertion_point(field_list:tensorflow.KernelList.kernel) - return kernel_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fkernel_5fdef_2eproto diff --git a/linux/include/tensorflow/core/framework/kernel_def.pb_text-impl.h b/linux/include/tensorflow/core/framework/kernel_def.pb_text-impl.h deleted file mode 100755 index 867907ee3..000000000 --- a/linux/include/tensorflow/core/framework/kernel_def.pb_text-impl.h +++ /dev/null @@ -1,49 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_kernel_def_proto_IMPL_H_ -#define tensorflow_core_framework_kernel_def_proto_IMPL_H_ - -#include "tensorflow/core/framework/attr_value.pb.h" -#include "tensorflow/core/framework/attr_value.pb_text-impl.h" -#include "tensorflow/core/framework/kernel_def.pb.h" -#include "tensorflow/core/framework/kernel_def.pb_text.h" -#include "tensorflow/core/framework/resource_handle.pb.h" -#include "tensorflow/core/framework/resource_handle.pb_text-impl.h" -#include "tensorflow/core/framework/tensor.pb.h" -#include "tensorflow/core/framework/tensor.pb_text-impl.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb_text-impl.h" -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/framework/types.pb_text-impl.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::KernelDef_AttrConstraint& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::KernelDef_AttrConstraint* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::KernelDef& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::KernelDef* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::KernelList& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::KernelList* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_kernel_def_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/kernel_def.pb_text.h b/linux/include/tensorflow/core/framework/kernel_def.pb_text.h deleted file mode 100755 index ae51ddc9e..000000000 --- a/linux/include/tensorflow/core/framework/kernel_def.pb_text.h +++ /dev/null @@ -1,44 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_kernel_def_proto_H_ -#define tensorflow_core_framework_kernel_def_proto_H_ - -#include "tensorflow/core/framework/kernel_def.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.KernelDef.AttrConstraint -string ProtoDebugString( - const ::tensorflow::KernelDef_AttrConstraint& msg); -string ProtoShortDebugString( - const ::tensorflow::KernelDef_AttrConstraint& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::KernelDef_AttrConstraint* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.KernelDef -string ProtoDebugString( - const ::tensorflow::KernelDef& msg); -string ProtoShortDebugString( - const ::tensorflow::KernelDef& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::KernelDef* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.KernelList -string ProtoDebugString( - const ::tensorflow::KernelList& msg); -string ProtoShortDebugString( - const ::tensorflow::KernelList& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::KernelList* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_kernel_def_proto_H_ diff --git a/linux/include/tensorflow/core/framework/log_memory.pb.h b/linux/include/tensorflow/core/framework/log_memory.pb.h deleted file mode 100755 index 6975b19a1..000000000 --- a/linux/include/tensorflow/core/framework/log_memory.pb.h +++ /dev/null @@ -1,1992 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/log_memory.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2flog_5fmemory_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2flog_5fmemory_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "tensorflow/core/framework/tensor_description.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2flog_5fmemory_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2flog_5fmemory_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[6]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2flog_5fmemory_2eproto -namespace tensorflow { -class MemoryLogRawAllocation; -class MemoryLogRawAllocationDefaultTypeInternal; -extern MemoryLogRawAllocationDefaultTypeInternal _MemoryLogRawAllocation_default_instance_; -class MemoryLogRawDeallocation; -class MemoryLogRawDeallocationDefaultTypeInternal; -extern MemoryLogRawDeallocationDefaultTypeInternal _MemoryLogRawDeallocation_default_instance_; -class MemoryLogStep; -class MemoryLogStepDefaultTypeInternal; -extern MemoryLogStepDefaultTypeInternal _MemoryLogStep_default_instance_; -class MemoryLogTensorAllocation; -class MemoryLogTensorAllocationDefaultTypeInternal; -extern MemoryLogTensorAllocationDefaultTypeInternal _MemoryLogTensorAllocation_default_instance_; -class MemoryLogTensorDeallocation; -class MemoryLogTensorDeallocationDefaultTypeInternal; -extern MemoryLogTensorDeallocationDefaultTypeInternal _MemoryLogTensorDeallocation_default_instance_; -class MemoryLogTensorOutput; -class MemoryLogTensorOutputDefaultTypeInternal; -extern MemoryLogTensorOutputDefaultTypeInternal _MemoryLogTensorOutput_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::MemoryLogRawAllocation* Arena::CreateMaybeMessage<::tensorflow::MemoryLogRawAllocation>(Arena*); -template<> ::tensorflow::MemoryLogRawDeallocation* Arena::CreateMaybeMessage<::tensorflow::MemoryLogRawDeallocation>(Arena*); -template<> ::tensorflow::MemoryLogStep* Arena::CreateMaybeMessage<::tensorflow::MemoryLogStep>(Arena*); -template<> ::tensorflow::MemoryLogTensorAllocation* Arena::CreateMaybeMessage<::tensorflow::MemoryLogTensorAllocation>(Arena*); -template<> ::tensorflow::MemoryLogTensorDeallocation* Arena::CreateMaybeMessage<::tensorflow::MemoryLogTensorDeallocation>(Arena*); -template<> ::tensorflow::MemoryLogTensorOutput* Arena::CreateMaybeMessage<::tensorflow::MemoryLogTensorOutput>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class MemoryLogStep : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.MemoryLogStep) */ { - public: - MemoryLogStep(); - virtual ~MemoryLogStep(); - - MemoryLogStep(const MemoryLogStep& from); - - inline MemoryLogStep& operator=(const MemoryLogStep& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - MemoryLogStep(MemoryLogStep&& from) noexcept - : MemoryLogStep() { - *this = ::std::move(from); - } - - inline MemoryLogStep& operator=(MemoryLogStep&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const MemoryLogStep& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const MemoryLogStep* internal_default_instance() { - return reinterpret_cast( - &_MemoryLogStep_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(MemoryLogStep* other); - void Swap(MemoryLogStep* other); - friend void swap(MemoryLogStep& a, MemoryLogStep& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline MemoryLogStep* New() const final { - return CreateMaybeMessage(NULL); - } - - MemoryLogStep* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const MemoryLogStep& from); - void MergeFrom(const MemoryLogStep& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MemoryLogStep* other); - protected: - explicit MemoryLogStep(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string handle = 2; - void clear_handle(); - static const int kHandleFieldNumber = 2; - const ::std::string& handle() const; - void set_handle(const ::std::string& value); - #if LANG_CXX11 - void set_handle(::std::string&& value); - #endif - void set_handle(const char* value); - void set_handle(const char* value, size_t size); - ::std::string* mutable_handle(); - ::std::string* release_handle(); - void set_allocated_handle(::std::string* handle); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_handle(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_handle( - ::std::string* handle); - - // int64 step_id = 1; - void clear_step_id(); - static const int kStepIdFieldNumber = 1; - ::google::protobuf::int64 step_id() const; - void set_step_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:tensorflow.MemoryLogStep) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr handle_; - ::google::protobuf::int64 step_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2flog_5fmemory_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class MemoryLogTensorAllocation : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.MemoryLogTensorAllocation) */ { - public: - MemoryLogTensorAllocation(); - virtual ~MemoryLogTensorAllocation(); - - MemoryLogTensorAllocation(const MemoryLogTensorAllocation& from); - - inline MemoryLogTensorAllocation& operator=(const MemoryLogTensorAllocation& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - MemoryLogTensorAllocation(MemoryLogTensorAllocation&& from) noexcept - : MemoryLogTensorAllocation() { - *this = ::std::move(from); - } - - inline MemoryLogTensorAllocation& operator=(MemoryLogTensorAllocation&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const MemoryLogTensorAllocation& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const MemoryLogTensorAllocation* internal_default_instance() { - return reinterpret_cast( - &_MemoryLogTensorAllocation_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(MemoryLogTensorAllocation* other); - void Swap(MemoryLogTensorAllocation* other); - friend void swap(MemoryLogTensorAllocation& a, MemoryLogTensorAllocation& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline MemoryLogTensorAllocation* New() const final { - return CreateMaybeMessage(NULL); - } - - MemoryLogTensorAllocation* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const MemoryLogTensorAllocation& from); - void MergeFrom(const MemoryLogTensorAllocation& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MemoryLogTensorAllocation* other); - protected: - explicit MemoryLogTensorAllocation(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string kernel_name = 2; - void clear_kernel_name(); - static const int kKernelNameFieldNumber = 2; - const ::std::string& kernel_name() const; - void set_kernel_name(const ::std::string& value); - #if LANG_CXX11 - void set_kernel_name(::std::string&& value); - #endif - void set_kernel_name(const char* value); - void set_kernel_name(const char* value, size_t size); - ::std::string* mutable_kernel_name(); - ::std::string* release_kernel_name(); - void set_allocated_kernel_name(::std::string* kernel_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_kernel_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_kernel_name( - ::std::string* kernel_name); - - // .tensorflow.TensorDescription tensor = 3; - bool has_tensor() const; - void clear_tensor(); - static const int kTensorFieldNumber = 3; - private: - const ::tensorflow::TensorDescription& _internal_tensor() const; - public: - const ::tensorflow::TensorDescription& tensor() const; - ::tensorflow::TensorDescription* release_tensor(); - ::tensorflow::TensorDescription* mutable_tensor(); - void set_allocated_tensor(::tensorflow::TensorDescription* tensor); - void unsafe_arena_set_allocated_tensor( - ::tensorflow::TensorDescription* tensor); - ::tensorflow::TensorDescription* unsafe_arena_release_tensor(); - - // int64 step_id = 1; - void clear_step_id(); - static const int kStepIdFieldNumber = 1; - ::google::protobuf::int64 step_id() const; - void set_step_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:tensorflow.MemoryLogTensorAllocation) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr kernel_name_; - ::tensorflow::TensorDescription* tensor_; - ::google::protobuf::int64 step_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2flog_5fmemory_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class MemoryLogTensorDeallocation : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.MemoryLogTensorDeallocation) */ { - public: - MemoryLogTensorDeallocation(); - virtual ~MemoryLogTensorDeallocation(); - - MemoryLogTensorDeallocation(const MemoryLogTensorDeallocation& from); - - inline MemoryLogTensorDeallocation& operator=(const MemoryLogTensorDeallocation& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - MemoryLogTensorDeallocation(MemoryLogTensorDeallocation&& from) noexcept - : MemoryLogTensorDeallocation() { - *this = ::std::move(from); - } - - inline MemoryLogTensorDeallocation& operator=(MemoryLogTensorDeallocation&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const MemoryLogTensorDeallocation& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const MemoryLogTensorDeallocation* internal_default_instance() { - return reinterpret_cast( - &_MemoryLogTensorDeallocation_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void UnsafeArenaSwap(MemoryLogTensorDeallocation* other); - void Swap(MemoryLogTensorDeallocation* other); - friend void swap(MemoryLogTensorDeallocation& a, MemoryLogTensorDeallocation& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline MemoryLogTensorDeallocation* New() const final { - return CreateMaybeMessage(NULL); - } - - MemoryLogTensorDeallocation* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const MemoryLogTensorDeallocation& from); - void MergeFrom(const MemoryLogTensorDeallocation& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MemoryLogTensorDeallocation* other); - protected: - explicit MemoryLogTensorDeallocation(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string allocator_name = 2; - void clear_allocator_name(); - static const int kAllocatorNameFieldNumber = 2; - const ::std::string& allocator_name() const; - void set_allocator_name(const ::std::string& value); - #if LANG_CXX11 - void set_allocator_name(::std::string&& value); - #endif - void set_allocator_name(const char* value); - void set_allocator_name(const char* value, size_t size); - ::std::string* mutable_allocator_name(); - ::std::string* release_allocator_name(); - void set_allocated_allocator_name(::std::string* allocator_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_allocator_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_allocator_name( - ::std::string* allocator_name); - - // int64 allocation_id = 1; - void clear_allocation_id(); - static const int kAllocationIdFieldNumber = 1; - ::google::protobuf::int64 allocation_id() const; - void set_allocation_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:tensorflow.MemoryLogTensorDeallocation) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr allocator_name_; - ::google::protobuf::int64 allocation_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2flog_5fmemory_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class MemoryLogTensorOutput : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.MemoryLogTensorOutput) */ { - public: - MemoryLogTensorOutput(); - virtual ~MemoryLogTensorOutput(); - - MemoryLogTensorOutput(const MemoryLogTensorOutput& from); - - inline MemoryLogTensorOutput& operator=(const MemoryLogTensorOutput& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - MemoryLogTensorOutput(MemoryLogTensorOutput&& from) noexcept - : MemoryLogTensorOutput() { - *this = ::std::move(from); - } - - inline MemoryLogTensorOutput& operator=(MemoryLogTensorOutput&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const MemoryLogTensorOutput& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const MemoryLogTensorOutput* internal_default_instance() { - return reinterpret_cast( - &_MemoryLogTensorOutput_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void UnsafeArenaSwap(MemoryLogTensorOutput* other); - void Swap(MemoryLogTensorOutput* other); - friend void swap(MemoryLogTensorOutput& a, MemoryLogTensorOutput& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline MemoryLogTensorOutput* New() const final { - return CreateMaybeMessage(NULL); - } - - MemoryLogTensorOutput* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const MemoryLogTensorOutput& from); - void MergeFrom(const MemoryLogTensorOutput& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MemoryLogTensorOutput* other); - protected: - explicit MemoryLogTensorOutput(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string kernel_name = 2; - void clear_kernel_name(); - static const int kKernelNameFieldNumber = 2; - const ::std::string& kernel_name() const; - void set_kernel_name(const ::std::string& value); - #if LANG_CXX11 - void set_kernel_name(::std::string&& value); - #endif - void set_kernel_name(const char* value); - void set_kernel_name(const char* value, size_t size); - ::std::string* mutable_kernel_name(); - ::std::string* release_kernel_name(); - void set_allocated_kernel_name(::std::string* kernel_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_kernel_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_kernel_name( - ::std::string* kernel_name); - - // .tensorflow.TensorDescription tensor = 4; - bool has_tensor() const; - void clear_tensor(); - static const int kTensorFieldNumber = 4; - private: - const ::tensorflow::TensorDescription& _internal_tensor() const; - public: - const ::tensorflow::TensorDescription& tensor() const; - ::tensorflow::TensorDescription* release_tensor(); - ::tensorflow::TensorDescription* mutable_tensor(); - void set_allocated_tensor(::tensorflow::TensorDescription* tensor); - void unsafe_arena_set_allocated_tensor( - ::tensorflow::TensorDescription* tensor); - ::tensorflow::TensorDescription* unsafe_arena_release_tensor(); - - // int64 step_id = 1; - void clear_step_id(); - static const int kStepIdFieldNumber = 1; - ::google::protobuf::int64 step_id() const; - void set_step_id(::google::protobuf::int64 value); - - // int32 index = 3; - void clear_index(); - static const int kIndexFieldNumber = 3; - ::google::protobuf::int32 index() const; - void set_index(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:tensorflow.MemoryLogTensorOutput) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr kernel_name_; - ::tensorflow::TensorDescription* tensor_; - ::google::protobuf::int64 step_id_; - ::google::protobuf::int32 index_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2flog_5fmemory_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class MemoryLogRawAllocation : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.MemoryLogRawAllocation) */ { - public: - MemoryLogRawAllocation(); - virtual ~MemoryLogRawAllocation(); - - MemoryLogRawAllocation(const MemoryLogRawAllocation& from); - - inline MemoryLogRawAllocation& operator=(const MemoryLogRawAllocation& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - MemoryLogRawAllocation(MemoryLogRawAllocation&& from) noexcept - : MemoryLogRawAllocation() { - *this = ::std::move(from); - } - - inline MemoryLogRawAllocation& operator=(MemoryLogRawAllocation&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const MemoryLogRawAllocation& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const MemoryLogRawAllocation* internal_default_instance() { - return reinterpret_cast( - &_MemoryLogRawAllocation_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void UnsafeArenaSwap(MemoryLogRawAllocation* other); - void Swap(MemoryLogRawAllocation* other); - friend void swap(MemoryLogRawAllocation& a, MemoryLogRawAllocation& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline MemoryLogRawAllocation* New() const final { - return CreateMaybeMessage(NULL); - } - - MemoryLogRawAllocation* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const MemoryLogRawAllocation& from); - void MergeFrom(const MemoryLogRawAllocation& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MemoryLogRawAllocation* other); - protected: - explicit MemoryLogRawAllocation(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string operation = 2; - void clear_operation(); - static const int kOperationFieldNumber = 2; - const ::std::string& operation() const; - void set_operation(const ::std::string& value); - #if LANG_CXX11 - void set_operation(::std::string&& value); - #endif - void set_operation(const char* value); - void set_operation(const char* value, size_t size); - ::std::string* mutable_operation(); - ::std::string* release_operation(); - void set_allocated_operation(::std::string* operation); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_operation(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_operation( - ::std::string* operation); - - // string allocator_name = 6; - void clear_allocator_name(); - static const int kAllocatorNameFieldNumber = 6; - const ::std::string& allocator_name() const; - void set_allocator_name(const ::std::string& value); - #if LANG_CXX11 - void set_allocator_name(::std::string&& value); - #endif - void set_allocator_name(const char* value); - void set_allocator_name(const char* value, size_t size); - ::std::string* mutable_allocator_name(); - ::std::string* release_allocator_name(); - void set_allocated_allocator_name(::std::string* allocator_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_allocator_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_allocator_name( - ::std::string* allocator_name); - - // int64 step_id = 1; - void clear_step_id(); - static const int kStepIdFieldNumber = 1; - ::google::protobuf::int64 step_id() const; - void set_step_id(::google::protobuf::int64 value); - - // int64 num_bytes = 3; - void clear_num_bytes(); - static const int kNumBytesFieldNumber = 3; - ::google::protobuf::int64 num_bytes() const; - void set_num_bytes(::google::protobuf::int64 value); - - // uint64 ptr = 4; - void clear_ptr(); - static const int kPtrFieldNumber = 4; - ::google::protobuf::uint64 ptr() const; - void set_ptr(::google::protobuf::uint64 value); - - // int64 allocation_id = 5; - void clear_allocation_id(); - static const int kAllocationIdFieldNumber = 5; - ::google::protobuf::int64 allocation_id() const; - void set_allocation_id(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:tensorflow.MemoryLogRawAllocation) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr operation_; - ::google::protobuf::internal::ArenaStringPtr allocator_name_; - ::google::protobuf::int64 step_id_; - ::google::protobuf::int64 num_bytes_; - ::google::protobuf::uint64 ptr_; - ::google::protobuf::int64 allocation_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2flog_5fmemory_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class MemoryLogRawDeallocation : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.MemoryLogRawDeallocation) */ { - public: - MemoryLogRawDeallocation(); - virtual ~MemoryLogRawDeallocation(); - - MemoryLogRawDeallocation(const MemoryLogRawDeallocation& from); - - inline MemoryLogRawDeallocation& operator=(const MemoryLogRawDeallocation& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - MemoryLogRawDeallocation(MemoryLogRawDeallocation&& from) noexcept - : MemoryLogRawDeallocation() { - *this = ::std::move(from); - } - - inline MemoryLogRawDeallocation& operator=(MemoryLogRawDeallocation&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const MemoryLogRawDeallocation& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const MemoryLogRawDeallocation* internal_default_instance() { - return reinterpret_cast( - &_MemoryLogRawDeallocation_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void UnsafeArenaSwap(MemoryLogRawDeallocation* other); - void Swap(MemoryLogRawDeallocation* other); - friend void swap(MemoryLogRawDeallocation& a, MemoryLogRawDeallocation& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline MemoryLogRawDeallocation* New() const final { - return CreateMaybeMessage(NULL); - } - - MemoryLogRawDeallocation* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const MemoryLogRawDeallocation& from); - void MergeFrom(const MemoryLogRawDeallocation& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MemoryLogRawDeallocation* other); - protected: - explicit MemoryLogRawDeallocation(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string operation = 2; - void clear_operation(); - static const int kOperationFieldNumber = 2; - const ::std::string& operation() const; - void set_operation(const ::std::string& value); - #if LANG_CXX11 - void set_operation(::std::string&& value); - #endif - void set_operation(const char* value); - void set_operation(const char* value, size_t size); - ::std::string* mutable_operation(); - ::std::string* release_operation(); - void set_allocated_operation(::std::string* operation); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_operation(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_operation( - ::std::string* operation); - - // string allocator_name = 4; - void clear_allocator_name(); - static const int kAllocatorNameFieldNumber = 4; - const ::std::string& allocator_name() const; - void set_allocator_name(const ::std::string& value); - #if LANG_CXX11 - void set_allocator_name(::std::string&& value); - #endif - void set_allocator_name(const char* value); - void set_allocator_name(const char* value, size_t size); - ::std::string* mutable_allocator_name(); - ::std::string* release_allocator_name(); - void set_allocated_allocator_name(::std::string* allocator_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_allocator_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_allocator_name( - ::std::string* allocator_name); - - // int64 step_id = 1; - void clear_step_id(); - static const int kStepIdFieldNumber = 1; - ::google::protobuf::int64 step_id() const; - void set_step_id(::google::protobuf::int64 value); - - // int64 allocation_id = 3; - void clear_allocation_id(); - static const int kAllocationIdFieldNumber = 3; - ::google::protobuf::int64 allocation_id() const; - void set_allocation_id(::google::protobuf::int64 value); - - // bool deferred = 5; - void clear_deferred(); - static const int kDeferredFieldNumber = 5; - bool deferred() const; - void set_deferred(bool value); - - // @@protoc_insertion_point(class_scope:tensorflow.MemoryLogRawDeallocation) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr operation_; - ::google::protobuf::internal::ArenaStringPtr allocator_name_; - ::google::protobuf::int64 step_id_; - ::google::protobuf::int64 allocation_id_; - bool deferred_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2flog_5fmemory_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// MemoryLogStep - -// int64 step_id = 1; -inline void MemoryLogStep::clear_step_id() { - step_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 MemoryLogStep::step_id() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogStep.step_id) - return step_id_; -} -inline void MemoryLogStep::set_step_id(::google::protobuf::int64 value) { - - step_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogStep.step_id) -} - -// string handle = 2; -inline void MemoryLogStep::clear_handle() { - handle_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& MemoryLogStep::handle() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogStep.handle) - return handle_.Get(); -} -inline void MemoryLogStep::set_handle(const ::std::string& value) { - - handle_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogStep.handle) -} -#if LANG_CXX11 -inline void MemoryLogStep::set_handle(::std::string&& value) { - - handle_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.MemoryLogStep.handle) -} -#endif -inline void MemoryLogStep::set_handle(const char* value) { - GOOGLE_DCHECK(value != NULL); - - handle_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.MemoryLogStep.handle) -} -inline void MemoryLogStep::set_handle(const char* value, - size_t size) { - - handle_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.MemoryLogStep.handle) -} -inline ::std::string* MemoryLogStep::mutable_handle() { - - // @@protoc_insertion_point(field_mutable:tensorflow.MemoryLogStep.handle) - return handle_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* MemoryLogStep::release_handle() { - // @@protoc_insertion_point(field_release:tensorflow.MemoryLogStep.handle) - - return handle_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void MemoryLogStep::set_allocated_handle(::std::string* handle) { - if (handle != NULL) { - - } else { - - } - handle_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), handle, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.MemoryLogStep.handle) -} -inline ::std::string* MemoryLogStep::unsafe_arena_release_handle() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.MemoryLogStep.handle) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return handle_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void MemoryLogStep::unsafe_arena_set_allocated_handle( - ::std::string* handle) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (handle != NULL) { - - } else { - - } - handle_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - handle, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MemoryLogStep.handle) -} - -// ------------------------------------------------------------------- - -// MemoryLogTensorAllocation - -// int64 step_id = 1; -inline void MemoryLogTensorAllocation::clear_step_id() { - step_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 MemoryLogTensorAllocation::step_id() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogTensorAllocation.step_id) - return step_id_; -} -inline void MemoryLogTensorAllocation::set_step_id(::google::protobuf::int64 value) { - - step_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogTensorAllocation.step_id) -} - -// string kernel_name = 2; -inline void MemoryLogTensorAllocation::clear_kernel_name() { - kernel_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& MemoryLogTensorAllocation::kernel_name() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogTensorAllocation.kernel_name) - return kernel_name_.Get(); -} -inline void MemoryLogTensorAllocation::set_kernel_name(const ::std::string& value) { - - kernel_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogTensorAllocation.kernel_name) -} -#if LANG_CXX11 -inline void MemoryLogTensorAllocation::set_kernel_name(::std::string&& value) { - - kernel_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.MemoryLogTensorAllocation.kernel_name) -} -#endif -inline void MemoryLogTensorAllocation::set_kernel_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - kernel_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.MemoryLogTensorAllocation.kernel_name) -} -inline void MemoryLogTensorAllocation::set_kernel_name(const char* value, - size_t size) { - - kernel_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.MemoryLogTensorAllocation.kernel_name) -} -inline ::std::string* MemoryLogTensorAllocation::mutable_kernel_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.MemoryLogTensorAllocation.kernel_name) - return kernel_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* MemoryLogTensorAllocation::release_kernel_name() { - // @@protoc_insertion_point(field_release:tensorflow.MemoryLogTensorAllocation.kernel_name) - - return kernel_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void MemoryLogTensorAllocation::set_allocated_kernel_name(::std::string* kernel_name) { - if (kernel_name != NULL) { - - } else { - - } - kernel_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), kernel_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.MemoryLogTensorAllocation.kernel_name) -} -inline ::std::string* MemoryLogTensorAllocation::unsafe_arena_release_kernel_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.MemoryLogTensorAllocation.kernel_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return kernel_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void MemoryLogTensorAllocation::unsafe_arena_set_allocated_kernel_name( - ::std::string* kernel_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (kernel_name != NULL) { - - } else { - - } - kernel_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - kernel_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MemoryLogTensorAllocation.kernel_name) -} - -// .tensorflow.TensorDescription tensor = 3; -inline bool MemoryLogTensorAllocation::has_tensor() const { - return this != internal_default_instance() && tensor_ != NULL; -} -inline const ::tensorflow::TensorDescription& MemoryLogTensorAllocation::_internal_tensor() const { - return *tensor_; -} -inline const ::tensorflow::TensorDescription& MemoryLogTensorAllocation::tensor() const { - const ::tensorflow::TensorDescription* p = tensor_; - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogTensorAllocation.tensor) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_TensorDescription_default_instance_); -} -inline ::tensorflow::TensorDescription* MemoryLogTensorAllocation::release_tensor() { - // @@protoc_insertion_point(field_release:tensorflow.MemoryLogTensorAllocation.tensor) - - ::tensorflow::TensorDescription* temp = tensor_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - tensor_ = NULL; - return temp; -} -inline ::tensorflow::TensorDescription* MemoryLogTensorAllocation::unsafe_arena_release_tensor() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.MemoryLogTensorAllocation.tensor) - - ::tensorflow::TensorDescription* temp = tensor_; - tensor_ = NULL; - return temp; -} -inline ::tensorflow::TensorDescription* MemoryLogTensorAllocation::mutable_tensor() { - - if (tensor_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::TensorDescription>(GetArenaNoVirtual()); - tensor_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.MemoryLogTensorAllocation.tensor) - return tensor_; -} -inline void MemoryLogTensorAllocation::set_allocated_tensor(::tensorflow::TensorDescription* tensor) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(tensor_); - } - if (tensor) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(tensor)->GetArena(); - if (message_arena != submessage_arena) { - tensor = ::google::protobuf::internal::GetOwnedMessage( - message_arena, tensor, submessage_arena); - } - - } else { - - } - tensor_ = tensor; - // @@protoc_insertion_point(field_set_allocated:tensorflow.MemoryLogTensorAllocation.tensor) -} - -// ------------------------------------------------------------------- - -// MemoryLogTensorDeallocation - -// int64 allocation_id = 1; -inline void MemoryLogTensorDeallocation::clear_allocation_id() { - allocation_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 MemoryLogTensorDeallocation::allocation_id() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogTensorDeallocation.allocation_id) - return allocation_id_; -} -inline void MemoryLogTensorDeallocation::set_allocation_id(::google::protobuf::int64 value) { - - allocation_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogTensorDeallocation.allocation_id) -} - -// string allocator_name = 2; -inline void MemoryLogTensorDeallocation::clear_allocator_name() { - allocator_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& MemoryLogTensorDeallocation::allocator_name() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogTensorDeallocation.allocator_name) - return allocator_name_.Get(); -} -inline void MemoryLogTensorDeallocation::set_allocator_name(const ::std::string& value) { - - allocator_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogTensorDeallocation.allocator_name) -} -#if LANG_CXX11 -inline void MemoryLogTensorDeallocation::set_allocator_name(::std::string&& value) { - - allocator_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.MemoryLogTensorDeallocation.allocator_name) -} -#endif -inline void MemoryLogTensorDeallocation::set_allocator_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - allocator_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.MemoryLogTensorDeallocation.allocator_name) -} -inline void MemoryLogTensorDeallocation::set_allocator_name(const char* value, - size_t size) { - - allocator_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.MemoryLogTensorDeallocation.allocator_name) -} -inline ::std::string* MemoryLogTensorDeallocation::mutable_allocator_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.MemoryLogTensorDeallocation.allocator_name) - return allocator_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* MemoryLogTensorDeallocation::release_allocator_name() { - // @@protoc_insertion_point(field_release:tensorflow.MemoryLogTensorDeallocation.allocator_name) - - return allocator_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void MemoryLogTensorDeallocation::set_allocated_allocator_name(::std::string* allocator_name) { - if (allocator_name != NULL) { - - } else { - - } - allocator_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), allocator_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.MemoryLogTensorDeallocation.allocator_name) -} -inline ::std::string* MemoryLogTensorDeallocation::unsafe_arena_release_allocator_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.MemoryLogTensorDeallocation.allocator_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return allocator_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void MemoryLogTensorDeallocation::unsafe_arena_set_allocated_allocator_name( - ::std::string* allocator_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (allocator_name != NULL) { - - } else { - - } - allocator_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - allocator_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MemoryLogTensorDeallocation.allocator_name) -} - -// ------------------------------------------------------------------- - -// MemoryLogTensorOutput - -// int64 step_id = 1; -inline void MemoryLogTensorOutput::clear_step_id() { - step_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 MemoryLogTensorOutput::step_id() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogTensorOutput.step_id) - return step_id_; -} -inline void MemoryLogTensorOutput::set_step_id(::google::protobuf::int64 value) { - - step_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogTensorOutput.step_id) -} - -// string kernel_name = 2; -inline void MemoryLogTensorOutput::clear_kernel_name() { - kernel_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& MemoryLogTensorOutput::kernel_name() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogTensorOutput.kernel_name) - return kernel_name_.Get(); -} -inline void MemoryLogTensorOutput::set_kernel_name(const ::std::string& value) { - - kernel_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogTensorOutput.kernel_name) -} -#if LANG_CXX11 -inline void MemoryLogTensorOutput::set_kernel_name(::std::string&& value) { - - kernel_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.MemoryLogTensorOutput.kernel_name) -} -#endif -inline void MemoryLogTensorOutput::set_kernel_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - kernel_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.MemoryLogTensorOutput.kernel_name) -} -inline void MemoryLogTensorOutput::set_kernel_name(const char* value, - size_t size) { - - kernel_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.MemoryLogTensorOutput.kernel_name) -} -inline ::std::string* MemoryLogTensorOutput::mutable_kernel_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.MemoryLogTensorOutput.kernel_name) - return kernel_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* MemoryLogTensorOutput::release_kernel_name() { - // @@protoc_insertion_point(field_release:tensorflow.MemoryLogTensorOutput.kernel_name) - - return kernel_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void MemoryLogTensorOutput::set_allocated_kernel_name(::std::string* kernel_name) { - if (kernel_name != NULL) { - - } else { - - } - kernel_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), kernel_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.MemoryLogTensorOutput.kernel_name) -} -inline ::std::string* MemoryLogTensorOutput::unsafe_arena_release_kernel_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.MemoryLogTensorOutput.kernel_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return kernel_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void MemoryLogTensorOutput::unsafe_arena_set_allocated_kernel_name( - ::std::string* kernel_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (kernel_name != NULL) { - - } else { - - } - kernel_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - kernel_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MemoryLogTensorOutput.kernel_name) -} - -// int32 index = 3; -inline void MemoryLogTensorOutput::clear_index() { - index_ = 0; -} -inline ::google::protobuf::int32 MemoryLogTensorOutput::index() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogTensorOutput.index) - return index_; -} -inline void MemoryLogTensorOutput::set_index(::google::protobuf::int32 value) { - - index_ = value; - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogTensorOutput.index) -} - -// .tensorflow.TensorDescription tensor = 4; -inline bool MemoryLogTensorOutput::has_tensor() const { - return this != internal_default_instance() && tensor_ != NULL; -} -inline const ::tensorflow::TensorDescription& MemoryLogTensorOutput::_internal_tensor() const { - return *tensor_; -} -inline const ::tensorflow::TensorDescription& MemoryLogTensorOutput::tensor() const { - const ::tensorflow::TensorDescription* p = tensor_; - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogTensorOutput.tensor) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_TensorDescription_default_instance_); -} -inline ::tensorflow::TensorDescription* MemoryLogTensorOutput::release_tensor() { - // @@protoc_insertion_point(field_release:tensorflow.MemoryLogTensorOutput.tensor) - - ::tensorflow::TensorDescription* temp = tensor_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - tensor_ = NULL; - return temp; -} -inline ::tensorflow::TensorDescription* MemoryLogTensorOutput::unsafe_arena_release_tensor() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.MemoryLogTensorOutput.tensor) - - ::tensorflow::TensorDescription* temp = tensor_; - tensor_ = NULL; - return temp; -} -inline ::tensorflow::TensorDescription* MemoryLogTensorOutput::mutable_tensor() { - - if (tensor_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::TensorDescription>(GetArenaNoVirtual()); - tensor_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.MemoryLogTensorOutput.tensor) - return tensor_; -} -inline void MemoryLogTensorOutput::set_allocated_tensor(::tensorflow::TensorDescription* tensor) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(tensor_); - } - if (tensor) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(tensor)->GetArena(); - if (message_arena != submessage_arena) { - tensor = ::google::protobuf::internal::GetOwnedMessage( - message_arena, tensor, submessage_arena); - } - - } else { - - } - tensor_ = tensor; - // @@protoc_insertion_point(field_set_allocated:tensorflow.MemoryLogTensorOutput.tensor) -} - -// ------------------------------------------------------------------- - -// MemoryLogRawAllocation - -// int64 step_id = 1; -inline void MemoryLogRawAllocation::clear_step_id() { - step_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 MemoryLogRawAllocation::step_id() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogRawAllocation.step_id) - return step_id_; -} -inline void MemoryLogRawAllocation::set_step_id(::google::protobuf::int64 value) { - - step_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogRawAllocation.step_id) -} - -// string operation = 2; -inline void MemoryLogRawAllocation::clear_operation() { - operation_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& MemoryLogRawAllocation::operation() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogRawAllocation.operation) - return operation_.Get(); -} -inline void MemoryLogRawAllocation::set_operation(const ::std::string& value) { - - operation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogRawAllocation.operation) -} -#if LANG_CXX11 -inline void MemoryLogRawAllocation::set_operation(::std::string&& value) { - - operation_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.MemoryLogRawAllocation.operation) -} -#endif -inline void MemoryLogRawAllocation::set_operation(const char* value) { - GOOGLE_DCHECK(value != NULL); - - operation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.MemoryLogRawAllocation.operation) -} -inline void MemoryLogRawAllocation::set_operation(const char* value, - size_t size) { - - operation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.MemoryLogRawAllocation.operation) -} -inline ::std::string* MemoryLogRawAllocation::mutable_operation() { - - // @@protoc_insertion_point(field_mutable:tensorflow.MemoryLogRawAllocation.operation) - return operation_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* MemoryLogRawAllocation::release_operation() { - // @@protoc_insertion_point(field_release:tensorflow.MemoryLogRawAllocation.operation) - - return operation_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void MemoryLogRawAllocation::set_allocated_operation(::std::string* operation) { - if (operation != NULL) { - - } else { - - } - operation_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), operation, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.MemoryLogRawAllocation.operation) -} -inline ::std::string* MemoryLogRawAllocation::unsafe_arena_release_operation() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.MemoryLogRawAllocation.operation) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return operation_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void MemoryLogRawAllocation::unsafe_arena_set_allocated_operation( - ::std::string* operation) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (operation != NULL) { - - } else { - - } - operation_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - operation, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MemoryLogRawAllocation.operation) -} - -// int64 num_bytes = 3; -inline void MemoryLogRawAllocation::clear_num_bytes() { - num_bytes_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 MemoryLogRawAllocation::num_bytes() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogRawAllocation.num_bytes) - return num_bytes_; -} -inline void MemoryLogRawAllocation::set_num_bytes(::google::protobuf::int64 value) { - - num_bytes_ = value; - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogRawAllocation.num_bytes) -} - -// uint64 ptr = 4; -inline void MemoryLogRawAllocation::clear_ptr() { - ptr_ = GOOGLE_ULONGLONG(0); -} -inline ::google::protobuf::uint64 MemoryLogRawAllocation::ptr() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogRawAllocation.ptr) - return ptr_; -} -inline void MemoryLogRawAllocation::set_ptr(::google::protobuf::uint64 value) { - - ptr_ = value; - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogRawAllocation.ptr) -} - -// int64 allocation_id = 5; -inline void MemoryLogRawAllocation::clear_allocation_id() { - allocation_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 MemoryLogRawAllocation::allocation_id() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogRawAllocation.allocation_id) - return allocation_id_; -} -inline void MemoryLogRawAllocation::set_allocation_id(::google::protobuf::int64 value) { - - allocation_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogRawAllocation.allocation_id) -} - -// string allocator_name = 6; -inline void MemoryLogRawAllocation::clear_allocator_name() { - allocator_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& MemoryLogRawAllocation::allocator_name() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogRawAllocation.allocator_name) - return allocator_name_.Get(); -} -inline void MemoryLogRawAllocation::set_allocator_name(const ::std::string& value) { - - allocator_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogRawAllocation.allocator_name) -} -#if LANG_CXX11 -inline void MemoryLogRawAllocation::set_allocator_name(::std::string&& value) { - - allocator_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.MemoryLogRawAllocation.allocator_name) -} -#endif -inline void MemoryLogRawAllocation::set_allocator_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - allocator_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.MemoryLogRawAllocation.allocator_name) -} -inline void MemoryLogRawAllocation::set_allocator_name(const char* value, - size_t size) { - - allocator_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.MemoryLogRawAllocation.allocator_name) -} -inline ::std::string* MemoryLogRawAllocation::mutable_allocator_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.MemoryLogRawAllocation.allocator_name) - return allocator_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* MemoryLogRawAllocation::release_allocator_name() { - // @@protoc_insertion_point(field_release:tensorflow.MemoryLogRawAllocation.allocator_name) - - return allocator_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void MemoryLogRawAllocation::set_allocated_allocator_name(::std::string* allocator_name) { - if (allocator_name != NULL) { - - } else { - - } - allocator_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), allocator_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.MemoryLogRawAllocation.allocator_name) -} -inline ::std::string* MemoryLogRawAllocation::unsafe_arena_release_allocator_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.MemoryLogRawAllocation.allocator_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return allocator_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void MemoryLogRawAllocation::unsafe_arena_set_allocated_allocator_name( - ::std::string* allocator_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (allocator_name != NULL) { - - } else { - - } - allocator_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - allocator_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MemoryLogRawAllocation.allocator_name) -} - -// ------------------------------------------------------------------- - -// MemoryLogRawDeallocation - -// int64 step_id = 1; -inline void MemoryLogRawDeallocation::clear_step_id() { - step_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 MemoryLogRawDeallocation::step_id() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogRawDeallocation.step_id) - return step_id_; -} -inline void MemoryLogRawDeallocation::set_step_id(::google::protobuf::int64 value) { - - step_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogRawDeallocation.step_id) -} - -// string operation = 2; -inline void MemoryLogRawDeallocation::clear_operation() { - operation_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& MemoryLogRawDeallocation::operation() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogRawDeallocation.operation) - return operation_.Get(); -} -inline void MemoryLogRawDeallocation::set_operation(const ::std::string& value) { - - operation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogRawDeallocation.operation) -} -#if LANG_CXX11 -inline void MemoryLogRawDeallocation::set_operation(::std::string&& value) { - - operation_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.MemoryLogRawDeallocation.operation) -} -#endif -inline void MemoryLogRawDeallocation::set_operation(const char* value) { - GOOGLE_DCHECK(value != NULL); - - operation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.MemoryLogRawDeallocation.operation) -} -inline void MemoryLogRawDeallocation::set_operation(const char* value, - size_t size) { - - operation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.MemoryLogRawDeallocation.operation) -} -inline ::std::string* MemoryLogRawDeallocation::mutable_operation() { - - // @@protoc_insertion_point(field_mutable:tensorflow.MemoryLogRawDeallocation.operation) - return operation_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* MemoryLogRawDeallocation::release_operation() { - // @@protoc_insertion_point(field_release:tensorflow.MemoryLogRawDeallocation.operation) - - return operation_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void MemoryLogRawDeallocation::set_allocated_operation(::std::string* operation) { - if (operation != NULL) { - - } else { - - } - operation_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), operation, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.MemoryLogRawDeallocation.operation) -} -inline ::std::string* MemoryLogRawDeallocation::unsafe_arena_release_operation() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.MemoryLogRawDeallocation.operation) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return operation_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void MemoryLogRawDeallocation::unsafe_arena_set_allocated_operation( - ::std::string* operation) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (operation != NULL) { - - } else { - - } - operation_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - operation, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MemoryLogRawDeallocation.operation) -} - -// int64 allocation_id = 3; -inline void MemoryLogRawDeallocation::clear_allocation_id() { - allocation_id_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 MemoryLogRawDeallocation::allocation_id() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogRawDeallocation.allocation_id) - return allocation_id_; -} -inline void MemoryLogRawDeallocation::set_allocation_id(::google::protobuf::int64 value) { - - allocation_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogRawDeallocation.allocation_id) -} - -// string allocator_name = 4; -inline void MemoryLogRawDeallocation::clear_allocator_name() { - allocator_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& MemoryLogRawDeallocation::allocator_name() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogRawDeallocation.allocator_name) - return allocator_name_.Get(); -} -inline void MemoryLogRawDeallocation::set_allocator_name(const ::std::string& value) { - - allocator_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogRawDeallocation.allocator_name) -} -#if LANG_CXX11 -inline void MemoryLogRawDeallocation::set_allocator_name(::std::string&& value) { - - allocator_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.MemoryLogRawDeallocation.allocator_name) -} -#endif -inline void MemoryLogRawDeallocation::set_allocator_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - allocator_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.MemoryLogRawDeallocation.allocator_name) -} -inline void MemoryLogRawDeallocation::set_allocator_name(const char* value, - size_t size) { - - allocator_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.MemoryLogRawDeallocation.allocator_name) -} -inline ::std::string* MemoryLogRawDeallocation::mutable_allocator_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.MemoryLogRawDeallocation.allocator_name) - return allocator_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* MemoryLogRawDeallocation::release_allocator_name() { - // @@protoc_insertion_point(field_release:tensorflow.MemoryLogRawDeallocation.allocator_name) - - return allocator_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void MemoryLogRawDeallocation::set_allocated_allocator_name(::std::string* allocator_name) { - if (allocator_name != NULL) { - - } else { - - } - allocator_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), allocator_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.MemoryLogRawDeallocation.allocator_name) -} -inline ::std::string* MemoryLogRawDeallocation::unsafe_arena_release_allocator_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.MemoryLogRawDeallocation.allocator_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return allocator_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void MemoryLogRawDeallocation::unsafe_arena_set_allocated_allocator_name( - ::std::string* allocator_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (allocator_name != NULL) { - - } else { - - } - allocator_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - allocator_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.MemoryLogRawDeallocation.allocator_name) -} - -// bool deferred = 5; -inline void MemoryLogRawDeallocation::clear_deferred() { - deferred_ = false; -} -inline bool MemoryLogRawDeallocation::deferred() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryLogRawDeallocation.deferred) - return deferred_; -} -inline void MemoryLogRawDeallocation::set_deferred(bool value) { - - deferred_ = value; - // @@protoc_insertion_point(field_set:tensorflow.MemoryLogRawDeallocation.deferred) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2flog_5fmemory_2eproto diff --git a/linux/include/tensorflow/core/framework/log_memory.pb_text-impl.h b/linux/include/tensorflow/core/framework/log_memory.pb_text-impl.h deleted file mode 100755 index 0df28aae1..000000000 --- a/linux/include/tensorflow/core/framework/log_memory.pb_text-impl.h +++ /dev/null @@ -1,68 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_log_memory_proto_IMPL_H_ -#define tensorflow_core_framework_log_memory_proto_IMPL_H_ - -#include "tensorflow/core/framework/allocation_description.pb.h" -#include "tensorflow/core/framework/allocation_description.pb_text-impl.h" -#include "tensorflow/core/framework/log_memory.pb.h" -#include "tensorflow/core/framework/log_memory.pb_text.h" -#include "tensorflow/core/framework/tensor_description.pb.h" -#include "tensorflow/core/framework/tensor_description.pb_text-impl.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb_text-impl.h" -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/framework/types.pb_text-impl.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::MemoryLogStep& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::MemoryLogStep* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::MemoryLogTensorAllocation& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::MemoryLogTensorAllocation* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::MemoryLogTensorDeallocation& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::MemoryLogTensorDeallocation* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::MemoryLogTensorOutput& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::MemoryLogTensorOutput* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::MemoryLogRawAllocation& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::MemoryLogRawAllocation* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::MemoryLogRawDeallocation& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::MemoryLogRawDeallocation* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_log_memory_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/log_memory.pb_text.h b/linux/include/tensorflow/core/framework/log_memory.pb_text.h deleted file mode 100755 index b5c2f47e5..000000000 --- a/linux/include/tensorflow/core/framework/log_memory.pb_text.h +++ /dev/null @@ -1,74 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_log_memory_proto_H_ -#define tensorflow_core_framework_log_memory_proto_H_ - -#include "tensorflow/core/framework/log_memory.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.MemoryLogStep -string ProtoDebugString( - const ::tensorflow::MemoryLogStep& msg); -string ProtoShortDebugString( - const ::tensorflow::MemoryLogStep& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::MemoryLogStep* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.MemoryLogTensorAllocation -string ProtoDebugString( - const ::tensorflow::MemoryLogTensorAllocation& msg); -string ProtoShortDebugString( - const ::tensorflow::MemoryLogTensorAllocation& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::MemoryLogTensorAllocation* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.MemoryLogTensorDeallocation -string ProtoDebugString( - const ::tensorflow::MemoryLogTensorDeallocation& msg); -string ProtoShortDebugString( - const ::tensorflow::MemoryLogTensorDeallocation& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::MemoryLogTensorDeallocation* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.MemoryLogTensorOutput -string ProtoDebugString( - const ::tensorflow::MemoryLogTensorOutput& msg); -string ProtoShortDebugString( - const ::tensorflow::MemoryLogTensorOutput& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::MemoryLogTensorOutput* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.MemoryLogRawAllocation -string ProtoDebugString( - const ::tensorflow::MemoryLogRawAllocation& msg); -string ProtoShortDebugString( - const ::tensorflow::MemoryLogRawAllocation& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::MemoryLogRawAllocation* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.MemoryLogRawDeallocation -string ProtoDebugString( - const ::tensorflow::MemoryLogRawDeallocation& msg); -string ProtoShortDebugString( - const ::tensorflow::MemoryLogRawDeallocation& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::MemoryLogRawDeallocation* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_log_memory_proto_H_ diff --git a/linux/include/tensorflow/core/framework/node_def.pb.h b/linux/include/tensorflow/core/framework/node_def.pb.h deleted file mode 100755 index f17231e6b..000000000 --- a/linux/include/tensorflow/core/framework/node_def.pb.h +++ /dev/null @@ -1,645 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/node_def.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include "tensorflow/core/framework/attr_value.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[2]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto -namespace tensorflow { -class NodeDef; -class NodeDefDefaultTypeInternal; -extern NodeDefDefaultTypeInternal _NodeDef_default_instance_; -class NodeDef_AttrEntry_DoNotUse; -class NodeDef_AttrEntry_DoNotUseDefaultTypeInternal; -extern NodeDef_AttrEntry_DoNotUseDefaultTypeInternal _NodeDef_AttrEntry_DoNotUse_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::NodeDef* Arena::CreateMaybeMessage<::tensorflow::NodeDef>(Arena*); -template<> ::tensorflow::NodeDef_AttrEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::NodeDef_AttrEntry_DoNotUse>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class NodeDef_AttrEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: - typedef ::google::protobuf::internal::MapEntry SuperType; - NodeDef_AttrEntry_DoNotUse(); - NodeDef_AttrEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const NodeDef_AttrEntry_DoNotUse& other); - static const NodeDef_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_NodeDef_AttrEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class NodeDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.NodeDef) */ { - public: - NodeDef(); - virtual ~NodeDef(); - - NodeDef(const NodeDef& from); - - inline NodeDef& operator=(const NodeDef& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeDef(NodeDef&& from) noexcept - : NodeDef() { - *this = ::std::move(from); - } - - inline NodeDef& operator=(NodeDef&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const NodeDef& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeDef* internal_default_instance() { - return reinterpret_cast( - &_NodeDef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(NodeDef* other); - void Swap(NodeDef* other); - friend void swap(NodeDef& a, NodeDef& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeDef* New() const final { - return CreateMaybeMessage(NULL); - } - - NodeDef* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const NodeDef& from); - void MergeFrom(const NodeDef& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(NodeDef* other); - protected: - explicit NodeDef(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - - // accessors ------------------------------------------------------- - - // repeated string input = 3; - int input_size() const; - void clear_input(); - static const int kInputFieldNumber = 3; - const ::std::string& input(int index) const; - ::std::string* mutable_input(int index); - void set_input(int index, const ::std::string& value); - #if LANG_CXX11 - void set_input(int index, ::std::string&& value); - #endif - void set_input(int index, const char* value); - void set_input(int index, const char* value, size_t size); - ::std::string* add_input(); - void add_input(const ::std::string& value); - #if LANG_CXX11 - void add_input(::std::string&& value); - #endif - void add_input(const char* value); - void add_input(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& input() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_input(); - - // map attr = 5; - int attr_size() const; - void clear_attr(); - static const int kAttrFieldNumber = 5; - const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& - attr() const; - ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* - mutable_attr(); - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // string op = 2; - void clear_op(); - static const int kOpFieldNumber = 2; - const ::std::string& op() const; - void set_op(const ::std::string& value); - #if LANG_CXX11 - void set_op(::std::string&& value); - #endif - void set_op(const char* value); - void set_op(const char* value, size_t size); - ::std::string* mutable_op(); - ::std::string* release_op(); - void set_allocated_op(::std::string* op); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_op(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_op( - ::std::string* op); - - // string device = 4; - void clear_device(); - static const int kDeviceFieldNumber = 4; - const ::std::string& device() const; - void set_device(const ::std::string& value); - #if LANG_CXX11 - void set_device(::std::string&& value); - #endif - void set_device(const char* value); - void set_device(const char* value, size_t size); - ::std::string* mutable_device(); - ::std::string* release_device(); - void set_allocated_device(::std::string* device); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_device(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_device( - ::std::string* device); - - // @@protoc_insertion_point(class_scope:tensorflow.NodeDef) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::std::string> input_; - ::google::protobuf::internal::MapField< - NodeDef_AttrEntry_DoNotUse, - ::std::string, ::tensorflow::AttrValue, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > attr_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr op_; - ::google::protobuf::internal::ArenaStringPtr device_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// NodeDef - -// string name = 1; -inline void NodeDef::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& NodeDef::name() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeDef.name) - return name_.Get(); -} -inline void NodeDef::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.NodeDef.name) -} -#if LANG_CXX11 -inline void NodeDef::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.NodeDef.name) -} -#endif -inline void NodeDef::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.name) -} -inline void NodeDef::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.name) -} -inline ::std::string* NodeDef::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* NodeDef::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.NodeDef.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void NodeDef::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.name) -} -inline ::std::string* NodeDef::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void NodeDef::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NodeDef.name) -} - -// string op = 2; -inline void NodeDef::clear_op() { - op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& NodeDef::op() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeDef.op) - return op_.Get(); -} -inline void NodeDef::set_op(const ::std::string& value) { - - op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.NodeDef.op) -} -#if LANG_CXX11 -inline void NodeDef::set_op(::std::string&& value) { - - op_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.NodeDef.op) -} -#endif -inline void NodeDef::set_op(const char* value) { - GOOGLE_DCHECK(value != NULL); - - op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.op) -} -inline void NodeDef::set_op(const char* value, - size_t size) { - - op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.op) -} -inline ::std::string* NodeDef::mutable_op() { - - // @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.op) - return op_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* NodeDef::release_op() { - // @@protoc_insertion_point(field_release:tensorflow.NodeDef.op) - - return op_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void NodeDef::set_allocated_op(::std::string* op) { - if (op != NULL) { - - } else { - - } - op_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.op) -} -inline ::std::string* NodeDef::unsafe_arena_release_op() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.op) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return op_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void NodeDef::unsafe_arena_set_allocated_op( - ::std::string* op) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (op != NULL) { - - } else { - - } - op_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - op, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NodeDef.op) -} - -// repeated string input = 3; -inline int NodeDef::input_size() const { - return input_.size(); -} -inline void NodeDef::clear_input() { - input_.Clear(); -} -inline const ::std::string& NodeDef::input(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.NodeDef.input) - return input_.Get(index); -} -inline ::std::string* NodeDef::mutable_input(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.input) - return input_.Mutable(index); -} -inline void NodeDef::set_input(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:tensorflow.NodeDef.input) - input_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void NodeDef::set_input(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:tensorflow.NodeDef.input) - input_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void NodeDef::set_input(int index, const char* value) { - GOOGLE_DCHECK(value != NULL); - input_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.input) -} -inline void NodeDef::set_input(int index, const char* value, size_t size) { - input_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.input) -} -inline ::std::string* NodeDef::add_input() { - // @@protoc_insertion_point(field_add_mutable:tensorflow.NodeDef.input) - return input_.Add(); -} -inline void NodeDef::add_input(const ::std::string& value) { - input_.Add()->assign(value); - // @@protoc_insertion_point(field_add:tensorflow.NodeDef.input) -} -#if LANG_CXX11 -inline void NodeDef::add_input(::std::string&& value) { - input_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:tensorflow.NodeDef.input) -} -#endif -inline void NodeDef::add_input(const char* value) { - GOOGLE_DCHECK(value != NULL); - input_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tensorflow.NodeDef.input) -} -inline void NodeDef::add_input(const char* value, size_t size) { - input_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tensorflow.NodeDef.input) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -NodeDef::input() const { - // @@protoc_insertion_point(field_list:tensorflow.NodeDef.input) - return input_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -NodeDef::mutable_input() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.NodeDef.input) - return &input_; -} - -// string device = 4; -inline void NodeDef::clear_device() { - device_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& NodeDef::device() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeDef.device) - return device_.Get(); -} -inline void NodeDef::set_device(const ::std::string& value) { - - device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.NodeDef.device) -} -#if LANG_CXX11 -inline void NodeDef::set_device(::std::string&& value) { - - device_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.NodeDef.device) -} -#endif -inline void NodeDef::set_device(const char* value) { - GOOGLE_DCHECK(value != NULL); - - device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.NodeDef.device) -} -inline void NodeDef::set_device(const char* value, - size_t size) { - - device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.NodeDef.device) -} -inline ::std::string* NodeDef::mutable_device() { - - // @@protoc_insertion_point(field_mutable:tensorflow.NodeDef.device) - return device_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* NodeDef::release_device() { - // @@protoc_insertion_point(field_release:tensorflow.NodeDef.device) - - return device_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void NodeDef::set_allocated_device(::std::string* device) { - if (device != NULL) { - - } else { - - } - device_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.NodeDef.device) -} -inline ::std::string* NodeDef::unsafe_arena_release_device() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeDef.device) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return device_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void NodeDef::unsafe_arena_set_allocated_device( - ::std::string* device) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (device != NULL) { - - } else { - - } - device_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - device, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NodeDef.device) -} - -// map attr = 5; -inline int NodeDef::attr_size() const { - return attr_.size(); -} -inline const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& -NodeDef::attr() const { - // @@protoc_insertion_point(field_map:tensorflow.NodeDef.attr) - return attr_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* -NodeDef::mutable_attr() { - // @@protoc_insertion_point(field_mutable_map:tensorflow.NodeDef.attr) - return attr_.MutableMap(); -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fnode_5fdef_2eproto diff --git a/linux/include/tensorflow/core/framework/node_def.pb_text-impl.h b/linux/include/tensorflow/core/framework/node_def.pb_text-impl.h deleted file mode 100755 index a4c5f6f33..000000000 --- a/linux/include/tensorflow/core/framework/node_def.pb_text-impl.h +++ /dev/null @@ -1,35 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_node_def_proto_IMPL_H_ -#define tensorflow_core_framework_node_def_proto_IMPL_H_ - -#include "tensorflow/core/framework/attr_value.pb.h" -#include "tensorflow/core/framework/attr_value.pb_text-impl.h" -#include "tensorflow/core/framework/node_def.pb.h" -#include "tensorflow/core/framework/node_def.pb_text.h" -#include "tensorflow/core/framework/resource_handle.pb.h" -#include "tensorflow/core/framework/resource_handle.pb_text-impl.h" -#include "tensorflow/core/framework/tensor.pb.h" -#include "tensorflow/core/framework/tensor.pb_text-impl.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb_text-impl.h" -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/framework/types.pb_text-impl.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::NodeDef& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::NodeDef* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_node_def_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/node_def.pb_text.h b/linux/include/tensorflow/core/framework/node_def.pb_text.h deleted file mode 100755 index c1426f834..000000000 --- a/linux/include/tensorflow/core/framework/node_def.pb_text.h +++ /dev/null @@ -1,24 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_node_def_proto_H_ -#define tensorflow_core_framework_node_def_proto_H_ - -#include "tensorflow/core/framework/node_def.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.NodeDef -string ProtoDebugString( - const ::tensorflow::NodeDef& msg); -string ProtoShortDebugString( - const ::tensorflow::NodeDef& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::NodeDef* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_node_def_proto_H_ diff --git a/linux/include/tensorflow/core/framework/op_def.pb.h b/linux/include/tensorflow/core/framework/op_def.pb.h deleted file mode 100755 index 0bf25d5e7..000000000 --- a/linux/include/tensorflow/core/framework/op_def.pb.h +++ /dev/null @@ -1,2461 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/op_def.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "tensorflow/core/framework/attr_value.pb.h" -#include "tensorflow/core/framework/types.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[5]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto -namespace tensorflow { -class OpDef; -class OpDefDefaultTypeInternal; -extern OpDefDefaultTypeInternal _OpDef_default_instance_; -class OpDef_ArgDef; -class OpDef_ArgDefDefaultTypeInternal; -extern OpDef_ArgDefDefaultTypeInternal _OpDef_ArgDef_default_instance_; -class OpDef_AttrDef; -class OpDef_AttrDefDefaultTypeInternal; -extern OpDef_AttrDefDefaultTypeInternal _OpDef_AttrDef_default_instance_; -class OpDeprecation; -class OpDeprecationDefaultTypeInternal; -extern OpDeprecationDefaultTypeInternal _OpDeprecation_default_instance_; -class OpList; -class OpListDefaultTypeInternal; -extern OpListDefaultTypeInternal _OpList_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::OpDef* Arena::CreateMaybeMessage<::tensorflow::OpDef>(Arena*); -template<> ::tensorflow::OpDef_ArgDef* Arena::CreateMaybeMessage<::tensorflow::OpDef_ArgDef>(Arena*); -template<> ::tensorflow::OpDef_AttrDef* Arena::CreateMaybeMessage<::tensorflow::OpDef_AttrDef>(Arena*); -template<> ::tensorflow::OpDeprecation* Arena::CreateMaybeMessage<::tensorflow::OpDeprecation>(Arena*); -template<> ::tensorflow::OpList* Arena::CreateMaybeMessage<::tensorflow::OpList>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class OpDef_ArgDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.OpDef.ArgDef) */ { - public: - OpDef_ArgDef(); - virtual ~OpDef_ArgDef(); - - OpDef_ArgDef(const OpDef_ArgDef& from); - - inline OpDef_ArgDef& operator=(const OpDef_ArgDef& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - OpDef_ArgDef(OpDef_ArgDef&& from) noexcept - : OpDef_ArgDef() { - *this = ::std::move(from); - } - - inline OpDef_ArgDef& operator=(OpDef_ArgDef&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const OpDef_ArgDef& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const OpDef_ArgDef* internal_default_instance() { - return reinterpret_cast( - &_OpDef_ArgDef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(OpDef_ArgDef* other); - void Swap(OpDef_ArgDef* other); - friend void swap(OpDef_ArgDef& a, OpDef_ArgDef& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline OpDef_ArgDef* New() const final { - return CreateMaybeMessage(NULL); - } - - OpDef_ArgDef* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const OpDef_ArgDef& from); - void MergeFrom(const OpDef_ArgDef& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OpDef_ArgDef* other); - protected: - explicit OpDef_ArgDef(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // string description = 2; - void clear_description(); - static const int kDescriptionFieldNumber = 2; - const ::std::string& description() const; - void set_description(const ::std::string& value); - #if LANG_CXX11 - void set_description(::std::string&& value); - #endif - void set_description(const char* value); - void set_description(const char* value, size_t size); - ::std::string* mutable_description(); - ::std::string* release_description(); - void set_allocated_description(::std::string* description); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_description(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_description( - ::std::string* description); - - // string type_attr = 4; - void clear_type_attr(); - static const int kTypeAttrFieldNumber = 4; - const ::std::string& type_attr() const; - void set_type_attr(const ::std::string& value); - #if LANG_CXX11 - void set_type_attr(::std::string&& value); - #endif - void set_type_attr(const char* value); - void set_type_attr(const char* value, size_t size); - ::std::string* mutable_type_attr(); - ::std::string* release_type_attr(); - void set_allocated_type_attr(::std::string* type_attr); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_type_attr(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_type_attr( - ::std::string* type_attr); - - // string number_attr = 5; - void clear_number_attr(); - static const int kNumberAttrFieldNumber = 5; - const ::std::string& number_attr() const; - void set_number_attr(const ::std::string& value); - #if LANG_CXX11 - void set_number_attr(::std::string&& value); - #endif - void set_number_attr(const char* value); - void set_number_attr(const char* value, size_t size); - ::std::string* mutable_number_attr(); - ::std::string* release_number_attr(); - void set_allocated_number_attr(::std::string* number_attr); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_number_attr(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_number_attr( - ::std::string* number_attr); - - // string type_list_attr = 6; - void clear_type_list_attr(); - static const int kTypeListAttrFieldNumber = 6; - const ::std::string& type_list_attr() const; - void set_type_list_attr(const ::std::string& value); - #if LANG_CXX11 - void set_type_list_attr(::std::string&& value); - #endif - void set_type_list_attr(const char* value); - void set_type_list_attr(const char* value, size_t size); - ::std::string* mutable_type_list_attr(); - ::std::string* release_type_list_attr(); - void set_allocated_type_list_attr(::std::string* type_list_attr); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_type_list_attr(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_type_list_attr( - ::std::string* type_list_attr); - - // .tensorflow.DataType type = 3; - void clear_type(); - static const int kTypeFieldNumber = 3; - ::tensorflow::DataType type() const; - void set_type(::tensorflow::DataType value); - - // bool is_ref = 16; - void clear_is_ref(); - static const int kIsRefFieldNumber = 16; - bool is_ref() const; - void set_is_ref(bool value); - - // @@protoc_insertion_point(class_scope:tensorflow.OpDef.ArgDef) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr description_; - ::google::protobuf::internal::ArenaStringPtr type_attr_; - ::google::protobuf::internal::ArenaStringPtr number_attr_; - ::google::protobuf::internal::ArenaStringPtr type_list_attr_; - int type_; - bool is_ref_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class OpDef_AttrDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.OpDef.AttrDef) */ { - public: - OpDef_AttrDef(); - virtual ~OpDef_AttrDef(); - - OpDef_AttrDef(const OpDef_AttrDef& from); - - inline OpDef_AttrDef& operator=(const OpDef_AttrDef& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - OpDef_AttrDef(OpDef_AttrDef&& from) noexcept - : OpDef_AttrDef() { - *this = ::std::move(from); - } - - inline OpDef_AttrDef& operator=(OpDef_AttrDef&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const OpDef_AttrDef& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const OpDef_AttrDef* internal_default_instance() { - return reinterpret_cast( - &_OpDef_AttrDef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(OpDef_AttrDef* other); - void Swap(OpDef_AttrDef* other); - friend void swap(OpDef_AttrDef& a, OpDef_AttrDef& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline OpDef_AttrDef* New() const final { - return CreateMaybeMessage(NULL); - } - - OpDef_AttrDef* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const OpDef_AttrDef& from); - void MergeFrom(const OpDef_AttrDef& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OpDef_AttrDef* other); - protected: - explicit OpDef_AttrDef(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // string type = 2; - void clear_type(); - static const int kTypeFieldNumber = 2; - const ::std::string& type() const; - void set_type(const ::std::string& value); - #if LANG_CXX11 - void set_type(::std::string&& value); - #endif - void set_type(const char* value); - void set_type(const char* value, size_t size); - ::std::string* mutable_type(); - ::std::string* release_type(); - void set_allocated_type(::std::string* type); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_type(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_type( - ::std::string* type); - - // string description = 4; - void clear_description(); - static const int kDescriptionFieldNumber = 4; - const ::std::string& description() const; - void set_description(const ::std::string& value); - #if LANG_CXX11 - void set_description(::std::string&& value); - #endif - void set_description(const char* value); - void set_description(const char* value, size_t size); - ::std::string* mutable_description(); - ::std::string* release_description(); - void set_allocated_description(::std::string* description); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_description(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_description( - ::std::string* description); - - // .tensorflow.AttrValue default_value = 3; - bool has_default_value() const; - void clear_default_value(); - static const int kDefaultValueFieldNumber = 3; - private: - const ::tensorflow::AttrValue& _internal_default_value() const; - public: - const ::tensorflow::AttrValue& default_value() const; - ::tensorflow::AttrValue* release_default_value(); - ::tensorflow::AttrValue* mutable_default_value(); - void set_allocated_default_value(::tensorflow::AttrValue* default_value); - void unsafe_arena_set_allocated_default_value( - ::tensorflow::AttrValue* default_value); - ::tensorflow::AttrValue* unsafe_arena_release_default_value(); - - // .tensorflow.AttrValue allowed_values = 7; - bool has_allowed_values() const; - void clear_allowed_values(); - static const int kAllowedValuesFieldNumber = 7; - private: - const ::tensorflow::AttrValue& _internal_allowed_values() const; - public: - const ::tensorflow::AttrValue& allowed_values() const; - ::tensorflow::AttrValue* release_allowed_values(); - ::tensorflow::AttrValue* mutable_allowed_values(); - void set_allocated_allowed_values(::tensorflow::AttrValue* allowed_values); - void unsafe_arena_set_allocated_allowed_values( - ::tensorflow::AttrValue* allowed_values); - ::tensorflow::AttrValue* unsafe_arena_release_allowed_values(); - - // int64 minimum = 6; - void clear_minimum(); - static const int kMinimumFieldNumber = 6; - ::google::protobuf::int64 minimum() const; - void set_minimum(::google::protobuf::int64 value); - - // bool has_minimum = 5; - void clear_has_minimum(); - static const int kHasMinimumFieldNumber = 5; - bool has_minimum() const; - void set_has_minimum(bool value); - - // @@protoc_insertion_point(class_scope:tensorflow.OpDef.AttrDef) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr type_; - ::google::protobuf::internal::ArenaStringPtr description_; - ::tensorflow::AttrValue* default_value_; - ::tensorflow::AttrValue* allowed_values_; - ::google::protobuf::int64 minimum_; - bool has_minimum_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class OpDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.OpDef) */ { - public: - OpDef(); - virtual ~OpDef(); - - OpDef(const OpDef& from); - - inline OpDef& operator=(const OpDef& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - OpDef(OpDef&& from) noexcept - : OpDef() { - *this = ::std::move(from); - } - - inline OpDef& operator=(OpDef&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const OpDef& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const OpDef* internal_default_instance() { - return reinterpret_cast( - &_OpDef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void UnsafeArenaSwap(OpDef* other); - void Swap(OpDef* other); - friend void swap(OpDef& a, OpDef& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline OpDef* New() const final { - return CreateMaybeMessage(NULL); - } - - OpDef* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const OpDef& from); - void MergeFrom(const OpDef& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OpDef* other); - protected: - explicit OpDef(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef OpDef_ArgDef ArgDef; - typedef OpDef_AttrDef AttrDef; - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.OpDef.ArgDef input_arg = 2; - int input_arg_size() const; - void clear_input_arg(); - static const int kInputArgFieldNumber = 2; - ::tensorflow::OpDef_ArgDef* mutable_input_arg(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef >* - mutable_input_arg(); - const ::tensorflow::OpDef_ArgDef& input_arg(int index) const; - ::tensorflow::OpDef_ArgDef* add_input_arg(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef >& - input_arg() const; - - // repeated .tensorflow.OpDef.ArgDef output_arg = 3; - int output_arg_size() const; - void clear_output_arg(); - static const int kOutputArgFieldNumber = 3; - ::tensorflow::OpDef_ArgDef* mutable_output_arg(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef >* - mutable_output_arg(); - const ::tensorflow::OpDef_ArgDef& output_arg(int index) const; - ::tensorflow::OpDef_ArgDef* add_output_arg(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef >& - output_arg() const; - - // repeated .tensorflow.OpDef.AttrDef attr = 4; - int attr_size() const; - void clear_attr(); - static const int kAttrFieldNumber = 4; - ::tensorflow::OpDef_AttrDef* mutable_attr(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_AttrDef >* - mutable_attr(); - const ::tensorflow::OpDef_AttrDef& attr(int index) const; - ::tensorflow::OpDef_AttrDef* add_attr(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_AttrDef >& - attr() const; - - // string name = 1; - void clear_name(); - static const int kNameFieldNumber = 1; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // string summary = 5; - void clear_summary(); - static const int kSummaryFieldNumber = 5; - const ::std::string& summary() const; - void set_summary(const ::std::string& value); - #if LANG_CXX11 - void set_summary(::std::string&& value); - #endif - void set_summary(const char* value); - void set_summary(const char* value, size_t size); - ::std::string* mutable_summary(); - ::std::string* release_summary(); - void set_allocated_summary(::std::string* summary); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_summary(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_summary( - ::std::string* summary); - - // string description = 6; - void clear_description(); - static const int kDescriptionFieldNumber = 6; - const ::std::string& description() const; - void set_description(const ::std::string& value); - #if LANG_CXX11 - void set_description(::std::string&& value); - #endif - void set_description(const char* value); - void set_description(const char* value, size_t size); - ::std::string* mutable_description(); - ::std::string* release_description(); - void set_allocated_description(::std::string* description); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_description(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_description( - ::std::string* description); - - // .tensorflow.OpDeprecation deprecation = 8; - bool has_deprecation() const; - void clear_deprecation(); - static const int kDeprecationFieldNumber = 8; - private: - const ::tensorflow::OpDeprecation& _internal_deprecation() const; - public: - const ::tensorflow::OpDeprecation& deprecation() const; - ::tensorflow::OpDeprecation* release_deprecation(); - ::tensorflow::OpDeprecation* mutable_deprecation(); - void set_allocated_deprecation(::tensorflow::OpDeprecation* deprecation); - void unsafe_arena_set_allocated_deprecation( - ::tensorflow::OpDeprecation* deprecation); - ::tensorflow::OpDeprecation* unsafe_arena_release_deprecation(); - - // bool is_commutative = 18; - void clear_is_commutative(); - static const int kIsCommutativeFieldNumber = 18; - bool is_commutative() const; - void set_is_commutative(bool value); - - // bool is_aggregate = 16; - void clear_is_aggregate(); - static const int kIsAggregateFieldNumber = 16; - bool is_aggregate() const; - void set_is_aggregate(bool value); - - // bool is_stateful = 17; - void clear_is_stateful(); - static const int kIsStatefulFieldNumber = 17; - bool is_stateful() const; - void set_is_stateful(bool value); - - // bool allows_uninitialized_input = 19; - void clear_allows_uninitialized_input(); - static const int kAllowsUninitializedInputFieldNumber = 19; - bool allows_uninitialized_input() const; - void set_allows_uninitialized_input(bool value); - - // @@protoc_insertion_point(class_scope:tensorflow.OpDef) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef > input_arg_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef > output_arg_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_AttrDef > attr_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr summary_; - ::google::protobuf::internal::ArenaStringPtr description_; - ::tensorflow::OpDeprecation* deprecation_; - bool is_commutative_; - bool is_aggregate_; - bool is_stateful_; - bool allows_uninitialized_input_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class OpDeprecation : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.OpDeprecation) */ { - public: - OpDeprecation(); - virtual ~OpDeprecation(); - - OpDeprecation(const OpDeprecation& from); - - inline OpDeprecation& operator=(const OpDeprecation& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - OpDeprecation(OpDeprecation&& from) noexcept - : OpDeprecation() { - *this = ::std::move(from); - } - - inline OpDeprecation& operator=(OpDeprecation&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const OpDeprecation& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const OpDeprecation* internal_default_instance() { - return reinterpret_cast( - &_OpDeprecation_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void UnsafeArenaSwap(OpDeprecation* other); - void Swap(OpDeprecation* other); - friend void swap(OpDeprecation& a, OpDeprecation& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline OpDeprecation* New() const final { - return CreateMaybeMessage(NULL); - } - - OpDeprecation* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const OpDeprecation& from); - void MergeFrom(const OpDeprecation& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OpDeprecation* other); - protected: - explicit OpDeprecation(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string explanation = 2; - void clear_explanation(); - static const int kExplanationFieldNumber = 2; - const ::std::string& explanation() const; - void set_explanation(const ::std::string& value); - #if LANG_CXX11 - void set_explanation(::std::string&& value); - #endif - void set_explanation(const char* value); - void set_explanation(const char* value, size_t size); - ::std::string* mutable_explanation(); - ::std::string* release_explanation(); - void set_allocated_explanation(::std::string* explanation); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_explanation(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_explanation( - ::std::string* explanation); - - // int32 version = 1; - void clear_version(); - static const int kVersionFieldNumber = 1; - ::google::protobuf::int32 version() const; - void set_version(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:tensorflow.OpDeprecation) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr explanation_; - ::google::protobuf::int32 version_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class OpList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.OpList) */ { - public: - OpList(); - virtual ~OpList(); - - OpList(const OpList& from); - - inline OpList& operator=(const OpList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - OpList(OpList&& from) noexcept - : OpList() { - *this = ::std::move(from); - } - - inline OpList& operator=(OpList&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const OpList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const OpList* internal_default_instance() { - return reinterpret_cast( - &_OpList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void UnsafeArenaSwap(OpList* other); - void Swap(OpList* other); - friend void swap(OpList& a, OpList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline OpList* New() const final { - return CreateMaybeMessage(NULL); - } - - OpList* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const OpList& from); - void MergeFrom(const OpList& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OpList* other); - protected: - explicit OpList(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.OpDef op = 1; - int op_size() const; - void clear_op(); - static const int kOpFieldNumber = 1; - ::tensorflow::OpDef* mutable_op(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef >* - mutable_op(); - const ::tensorflow::OpDef& op(int index) const; - ::tensorflow::OpDef* add_op(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef >& - op() const; - - // @@protoc_insertion_point(class_scope:tensorflow.OpList) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef > op_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// OpDef_ArgDef - -// string name = 1; -inline void OpDef_ArgDef::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& OpDef_ArgDef::name() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.name) - return name_.Get(); -} -inline void OpDef_ArgDef::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.name) -} -#if LANG_CXX11 -inline void OpDef_ArgDef::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.ArgDef.name) -} -#endif -inline void OpDef_ArgDef::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.ArgDef.name) -} -inline void OpDef_ArgDef::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.ArgDef.name) -} -inline ::std::string* OpDef_ArgDef::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.ArgDef.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* OpDef_ArgDef::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.ArgDef.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void OpDef_ArgDef::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.name) -} -inline ::std::string* OpDef_ArgDef::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void OpDef_ArgDef::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.name) -} - -// string description = 2; -inline void OpDef_ArgDef::clear_description() { - description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& OpDef_ArgDef::description() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.description) - return description_.Get(); -} -inline void OpDef_ArgDef::set_description(const ::std::string& value) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.description) -} -#if LANG_CXX11 -inline void OpDef_ArgDef::set_description(::std::string&& value) { - - description_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.ArgDef.description) -} -#endif -inline void OpDef_ArgDef::set_description(const char* value) { - GOOGLE_DCHECK(value != NULL); - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.ArgDef.description) -} -inline void OpDef_ArgDef::set_description(const char* value, - size_t size) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.ArgDef.description) -} -inline ::std::string* OpDef_ArgDef::mutable_description() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.ArgDef.description) - return description_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* OpDef_ArgDef::release_description() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.ArgDef.description) - - return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void OpDef_ArgDef::set_allocated_description(::std::string* description) { - if (description != NULL) { - - } else { - - } - description_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.description) -} -inline ::std::string* OpDef_ArgDef::unsafe_arena_release_description() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.description) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void OpDef_ArgDef::unsafe_arena_set_allocated_description( - ::std::string* description) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (description != NULL) { - - } else { - - } - description_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - description, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.description) -} - -// .tensorflow.DataType type = 3; -inline void OpDef_ArgDef::clear_type() { - type_ = 0; -} -inline ::tensorflow::DataType OpDef_ArgDef::type() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.type) - return static_cast< ::tensorflow::DataType >(type_); -} -inline void OpDef_ArgDef::set_type(::tensorflow::DataType value) { - - type_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.type) -} - -// string type_attr = 4; -inline void OpDef_ArgDef::clear_type_attr() { - type_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& OpDef_ArgDef::type_attr() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.type_attr) - return type_attr_.Get(); -} -inline void OpDef_ArgDef::set_type_attr(const ::std::string& value) { - - type_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.type_attr) -} -#if LANG_CXX11 -inline void OpDef_ArgDef::set_type_attr(::std::string&& value) { - - type_attr_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.ArgDef.type_attr) -} -#endif -inline void OpDef_ArgDef::set_type_attr(const char* value) { - GOOGLE_DCHECK(value != NULL); - - type_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.ArgDef.type_attr) -} -inline void OpDef_ArgDef::set_type_attr(const char* value, - size_t size) { - - type_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.ArgDef.type_attr) -} -inline ::std::string* OpDef_ArgDef::mutable_type_attr() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.ArgDef.type_attr) - return type_attr_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* OpDef_ArgDef::release_type_attr() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.ArgDef.type_attr) - - return type_attr_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void OpDef_ArgDef::set_allocated_type_attr(::std::string* type_attr) { - if (type_attr != NULL) { - - } else { - - } - type_attr_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_attr, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.type_attr) -} -inline ::std::string* OpDef_ArgDef::unsafe_arena_release_type_attr() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.type_attr) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return type_attr_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void OpDef_ArgDef::unsafe_arena_set_allocated_type_attr( - ::std::string* type_attr) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (type_attr != NULL) { - - } else { - - } - type_attr_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - type_attr, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.type_attr) -} - -// string number_attr = 5; -inline void OpDef_ArgDef::clear_number_attr() { - number_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& OpDef_ArgDef::number_attr() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.number_attr) - return number_attr_.Get(); -} -inline void OpDef_ArgDef::set_number_attr(const ::std::string& value) { - - number_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.number_attr) -} -#if LANG_CXX11 -inline void OpDef_ArgDef::set_number_attr(::std::string&& value) { - - number_attr_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.ArgDef.number_attr) -} -#endif -inline void OpDef_ArgDef::set_number_attr(const char* value) { - GOOGLE_DCHECK(value != NULL); - - number_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.ArgDef.number_attr) -} -inline void OpDef_ArgDef::set_number_attr(const char* value, - size_t size) { - - number_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.ArgDef.number_attr) -} -inline ::std::string* OpDef_ArgDef::mutable_number_attr() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.ArgDef.number_attr) - return number_attr_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* OpDef_ArgDef::release_number_attr() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.ArgDef.number_attr) - - return number_attr_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void OpDef_ArgDef::set_allocated_number_attr(::std::string* number_attr) { - if (number_attr != NULL) { - - } else { - - } - number_attr_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), number_attr, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.number_attr) -} -inline ::std::string* OpDef_ArgDef::unsafe_arena_release_number_attr() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.number_attr) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return number_attr_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void OpDef_ArgDef::unsafe_arena_set_allocated_number_attr( - ::std::string* number_attr) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (number_attr != NULL) { - - } else { - - } - number_attr_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - number_attr, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.number_attr) -} - -// string type_list_attr = 6; -inline void OpDef_ArgDef::clear_type_list_attr() { - type_list_attr_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& OpDef_ArgDef::type_list_attr() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.type_list_attr) - return type_list_attr_.Get(); -} -inline void OpDef_ArgDef::set_type_list_attr(const ::std::string& value) { - - type_list_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.type_list_attr) -} -#if LANG_CXX11 -inline void OpDef_ArgDef::set_type_list_attr(::std::string&& value) { - - type_list_attr_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.ArgDef.type_list_attr) -} -#endif -inline void OpDef_ArgDef::set_type_list_attr(const char* value) { - GOOGLE_DCHECK(value != NULL); - - type_list_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.ArgDef.type_list_attr) -} -inline void OpDef_ArgDef::set_type_list_attr(const char* value, - size_t size) { - - type_list_attr_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.ArgDef.type_list_attr) -} -inline ::std::string* OpDef_ArgDef::mutable_type_list_attr() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.ArgDef.type_list_attr) - return type_list_attr_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* OpDef_ArgDef::release_type_list_attr() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.ArgDef.type_list_attr) - - return type_list_attr_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void OpDef_ArgDef::set_allocated_type_list_attr(::std::string* type_list_attr) { - if (type_list_attr != NULL) { - - } else { - - } - type_list_attr_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_list_attr, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.ArgDef.type_list_attr) -} -inline ::std::string* OpDef_ArgDef::unsafe_arena_release_type_list_attr() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.ArgDef.type_list_attr) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return type_list_attr_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void OpDef_ArgDef::unsafe_arena_set_allocated_type_list_attr( - ::std::string* type_list_attr) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (type_list_attr != NULL) { - - } else { - - } - type_list_attr_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - type_list_attr, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.ArgDef.type_list_attr) -} - -// bool is_ref = 16; -inline void OpDef_ArgDef::clear_is_ref() { - is_ref_ = false; -} -inline bool OpDef_ArgDef::is_ref() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.ArgDef.is_ref) - return is_ref_; -} -inline void OpDef_ArgDef::set_is_ref(bool value) { - - is_ref_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpDef.ArgDef.is_ref) -} - -// ------------------------------------------------------------------- - -// OpDef_AttrDef - -// string name = 1; -inline void OpDef_AttrDef::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& OpDef_AttrDef::name() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.name) - return name_.Get(); -} -inline void OpDef_AttrDef::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.name) -} -#if LANG_CXX11 -inline void OpDef_AttrDef::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.AttrDef.name) -} -#endif -inline void OpDef_AttrDef::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.AttrDef.name) -} -inline void OpDef_AttrDef::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.AttrDef.name) -} -inline ::std::string* OpDef_AttrDef::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.AttrDef.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* OpDef_AttrDef::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void OpDef_AttrDef::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.name) -} -inline ::std::string* OpDef_AttrDef::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void OpDef_AttrDef::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.AttrDef.name) -} - -// string type = 2; -inline void OpDef_AttrDef::clear_type() { - type_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& OpDef_AttrDef::type() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.type) - return type_.Get(); -} -inline void OpDef_AttrDef::set_type(const ::std::string& value) { - - type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.type) -} -#if LANG_CXX11 -inline void OpDef_AttrDef::set_type(::std::string&& value) { - - type_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.AttrDef.type) -} -#endif -inline void OpDef_AttrDef::set_type(const char* value) { - GOOGLE_DCHECK(value != NULL); - - type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.AttrDef.type) -} -inline void OpDef_AttrDef::set_type(const char* value, - size_t size) { - - type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.AttrDef.type) -} -inline ::std::string* OpDef_AttrDef::mutable_type() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.AttrDef.type) - return type_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* OpDef_AttrDef::release_type() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.type) - - return type_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void OpDef_AttrDef::set_allocated_type(::std::string* type) { - if (type != NULL) { - - } else { - - } - type_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.type) -} -inline ::std::string* OpDef_AttrDef::unsafe_arena_release_type() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.type) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return type_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void OpDef_AttrDef::unsafe_arena_set_allocated_type( - ::std::string* type) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (type != NULL) { - - } else { - - } - type_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - type, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.AttrDef.type) -} - -// .tensorflow.AttrValue default_value = 3; -inline bool OpDef_AttrDef::has_default_value() const { - return this != internal_default_instance() && default_value_ != NULL; -} -inline const ::tensorflow::AttrValue& OpDef_AttrDef::_internal_default_value() const { - return *default_value_; -} -inline const ::tensorflow::AttrValue& OpDef_AttrDef::default_value() const { - const ::tensorflow::AttrValue* p = default_value_; - // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.default_value) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_AttrValue_default_instance_); -} -inline ::tensorflow::AttrValue* OpDef_AttrDef::release_default_value() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.default_value) - - ::tensorflow::AttrValue* temp = default_value_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - default_value_ = NULL; - return temp; -} -inline ::tensorflow::AttrValue* OpDef_AttrDef::unsafe_arena_release_default_value() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.default_value) - - ::tensorflow::AttrValue* temp = default_value_; - default_value_ = NULL; - return temp; -} -inline ::tensorflow::AttrValue* OpDef_AttrDef::mutable_default_value() { - - if (default_value_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::AttrValue>(GetArenaNoVirtual()); - default_value_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.AttrDef.default_value) - return default_value_; -} -inline void OpDef_AttrDef::set_allocated_default_value(::tensorflow::AttrValue* default_value) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(default_value_); - } - if (default_value) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(default_value)->GetArena(); - if (message_arena != submessage_arena) { - default_value = ::google::protobuf::internal::GetOwnedMessage( - message_arena, default_value, submessage_arena); - } - - } else { - - } - default_value_ = default_value; - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.default_value) -} - -// string description = 4; -inline void OpDef_AttrDef::clear_description() { - description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& OpDef_AttrDef::description() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.description) - return description_.Get(); -} -inline void OpDef_AttrDef::set_description(const ::std::string& value) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.description) -} -#if LANG_CXX11 -inline void OpDef_AttrDef::set_description(::std::string&& value) { - - description_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.AttrDef.description) -} -#endif -inline void OpDef_AttrDef::set_description(const char* value) { - GOOGLE_DCHECK(value != NULL); - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.AttrDef.description) -} -inline void OpDef_AttrDef::set_description(const char* value, - size_t size) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.AttrDef.description) -} -inline ::std::string* OpDef_AttrDef::mutable_description() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.AttrDef.description) - return description_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* OpDef_AttrDef::release_description() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.description) - - return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void OpDef_AttrDef::set_allocated_description(::std::string* description) { - if (description != NULL) { - - } else { - - } - description_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.description) -} -inline ::std::string* OpDef_AttrDef::unsafe_arena_release_description() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.description) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void OpDef_AttrDef::unsafe_arena_set_allocated_description( - ::std::string* description) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (description != NULL) { - - } else { - - } - description_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - description, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.AttrDef.description) -} - -// bool has_minimum = 5; -inline void OpDef_AttrDef::clear_has_minimum() { - has_minimum_ = false; -} -inline bool OpDef_AttrDef::has_minimum() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.has_minimum) - return has_minimum_; -} -inline void OpDef_AttrDef::set_has_minimum(bool value) { - - has_minimum_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.has_minimum) -} - -// int64 minimum = 6; -inline void OpDef_AttrDef::clear_minimum() { - minimum_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 OpDef_AttrDef::minimum() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.minimum) - return minimum_; -} -inline void OpDef_AttrDef::set_minimum(::google::protobuf::int64 value) { - - minimum_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpDef.AttrDef.minimum) -} - -// .tensorflow.AttrValue allowed_values = 7; -inline bool OpDef_AttrDef::has_allowed_values() const { - return this != internal_default_instance() && allowed_values_ != NULL; -} -inline const ::tensorflow::AttrValue& OpDef_AttrDef::_internal_allowed_values() const { - return *allowed_values_; -} -inline const ::tensorflow::AttrValue& OpDef_AttrDef::allowed_values() const { - const ::tensorflow::AttrValue* p = allowed_values_; - // @@protoc_insertion_point(field_get:tensorflow.OpDef.AttrDef.allowed_values) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_AttrValue_default_instance_); -} -inline ::tensorflow::AttrValue* OpDef_AttrDef::release_allowed_values() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.AttrDef.allowed_values) - - ::tensorflow::AttrValue* temp = allowed_values_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - allowed_values_ = NULL; - return temp; -} -inline ::tensorflow::AttrValue* OpDef_AttrDef::unsafe_arena_release_allowed_values() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.AttrDef.allowed_values) - - ::tensorflow::AttrValue* temp = allowed_values_; - allowed_values_ = NULL; - return temp; -} -inline ::tensorflow::AttrValue* OpDef_AttrDef::mutable_allowed_values() { - - if (allowed_values_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::AttrValue>(GetArenaNoVirtual()); - allowed_values_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.AttrDef.allowed_values) - return allowed_values_; -} -inline void OpDef_AttrDef::set_allocated_allowed_values(::tensorflow::AttrValue* allowed_values) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(allowed_values_); - } - if (allowed_values) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(allowed_values)->GetArena(); - if (message_arena != submessage_arena) { - allowed_values = ::google::protobuf::internal::GetOwnedMessage( - message_arena, allowed_values, submessage_arena); - } - - } else { - - } - allowed_values_ = allowed_values; - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.AttrDef.allowed_values) -} - -// ------------------------------------------------------------------- - -// OpDef - -// string name = 1; -inline void OpDef::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& OpDef::name() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.name) - return name_.Get(); -} -inline void OpDef::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.name) -} -#if LANG_CXX11 -inline void OpDef::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.name) -} -#endif -inline void OpDef::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.name) -} -inline void OpDef::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.name) -} -inline ::std::string* OpDef::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* OpDef::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void OpDef::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.name) -} -inline ::std::string* OpDef::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void OpDef::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.name) -} - -// repeated .tensorflow.OpDef.ArgDef input_arg = 2; -inline int OpDef::input_arg_size() const { - return input_arg_.size(); -} -inline void OpDef::clear_input_arg() { - input_arg_.Clear(); -} -inline ::tensorflow::OpDef_ArgDef* OpDef::mutable_input_arg(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.input_arg) - return input_arg_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef >* -OpDef::mutable_input_arg() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.OpDef.input_arg) - return &input_arg_; -} -inline const ::tensorflow::OpDef_ArgDef& OpDef::input_arg(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.input_arg) - return input_arg_.Get(index); -} -inline ::tensorflow::OpDef_ArgDef* OpDef::add_input_arg() { - // @@protoc_insertion_point(field_add:tensorflow.OpDef.input_arg) - return input_arg_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef >& -OpDef::input_arg() const { - // @@protoc_insertion_point(field_list:tensorflow.OpDef.input_arg) - return input_arg_; -} - -// repeated .tensorflow.OpDef.ArgDef output_arg = 3; -inline int OpDef::output_arg_size() const { - return output_arg_.size(); -} -inline void OpDef::clear_output_arg() { - output_arg_.Clear(); -} -inline ::tensorflow::OpDef_ArgDef* OpDef::mutable_output_arg(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.output_arg) - return output_arg_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef >* -OpDef::mutable_output_arg() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.OpDef.output_arg) - return &output_arg_; -} -inline const ::tensorflow::OpDef_ArgDef& OpDef::output_arg(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.output_arg) - return output_arg_.Get(index); -} -inline ::tensorflow::OpDef_ArgDef* OpDef::add_output_arg() { - // @@protoc_insertion_point(field_add:tensorflow.OpDef.output_arg) - return output_arg_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_ArgDef >& -OpDef::output_arg() const { - // @@protoc_insertion_point(field_list:tensorflow.OpDef.output_arg) - return output_arg_; -} - -// repeated .tensorflow.OpDef.AttrDef attr = 4; -inline int OpDef::attr_size() const { - return attr_.size(); -} -inline void OpDef::clear_attr() { - attr_.Clear(); -} -inline ::tensorflow::OpDef_AttrDef* OpDef::mutable_attr(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.attr) - return attr_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_AttrDef >* -OpDef::mutable_attr() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.OpDef.attr) - return &attr_; -} -inline const ::tensorflow::OpDef_AttrDef& OpDef::attr(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.attr) - return attr_.Get(index); -} -inline ::tensorflow::OpDef_AttrDef* OpDef::add_attr() { - // @@protoc_insertion_point(field_add:tensorflow.OpDef.attr) - return attr_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef_AttrDef >& -OpDef::attr() const { - // @@protoc_insertion_point(field_list:tensorflow.OpDef.attr) - return attr_; -} - -// .tensorflow.OpDeprecation deprecation = 8; -inline bool OpDef::has_deprecation() const { - return this != internal_default_instance() && deprecation_ != NULL; -} -inline void OpDef::clear_deprecation() { - if (GetArenaNoVirtual() == NULL && deprecation_ != NULL) { - delete deprecation_; - } - deprecation_ = NULL; -} -inline const ::tensorflow::OpDeprecation& OpDef::_internal_deprecation() const { - return *deprecation_; -} -inline const ::tensorflow::OpDeprecation& OpDef::deprecation() const { - const ::tensorflow::OpDeprecation* p = deprecation_; - // @@protoc_insertion_point(field_get:tensorflow.OpDef.deprecation) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_OpDeprecation_default_instance_); -} -inline ::tensorflow::OpDeprecation* OpDef::release_deprecation() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.deprecation) - - ::tensorflow::OpDeprecation* temp = deprecation_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - deprecation_ = NULL; - return temp; -} -inline ::tensorflow::OpDeprecation* OpDef::unsafe_arena_release_deprecation() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.deprecation) - - ::tensorflow::OpDeprecation* temp = deprecation_; - deprecation_ = NULL; - return temp; -} -inline ::tensorflow::OpDeprecation* OpDef::mutable_deprecation() { - - if (deprecation_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::OpDeprecation>(GetArenaNoVirtual()); - deprecation_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.deprecation) - return deprecation_; -} -inline void OpDef::set_allocated_deprecation(::tensorflow::OpDeprecation* deprecation) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete deprecation_; - } - if (deprecation) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(deprecation); - if (message_arena != submessage_arena) { - deprecation = ::google::protobuf::internal::GetOwnedMessage( - message_arena, deprecation, submessage_arena); - } - - } else { - - } - deprecation_ = deprecation; - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.deprecation) -} - -// string summary = 5; -inline void OpDef::clear_summary() { - summary_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& OpDef::summary() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.summary) - return summary_.Get(); -} -inline void OpDef::set_summary(const ::std::string& value) { - - summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.summary) -} -#if LANG_CXX11 -inline void OpDef::set_summary(::std::string&& value) { - - summary_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.summary) -} -#endif -inline void OpDef::set_summary(const char* value) { - GOOGLE_DCHECK(value != NULL); - - summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.summary) -} -inline void OpDef::set_summary(const char* value, - size_t size) { - - summary_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.summary) -} -inline ::std::string* OpDef::mutable_summary() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.summary) - return summary_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* OpDef::release_summary() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.summary) - - return summary_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void OpDef::set_allocated_summary(::std::string* summary) { - if (summary != NULL) { - - } else { - - } - summary_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), summary, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.summary) -} -inline ::std::string* OpDef::unsafe_arena_release_summary() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.summary) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return summary_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void OpDef::unsafe_arena_set_allocated_summary( - ::std::string* summary) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (summary != NULL) { - - } else { - - } - summary_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - summary, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.summary) -} - -// string description = 6; -inline void OpDef::clear_description() { - description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& OpDef::description() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.description) - return description_.Get(); -} -inline void OpDef::set_description(const ::std::string& value) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDef.description) -} -#if LANG_CXX11 -inline void OpDef::set_description(::std::string&& value) { - - description_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDef.description) -} -#endif -inline void OpDef::set_description(const char* value) { - GOOGLE_DCHECK(value != NULL); - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDef.description) -} -inline void OpDef::set_description(const char* value, - size_t size) { - - description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDef.description) -} -inline ::std::string* OpDef::mutable_description() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDef.description) - return description_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* OpDef::release_description() { - // @@protoc_insertion_point(field_release:tensorflow.OpDef.description) - - return description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void OpDef::set_allocated_description(::std::string* description) { - if (description != NULL) { - - } else { - - } - description_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), description, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDef.description) -} -inline ::std::string* OpDef::unsafe_arena_release_description() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDef.description) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void OpDef::unsafe_arena_set_allocated_description( - ::std::string* description) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (description != NULL) { - - } else { - - } - description_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - description, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDef.description) -} - -// bool is_commutative = 18; -inline void OpDef::clear_is_commutative() { - is_commutative_ = false; -} -inline bool OpDef::is_commutative() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.is_commutative) - return is_commutative_; -} -inline void OpDef::set_is_commutative(bool value) { - - is_commutative_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpDef.is_commutative) -} - -// bool is_aggregate = 16; -inline void OpDef::clear_is_aggregate() { - is_aggregate_ = false; -} -inline bool OpDef::is_aggregate() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.is_aggregate) - return is_aggregate_; -} -inline void OpDef::set_is_aggregate(bool value) { - - is_aggregate_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpDef.is_aggregate) -} - -// bool is_stateful = 17; -inline void OpDef::clear_is_stateful() { - is_stateful_ = false; -} -inline bool OpDef::is_stateful() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.is_stateful) - return is_stateful_; -} -inline void OpDef::set_is_stateful(bool value) { - - is_stateful_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpDef.is_stateful) -} - -// bool allows_uninitialized_input = 19; -inline void OpDef::clear_allows_uninitialized_input() { - allows_uninitialized_input_ = false; -} -inline bool OpDef::allows_uninitialized_input() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDef.allows_uninitialized_input) - return allows_uninitialized_input_; -} -inline void OpDef::set_allows_uninitialized_input(bool value) { - - allows_uninitialized_input_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpDef.allows_uninitialized_input) -} - -// ------------------------------------------------------------------- - -// OpDeprecation - -// int32 version = 1; -inline void OpDeprecation::clear_version() { - version_ = 0; -} -inline ::google::protobuf::int32 OpDeprecation::version() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDeprecation.version) - return version_; -} -inline void OpDeprecation::set_version(::google::protobuf::int32 value) { - - version_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpDeprecation.version) -} - -// string explanation = 2; -inline void OpDeprecation::clear_explanation() { - explanation_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& OpDeprecation::explanation() const { - // @@protoc_insertion_point(field_get:tensorflow.OpDeprecation.explanation) - return explanation_.Get(); -} -inline void OpDeprecation::set_explanation(const ::std::string& value) { - - explanation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpDeprecation.explanation) -} -#if LANG_CXX11 -inline void OpDeprecation::set_explanation(::std::string&& value) { - - explanation_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpDeprecation.explanation) -} -#endif -inline void OpDeprecation::set_explanation(const char* value) { - GOOGLE_DCHECK(value != NULL); - - explanation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpDeprecation.explanation) -} -inline void OpDeprecation::set_explanation(const char* value, - size_t size) { - - explanation_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpDeprecation.explanation) -} -inline ::std::string* OpDeprecation::mutable_explanation() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpDeprecation.explanation) - return explanation_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* OpDeprecation::release_explanation() { - // @@protoc_insertion_point(field_release:tensorflow.OpDeprecation.explanation) - - return explanation_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void OpDeprecation::set_allocated_explanation(::std::string* explanation) { - if (explanation != NULL) { - - } else { - - } - explanation_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), explanation, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpDeprecation.explanation) -} -inline ::std::string* OpDeprecation::unsafe_arena_release_explanation() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpDeprecation.explanation) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return explanation_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void OpDeprecation::unsafe_arena_set_allocated_explanation( - ::std::string* explanation) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (explanation != NULL) { - - } else { - - } - explanation_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - explanation, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpDeprecation.explanation) -} - -// ------------------------------------------------------------------- - -// OpList - -// repeated .tensorflow.OpDef op = 1; -inline int OpList::op_size() const { - return op_.size(); -} -inline void OpList::clear_op() { - op_.Clear(); -} -inline ::tensorflow::OpDef* OpList::mutable_op(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.OpList.op) - return op_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef >* -OpList::mutable_op() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.OpList.op) - return &op_; -} -inline const ::tensorflow::OpDef& OpList::op(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.OpList.op) - return op_.Get(index); -} -inline ::tensorflow::OpDef* OpList::add_op() { - // @@protoc_insertion_point(field_add:tensorflow.OpList.op) - return op_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpDef >& -OpList::op() const { - // @@protoc_insertion_point(field_list:tensorflow.OpList.op) - return op_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fop_5fdef_2eproto diff --git a/linux/include/tensorflow/core/framework/op_def.pb_text-impl.h b/linux/include/tensorflow/core/framework/op_def.pb_text-impl.h deleted file mode 100755 index 561c6b683..000000000 --- a/linux/include/tensorflow/core/framework/op_def.pb_text-impl.h +++ /dev/null @@ -1,63 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_op_def_proto_IMPL_H_ -#define tensorflow_core_framework_op_def_proto_IMPL_H_ - -#include "tensorflow/core/framework/attr_value.pb.h" -#include "tensorflow/core/framework/attr_value.pb_text-impl.h" -#include "tensorflow/core/framework/op_def.pb.h" -#include "tensorflow/core/framework/op_def.pb_text.h" -#include "tensorflow/core/framework/resource_handle.pb.h" -#include "tensorflow/core/framework/resource_handle.pb_text-impl.h" -#include "tensorflow/core/framework/tensor.pb.h" -#include "tensorflow/core/framework/tensor.pb_text-impl.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb_text-impl.h" -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/framework/types.pb_text-impl.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::OpDef_ArgDef& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::OpDef_ArgDef* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::OpDef_AttrDef& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::OpDef_AttrDef* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::OpDef& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::OpDef* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::OpDeprecation& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::OpDeprecation* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::OpList& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::OpList* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_op_def_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/op_def.pb_text.h b/linux/include/tensorflow/core/framework/op_def.pb_text.h deleted file mode 100755 index 8d3a75657..000000000 --- a/linux/include/tensorflow/core/framework/op_def.pb_text.h +++ /dev/null @@ -1,64 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_op_def_proto_H_ -#define tensorflow_core_framework_op_def_proto_H_ - -#include "tensorflow/core/framework/op_def.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.OpDef.ArgDef -string ProtoDebugString( - const ::tensorflow::OpDef_ArgDef& msg); -string ProtoShortDebugString( - const ::tensorflow::OpDef_ArgDef& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::OpDef_ArgDef* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.OpDef.AttrDef -string ProtoDebugString( - const ::tensorflow::OpDef_AttrDef& msg); -string ProtoShortDebugString( - const ::tensorflow::OpDef_AttrDef& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::OpDef_AttrDef* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.OpDef -string ProtoDebugString( - const ::tensorflow::OpDef& msg); -string ProtoShortDebugString( - const ::tensorflow::OpDef& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::OpDef* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.OpDeprecation -string ProtoDebugString( - const ::tensorflow::OpDeprecation& msg); -string ProtoShortDebugString( - const ::tensorflow::OpDeprecation& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::OpDeprecation* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.OpList -string ProtoDebugString( - const ::tensorflow::OpList& msg); -string ProtoShortDebugString( - const ::tensorflow::OpList& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::OpList* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_op_def_proto_H_ diff --git a/linux/include/tensorflow/core/framework/reader_base.pb.h b/linux/include/tensorflow/core/framework/reader_base.pb.h deleted file mode 100755 index 5d5f771df..000000000 --- a/linux/include/tensorflow/core/framework/reader_base.pb.h +++ /dev/null @@ -1,354 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/reader_base.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2freader_5fbase_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2freader_5fbase_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2freader_5fbase_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2freader_5fbase_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[1]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2freader_5fbase_2eproto -namespace tensorflow { -class ReaderBaseState; -class ReaderBaseStateDefaultTypeInternal; -extern ReaderBaseStateDefaultTypeInternal _ReaderBaseState_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::ReaderBaseState* Arena::CreateMaybeMessage<::tensorflow::ReaderBaseState>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class ReaderBaseState : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.ReaderBaseState) */ { - public: - ReaderBaseState(); - virtual ~ReaderBaseState(); - - ReaderBaseState(const ReaderBaseState& from); - - inline ReaderBaseState& operator=(const ReaderBaseState& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ReaderBaseState(ReaderBaseState&& from) noexcept - : ReaderBaseState() { - *this = ::std::move(from); - } - - inline ReaderBaseState& operator=(ReaderBaseState&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const ReaderBaseState& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ReaderBaseState* internal_default_instance() { - return reinterpret_cast( - &_ReaderBaseState_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(ReaderBaseState* other); - void Swap(ReaderBaseState* other); - friend void swap(ReaderBaseState& a, ReaderBaseState& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ReaderBaseState* New() const final { - return CreateMaybeMessage(NULL); - } - - ReaderBaseState* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ReaderBaseState& from); - void MergeFrom(const ReaderBaseState& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ReaderBaseState* other); - protected: - explicit ReaderBaseState(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // bytes current_work = 4; - void clear_current_work(); - static const int kCurrentWorkFieldNumber = 4; - const ::std::string& current_work() const; - void set_current_work(const ::std::string& value); - #if LANG_CXX11 - void set_current_work(::std::string&& value); - #endif - void set_current_work(const char* value); - void set_current_work(const void* value, size_t size); - ::std::string* mutable_current_work(); - ::std::string* release_current_work(); - void set_allocated_current_work(::std::string* current_work); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_current_work(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_current_work( - ::std::string* current_work); - - // int64 work_started = 1; - void clear_work_started(); - static const int kWorkStartedFieldNumber = 1; - ::google::protobuf::int64 work_started() const; - void set_work_started(::google::protobuf::int64 value); - - // int64 work_finished = 2; - void clear_work_finished(); - static const int kWorkFinishedFieldNumber = 2; - ::google::protobuf::int64 work_finished() const; - void set_work_finished(::google::protobuf::int64 value); - - // int64 num_records_produced = 3; - void clear_num_records_produced(); - static const int kNumRecordsProducedFieldNumber = 3; - ::google::protobuf::int64 num_records_produced() const; - void set_num_records_produced(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:tensorflow.ReaderBaseState) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr current_work_; - ::google::protobuf::int64 work_started_; - ::google::protobuf::int64 work_finished_; - ::google::protobuf::int64 num_records_produced_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2freader_5fbase_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ReaderBaseState - -// int64 work_started = 1; -inline void ReaderBaseState::clear_work_started() { - work_started_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 ReaderBaseState::work_started() const { - // @@protoc_insertion_point(field_get:tensorflow.ReaderBaseState.work_started) - return work_started_; -} -inline void ReaderBaseState::set_work_started(::google::protobuf::int64 value) { - - work_started_ = value; - // @@protoc_insertion_point(field_set:tensorflow.ReaderBaseState.work_started) -} - -// int64 work_finished = 2; -inline void ReaderBaseState::clear_work_finished() { - work_finished_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 ReaderBaseState::work_finished() const { - // @@protoc_insertion_point(field_get:tensorflow.ReaderBaseState.work_finished) - return work_finished_; -} -inline void ReaderBaseState::set_work_finished(::google::protobuf::int64 value) { - - work_finished_ = value; - // @@protoc_insertion_point(field_set:tensorflow.ReaderBaseState.work_finished) -} - -// int64 num_records_produced = 3; -inline void ReaderBaseState::clear_num_records_produced() { - num_records_produced_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 ReaderBaseState::num_records_produced() const { - // @@protoc_insertion_point(field_get:tensorflow.ReaderBaseState.num_records_produced) - return num_records_produced_; -} -inline void ReaderBaseState::set_num_records_produced(::google::protobuf::int64 value) { - - num_records_produced_ = value; - // @@protoc_insertion_point(field_set:tensorflow.ReaderBaseState.num_records_produced) -} - -// bytes current_work = 4; -inline void ReaderBaseState::clear_current_work() { - current_work_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& ReaderBaseState::current_work() const { - // @@protoc_insertion_point(field_get:tensorflow.ReaderBaseState.current_work) - return current_work_.Get(); -} -inline void ReaderBaseState::set_current_work(const ::std::string& value) { - - current_work_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.ReaderBaseState.current_work) -} -#if LANG_CXX11 -inline void ReaderBaseState::set_current_work(::std::string&& value) { - - current_work_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.ReaderBaseState.current_work) -} -#endif -inline void ReaderBaseState::set_current_work(const char* value) { - GOOGLE_DCHECK(value != NULL); - - current_work_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.ReaderBaseState.current_work) -} -inline void ReaderBaseState::set_current_work(const void* value, - size_t size) { - - current_work_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ReaderBaseState.current_work) -} -inline ::std::string* ReaderBaseState::mutable_current_work() { - - // @@protoc_insertion_point(field_mutable:tensorflow.ReaderBaseState.current_work) - return current_work_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* ReaderBaseState::release_current_work() { - // @@protoc_insertion_point(field_release:tensorflow.ReaderBaseState.current_work) - - return current_work_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void ReaderBaseState::set_allocated_current_work(::std::string* current_work) { - if (current_work != NULL) { - - } else { - - } - current_work_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), current_work, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.ReaderBaseState.current_work) -} -inline ::std::string* ReaderBaseState::unsafe_arena_release_current_work() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ReaderBaseState.current_work) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return current_work_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void ReaderBaseState::unsafe_arena_set_allocated_current_work( - ::std::string* current_work) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (current_work != NULL) { - - } else { - - } - current_work_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - current_work, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ReaderBaseState.current_work) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2freader_5fbase_2eproto diff --git a/linux/include/tensorflow/core/framework/reader_base.pb_text-impl.h b/linux/include/tensorflow/core/framework/reader_base.pb_text-impl.h deleted file mode 100755 index f360decda..000000000 --- a/linux/include/tensorflow/core/framework/reader_base.pb_text-impl.h +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_reader_base_proto_IMPL_H_ -#define tensorflow_core_framework_reader_base_proto_IMPL_H_ - -#include "tensorflow/core/framework/reader_base.pb.h" -#include "tensorflow/core/framework/reader_base.pb_text.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::ReaderBaseState& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::ReaderBaseState* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_reader_base_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/reader_base.pb_text.h b/linux/include/tensorflow/core/framework/reader_base.pb_text.h deleted file mode 100755 index 7af57d46a..000000000 --- a/linux/include/tensorflow/core/framework/reader_base.pb_text.h +++ /dev/null @@ -1,24 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_reader_base_proto_H_ -#define tensorflow_core_framework_reader_base_proto_H_ - -#include "tensorflow/core/framework/reader_base.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.ReaderBaseState -string ProtoDebugString( - const ::tensorflow::ReaderBaseState& msg); -string ProtoShortDebugString( - const ::tensorflow::ReaderBaseState& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::ReaderBaseState* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_reader_base_proto_H_ diff --git a/linux/include/tensorflow/core/framework/remote_fused_graph_execute_info.pb.h b/linux/include/tensorflow/core/framework/remote_fused_graph_execute_info.pb.h deleted file mode 100755 index f52c3c02c..000000000 --- a/linux/include/tensorflow/core/framework/remote_fused_graph_execute_info.pb.h +++ /dev/null @@ -1,957 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/remote_fused_graph_execute_info.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fremote_5ffused_5fgraph_5fexecute_5finfo_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fremote_5ffused_5fgraph_5fexecute_5finfo_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "tensorflow/core/framework/graph.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/types.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fremote_5ffused_5fgraph_5fexecute_5finfo_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2fremote_5ffused_5fgraph_5fexecute_5finfo_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[2]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2fremote_5ffused_5fgraph_5fexecute_5finfo_2eproto -namespace tensorflow { -class RemoteFusedGraphExecuteInfo; -class RemoteFusedGraphExecuteInfoDefaultTypeInternal; -extern RemoteFusedGraphExecuteInfoDefaultTypeInternal _RemoteFusedGraphExecuteInfo_default_instance_; -class RemoteFusedGraphExecuteInfo_TensorShapeTypeProto; -class RemoteFusedGraphExecuteInfo_TensorShapeTypeProtoDefaultTypeInternal; -extern RemoteFusedGraphExecuteInfo_TensorShapeTypeProtoDefaultTypeInternal _RemoteFusedGraphExecuteInfo_TensorShapeTypeProto_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::RemoteFusedGraphExecuteInfo* Arena::CreateMaybeMessage<::tensorflow::RemoteFusedGraphExecuteInfo>(Arena*); -template<> ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto* Arena::CreateMaybeMessage<::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class RemoteFusedGraphExecuteInfo_TensorShapeTypeProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto) */ { - public: - RemoteFusedGraphExecuteInfo_TensorShapeTypeProto(); - virtual ~RemoteFusedGraphExecuteInfo_TensorShapeTypeProto(); - - RemoteFusedGraphExecuteInfo_TensorShapeTypeProto(const RemoteFusedGraphExecuteInfo_TensorShapeTypeProto& from); - - inline RemoteFusedGraphExecuteInfo_TensorShapeTypeProto& operator=(const RemoteFusedGraphExecuteInfo_TensorShapeTypeProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - RemoteFusedGraphExecuteInfo_TensorShapeTypeProto(RemoteFusedGraphExecuteInfo_TensorShapeTypeProto&& from) noexcept - : RemoteFusedGraphExecuteInfo_TensorShapeTypeProto() { - *this = ::std::move(from); - } - - inline RemoteFusedGraphExecuteInfo_TensorShapeTypeProto& operator=(RemoteFusedGraphExecuteInfo_TensorShapeTypeProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const RemoteFusedGraphExecuteInfo_TensorShapeTypeProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RemoteFusedGraphExecuteInfo_TensorShapeTypeProto* internal_default_instance() { - return reinterpret_cast( - &_RemoteFusedGraphExecuteInfo_TensorShapeTypeProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(RemoteFusedGraphExecuteInfo_TensorShapeTypeProto* other); - void Swap(RemoteFusedGraphExecuteInfo_TensorShapeTypeProto* other); - friend void swap(RemoteFusedGraphExecuteInfo_TensorShapeTypeProto& a, RemoteFusedGraphExecuteInfo_TensorShapeTypeProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline RemoteFusedGraphExecuteInfo_TensorShapeTypeProto* New() const final { - return CreateMaybeMessage(NULL); - } - - RemoteFusedGraphExecuteInfo_TensorShapeTypeProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const RemoteFusedGraphExecuteInfo_TensorShapeTypeProto& from); - void MergeFrom(const RemoteFusedGraphExecuteInfo_TensorShapeTypeProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RemoteFusedGraphExecuteInfo_TensorShapeTypeProto* other); - protected: - explicit RemoteFusedGraphExecuteInfo_TensorShapeTypeProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .tensorflow.TensorShapeProto shape = 2; - bool has_shape() const; - void clear_shape(); - static const int kShapeFieldNumber = 2; - private: - const ::tensorflow::TensorShapeProto& _internal_shape() const; - public: - const ::tensorflow::TensorShapeProto& shape() const; - ::tensorflow::TensorShapeProto* release_shape(); - ::tensorflow::TensorShapeProto* mutable_shape(); - void set_allocated_shape(::tensorflow::TensorShapeProto* shape); - void unsafe_arena_set_allocated_shape( - ::tensorflow::TensorShapeProto* shape); - ::tensorflow::TensorShapeProto* unsafe_arena_release_shape(); - - // .tensorflow.DataType dtype = 1; - void clear_dtype(); - static const int kDtypeFieldNumber = 1; - ::tensorflow::DataType dtype() const; - void set_dtype(::tensorflow::DataType value); - - // @@protoc_insertion_point(class_scope:tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::tensorflow::TensorShapeProto* shape_; - int dtype_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fremote_5ffused_5fgraph_5fexecute_5finfo_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class RemoteFusedGraphExecuteInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.RemoteFusedGraphExecuteInfo) */ { - public: - RemoteFusedGraphExecuteInfo(); - virtual ~RemoteFusedGraphExecuteInfo(); - - RemoteFusedGraphExecuteInfo(const RemoteFusedGraphExecuteInfo& from); - - inline RemoteFusedGraphExecuteInfo& operator=(const RemoteFusedGraphExecuteInfo& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - RemoteFusedGraphExecuteInfo(RemoteFusedGraphExecuteInfo&& from) noexcept - : RemoteFusedGraphExecuteInfo() { - *this = ::std::move(from); - } - - inline RemoteFusedGraphExecuteInfo& operator=(RemoteFusedGraphExecuteInfo&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const RemoteFusedGraphExecuteInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const RemoteFusedGraphExecuteInfo* internal_default_instance() { - return reinterpret_cast( - &_RemoteFusedGraphExecuteInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(RemoteFusedGraphExecuteInfo* other); - void Swap(RemoteFusedGraphExecuteInfo* other); - friend void swap(RemoteFusedGraphExecuteInfo& a, RemoteFusedGraphExecuteInfo& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline RemoteFusedGraphExecuteInfo* New() const final { - return CreateMaybeMessage(NULL); - } - - RemoteFusedGraphExecuteInfo* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const RemoteFusedGraphExecuteInfo& from); - void MergeFrom(const RemoteFusedGraphExecuteInfo& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(RemoteFusedGraphExecuteInfo* other); - protected: - explicit RemoteFusedGraphExecuteInfo(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef RemoteFusedGraphExecuteInfo_TensorShapeTypeProto TensorShapeTypeProto; - - // accessors ------------------------------------------------------- - - // repeated string graph_input_node_name = 2; - int graph_input_node_name_size() const; - void clear_graph_input_node_name(); - static const int kGraphInputNodeNameFieldNumber = 2; - const ::std::string& graph_input_node_name(int index) const; - ::std::string* mutable_graph_input_node_name(int index); - void set_graph_input_node_name(int index, const ::std::string& value); - #if LANG_CXX11 - void set_graph_input_node_name(int index, ::std::string&& value); - #endif - void set_graph_input_node_name(int index, const char* value); - void set_graph_input_node_name(int index, const char* value, size_t size); - ::std::string* add_graph_input_node_name(); - void add_graph_input_node_name(const ::std::string& value); - #if LANG_CXX11 - void add_graph_input_node_name(::std::string&& value); - #endif - void add_graph_input_node_name(const char* value); - void add_graph_input_node_name(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& graph_input_node_name() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_graph_input_node_name(); - - // repeated string graph_output_node_name = 3; - int graph_output_node_name_size() const; - void clear_graph_output_node_name(); - static const int kGraphOutputNodeNameFieldNumber = 3; - const ::std::string& graph_output_node_name(int index) const; - ::std::string* mutable_graph_output_node_name(int index); - void set_graph_output_node_name(int index, const ::std::string& value); - #if LANG_CXX11 - void set_graph_output_node_name(int index, ::std::string&& value); - #endif - void set_graph_output_node_name(int index, const char* value); - void set_graph_output_node_name(int index, const char* value, size_t size); - ::std::string* add_graph_output_node_name(); - void add_graph_output_node_name(const ::std::string& value); - #if LANG_CXX11 - void add_graph_output_node_name(::std::string&& value); - #endif - void add_graph_output_node_name(const char* value); - void add_graph_output_node_name(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& graph_output_node_name() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_graph_output_node_name(); - - // repeated .tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto default_graph_input_tensor_shape = 6; - int default_graph_input_tensor_shape_size() const; - void clear_default_graph_input_tensor_shape(); - static const int kDefaultGraphInputTensorShapeFieldNumber = 6; - ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto* mutable_default_graph_input_tensor_shape(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto >* - mutable_default_graph_input_tensor_shape(); - const ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto& default_graph_input_tensor_shape(int index) const; - ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto* add_default_graph_input_tensor_shape(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto >& - default_graph_input_tensor_shape() const; - - // repeated .tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto default_graph_output_tensor_shape = 7; - int default_graph_output_tensor_shape_size() const; - void clear_default_graph_output_tensor_shape(); - static const int kDefaultGraphOutputTensorShapeFieldNumber = 7; - ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto* mutable_default_graph_output_tensor_shape(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto >* - mutable_default_graph_output_tensor_shape(); - const ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto& default_graph_output_tensor_shape(int index) const; - ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto* add_default_graph_output_tensor_shape(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto >& - default_graph_output_tensor_shape() const; - - // string executor_name = 4; - void clear_executor_name(); - static const int kExecutorNameFieldNumber = 4; - const ::std::string& executor_name() const; - void set_executor_name(const ::std::string& value); - #if LANG_CXX11 - void set_executor_name(::std::string&& value); - #endif - void set_executor_name(const char* value); - void set_executor_name(const char* value, size_t size); - ::std::string* mutable_executor_name(); - ::std::string* release_executor_name(); - void set_allocated_executor_name(::std::string* executor_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_executor_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_executor_name( - ::std::string* executor_name); - - // bytes serialized_executor_parameters = 5; - void clear_serialized_executor_parameters(); - static const int kSerializedExecutorParametersFieldNumber = 5; - const ::std::string& serialized_executor_parameters() const; - void set_serialized_executor_parameters(const ::std::string& value); - #if LANG_CXX11 - void set_serialized_executor_parameters(::std::string&& value); - #endif - void set_serialized_executor_parameters(const char* value); - void set_serialized_executor_parameters(const void* value, size_t size); - ::std::string* mutable_serialized_executor_parameters(); - ::std::string* release_serialized_executor_parameters(); - void set_allocated_serialized_executor_parameters(::std::string* serialized_executor_parameters); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_serialized_executor_parameters(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_serialized_executor_parameters( - ::std::string* serialized_executor_parameters); - - // .tensorflow.GraphDef remote_graph = 1; - bool has_remote_graph() const; - void clear_remote_graph(); - static const int kRemoteGraphFieldNumber = 1; - private: - const ::tensorflow::GraphDef& _internal_remote_graph() const; - public: - const ::tensorflow::GraphDef& remote_graph() const; - ::tensorflow::GraphDef* release_remote_graph(); - ::tensorflow::GraphDef* mutable_remote_graph(); - void set_allocated_remote_graph(::tensorflow::GraphDef* remote_graph); - void unsafe_arena_set_allocated_remote_graph( - ::tensorflow::GraphDef* remote_graph); - ::tensorflow::GraphDef* unsafe_arena_release_remote_graph(); - - // @@protoc_insertion_point(class_scope:tensorflow.RemoteFusedGraphExecuteInfo) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::std::string> graph_input_node_name_; - ::google::protobuf::RepeatedPtrField< ::std::string> graph_output_node_name_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto > default_graph_input_tensor_shape_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto > default_graph_output_tensor_shape_; - ::google::protobuf::internal::ArenaStringPtr executor_name_; - ::google::protobuf::internal::ArenaStringPtr serialized_executor_parameters_; - ::tensorflow::GraphDef* remote_graph_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fremote_5ffused_5fgraph_5fexecute_5finfo_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// RemoteFusedGraphExecuteInfo_TensorShapeTypeProto - -// .tensorflow.DataType dtype = 1; -inline void RemoteFusedGraphExecuteInfo_TensorShapeTypeProto::clear_dtype() { - dtype_ = 0; -} -inline ::tensorflow::DataType RemoteFusedGraphExecuteInfo_TensorShapeTypeProto::dtype() const { - // @@protoc_insertion_point(field_get:tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.dtype) - return static_cast< ::tensorflow::DataType >(dtype_); -} -inline void RemoteFusedGraphExecuteInfo_TensorShapeTypeProto::set_dtype(::tensorflow::DataType value) { - - dtype_ = value; - // @@protoc_insertion_point(field_set:tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.dtype) -} - -// .tensorflow.TensorShapeProto shape = 2; -inline bool RemoteFusedGraphExecuteInfo_TensorShapeTypeProto::has_shape() const { - return this != internal_default_instance() && shape_ != NULL; -} -inline const ::tensorflow::TensorShapeProto& RemoteFusedGraphExecuteInfo_TensorShapeTypeProto::_internal_shape() const { - return *shape_; -} -inline const ::tensorflow::TensorShapeProto& RemoteFusedGraphExecuteInfo_TensorShapeTypeProto::shape() const { - const ::tensorflow::TensorShapeProto* p = shape_; - // @@protoc_insertion_point(field_get:tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.shape) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_TensorShapeProto_default_instance_); -} -inline ::tensorflow::TensorShapeProto* RemoteFusedGraphExecuteInfo_TensorShapeTypeProto::release_shape() { - // @@protoc_insertion_point(field_release:tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.shape) - - ::tensorflow::TensorShapeProto* temp = shape_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - shape_ = NULL; - return temp; -} -inline ::tensorflow::TensorShapeProto* RemoteFusedGraphExecuteInfo_TensorShapeTypeProto::unsafe_arena_release_shape() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.shape) - - ::tensorflow::TensorShapeProto* temp = shape_; - shape_ = NULL; - return temp; -} -inline ::tensorflow::TensorShapeProto* RemoteFusedGraphExecuteInfo_TensorShapeTypeProto::mutable_shape() { - - if (shape_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::TensorShapeProto>(GetArenaNoVirtual()); - shape_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.shape) - return shape_; -} -inline void RemoteFusedGraphExecuteInfo_TensorShapeTypeProto::set_allocated_shape(::tensorflow::TensorShapeProto* shape) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(shape_); - } - if (shape) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(shape)->GetArena(); - if (message_arena != submessage_arena) { - shape = ::google::protobuf::internal::GetOwnedMessage( - message_arena, shape, submessage_arena); - } - - } else { - - } - shape_ = shape; - // @@protoc_insertion_point(field_set_allocated:tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto.shape) -} - -// ------------------------------------------------------------------- - -// RemoteFusedGraphExecuteInfo - -// .tensorflow.GraphDef remote_graph = 1; -inline bool RemoteFusedGraphExecuteInfo::has_remote_graph() const { - return this != internal_default_instance() && remote_graph_ != NULL; -} -inline const ::tensorflow::GraphDef& RemoteFusedGraphExecuteInfo::_internal_remote_graph() const { - return *remote_graph_; -} -inline const ::tensorflow::GraphDef& RemoteFusedGraphExecuteInfo::remote_graph() const { - const ::tensorflow::GraphDef* p = remote_graph_; - // @@protoc_insertion_point(field_get:tensorflow.RemoteFusedGraphExecuteInfo.remote_graph) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_GraphDef_default_instance_); -} -inline ::tensorflow::GraphDef* RemoteFusedGraphExecuteInfo::release_remote_graph() { - // @@protoc_insertion_point(field_release:tensorflow.RemoteFusedGraphExecuteInfo.remote_graph) - - ::tensorflow::GraphDef* temp = remote_graph_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - remote_graph_ = NULL; - return temp; -} -inline ::tensorflow::GraphDef* RemoteFusedGraphExecuteInfo::unsafe_arena_release_remote_graph() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.RemoteFusedGraphExecuteInfo.remote_graph) - - ::tensorflow::GraphDef* temp = remote_graph_; - remote_graph_ = NULL; - return temp; -} -inline ::tensorflow::GraphDef* RemoteFusedGraphExecuteInfo::mutable_remote_graph() { - - if (remote_graph_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::GraphDef>(GetArenaNoVirtual()); - remote_graph_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.RemoteFusedGraphExecuteInfo.remote_graph) - return remote_graph_; -} -inline void RemoteFusedGraphExecuteInfo::set_allocated_remote_graph(::tensorflow::GraphDef* remote_graph) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(remote_graph_); - } - if (remote_graph) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(remote_graph)->GetArena(); - if (message_arena != submessage_arena) { - remote_graph = ::google::protobuf::internal::GetOwnedMessage( - message_arena, remote_graph, submessage_arena); - } - - } else { - - } - remote_graph_ = remote_graph; - // @@protoc_insertion_point(field_set_allocated:tensorflow.RemoteFusedGraphExecuteInfo.remote_graph) -} - -// repeated string graph_input_node_name = 2; -inline int RemoteFusedGraphExecuteInfo::graph_input_node_name_size() const { - return graph_input_node_name_.size(); -} -inline void RemoteFusedGraphExecuteInfo::clear_graph_input_node_name() { - graph_input_node_name_.Clear(); -} -inline const ::std::string& RemoteFusedGraphExecuteInfo::graph_input_node_name(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.RemoteFusedGraphExecuteInfo.graph_input_node_name) - return graph_input_node_name_.Get(index); -} -inline ::std::string* RemoteFusedGraphExecuteInfo::mutable_graph_input_node_name(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.RemoteFusedGraphExecuteInfo.graph_input_node_name) - return graph_input_node_name_.Mutable(index); -} -inline void RemoteFusedGraphExecuteInfo::set_graph_input_node_name(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:tensorflow.RemoteFusedGraphExecuteInfo.graph_input_node_name) - graph_input_node_name_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void RemoteFusedGraphExecuteInfo::set_graph_input_node_name(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:tensorflow.RemoteFusedGraphExecuteInfo.graph_input_node_name) - graph_input_node_name_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void RemoteFusedGraphExecuteInfo::set_graph_input_node_name(int index, const char* value) { - GOOGLE_DCHECK(value != NULL); - graph_input_node_name_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tensorflow.RemoteFusedGraphExecuteInfo.graph_input_node_name) -} -inline void RemoteFusedGraphExecuteInfo::set_graph_input_node_name(int index, const char* value, size_t size) { - graph_input_node_name_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tensorflow.RemoteFusedGraphExecuteInfo.graph_input_node_name) -} -inline ::std::string* RemoteFusedGraphExecuteInfo::add_graph_input_node_name() { - // @@protoc_insertion_point(field_add_mutable:tensorflow.RemoteFusedGraphExecuteInfo.graph_input_node_name) - return graph_input_node_name_.Add(); -} -inline void RemoteFusedGraphExecuteInfo::add_graph_input_node_name(const ::std::string& value) { - graph_input_node_name_.Add()->assign(value); - // @@protoc_insertion_point(field_add:tensorflow.RemoteFusedGraphExecuteInfo.graph_input_node_name) -} -#if LANG_CXX11 -inline void RemoteFusedGraphExecuteInfo::add_graph_input_node_name(::std::string&& value) { - graph_input_node_name_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:tensorflow.RemoteFusedGraphExecuteInfo.graph_input_node_name) -} -#endif -inline void RemoteFusedGraphExecuteInfo::add_graph_input_node_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - graph_input_node_name_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tensorflow.RemoteFusedGraphExecuteInfo.graph_input_node_name) -} -inline void RemoteFusedGraphExecuteInfo::add_graph_input_node_name(const char* value, size_t size) { - graph_input_node_name_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tensorflow.RemoteFusedGraphExecuteInfo.graph_input_node_name) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -RemoteFusedGraphExecuteInfo::graph_input_node_name() const { - // @@protoc_insertion_point(field_list:tensorflow.RemoteFusedGraphExecuteInfo.graph_input_node_name) - return graph_input_node_name_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -RemoteFusedGraphExecuteInfo::mutable_graph_input_node_name() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.RemoteFusedGraphExecuteInfo.graph_input_node_name) - return &graph_input_node_name_; -} - -// repeated string graph_output_node_name = 3; -inline int RemoteFusedGraphExecuteInfo::graph_output_node_name_size() const { - return graph_output_node_name_.size(); -} -inline void RemoteFusedGraphExecuteInfo::clear_graph_output_node_name() { - graph_output_node_name_.Clear(); -} -inline const ::std::string& RemoteFusedGraphExecuteInfo::graph_output_node_name(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.RemoteFusedGraphExecuteInfo.graph_output_node_name) - return graph_output_node_name_.Get(index); -} -inline ::std::string* RemoteFusedGraphExecuteInfo::mutable_graph_output_node_name(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.RemoteFusedGraphExecuteInfo.graph_output_node_name) - return graph_output_node_name_.Mutable(index); -} -inline void RemoteFusedGraphExecuteInfo::set_graph_output_node_name(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:tensorflow.RemoteFusedGraphExecuteInfo.graph_output_node_name) - graph_output_node_name_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void RemoteFusedGraphExecuteInfo::set_graph_output_node_name(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:tensorflow.RemoteFusedGraphExecuteInfo.graph_output_node_name) - graph_output_node_name_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void RemoteFusedGraphExecuteInfo::set_graph_output_node_name(int index, const char* value) { - GOOGLE_DCHECK(value != NULL); - graph_output_node_name_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tensorflow.RemoteFusedGraphExecuteInfo.graph_output_node_name) -} -inline void RemoteFusedGraphExecuteInfo::set_graph_output_node_name(int index, const char* value, size_t size) { - graph_output_node_name_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tensorflow.RemoteFusedGraphExecuteInfo.graph_output_node_name) -} -inline ::std::string* RemoteFusedGraphExecuteInfo::add_graph_output_node_name() { - // @@protoc_insertion_point(field_add_mutable:tensorflow.RemoteFusedGraphExecuteInfo.graph_output_node_name) - return graph_output_node_name_.Add(); -} -inline void RemoteFusedGraphExecuteInfo::add_graph_output_node_name(const ::std::string& value) { - graph_output_node_name_.Add()->assign(value); - // @@protoc_insertion_point(field_add:tensorflow.RemoteFusedGraphExecuteInfo.graph_output_node_name) -} -#if LANG_CXX11 -inline void RemoteFusedGraphExecuteInfo::add_graph_output_node_name(::std::string&& value) { - graph_output_node_name_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:tensorflow.RemoteFusedGraphExecuteInfo.graph_output_node_name) -} -#endif -inline void RemoteFusedGraphExecuteInfo::add_graph_output_node_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - graph_output_node_name_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tensorflow.RemoteFusedGraphExecuteInfo.graph_output_node_name) -} -inline void RemoteFusedGraphExecuteInfo::add_graph_output_node_name(const char* value, size_t size) { - graph_output_node_name_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tensorflow.RemoteFusedGraphExecuteInfo.graph_output_node_name) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -RemoteFusedGraphExecuteInfo::graph_output_node_name() const { - // @@protoc_insertion_point(field_list:tensorflow.RemoteFusedGraphExecuteInfo.graph_output_node_name) - return graph_output_node_name_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -RemoteFusedGraphExecuteInfo::mutable_graph_output_node_name() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.RemoteFusedGraphExecuteInfo.graph_output_node_name) - return &graph_output_node_name_; -} - -// string executor_name = 4; -inline void RemoteFusedGraphExecuteInfo::clear_executor_name() { - executor_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& RemoteFusedGraphExecuteInfo::executor_name() const { - // @@protoc_insertion_point(field_get:tensorflow.RemoteFusedGraphExecuteInfo.executor_name) - return executor_name_.Get(); -} -inline void RemoteFusedGraphExecuteInfo::set_executor_name(const ::std::string& value) { - - executor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.RemoteFusedGraphExecuteInfo.executor_name) -} -#if LANG_CXX11 -inline void RemoteFusedGraphExecuteInfo::set_executor_name(::std::string&& value) { - - executor_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.RemoteFusedGraphExecuteInfo.executor_name) -} -#endif -inline void RemoteFusedGraphExecuteInfo::set_executor_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - executor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.RemoteFusedGraphExecuteInfo.executor_name) -} -inline void RemoteFusedGraphExecuteInfo::set_executor_name(const char* value, - size_t size) { - - executor_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.RemoteFusedGraphExecuteInfo.executor_name) -} -inline ::std::string* RemoteFusedGraphExecuteInfo::mutable_executor_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.RemoteFusedGraphExecuteInfo.executor_name) - return executor_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* RemoteFusedGraphExecuteInfo::release_executor_name() { - // @@protoc_insertion_point(field_release:tensorflow.RemoteFusedGraphExecuteInfo.executor_name) - - return executor_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void RemoteFusedGraphExecuteInfo::set_allocated_executor_name(::std::string* executor_name) { - if (executor_name != NULL) { - - } else { - - } - executor_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), executor_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.RemoteFusedGraphExecuteInfo.executor_name) -} -inline ::std::string* RemoteFusedGraphExecuteInfo::unsafe_arena_release_executor_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.RemoteFusedGraphExecuteInfo.executor_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return executor_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void RemoteFusedGraphExecuteInfo::unsafe_arena_set_allocated_executor_name( - ::std::string* executor_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (executor_name != NULL) { - - } else { - - } - executor_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - executor_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RemoteFusedGraphExecuteInfo.executor_name) -} - -// bytes serialized_executor_parameters = 5; -inline void RemoteFusedGraphExecuteInfo::clear_serialized_executor_parameters() { - serialized_executor_parameters_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& RemoteFusedGraphExecuteInfo::serialized_executor_parameters() const { - // @@protoc_insertion_point(field_get:tensorflow.RemoteFusedGraphExecuteInfo.serialized_executor_parameters) - return serialized_executor_parameters_.Get(); -} -inline void RemoteFusedGraphExecuteInfo::set_serialized_executor_parameters(const ::std::string& value) { - - serialized_executor_parameters_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.RemoteFusedGraphExecuteInfo.serialized_executor_parameters) -} -#if LANG_CXX11 -inline void RemoteFusedGraphExecuteInfo::set_serialized_executor_parameters(::std::string&& value) { - - serialized_executor_parameters_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.RemoteFusedGraphExecuteInfo.serialized_executor_parameters) -} -#endif -inline void RemoteFusedGraphExecuteInfo::set_serialized_executor_parameters(const char* value) { - GOOGLE_DCHECK(value != NULL); - - serialized_executor_parameters_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.RemoteFusedGraphExecuteInfo.serialized_executor_parameters) -} -inline void RemoteFusedGraphExecuteInfo::set_serialized_executor_parameters(const void* value, - size_t size) { - - serialized_executor_parameters_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.RemoteFusedGraphExecuteInfo.serialized_executor_parameters) -} -inline ::std::string* RemoteFusedGraphExecuteInfo::mutable_serialized_executor_parameters() { - - // @@protoc_insertion_point(field_mutable:tensorflow.RemoteFusedGraphExecuteInfo.serialized_executor_parameters) - return serialized_executor_parameters_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* RemoteFusedGraphExecuteInfo::release_serialized_executor_parameters() { - // @@protoc_insertion_point(field_release:tensorflow.RemoteFusedGraphExecuteInfo.serialized_executor_parameters) - - return serialized_executor_parameters_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void RemoteFusedGraphExecuteInfo::set_allocated_serialized_executor_parameters(::std::string* serialized_executor_parameters) { - if (serialized_executor_parameters != NULL) { - - } else { - - } - serialized_executor_parameters_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), serialized_executor_parameters, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.RemoteFusedGraphExecuteInfo.serialized_executor_parameters) -} -inline ::std::string* RemoteFusedGraphExecuteInfo::unsafe_arena_release_serialized_executor_parameters() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.RemoteFusedGraphExecuteInfo.serialized_executor_parameters) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return serialized_executor_parameters_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void RemoteFusedGraphExecuteInfo::unsafe_arena_set_allocated_serialized_executor_parameters( - ::std::string* serialized_executor_parameters) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (serialized_executor_parameters != NULL) { - - } else { - - } - serialized_executor_parameters_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - serialized_executor_parameters, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RemoteFusedGraphExecuteInfo.serialized_executor_parameters) -} - -// repeated .tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto default_graph_input_tensor_shape = 6; -inline int RemoteFusedGraphExecuteInfo::default_graph_input_tensor_shape_size() const { - return default_graph_input_tensor_shape_.size(); -} -inline void RemoteFusedGraphExecuteInfo::clear_default_graph_input_tensor_shape() { - default_graph_input_tensor_shape_.Clear(); -} -inline ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto* RemoteFusedGraphExecuteInfo::mutable_default_graph_input_tensor_shape(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.RemoteFusedGraphExecuteInfo.default_graph_input_tensor_shape) - return default_graph_input_tensor_shape_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto >* -RemoteFusedGraphExecuteInfo::mutable_default_graph_input_tensor_shape() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.RemoteFusedGraphExecuteInfo.default_graph_input_tensor_shape) - return &default_graph_input_tensor_shape_; -} -inline const ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto& RemoteFusedGraphExecuteInfo::default_graph_input_tensor_shape(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.RemoteFusedGraphExecuteInfo.default_graph_input_tensor_shape) - return default_graph_input_tensor_shape_.Get(index); -} -inline ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto* RemoteFusedGraphExecuteInfo::add_default_graph_input_tensor_shape() { - // @@protoc_insertion_point(field_add:tensorflow.RemoteFusedGraphExecuteInfo.default_graph_input_tensor_shape) - return default_graph_input_tensor_shape_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto >& -RemoteFusedGraphExecuteInfo::default_graph_input_tensor_shape() const { - // @@protoc_insertion_point(field_list:tensorflow.RemoteFusedGraphExecuteInfo.default_graph_input_tensor_shape) - return default_graph_input_tensor_shape_; -} - -// repeated .tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto default_graph_output_tensor_shape = 7; -inline int RemoteFusedGraphExecuteInfo::default_graph_output_tensor_shape_size() const { - return default_graph_output_tensor_shape_.size(); -} -inline void RemoteFusedGraphExecuteInfo::clear_default_graph_output_tensor_shape() { - default_graph_output_tensor_shape_.Clear(); -} -inline ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto* RemoteFusedGraphExecuteInfo::mutable_default_graph_output_tensor_shape(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.RemoteFusedGraphExecuteInfo.default_graph_output_tensor_shape) - return default_graph_output_tensor_shape_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto >* -RemoteFusedGraphExecuteInfo::mutable_default_graph_output_tensor_shape() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.RemoteFusedGraphExecuteInfo.default_graph_output_tensor_shape) - return &default_graph_output_tensor_shape_; -} -inline const ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto& RemoteFusedGraphExecuteInfo::default_graph_output_tensor_shape(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.RemoteFusedGraphExecuteInfo.default_graph_output_tensor_shape) - return default_graph_output_tensor_shape_.Get(index); -} -inline ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto* RemoteFusedGraphExecuteInfo::add_default_graph_output_tensor_shape() { - // @@protoc_insertion_point(field_add:tensorflow.RemoteFusedGraphExecuteInfo.default_graph_output_tensor_shape) - return default_graph_output_tensor_shape_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto >& -RemoteFusedGraphExecuteInfo::default_graph_output_tensor_shape() const { - // @@protoc_insertion_point(field_list:tensorflow.RemoteFusedGraphExecuteInfo.default_graph_output_tensor_shape) - return default_graph_output_tensor_shape_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fremote_5ffused_5fgraph_5fexecute_5finfo_2eproto diff --git a/linux/include/tensorflow/core/framework/remote_fused_graph_execute_info.pb_text-impl.h b/linux/include/tensorflow/core/framework/remote_fused_graph_execute_info.pb_text-impl.h deleted file mode 100755 index 4afbd0be2..000000000 --- a/linux/include/tensorflow/core/framework/remote_fused_graph_execute_info.pb_text-impl.h +++ /dev/null @@ -1,52 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_remote_fused_graph_execute_info_proto_IMPL_H_ -#define tensorflow_core_framework_remote_fused_graph_execute_info_proto_IMPL_H_ - -#include "tensorflow/core/framework/attr_value.pb.h" -#include "tensorflow/core/framework/attr_value.pb_text-impl.h" -#include "tensorflow/core/framework/function.pb.h" -#include "tensorflow/core/framework/function.pb_text-impl.h" -#include "tensorflow/core/framework/graph.pb.h" -#include "tensorflow/core/framework/graph.pb_text-impl.h" -#include "tensorflow/core/framework/node_def.pb.h" -#include "tensorflow/core/framework/node_def.pb_text-impl.h" -#include "tensorflow/core/framework/op_def.pb.h" -#include "tensorflow/core/framework/op_def.pb_text-impl.h" -#include "tensorflow/core/framework/remote_fused_graph_execute_info.pb.h" -#include "tensorflow/core/framework/remote_fused_graph_execute_info.pb_text.h" -#include "tensorflow/core/framework/resource_handle.pb.h" -#include "tensorflow/core/framework/resource_handle.pb_text-impl.h" -#include "tensorflow/core/framework/tensor.pb.h" -#include "tensorflow/core/framework/tensor.pb_text-impl.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb_text-impl.h" -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/framework/types.pb_text-impl.h" -#include "tensorflow/core/framework/versions.pb.h" -#include "tensorflow/core/framework/versions.pb_text-impl.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::RemoteFusedGraphExecuteInfo& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::RemoteFusedGraphExecuteInfo* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_remote_fused_graph_execute_info_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/remote_fused_graph_execute_info.pb_text.h b/linux/include/tensorflow/core/framework/remote_fused_graph_execute_info.pb_text.h deleted file mode 100755 index 9e0f3985f..000000000 --- a/linux/include/tensorflow/core/framework/remote_fused_graph_execute_info.pb_text.h +++ /dev/null @@ -1,34 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_remote_fused_graph_execute_info_proto_H_ -#define tensorflow_core_framework_remote_fused_graph_execute_info_proto_H_ - -#include "tensorflow/core/framework/remote_fused_graph_execute_info.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.RemoteFusedGraphExecuteInfo.TensorShapeTypeProto -string ProtoDebugString( - const ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto& msg); -string ProtoShortDebugString( - const ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::RemoteFusedGraphExecuteInfo_TensorShapeTypeProto* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.RemoteFusedGraphExecuteInfo -string ProtoDebugString( - const ::tensorflow::RemoteFusedGraphExecuteInfo& msg); -string ProtoShortDebugString( - const ::tensorflow::RemoteFusedGraphExecuteInfo& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::RemoteFusedGraphExecuteInfo* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_remote_fused_graph_execute_info_proto_H_ diff --git a/linux/include/tensorflow/core/framework/resource_handle.pb.h b/linux/include/tensorflow/core/framework/resource_handle.pb.h deleted file mode 100755 index 9f748d668..000000000 --- a/linux/include/tensorflow/core/framework/resource_handle.pb.h +++ /dev/null @@ -1,609 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/resource_handle.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[1]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto -namespace tensorflow { -class ResourceHandleProto; -class ResourceHandleProtoDefaultTypeInternal; -extern ResourceHandleProtoDefaultTypeInternal _ResourceHandleProto_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::ResourceHandleProto* Arena::CreateMaybeMessage<::tensorflow::ResourceHandleProto>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class ResourceHandleProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.ResourceHandleProto) */ { - public: - ResourceHandleProto(); - virtual ~ResourceHandleProto(); - - ResourceHandleProto(const ResourceHandleProto& from); - - inline ResourceHandleProto& operator=(const ResourceHandleProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ResourceHandleProto(ResourceHandleProto&& from) noexcept - : ResourceHandleProto() { - *this = ::std::move(from); - } - - inline ResourceHandleProto& operator=(ResourceHandleProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const ResourceHandleProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ResourceHandleProto* internal_default_instance() { - return reinterpret_cast( - &_ResourceHandleProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(ResourceHandleProto* other); - void Swap(ResourceHandleProto* other); - friend void swap(ResourceHandleProto& a, ResourceHandleProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ResourceHandleProto* New() const final { - return CreateMaybeMessage(NULL); - } - - ResourceHandleProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ResourceHandleProto& from); - void MergeFrom(const ResourceHandleProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ResourceHandleProto* other); - protected: - explicit ResourceHandleProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string device = 1; - void clear_device(); - static const int kDeviceFieldNumber = 1; - const ::std::string& device() const; - void set_device(const ::std::string& value); - #if LANG_CXX11 - void set_device(::std::string&& value); - #endif - void set_device(const char* value); - void set_device(const char* value, size_t size); - ::std::string* mutable_device(); - ::std::string* release_device(); - void set_allocated_device(::std::string* device); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_device(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_device( - ::std::string* device); - - // string container = 2; - void clear_container(); - static const int kContainerFieldNumber = 2; - const ::std::string& container() const; - void set_container(const ::std::string& value); - #if LANG_CXX11 - void set_container(::std::string&& value); - #endif - void set_container(const char* value); - void set_container(const char* value, size_t size); - ::std::string* mutable_container(); - ::std::string* release_container(); - void set_allocated_container(::std::string* container); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_container(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_container( - ::std::string* container); - - // string name = 3; - void clear_name(); - static const int kNameFieldNumber = 3; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // string maybe_type_name = 5; - void clear_maybe_type_name(); - static const int kMaybeTypeNameFieldNumber = 5; - const ::std::string& maybe_type_name() const; - void set_maybe_type_name(const ::std::string& value); - #if LANG_CXX11 - void set_maybe_type_name(::std::string&& value); - #endif - void set_maybe_type_name(const char* value); - void set_maybe_type_name(const char* value, size_t size); - ::std::string* mutable_maybe_type_name(); - ::std::string* release_maybe_type_name(); - void set_allocated_maybe_type_name(::std::string* maybe_type_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_maybe_type_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_maybe_type_name( - ::std::string* maybe_type_name); - - // uint64 hash_code = 4; - void clear_hash_code(); - static const int kHashCodeFieldNumber = 4; - ::google::protobuf::uint64 hash_code() const; - void set_hash_code(::google::protobuf::uint64 value); - - // @@protoc_insertion_point(class_scope:tensorflow.ResourceHandleProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr device_; - ::google::protobuf::internal::ArenaStringPtr container_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::internal::ArenaStringPtr maybe_type_name_; - ::google::protobuf::uint64 hash_code_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// ResourceHandleProto - -// string device = 1; -inline void ResourceHandleProto::clear_device() { - device_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& ResourceHandleProto::device() const { - // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.device) - return device_.Get(); -} -inline void ResourceHandleProto::set_device(const ::std::string& value) { - - device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.ResourceHandleProto.device) -} -#if LANG_CXX11 -inline void ResourceHandleProto::set_device(::std::string&& value) { - - device_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.ResourceHandleProto.device) -} -#endif -inline void ResourceHandleProto::set_device(const char* value) { - GOOGLE_DCHECK(value != NULL); - - device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.ResourceHandleProto.device) -} -inline void ResourceHandleProto::set_device(const char* value, - size_t size) { - - device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ResourceHandleProto.device) -} -inline ::std::string* ResourceHandleProto::mutable_device() { - - // @@protoc_insertion_point(field_mutable:tensorflow.ResourceHandleProto.device) - return device_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* ResourceHandleProto::release_device() { - // @@protoc_insertion_point(field_release:tensorflow.ResourceHandleProto.device) - - return device_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void ResourceHandleProto::set_allocated_device(::std::string* device) { - if (device != NULL) { - - } else { - - } - device_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.ResourceHandleProto.device) -} -inline ::std::string* ResourceHandleProto::unsafe_arena_release_device() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ResourceHandleProto.device) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return device_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void ResourceHandleProto::unsafe_arena_set_allocated_device( - ::std::string* device) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (device != NULL) { - - } else { - - } - device_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - device, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ResourceHandleProto.device) -} - -// string container = 2; -inline void ResourceHandleProto::clear_container() { - container_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& ResourceHandleProto::container() const { - // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.container) - return container_.Get(); -} -inline void ResourceHandleProto::set_container(const ::std::string& value) { - - container_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.ResourceHandleProto.container) -} -#if LANG_CXX11 -inline void ResourceHandleProto::set_container(::std::string&& value) { - - container_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.ResourceHandleProto.container) -} -#endif -inline void ResourceHandleProto::set_container(const char* value) { - GOOGLE_DCHECK(value != NULL); - - container_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.ResourceHandleProto.container) -} -inline void ResourceHandleProto::set_container(const char* value, - size_t size) { - - container_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ResourceHandleProto.container) -} -inline ::std::string* ResourceHandleProto::mutable_container() { - - // @@protoc_insertion_point(field_mutable:tensorflow.ResourceHandleProto.container) - return container_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* ResourceHandleProto::release_container() { - // @@protoc_insertion_point(field_release:tensorflow.ResourceHandleProto.container) - - return container_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void ResourceHandleProto::set_allocated_container(::std::string* container) { - if (container != NULL) { - - } else { - - } - container_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), container, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.ResourceHandleProto.container) -} -inline ::std::string* ResourceHandleProto::unsafe_arena_release_container() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ResourceHandleProto.container) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return container_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void ResourceHandleProto::unsafe_arena_set_allocated_container( - ::std::string* container) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (container != NULL) { - - } else { - - } - container_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - container, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ResourceHandleProto.container) -} - -// string name = 3; -inline void ResourceHandleProto::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& ResourceHandleProto::name() const { - // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.name) - return name_.Get(); -} -inline void ResourceHandleProto::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.ResourceHandleProto.name) -} -#if LANG_CXX11 -inline void ResourceHandleProto::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.ResourceHandleProto.name) -} -#endif -inline void ResourceHandleProto::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.ResourceHandleProto.name) -} -inline void ResourceHandleProto::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ResourceHandleProto.name) -} -inline ::std::string* ResourceHandleProto::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.ResourceHandleProto.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* ResourceHandleProto::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.ResourceHandleProto.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void ResourceHandleProto::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.ResourceHandleProto.name) -} -inline ::std::string* ResourceHandleProto::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ResourceHandleProto.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void ResourceHandleProto::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ResourceHandleProto.name) -} - -// uint64 hash_code = 4; -inline void ResourceHandleProto::clear_hash_code() { - hash_code_ = GOOGLE_ULONGLONG(0); -} -inline ::google::protobuf::uint64 ResourceHandleProto::hash_code() const { - // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.hash_code) - return hash_code_; -} -inline void ResourceHandleProto::set_hash_code(::google::protobuf::uint64 value) { - - hash_code_ = value; - // @@protoc_insertion_point(field_set:tensorflow.ResourceHandleProto.hash_code) -} - -// string maybe_type_name = 5; -inline void ResourceHandleProto::clear_maybe_type_name() { - maybe_type_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& ResourceHandleProto::maybe_type_name() const { - // @@protoc_insertion_point(field_get:tensorflow.ResourceHandleProto.maybe_type_name) - return maybe_type_name_.Get(); -} -inline void ResourceHandleProto::set_maybe_type_name(const ::std::string& value) { - - maybe_type_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.ResourceHandleProto.maybe_type_name) -} -#if LANG_CXX11 -inline void ResourceHandleProto::set_maybe_type_name(::std::string&& value) { - - maybe_type_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.ResourceHandleProto.maybe_type_name) -} -#endif -inline void ResourceHandleProto::set_maybe_type_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - maybe_type_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.ResourceHandleProto.maybe_type_name) -} -inline void ResourceHandleProto::set_maybe_type_name(const char* value, - size_t size) { - - maybe_type_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.ResourceHandleProto.maybe_type_name) -} -inline ::std::string* ResourceHandleProto::mutable_maybe_type_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.ResourceHandleProto.maybe_type_name) - return maybe_type_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* ResourceHandleProto::release_maybe_type_name() { - // @@protoc_insertion_point(field_release:tensorflow.ResourceHandleProto.maybe_type_name) - - return maybe_type_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void ResourceHandleProto::set_allocated_maybe_type_name(::std::string* maybe_type_name) { - if (maybe_type_name != NULL) { - - } else { - - } - maybe_type_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), maybe_type_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.ResourceHandleProto.maybe_type_name) -} -inline ::std::string* ResourceHandleProto::unsafe_arena_release_maybe_type_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ResourceHandleProto.maybe_type_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return maybe_type_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void ResourceHandleProto::unsafe_arena_set_allocated_maybe_type_name( - ::std::string* maybe_type_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (maybe_type_name != NULL) { - - } else { - - } - maybe_type_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - maybe_type_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ResourceHandleProto.maybe_type_name) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fresource_5fhandle_2eproto diff --git a/linux/include/tensorflow/core/framework/resource_handle.pb_text-impl.h b/linux/include/tensorflow/core/framework/resource_handle.pb_text-impl.h deleted file mode 100755 index 824df1675..000000000 --- a/linux/include/tensorflow/core/framework/resource_handle.pb_text-impl.h +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_resource_handle_proto_IMPL_H_ -#define tensorflow_core_framework_resource_handle_proto_IMPL_H_ - -#include "tensorflow/core/framework/resource_handle.pb.h" -#include "tensorflow/core/framework/resource_handle.pb_text.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::ResourceHandleProto& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::ResourceHandleProto* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_resource_handle_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/resource_handle.pb_text.h b/linux/include/tensorflow/core/framework/resource_handle.pb_text.h deleted file mode 100755 index 2535f4f10..000000000 --- a/linux/include/tensorflow/core/framework/resource_handle.pb_text.h +++ /dev/null @@ -1,24 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_resource_handle_proto_H_ -#define tensorflow_core_framework_resource_handle_proto_H_ - -#include "tensorflow/core/framework/resource_handle.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.ResourceHandleProto -string ProtoDebugString( - const ::tensorflow::ResourceHandleProto& msg); -string ProtoShortDebugString( - const ::tensorflow::ResourceHandleProto& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::ResourceHandleProto* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_resource_handle_proto_H_ diff --git a/linux/include/tensorflow/core/framework/step_stats.pb.h b/linux/include/tensorflow/core/framework/step_stats.pb.h deleted file mode 100755 index 974582672..000000000 --- a/linux/include/tensorflow/core/framework/step_stats.pb.h +++ /dev/null @@ -1,2277 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/step_stats.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "tensorflow/core/framework/allocation_description.pb.h" -#include "tensorflow/core/framework/tensor_description.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[7]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto -namespace tensorflow { -class AllocationRecord; -class AllocationRecordDefaultTypeInternal; -extern AllocationRecordDefaultTypeInternal _AllocationRecord_default_instance_; -class AllocatorMemoryUsed; -class AllocatorMemoryUsedDefaultTypeInternal; -extern AllocatorMemoryUsedDefaultTypeInternal _AllocatorMemoryUsed_default_instance_; -class DeviceStepStats; -class DeviceStepStatsDefaultTypeInternal; -extern DeviceStepStatsDefaultTypeInternal _DeviceStepStats_default_instance_; -class MemoryStats; -class MemoryStatsDefaultTypeInternal; -extern MemoryStatsDefaultTypeInternal _MemoryStats_default_instance_; -class NodeExecStats; -class NodeExecStatsDefaultTypeInternal; -extern NodeExecStatsDefaultTypeInternal _NodeExecStats_default_instance_; -class NodeOutput; -class NodeOutputDefaultTypeInternal; -extern NodeOutputDefaultTypeInternal _NodeOutput_default_instance_; -class StepStats; -class StepStatsDefaultTypeInternal; -extern StepStatsDefaultTypeInternal _StepStats_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::AllocationRecord* Arena::CreateMaybeMessage<::tensorflow::AllocationRecord>(Arena*); -template<> ::tensorflow::AllocatorMemoryUsed* Arena::CreateMaybeMessage<::tensorflow::AllocatorMemoryUsed>(Arena*); -template<> ::tensorflow::DeviceStepStats* Arena::CreateMaybeMessage<::tensorflow::DeviceStepStats>(Arena*); -template<> ::tensorflow::MemoryStats* Arena::CreateMaybeMessage<::tensorflow::MemoryStats>(Arena*); -template<> ::tensorflow::NodeExecStats* Arena::CreateMaybeMessage<::tensorflow::NodeExecStats>(Arena*); -template<> ::tensorflow::NodeOutput* Arena::CreateMaybeMessage<::tensorflow::NodeOutput>(Arena*); -template<> ::tensorflow::StepStats* Arena::CreateMaybeMessage<::tensorflow::StepStats>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class AllocationRecord : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.AllocationRecord) */ { - public: - AllocationRecord(); - virtual ~AllocationRecord(); - - AllocationRecord(const AllocationRecord& from); - - inline AllocationRecord& operator=(const AllocationRecord& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - AllocationRecord(AllocationRecord&& from) noexcept - : AllocationRecord() { - *this = ::std::move(from); - } - - inline AllocationRecord& operator=(AllocationRecord&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const AllocationRecord& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AllocationRecord* internal_default_instance() { - return reinterpret_cast( - &_AllocationRecord_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(AllocationRecord* other); - void Swap(AllocationRecord* other); - friend void swap(AllocationRecord& a, AllocationRecord& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline AllocationRecord* New() const final { - return CreateMaybeMessage(NULL); - } - - AllocationRecord* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const AllocationRecord& from); - void MergeFrom(const AllocationRecord& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AllocationRecord* other); - protected: - explicit AllocationRecord(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 alloc_micros = 1; - void clear_alloc_micros(); - static const int kAllocMicrosFieldNumber = 1; - ::google::protobuf::int64 alloc_micros() const; - void set_alloc_micros(::google::protobuf::int64 value); - - // int64 alloc_bytes = 2; - void clear_alloc_bytes(); - static const int kAllocBytesFieldNumber = 2; - ::google::protobuf::int64 alloc_bytes() const; - void set_alloc_bytes(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:tensorflow.AllocationRecord) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int64 alloc_micros_; - ::google::protobuf::int64 alloc_bytes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class AllocatorMemoryUsed : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.AllocatorMemoryUsed) */ { - public: - AllocatorMemoryUsed(); - virtual ~AllocatorMemoryUsed(); - - AllocatorMemoryUsed(const AllocatorMemoryUsed& from); - - inline AllocatorMemoryUsed& operator=(const AllocatorMemoryUsed& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - AllocatorMemoryUsed(AllocatorMemoryUsed&& from) noexcept - : AllocatorMemoryUsed() { - *this = ::std::move(from); - } - - inline AllocatorMemoryUsed& operator=(AllocatorMemoryUsed&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const AllocatorMemoryUsed& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const AllocatorMemoryUsed* internal_default_instance() { - return reinterpret_cast( - &_AllocatorMemoryUsed_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(AllocatorMemoryUsed* other); - void Swap(AllocatorMemoryUsed* other); - friend void swap(AllocatorMemoryUsed& a, AllocatorMemoryUsed& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline AllocatorMemoryUsed* New() const final { - return CreateMaybeMessage(NULL); - } - - AllocatorMemoryUsed* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const AllocatorMemoryUsed& from); - void MergeFrom(const AllocatorMemoryUsed& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(AllocatorMemoryUsed* other); - protected: - explicit AllocatorMemoryUsed(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.AllocationRecord allocation_records = 6; - int allocation_records_size() const; - void clear_allocation_records(); - static const int kAllocationRecordsFieldNumber = 6; - ::tensorflow::AllocationRecord* mutable_allocation_records(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::AllocationRecord >* - mutable_allocation_records(); - const ::tensorflow::AllocationRecord& allocation_records(int index) const; - ::tensorflow::AllocationRecord* add_allocation_records(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::AllocationRecord >& - allocation_records() const; - - // string allocator_name = 1; - void clear_allocator_name(); - static const int kAllocatorNameFieldNumber = 1; - const ::std::string& allocator_name() const; - void set_allocator_name(const ::std::string& value); - #if LANG_CXX11 - void set_allocator_name(::std::string&& value); - #endif - void set_allocator_name(const char* value); - void set_allocator_name(const char* value, size_t size); - ::std::string* mutable_allocator_name(); - ::std::string* release_allocator_name(); - void set_allocated_allocator_name(::std::string* allocator_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_allocator_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_allocator_name( - ::std::string* allocator_name); - - // int64 total_bytes = 2; - void clear_total_bytes(); - static const int kTotalBytesFieldNumber = 2; - ::google::protobuf::int64 total_bytes() const; - void set_total_bytes(::google::protobuf::int64 value); - - // int64 peak_bytes = 3; - void clear_peak_bytes(); - static const int kPeakBytesFieldNumber = 3; - ::google::protobuf::int64 peak_bytes() const; - void set_peak_bytes(::google::protobuf::int64 value); - - // int64 live_bytes = 4; - void clear_live_bytes(); - static const int kLiveBytesFieldNumber = 4; - ::google::protobuf::int64 live_bytes() const; - void set_live_bytes(::google::protobuf::int64 value); - - // int64 allocator_bytes_in_use = 5; - void clear_allocator_bytes_in_use(); - static const int kAllocatorBytesInUseFieldNumber = 5; - ::google::protobuf::int64 allocator_bytes_in_use() const; - void set_allocator_bytes_in_use(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:tensorflow.AllocatorMemoryUsed) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::AllocationRecord > allocation_records_; - ::google::protobuf::internal::ArenaStringPtr allocator_name_; - ::google::protobuf::int64 total_bytes_; - ::google::protobuf::int64 peak_bytes_; - ::google::protobuf::int64 live_bytes_; - ::google::protobuf::int64 allocator_bytes_in_use_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class NodeOutput : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.NodeOutput) */ { - public: - NodeOutput(); - virtual ~NodeOutput(); - - NodeOutput(const NodeOutput& from); - - inline NodeOutput& operator=(const NodeOutput& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeOutput(NodeOutput&& from) noexcept - : NodeOutput() { - *this = ::std::move(from); - } - - inline NodeOutput& operator=(NodeOutput&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const NodeOutput& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeOutput* internal_default_instance() { - return reinterpret_cast( - &_NodeOutput_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void UnsafeArenaSwap(NodeOutput* other); - void Swap(NodeOutput* other); - friend void swap(NodeOutput& a, NodeOutput& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeOutput* New() const final { - return CreateMaybeMessage(NULL); - } - - NodeOutput* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const NodeOutput& from); - void MergeFrom(const NodeOutput& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(NodeOutput* other); - protected: - explicit NodeOutput(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .tensorflow.TensorDescription tensor_description = 3; - bool has_tensor_description() const; - void clear_tensor_description(); - static const int kTensorDescriptionFieldNumber = 3; - private: - const ::tensorflow::TensorDescription& _internal_tensor_description() const; - public: - const ::tensorflow::TensorDescription& tensor_description() const; - ::tensorflow::TensorDescription* release_tensor_description(); - ::tensorflow::TensorDescription* mutable_tensor_description(); - void set_allocated_tensor_description(::tensorflow::TensorDescription* tensor_description); - void unsafe_arena_set_allocated_tensor_description( - ::tensorflow::TensorDescription* tensor_description); - ::tensorflow::TensorDescription* unsafe_arena_release_tensor_description(); - - // int32 slot = 1; - void clear_slot(); - static const int kSlotFieldNumber = 1; - ::google::protobuf::int32 slot() const; - void set_slot(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:tensorflow.NodeOutput) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::tensorflow::TensorDescription* tensor_description_; - ::google::protobuf::int32 slot_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class MemoryStats : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.MemoryStats) */ { - public: - MemoryStats(); - virtual ~MemoryStats(); - - MemoryStats(const MemoryStats& from); - - inline MemoryStats& operator=(const MemoryStats& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - MemoryStats(MemoryStats&& from) noexcept - : MemoryStats() { - *this = ::std::move(from); - } - - inline MemoryStats& operator=(MemoryStats&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const MemoryStats& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const MemoryStats* internal_default_instance() { - return reinterpret_cast( - &_MemoryStats_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void UnsafeArenaSwap(MemoryStats* other); - void Swap(MemoryStats* other); - friend void swap(MemoryStats& a, MemoryStats& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline MemoryStats* New() const final { - return CreateMaybeMessage(NULL); - } - - MemoryStats* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const MemoryStats& from); - void MergeFrom(const MemoryStats& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(MemoryStats* other); - protected: - explicit MemoryStats(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int64 persistent_tensor_alloc_ids = 5; - int persistent_tensor_alloc_ids_size() const; - void clear_persistent_tensor_alloc_ids(); - static const int kPersistentTensorAllocIdsFieldNumber = 5; - ::google::protobuf::int64 persistent_tensor_alloc_ids(int index) const; - void set_persistent_tensor_alloc_ids(int index, ::google::protobuf::int64 value); - void add_persistent_tensor_alloc_ids(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - persistent_tensor_alloc_ids() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_persistent_tensor_alloc_ids(); - - // repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; - GOOGLE_PROTOBUF_DEPRECATED_ATTR int device_persistent_tensor_alloc_ids_size() const; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_device_persistent_tensor_alloc_ids(); - GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kDevicePersistentTensorAllocIdsFieldNumber = 6; - GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int64 device_persistent_tensor_alloc_ids(int index) const; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_device_persistent_tensor_alloc_ids(int index, ::google::protobuf::int64 value); - GOOGLE_PROTOBUF_DEPRECATED_ATTR void add_device_persistent_tensor_alloc_ids(::google::protobuf::int64 value); - GOOGLE_PROTOBUF_DEPRECATED_ATTR const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - device_persistent_tensor_alloc_ids() const; - GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_device_persistent_tensor_alloc_ids(); - - // int64 temp_memory_size = 1; - void clear_temp_memory_size(); - static const int kTempMemorySizeFieldNumber = 1; - ::google::protobuf::int64 temp_memory_size() const; - void set_temp_memory_size(::google::protobuf::int64 value); - - // int64 device_temp_memory_size = 2 [deprecated = true]; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_device_temp_memory_size(); - GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kDeviceTempMemorySizeFieldNumber = 2; - GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int64 device_temp_memory_size() const; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_device_temp_memory_size(::google::protobuf::int64 value); - - // int64 persistent_memory_size = 3; - void clear_persistent_memory_size(); - static const int kPersistentMemorySizeFieldNumber = 3; - ::google::protobuf::int64 persistent_memory_size() const; - void set_persistent_memory_size(::google::protobuf::int64 value); - - // int64 device_persistent_memory_size = 4 [deprecated = true]; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_device_persistent_memory_size(); - GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kDevicePersistentMemorySizeFieldNumber = 4; - GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int64 device_persistent_memory_size() const; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_device_persistent_memory_size(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:tensorflow.MemoryStats) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > persistent_tensor_alloc_ids_; - mutable int _persistent_tensor_alloc_ids_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > device_persistent_tensor_alloc_ids_; - mutable int _device_persistent_tensor_alloc_ids_cached_byte_size_; - ::google::protobuf::int64 temp_memory_size_; - ::google::protobuf::int64 device_temp_memory_size_; - ::google::protobuf::int64 persistent_memory_size_; - ::google::protobuf::int64 device_persistent_memory_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class NodeExecStats : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.NodeExecStats) */ { - public: - NodeExecStats(); - virtual ~NodeExecStats(); - - NodeExecStats(const NodeExecStats& from); - - inline NodeExecStats& operator=(const NodeExecStats& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeExecStats(NodeExecStats&& from) noexcept - : NodeExecStats() { - *this = ::std::move(from); - } - - inline NodeExecStats& operator=(NodeExecStats&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const NodeExecStats& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeExecStats* internal_default_instance() { - return reinterpret_cast( - &_NodeExecStats_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void UnsafeArenaSwap(NodeExecStats* other); - void Swap(NodeExecStats* other); - friend void swap(NodeExecStats& a, NodeExecStats& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeExecStats* New() const final { - return CreateMaybeMessage(NULL); - } - - NodeExecStats* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const NodeExecStats& from); - void MergeFrom(const NodeExecStats& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(NodeExecStats* other); - protected: - explicit NodeExecStats(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.AllocatorMemoryUsed memory = 6; - int memory_size() const; - void clear_memory(); - static const int kMemoryFieldNumber = 6; - ::tensorflow::AllocatorMemoryUsed* mutable_memory(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::AllocatorMemoryUsed >* - mutable_memory(); - const ::tensorflow::AllocatorMemoryUsed& memory(int index) const; - ::tensorflow::AllocatorMemoryUsed* add_memory(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::AllocatorMemoryUsed >& - memory() const; - - // repeated .tensorflow.NodeOutput output = 7; - int output_size() const; - void clear_output(); - static const int kOutputFieldNumber = 7; - ::tensorflow::NodeOutput* mutable_output(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeOutput >* - mutable_output(); - const ::tensorflow::NodeOutput& output(int index) const; - ::tensorflow::NodeOutput* add_output(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeOutput >& - output() const; - - // repeated .tensorflow.AllocationDescription referenced_tensor = 11; - int referenced_tensor_size() const; - void clear_referenced_tensor(); - static const int kReferencedTensorFieldNumber = 11; - ::tensorflow::AllocationDescription* mutable_referenced_tensor(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::AllocationDescription >* - mutable_referenced_tensor(); - const ::tensorflow::AllocationDescription& referenced_tensor(int index) const; - ::tensorflow::AllocationDescription* add_referenced_tensor(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::AllocationDescription >& - referenced_tensor() const; - - // string node_name = 1; - void clear_node_name(); - static const int kNodeNameFieldNumber = 1; - const ::std::string& node_name() const; - void set_node_name(const ::std::string& value); - #if LANG_CXX11 - void set_node_name(::std::string&& value); - #endif - void set_node_name(const char* value); - void set_node_name(const char* value, size_t size); - ::std::string* mutable_node_name(); - ::std::string* release_node_name(); - void set_allocated_node_name(::std::string* node_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_node_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_node_name( - ::std::string* node_name); - - // string timeline_label = 8; - void clear_timeline_label(); - static const int kTimelineLabelFieldNumber = 8; - const ::std::string& timeline_label() const; - void set_timeline_label(const ::std::string& value); - #if LANG_CXX11 - void set_timeline_label(::std::string&& value); - #endif - void set_timeline_label(const char* value); - void set_timeline_label(const char* value, size_t size); - ::std::string* mutable_timeline_label(); - ::std::string* release_timeline_label(); - void set_allocated_timeline_label(::std::string* timeline_label); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_timeline_label(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_timeline_label( - ::std::string* timeline_label); - - // .tensorflow.MemoryStats memory_stats = 12; - bool has_memory_stats() const; - void clear_memory_stats(); - static const int kMemoryStatsFieldNumber = 12; - private: - const ::tensorflow::MemoryStats& _internal_memory_stats() const; - public: - const ::tensorflow::MemoryStats& memory_stats() const; - ::tensorflow::MemoryStats* release_memory_stats(); - ::tensorflow::MemoryStats* mutable_memory_stats(); - void set_allocated_memory_stats(::tensorflow::MemoryStats* memory_stats); - void unsafe_arena_set_allocated_memory_stats( - ::tensorflow::MemoryStats* memory_stats); - ::tensorflow::MemoryStats* unsafe_arena_release_memory_stats(); - - // int64 all_start_micros = 2; - void clear_all_start_micros(); - static const int kAllStartMicrosFieldNumber = 2; - ::google::protobuf::int64 all_start_micros() const; - void set_all_start_micros(::google::protobuf::int64 value); - - // int64 op_start_rel_micros = 3; - void clear_op_start_rel_micros(); - static const int kOpStartRelMicrosFieldNumber = 3; - ::google::protobuf::int64 op_start_rel_micros() const; - void set_op_start_rel_micros(::google::protobuf::int64 value); - - // int64 op_end_rel_micros = 4; - void clear_op_end_rel_micros(); - static const int kOpEndRelMicrosFieldNumber = 4; - ::google::protobuf::int64 op_end_rel_micros() const; - void set_op_end_rel_micros(::google::protobuf::int64 value); - - // int64 all_end_rel_micros = 5; - void clear_all_end_rel_micros(); - static const int kAllEndRelMicrosFieldNumber = 5; - ::google::protobuf::int64 all_end_rel_micros() const; - void set_all_end_rel_micros(::google::protobuf::int64 value); - - // int64 scheduled_micros = 9; - void clear_scheduled_micros(); - static const int kScheduledMicrosFieldNumber = 9; - ::google::protobuf::int64 scheduled_micros() const; - void set_scheduled_micros(::google::protobuf::int64 value); - - // int64 all_start_nanos = 13; - void clear_all_start_nanos(); - static const int kAllStartNanosFieldNumber = 13; - ::google::protobuf::int64 all_start_nanos() const; - void set_all_start_nanos(::google::protobuf::int64 value); - - // int64 op_start_rel_nanos = 14; - void clear_op_start_rel_nanos(); - static const int kOpStartRelNanosFieldNumber = 14; - ::google::protobuf::int64 op_start_rel_nanos() const; - void set_op_start_rel_nanos(::google::protobuf::int64 value); - - // int64 op_end_rel_nanos = 15; - void clear_op_end_rel_nanos(); - static const int kOpEndRelNanosFieldNumber = 15; - ::google::protobuf::int64 op_end_rel_nanos() const; - void set_op_end_rel_nanos(::google::protobuf::int64 value); - - // int64 all_end_rel_nanos = 16; - void clear_all_end_rel_nanos(); - static const int kAllEndRelNanosFieldNumber = 16; - ::google::protobuf::int64 all_end_rel_nanos() const; - void set_all_end_rel_nanos(::google::protobuf::int64 value); - - // int64 scheduled_nanos = 17; - void clear_scheduled_nanos(); - static const int kScheduledNanosFieldNumber = 17; - ::google::protobuf::int64 scheduled_nanos() const; - void set_scheduled_nanos(::google::protobuf::int64 value); - - // uint32 thread_id = 10; - void clear_thread_id(); - static const int kThreadIdFieldNumber = 10; - ::google::protobuf::uint32 thread_id() const; - void set_thread_id(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:tensorflow.NodeExecStats) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::AllocatorMemoryUsed > memory_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeOutput > output_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::AllocationDescription > referenced_tensor_; - ::google::protobuf::internal::ArenaStringPtr node_name_; - ::google::protobuf::internal::ArenaStringPtr timeline_label_; - ::tensorflow::MemoryStats* memory_stats_; - ::google::protobuf::int64 all_start_micros_; - ::google::protobuf::int64 op_start_rel_micros_; - ::google::protobuf::int64 op_end_rel_micros_; - ::google::protobuf::int64 all_end_rel_micros_; - ::google::protobuf::int64 scheduled_micros_; - ::google::protobuf::int64 all_start_nanos_; - ::google::protobuf::int64 op_start_rel_nanos_; - ::google::protobuf::int64 op_end_rel_nanos_; - ::google::protobuf::int64 all_end_rel_nanos_; - ::google::protobuf::int64 scheduled_nanos_; - ::google::protobuf::uint32 thread_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class DeviceStepStats : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.DeviceStepStats) */ { - public: - DeviceStepStats(); - virtual ~DeviceStepStats(); - - DeviceStepStats(const DeviceStepStats& from); - - inline DeviceStepStats& operator=(const DeviceStepStats& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DeviceStepStats(DeviceStepStats&& from) noexcept - : DeviceStepStats() { - *this = ::std::move(from); - } - - inline DeviceStepStats& operator=(DeviceStepStats&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const DeviceStepStats& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DeviceStepStats* internal_default_instance() { - return reinterpret_cast( - &_DeviceStepStats_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void UnsafeArenaSwap(DeviceStepStats* other); - void Swap(DeviceStepStats* other); - friend void swap(DeviceStepStats& a, DeviceStepStats& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DeviceStepStats* New() const final { - return CreateMaybeMessage(NULL); - } - - DeviceStepStats* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const DeviceStepStats& from); - void MergeFrom(const DeviceStepStats& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DeviceStepStats* other); - protected: - explicit DeviceStepStats(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.NodeExecStats node_stats = 2; - int node_stats_size() const; - void clear_node_stats(); - static const int kNodeStatsFieldNumber = 2; - ::tensorflow::NodeExecStats* mutable_node_stats(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeExecStats >* - mutable_node_stats(); - const ::tensorflow::NodeExecStats& node_stats(int index) const; - ::tensorflow::NodeExecStats* add_node_stats(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeExecStats >& - node_stats() const; - - // string device = 1; - void clear_device(); - static const int kDeviceFieldNumber = 1; - const ::std::string& device() const; - void set_device(const ::std::string& value); - #if LANG_CXX11 - void set_device(::std::string&& value); - #endif - void set_device(const char* value); - void set_device(const char* value, size_t size); - ::std::string* mutable_device(); - ::std::string* release_device(); - void set_allocated_device(::std::string* device); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_device(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_device( - ::std::string* device); - - // @@protoc_insertion_point(class_scope:tensorflow.DeviceStepStats) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeExecStats > node_stats_; - ::google::protobuf::internal::ArenaStringPtr device_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class StepStats : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.StepStats) */ { - public: - StepStats(); - virtual ~StepStats(); - - StepStats(const StepStats& from); - - inline StepStats& operator=(const StepStats& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - StepStats(StepStats&& from) noexcept - : StepStats() { - *this = ::std::move(from); - } - - inline StepStats& operator=(StepStats&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const StepStats& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const StepStats* internal_default_instance() { - return reinterpret_cast( - &_StepStats_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void UnsafeArenaSwap(StepStats* other); - void Swap(StepStats* other); - friend void swap(StepStats& a, StepStats& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline StepStats* New() const final { - return CreateMaybeMessage(NULL); - } - - StepStats* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const StepStats& from); - void MergeFrom(const StepStats& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(StepStats* other); - protected: - explicit StepStats(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.DeviceStepStats dev_stats = 1; - int dev_stats_size() const; - void clear_dev_stats(); - static const int kDevStatsFieldNumber = 1; - ::tensorflow::DeviceStepStats* mutable_dev_stats(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::DeviceStepStats >* - mutable_dev_stats(); - const ::tensorflow::DeviceStepStats& dev_stats(int index) const; - ::tensorflow::DeviceStepStats* add_dev_stats(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::DeviceStepStats >& - dev_stats() const; - - // @@protoc_insertion_point(class_scope:tensorflow.StepStats) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::DeviceStepStats > dev_stats_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// AllocationRecord - -// int64 alloc_micros = 1; -inline void AllocationRecord::clear_alloc_micros() { - alloc_micros_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 AllocationRecord::alloc_micros() const { - // @@protoc_insertion_point(field_get:tensorflow.AllocationRecord.alloc_micros) - return alloc_micros_; -} -inline void AllocationRecord::set_alloc_micros(::google::protobuf::int64 value) { - - alloc_micros_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AllocationRecord.alloc_micros) -} - -// int64 alloc_bytes = 2; -inline void AllocationRecord::clear_alloc_bytes() { - alloc_bytes_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 AllocationRecord::alloc_bytes() const { - // @@protoc_insertion_point(field_get:tensorflow.AllocationRecord.alloc_bytes) - return alloc_bytes_; -} -inline void AllocationRecord::set_alloc_bytes(::google::protobuf::int64 value) { - - alloc_bytes_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AllocationRecord.alloc_bytes) -} - -// ------------------------------------------------------------------- - -// AllocatorMemoryUsed - -// string allocator_name = 1; -inline void AllocatorMemoryUsed::clear_allocator_name() { - allocator_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& AllocatorMemoryUsed::allocator_name() const { - // @@protoc_insertion_point(field_get:tensorflow.AllocatorMemoryUsed.allocator_name) - return allocator_name_.Get(); -} -inline void AllocatorMemoryUsed::set_allocator_name(const ::std::string& value) { - - allocator_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.AllocatorMemoryUsed.allocator_name) -} -#if LANG_CXX11 -inline void AllocatorMemoryUsed::set_allocator_name(::std::string&& value) { - - allocator_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.AllocatorMemoryUsed.allocator_name) -} -#endif -inline void AllocatorMemoryUsed::set_allocator_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - allocator_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.AllocatorMemoryUsed.allocator_name) -} -inline void AllocatorMemoryUsed::set_allocator_name(const char* value, - size_t size) { - - allocator_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.AllocatorMemoryUsed.allocator_name) -} -inline ::std::string* AllocatorMemoryUsed::mutable_allocator_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.AllocatorMemoryUsed.allocator_name) - return allocator_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* AllocatorMemoryUsed::release_allocator_name() { - // @@protoc_insertion_point(field_release:tensorflow.AllocatorMemoryUsed.allocator_name) - - return allocator_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void AllocatorMemoryUsed::set_allocated_allocator_name(::std::string* allocator_name) { - if (allocator_name != NULL) { - - } else { - - } - allocator_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), allocator_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.AllocatorMemoryUsed.allocator_name) -} -inline ::std::string* AllocatorMemoryUsed::unsafe_arena_release_allocator_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AllocatorMemoryUsed.allocator_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return allocator_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void AllocatorMemoryUsed::unsafe_arena_set_allocated_allocator_name( - ::std::string* allocator_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (allocator_name != NULL) { - - } else { - - } - allocator_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - allocator_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AllocatorMemoryUsed.allocator_name) -} - -// int64 total_bytes = 2; -inline void AllocatorMemoryUsed::clear_total_bytes() { - total_bytes_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 AllocatorMemoryUsed::total_bytes() const { - // @@protoc_insertion_point(field_get:tensorflow.AllocatorMemoryUsed.total_bytes) - return total_bytes_; -} -inline void AllocatorMemoryUsed::set_total_bytes(::google::protobuf::int64 value) { - - total_bytes_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AllocatorMemoryUsed.total_bytes) -} - -// int64 peak_bytes = 3; -inline void AllocatorMemoryUsed::clear_peak_bytes() { - peak_bytes_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 AllocatorMemoryUsed::peak_bytes() const { - // @@protoc_insertion_point(field_get:tensorflow.AllocatorMemoryUsed.peak_bytes) - return peak_bytes_; -} -inline void AllocatorMemoryUsed::set_peak_bytes(::google::protobuf::int64 value) { - - peak_bytes_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AllocatorMemoryUsed.peak_bytes) -} - -// int64 live_bytes = 4; -inline void AllocatorMemoryUsed::clear_live_bytes() { - live_bytes_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 AllocatorMemoryUsed::live_bytes() const { - // @@protoc_insertion_point(field_get:tensorflow.AllocatorMemoryUsed.live_bytes) - return live_bytes_; -} -inline void AllocatorMemoryUsed::set_live_bytes(::google::protobuf::int64 value) { - - live_bytes_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AllocatorMemoryUsed.live_bytes) -} - -// repeated .tensorflow.AllocationRecord allocation_records = 6; -inline int AllocatorMemoryUsed::allocation_records_size() const { - return allocation_records_.size(); -} -inline void AllocatorMemoryUsed::clear_allocation_records() { - allocation_records_.Clear(); -} -inline ::tensorflow::AllocationRecord* AllocatorMemoryUsed::mutable_allocation_records(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.AllocatorMemoryUsed.allocation_records) - return allocation_records_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::AllocationRecord >* -AllocatorMemoryUsed::mutable_allocation_records() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.AllocatorMemoryUsed.allocation_records) - return &allocation_records_; -} -inline const ::tensorflow::AllocationRecord& AllocatorMemoryUsed::allocation_records(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.AllocatorMemoryUsed.allocation_records) - return allocation_records_.Get(index); -} -inline ::tensorflow::AllocationRecord* AllocatorMemoryUsed::add_allocation_records() { - // @@protoc_insertion_point(field_add:tensorflow.AllocatorMemoryUsed.allocation_records) - return allocation_records_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::AllocationRecord >& -AllocatorMemoryUsed::allocation_records() const { - // @@protoc_insertion_point(field_list:tensorflow.AllocatorMemoryUsed.allocation_records) - return allocation_records_; -} - -// int64 allocator_bytes_in_use = 5; -inline void AllocatorMemoryUsed::clear_allocator_bytes_in_use() { - allocator_bytes_in_use_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 AllocatorMemoryUsed::allocator_bytes_in_use() const { - // @@protoc_insertion_point(field_get:tensorflow.AllocatorMemoryUsed.allocator_bytes_in_use) - return allocator_bytes_in_use_; -} -inline void AllocatorMemoryUsed::set_allocator_bytes_in_use(::google::protobuf::int64 value) { - - allocator_bytes_in_use_ = value; - // @@protoc_insertion_point(field_set:tensorflow.AllocatorMemoryUsed.allocator_bytes_in_use) -} - -// ------------------------------------------------------------------- - -// NodeOutput - -// int32 slot = 1; -inline void NodeOutput::clear_slot() { - slot_ = 0; -} -inline ::google::protobuf::int32 NodeOutput::slot() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeOutput.slot) - return slot_; -} -inline void NodeOutput::set_slot(::google::protobuf::int32 value) { - - slot_ = value; - // @@protoc_insertion_point(field_set:tensorflow.NodeOutput.slot) -} - -// .tensorflow.TensorDescription tensor_description = 3; -inline bool NodeOutput::has_tensor_description() const { - return this != internal_default_instance() && tensor_description_ != NULL; -} -inline const ::tensorflow::TensorDescription& NodeOutput::_internal_tensor_description() const { - return *tensor_description_; -} -inline const ::tensorflow::TensorDescription& NodeOutput::tensor_description() const { - const ::tensorflow::TensorDescription* p = tensor_description_; - // @@protoc_insertion_point(field_get:tensorflow.NodeOutput.tensor_description) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_TensorDescription_default_instance_); -} -inline ::tensorflow::TensorDescription* NodeOutput::release_tensor_description() { - // @@protoc_insertion_point(field_release:tensorflow.NodeOutput.tensor_description) - - ::tensorflow::TensorDescription* temp = tensor_description_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - tensor_description_ = NULL; - return temp; -} -inline ::tensorflow::TensorDescription* NodeOutput::unsafe_arena_release_tensor_description() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeOutput.tensor_description) - - ::tensorflow::TensorDescription* temp = tensor_description_; - tensor_description_ = NULL; - return temp; -} -inline ::tensorflow::TensorDescription* NodeOutput::mutable_tensor_description() { - - if (tensor_description_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::TensorDescription>(GetArenaNoVirtual()); - tensor_description_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.NodeOutput.tensor_description) - return tensor_description_; -} -inline void NodeOutput::set_allocated_tensor_description(::tensorflow::TensorDescription* tensor_description) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(tensor_description_); - } - if (tensor_description) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(tensor_description)->GetArena(); - if (message_arena != submessage_arena) { - tensor_description = ::google::protobuf::internal::GetOwnedMessage( - message_arena, tensor_description, submessage_arena); - } - - } else { - - } - tensor_description_ = tensor_description; - // @@protoc_insertion_point(field_set_allocated:tensorflow.NodeOutput.tensor_description) -} - -// ------------------------------------------------------------------- - -// MemoryStats - -// int64 temp_memory_size = 1; -inline void MemoryStats::clear_temp_memory_size() { - temp_memory_size_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 MemoryStats::temp_memory_size() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryStats.temp_memory_size) - return temp_memory_size_; -} -inline void MemoryStats::set_temp_memory_size(::google::protobuf::int64 value) { - - temp_memory_size_ = value; - // @@protoc_insertion_point(field_set:tensorflow.MemoryStats.temp_memory_size) -} - -// int64 persistent_memory_size = 3; -inline void MemoryStats::clear_persistent_memory_size() { - persistent_memory_size_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 MemoryStats::persistent_memory_size() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryStats.persistent_memory_size) - return persistent_memory_size_; -} -inline void MemoryStats::set_persistent_memory_size(::google::protobuf::int64 value) { - - persistent_memory_size_ = value; - // @@protoc_insertion_point(field_set:tensorflow.MemoryStats.persistent_memory_size) -} - -// repeated int64 persistent_tensor_alloc_ids = 5; -inline int MemoryStats::persistent_tensor_alloc_ids_size() const { - return persistent_tensor_alloc_ids_.size(); -} -inline void MemoryStats::clear_persistent_tensor_alloc_ids() { - persistent_tensor_alloc_ids_.Clear(); -} -inline ::google::protobuf::int64 MemoryStats::persistent_tensor_alloc_ids(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryStats.persistent_tensor_alloc_ids) - return persistent_tensor_alloc_ids_.Get(index); -} -inline void MemoryStats::set_persistent_tensor_alloc_ids(int index, ::google::protobuf::int64 value) { - persistent_tensor_alloc_ids_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.MemoryStats.persistent_tensor_alloc_ids) -} -inline void MemoryStats::add_persistent_tensor_alloc_ids(::google::protobuf::int64 value) { - persistent_tensor_alloc_ids_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.MemoryStats.persistent_tensor_alloc_ids) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -MemoryStats::persistent_tensor_alloc_ids() const { - // @@protoc_insertion_point(field_list:tensorflow.MemoryStats.persistent_tensor_alloc_ids) - return persistent_tensor_alloc_ids_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -MemoryStats::mutable_persistent_tensor_alloc_ids() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.MemoryStats.persistent_tensor_alloc_ids) - return &persistent_tensor_alloc_ids_; -} - -// int64 device_temp_memory_size = 2 [deprecated = true]; -inline void MemoryStats::clear_device_temp_memory_size() { - device_temp_memory_size_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 MemoryStats::device_temp_memory_size() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryStats.device_temp_memory_size) - return device_temp_memory_size_; -} -inline void MemoryStats::set_device_temp_memory_size(::google::protobuf::int64 value) { - - device_temp_memory_size_ = value; - // @@protoc_insertion_point(field_set:tensorflow.MemoryStats.device_temp_memory_size) -} - -// int64 device_persistent_memory_size = 4 [deprecated = true]; -inline void MemoryStats::clear_device_persistent_memory_size() { - device_persistent_memory_size_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 MemoryStats::device_persistent_memory_size() const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryStats.device_persistent_memory_size) - return device_persistent_memory_size_; -} -inline void MemoryStats::set_device_persistent_memory_size(::google::protobuf::int64 value) { - - device_persistent_memory_size_ = value; - // @@protoc_insertion_point(field_set:tensorflow.MemoryStats.device_persistent_memory_size) -} - -// repeated int64 device_persistent_tensor_alloc_ids = 6 [deprecated = true]; -inline int MemoryStats::device_persistent_tensor_alloc_ids_size() const { - return device_persistent_tensor_alloc_ids_.size(); -} -inline void MemoryStats::clear_device_persistent_tensor_alloc_ids() { - device_persistent_tensor_alloc_ids_.Clear(); -} -inline ::google::protobuf::int64 MemoryStats::device_persistent_tensor_alloc_ids(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.MemoryStats.device_persistent_tensor_alloc_ids) - return device_persistent_tensor_alloc_ids_.Get(index); -} -inline void MemoryStats::set_device_persistent_tensor_alloc_ids(int index, ::google::protobuf::int64 value) { - device_persistent_tensor_alloc_ids_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.MemoryStats.device_persistent_tensor_alloc_ids) -} -inline void MemoryStats::add_device_persistent_tensor_alloc_ids(::google::protobuf::int64 value) { - device_persistent_tensor_alloc_ids_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.MemoryStats.device_persistent_tensor_alloc_ids) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -MemoryStats::device_persistent_tensor_alloc_ids() const { - // @@protoc_insertion_point(field_list:tensorflow.MemoryStats.device_persistent_tensor_alloc_ids) - return device_persistent_tensor_alloc_ids_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -MemoryStats::mutable_device_persistent_tensor_alloc_ids() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.MemoryStats.device_persistent_tensor_alloc_ids) - return &device_persistent_tensor_alloc_ids_; -} - -// ------------------------------------------------------------------- - -// NodeExecStats - -// string node_name = 1; -inline void NodeExecStats::clear_node_name() { - node_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& NodeExecStats::node_name() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeExecStats.node_name) - return node_name_.Get(); -} -inline void NodeExecStats::set_node_name(const ::std::string& value) { - - node_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.NodeExecStats.node_name) -} -#if LANG_CXX11 -inline void NodeExecStats::set_node_name(::std::string&& value) { - - node_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.NodeExecStats.node_name) -} -#endif -inline void NodeExecStats::set_node_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - node_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.NodeExecStats.node_name) -} -inline void NodeExecStats::set_node_name(const char* value, - size_t size) { - - node_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.NodeExecStats.node_name) -} -inline ::std::string* NodeExecStats::mutable_node_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.NodeExecStats.node_name) - return node_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* NodeExecStats::release_node_name() { - // @@protoc_insertion_point(field_release:tensorflow.NodeExecStats.node_name) - - return node_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void NodeExecStats::set_allocated_node_name(::std::string* node_name) { - if (node_name != NULL) { - - } else { - - } - node_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.NodeExecStats.node_name) -} -inline ::std::string* NodeExecStats::unsafe_arena_release_node_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeExecStats.node_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return node_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void NodeExecStats::unsafe_arena_set_allocated_node_name( - ::std::string* node_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (node_name != NULL) { - - } else { - - } - node_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - node_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NodeExecStats.node_name) -} - -// int64 all_start_micros = 2; -inline void NodeExecStats::clear_all_start_micros() { - all_start_micros_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 NodeExecStats::all_start_micros() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeExecStats.all_start_micros) - return all_start_micros_; -} -inline void NodeExecStats::set_all_start_micros(::google::protobuf::int64 value) { - - all_start_micros_ = value; - // @@protoc_insertion_point(field_set:tensorflow.NodeExecStats.all_start_micros) -} - -// int64 op_start_rel_micros = 3; -inline void NodeExecStats::clear_op_start_rel_micros() { - op_start_rel_micros_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 NodeExecStats::op_start_rel_micros() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeExecStats.op_start_rel_micros) - return op_start_rel_micros_; -} -inline void NodeExecStats::set_op_start_rel_micros(::google::protobuf::int64 value) { - - op_start_rel_micros_ = value; - // @@protoc_insertion_point(field_set:tensorflow.NodeExecStats.op_start_rel_micros) -} - -// int64 op_end_rel_micros = 4; -inline void NodeExecStats::clear_op_end_rel_micros() { - op_end_rel_micros_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 NodeExecStats::op_end_rel_micros() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeExecStats.op_end_rel_micros) - return op_end_rel_micros_; -} -inline void NodeExecStats::set_op_end_rel_micros(::google::protobuf::int64 value) { - - op_end_rel_micros_ = value; - // @@protoc_insertion_point(field_set:tensorflow.NodeExecStats.op_end_rel_micros) -} - -// int64 all_end_rel_micros = 5; -inline void NodeExecStats::clear_all_end_rel_micros() { - all_end_rel_micros_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 NodeExecStats::all_end_rel_micros() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeExecStats.all_end_rel_micros) - return all_end_rel_micros_; -} -inline void NodeExecStats::set_all_end_rel_micros(::google::protobuf::int64 value) { - - all_end_rel_micros_ = value; - // @@protoc_insertion_point(field_set:tensorflow.NodeExecStats.all_end_rel_micros) -} - -// repeated .tensorflow.AllocatorMemoryUsed memory = 6; -inline int NodeExecStats::memory_size() const { - return memory_.size(); -} -inline void NodeExecStats::clear_memory() { - memory_.Clear(); -} -inline ::tensorflow::AllocatorMemoryUsed* NodeExecStats::mutable_memory(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.NodeExecStats.memory) - return memory_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::AllocatorMemoryUsed >* -NodeExecStats::mutable_memory() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.NodeExecStats.memory) - return &memory_; -} -inline const ::tensorflow::AllocatorMemoryUsed& NodeExecStats::memory(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.NodeExecStats.memory) - return memory_.Get(index); -} -inline ::tensorflow::AllocatorMemoryUsed* NodeExecStats::add_memory() { - // @@protoc_insertion_point(field_add:tensorflow.NodeExecStats.memory) - return memory_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::AllocatorMemoryUsed >& -NodeExecStats::memory() const { - // @@protoc_insertion_point(field_list:tensorflow.NodeExecStats.memory) - return memory_; -} - -// repeated .tensorflow.NodeOutput output = 7; -inline int NodeExecStats::output_size() const { - return output_.size(); -} -inline void NodeExecStats::clear_output() { - output_.Clear(); -} -inline ::tensorflow::NodeOutput* NodeExecStats::mutable_output(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.NodeExecStats.output) - return output_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeOutput >* -NodeExecStats::mutable_output() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.NodeExecStats.output) - return &output_; -} -inline const ::tensorflow::NodeOutput& NodeExecStats::output(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.NodeExecStats.output) - return output_.Get(index); -} -inline ::tensorflow::NodeOutput* NodeExecStats::add_output() { - // @@protoc_insertion_point(field_add:tensorflow.NodeExecStats.output) - return output_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeOutput >& -NodeExecStats::output() const { - // @@protoc_insertion_point(field_list:tensorflow.NodeExecStats.output) - return output_; -} - -// string timeline_label = 8; -inline void NodeExecStats::clear_timeline_label() { - timeline_label_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& NodeExecStats::timeline_label() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeExecStats.timeline_label) - return timeline_label_.Get(); -} -inline void NodeExecStats::set_timeline_label(const ::std::string& value) { - - timeline_label_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.NodeExecStats.timeline_label) -} -#if LANG_CXX11 -inline void NodeExecStats::set_timeline_label(::std::string&& value) { - - timeline_label_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.NodeExecStats.timeline_label) -} -#endif -inline void NodeExecStats::set_timeline_label(const char* value) { - GOOGLE_DCHECK(value != NULL); - - timeline_label_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.NodeExecStats.timeline_label) -} -inline void NodeExecStats::set_timeline_label(const char* value, - size_t size) { - - timeline_label_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.NodeExecStats.timeline_label) -} -inline ::std::string* NodeExecStats::mutable_timeline_label() { - - // @@protoc_insertion_point(field_mutable:tensorflow.NodeExecStats.timeline_label) - return timeline_label_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* NodeExecStats::release_timeline_label() { - // @@protoc_insertion_point(field_release:tensorflow.NodeExecStats.timeline_label) - - return timeline_label_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void NodeExecStats::set_allocated_timeline_label(::std::string* timeline_label) { - if (timeline_label != NULL) { - - } else { - - } - timeline_label_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), timeline_label, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.NodeExecStats.timeline_label) -} -inline ::std::string* NodeExecStats::unsafe_arena_release_timeline_label() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeExecStats.timeline_label) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return timeline_label_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void NodeExecStats::unsafe_arena_set_allocated_timeline_label( - ::std::string* timeline_label) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (timeline_label != NULL) { - - } else { - - } - timeline_label_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - timeline_label, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NodeExecStats.timeline_label) -} - -// int64 scheduled_micros = 9; -inline void NodeExecStats::clear_scheduled_micros() { - scheduled_micros_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 NodeExecStats::scheduled_micros() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeExecStats.scheduled_micros) - return scheduled_micros_; -} -inline void NodeExecStats::set_scheduled_micros(::google::protobuf::int64 value) { - - scheduled_micros_ = value; - // @@protoc_insertion_point(field_set:tensorflow.NodeExecStats.scheduled_micros) -} - -// uint32 thread_id = 10; -inline void NodeExecStats::clear_thread_id() { - thread_id_ = 0u; -} -inline ::google::protobuf::uint32 NodeExecStats::thread_id() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeExecStats.thread_id) - return thread_id_; -} -inline void NodeExecStats::set_thread_id(::google::protobuf::uint32 value) { - - thread_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.NodeExecStats.thread_id) -} - -// repeated .tensorflow.AllocationDescription referenced_tensor = 11; -inline int NodeExecStats::referenced_tensor_size() const { - return referenced_tensor_.size(); -} -inline ::tensorflow::AllocationDescription* NodeExecStats::mutable_referenced_tensor(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.NodeExecStats.referenced_tensor) - return referenced_tensor_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::AllocationDescription >* -NodeExecStats::mutable_referenced_tensor() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.NodeExecStats.referenced_tensor) - return &referenced_tensor_; -} -inline const ::tensorflow::AllocationDescription& NodeExecStats::referenced_tensor(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.NodeExecStats.referenced_tensor) - return referenced_tensor_.Get(index); -} -inline ::tensorflow::AllocationDescription* NodeExecStats::add_referenced_tensor() { - // @@protoc_insertion_point(field_add:tensorflow.NodeExecStats.referenced_tensor) - return referenced_tensor_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::AllocationDescription >& -NodeExecStats::referenced_tensor() const { - // @@protoc_insertion_point(field_list:tensorflow.NodeExecStats.referenced_tensor) - return referenced_tensor_; -} - -// .tensorflow.MemoryStats memory_stats = 12; -inline bool NodeExecStats::has_memory_stats() const { - return this != internal_default_instance() && memory_stats_ != NULL; -} -inline void NodeExecStats::clear_memory_stats() { - if (GetArenaNoVirtual() == NULL && memory_stats_ != NULL) { - delete memory_stats_; - } - memory_stats_ = NULL; -} -inline const ::tensorflow::MemoryStats& NodeExecStats::_internal_memory_stats() const { - return *memory_stats_; -} -inline const ::tensorflow::MemoryStats& NodeExecStats::memory_stats() const { - const ::tensorflow::MemoryStats* p = memory_stats_; - // @@protoc_insertion_point(field_get:tensorflow.NodeExecStats.memory_stats) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_MemoryStats_default_instance_); -} -inline ::tensorflow::MemoryStats* NodeExecStats::release_memory_stats() { - // @@protoc_insertion_point(field_release:tensorflow.NodeExecStats.memory_stats) - - ::tensorflow::MemoryStats* temp = memory_stats_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - memory_stats_ = NULL; - return temp; -} -inline ::tensorflow::MemoryStats* NodeExecStats::unsafe_arena_release_memory_stats() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NodeExecStats.memory_stats) - - ::tensorflow::MemoryStats* temp = memory_stats_; - memory_stats_ = NULL; - return temp; -} -inline ::tensorflow::MemoryStats* NodeExecStats::mutable_memory_stats() { - - if (memory_stats_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::MemoryStats>(GetArenaNoVirtual()); - memory_stats_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.NodeExecStats.memory_stats) - return memory_stats_; -} -inline void NodeExecStats::set_allocated_memory_stats(::tensorflow::MemoryStats* memory_stats) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete memory_stats_; - } - if (memory_stats) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(memory_stats); - if (message_arena != submessage_arena) { - memory_stats = ::google::protobuf::internal::GetOwnedMessage( - message_arena, memory_stats, submessage_arena); - } - - } else { - - } - memory_stats_ = memory_stats; - // @@protoc_insertion_point(field_set_allocated:tensorflow.NodeExecStats.memory_stats) -} - -// int64 all_start_nanos = 13; -inline void NodeExecStats::clear_all_start_nanos() { - all_start_nanos_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 NodeExecStats::all_start_nanos() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeExecStats.all_start_nanos) - return all_start_nanos_; -} -inline void NodeExecStats::set_all_start_nanos(::google::protobuf::int64 value) { - - all_start_nanos_ = value; - // @@protoc_insertion_point(field_set:tensorflow.NodeExecStats.all_start_nanos) -} - -// int64 op_start_rel_nanos = 14; -inline void NodeExecStats::clear_op_start_rel_nanos() { - op_start_rel_nanos_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 NodeExecStats::op_start_rel_nanos() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeExecStats.op_start_rel_nanos) - return op_start_rel_nanos_; -} -inline void NodeExecStats::set_op_start_rel_nanos(::google::protobuf::int64 value) { - - op_start_rel_nanos_ = value; - // @@protoc_insertion_point(field_set:tensorflow.NodeExecStats.op_start_rel_nanos) -} - -// int64 op_end_rel_nanos = 15; -inline void NodeExecStats::clear_op_end_rel_nanos() { - op_end_rel_nanos_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 NodeExecStats::op_end_rel_nanos() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeExecStats.op_end_rel_nanos) - return op_end_rel_nanos_; -} -inline void NodeExecStats::set_op_end_rel_nanos(::google::protobuf::int64 value) { - - op_end_rel_nanos_ = value; - // @@protoc_insertion_point(field_set:tensorflow.NodeExecStats.op_end_rel_nanos) -} - -// int64 all_end_rel_nanos = 16; -inline void NodeExecStats::clear_all_end_rel_nanos() { - all_end_rel_nanos_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 NodeExecStats::all_end_rel_nanos() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeExecStats.all_end_rel_nanos) - return all_end_rel_nanos_; -} -inline void NodeExecStats::set_all_end_rel_nanos(::google::protobuf::int64 value) { - - all_end_rel_nanos_ = value; - // @@protoc_insertion_point(field_set:tensorflow.NodeExecStats.all_end_rel_nanos) -} - -// int64 scheduled_nanos = 17; -inline void NodeExecStats::clear_scheduled_nanos() { - scheduled_nanos_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 NodeExecStats::scheduled_nanos() const { - // @@protoc_insertion_point(field_get:tensorflow.NodeExecStats.scheduled_nanos) - return scheduled_nanos_; -} -inline void NodeExecStats::set_scheduled_nanos(::google::protobuf::int64 value) { - - scheduled_nanos_ = value; - // @@protoc_insertion_point(field_set:tensorflow.NodeExecStats.scheduled_nanos) -} - -// ------------------------------------------------------------------- - -// DeviceStepStats - -// string device = 1; -inline void DeviceStepStats::clear_device() { - device_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& DeviceStepStats::device() const { - // @@protoc_insertion_point(field_get:tensorflow.DeviceStepStats.device) - return device_.Get(); -} -inline void DeviceStepStats::set_device(const ::std::string& value) { - - device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.DeviceStepStats.device) -} -#if LANG_CXX11 -inline void DeviceStepStats::set_device(::std::string&& value) { - - device_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.DeviceStepStats.device) -} -#endif -inline void DeviceStepStats::set_device(const char* value) { - GOOGLE_DCHECK(value != NULL); - - device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.DeviceStepStats.device) -} -inline void DeviceStepStats::set_device(const char* value, - size_t size) { - - device_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.DeviceStepStats.device) -} -inline ::std::string* DeviceStepStats::mutable_device() { - - // @@protoc_insertion_point(field_mutable:tensorflow.DeviceStepStats.device) - return device_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* DeviceStepStats::release_device() { - // @@protoc_insertion_point(field_release:tensorflow.DeviceStepStats.device) - - return device_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void DeviceStepStats::set_allocated_device(::std::string* device) { - if (device != NULL) { - - } else { - - } - device_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), device, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.DeviceStepStats.device) -} -inline ::std::string* DeviceStepStats::unsafe_arena_release_device() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.DeviceStepStats.device) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return device_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void DeviceStepStats::unsafe_arena_set_allocated_device( - ::std::string* device) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (device != NULL) { - - } else { - - } - device_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - device, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.DeviceStepStats.device) -} - -// repeated .tensorflow.NodeExecStats node_stats = 2; -inline int DeviceStepStats::node_stats_size() const { - return node_stats_.size(); -} -inline void DeviceStepStats::clear_node_stats() { - node_stats_.Clear(); -} -inline ::tensorflow::NodeExecStats* DeviceStepStats::mutable_node_stats(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.DeviceStepStats.node_stats) - return node_stats_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeExecStats >* -DeviceStepStats::mutable_node_stats() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.DeviceStepStats.node_stats) - return &node_stats_; -} -inline const ::tensorflow::NodeExecStats& DeviceStepStats::node_stats(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.DeviceStepStats.node_stats) - return node_stats_.Get(index); -} -inline ::tensorflow::NodeExecStats* DeviceStepStats::add_node_stats() { - // @@protoc_insertion_point(field_add:tensorflow.DeviceStepStats.node_stats) - return node_stats_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::NodeExecStats >& -DeviceStepStats::node_stats() const { - // @@protoc_insertion_point(field_list:tensorflow.DeviceStepStats.node_stats) - return node_stats_; -} - -// ------------------------------------------------------------------- - -// StepStats - -// repeated .tensorflow.DeviceStepStats dev_stats = 1; -inline int StepStats::dev_stats_size() const { - return dev_stats_.size(); -} -inline void StepStats::clear_dev_stats() { - dev_stats_.Clear(); -} -inline ::tensorflow::DeviceStepStats* StepStats::mutable_dev_stats(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.StepStats.dev_stats) - return dev_stats_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::DeviceStepStats >* -StepStats::mutable_dev_stats() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.StepStats.dev_stats) - return &dev_stats_; -} -inline const ::tensorflow::DeviceStepStats& StepStats::dev_stats(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.StepStats.dev_stats) - return dev_stats_.Get(index); -} -inline ::tensorflow::DeviceStepStats* StepStats::add_dev_stats() { - // @@protoc_insertion_point(field_add:tensorflow.StepStats.dev_stats) - return dev_stats_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::DeviceStepStats >& -StepStats::dev_stats() const { - // @@protoc_insertion_point(field_list:tensorflow.StepStats.dev_stats) - return dev_stats_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fstep_5fstats_2eproto diff --git a/linux/include/tensorflow/core/framework/step_stats.pb_text-impl.h b/linux/include/tensorflow/core/framework/step_stats.pb_text-impl.h deleted file mode 100755 index efec6cfd6..000000000 --- a/linux/include/tensorflow/core/framework/step_stats.pb_text-impl.h +++ /dev/null @@ -1,75 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_step_stats_proto_IMPL_H_ -#define tensorflow_core_framework_step_stats_proto_IMPL_H_ - -#include "tensorflow/core/framework/allocation_description.pb.h" -#include "tensorflow/core/framework/allocation_description.pb_text-impl.h" -#include "tensorflow/core/framework/step_stats.pb.h" -#include "tensorflow/core/framework/step_stats.pb_text.h" -#include "tensorflow/core/framework/tensor_description.pb.h" -#include "tensorflow/core/framework/tensor_description.pb_text-impl.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb_text-impl.h" -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/framework/types.pb_text-impl.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::AllocationRecord& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::AllocationRecord* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::AllocatorMemoryUsed& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::AllocatorMemoryUsed* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::NodeOutput& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::NodeOutput* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::MemoryStats& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::MemoryStats* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::NodeExecStats& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::NodeExecStats* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::DeviceStepStats& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::DeviceStepStats* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::StepStats& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::StepStats* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_step_stats_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/step_stats.pb_text.h b/linux/include/tensorflow/core/framework/step_stats.pb_text.h deleted file mode 100755 index 14ea21489..000000000 --- a/linux/include/tensorflow/core/framework/step_stats.pb_text.h +++ /dev/null @@ -1,84 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_step_stats_proto_H_ -#define tensorflow_core_framework_step_stats_proto_H_ - -#include "tensorflow/core/framework/step_stats.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.AllocationRecord -string ProtoDebugString( - const ::tensorflow::AllocationRecord& msg); -string ProtoShortDebugString( - const ::tensorflow::AllocationRecord& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::AllocationRecord* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.AllocatorMemoryUsed -string ProtoDebugString( - const ::tensorflow::AllocatorMemoryUsed& msg); -string ProtoShortDebugString( - const ::tensorflow::AllocatorMemoryUsed& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::AllocatorMemoryUsed* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.NodeOutput -string ProtoDebugString( - const ::tensorflow::NodeOutput& msg); -string ProtoShortDebugString( - const ::tensorflow::NodeOutput& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::NodeOutput* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.MemoryStats -string ProtoDebugString( - const ::tensorflow::MemoryStats& msg); -string ProtoShortDebugString( - const ::tensorflow::MemoryStats& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::MemoryStats* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.NodeExecStats -string ProtoDebugString( - const ::tensorflow::NodeExecStats& msg); -string ProtoShortDebugString( - const ::tensorflow::NodeExecStats& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::NodeExecStats* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.DeviceStepStats -string ProtoDebugString( - const ::tensorflow::DeviceStepStats& msg); -string ProtoShortDebugString( - const ::tensorflow::DeviceStepStats& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::DeviceStepStats* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.StepStats -string ProtoDebugString( - const ::tensorflow::StepStats& msg); -string ProtoShortDebugString( - const ::tensorflow::StepStats& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::StepStats* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_step_stats_proto_H_ diff --git a/linux/include/tensorflow/core/framework/summary.pb.h b/linux/include/tensorflow/core/framework/summary.pb.h deleted file mode 100755 index 9e866f34c..000000000 --- a/linux/include/tensorflow/core/framework/summary.pb.h +++ /dev/null @@ -1,3113 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/summary.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fsummary_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fsummary_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "tensorflow/core/framework/tensor.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fsummary_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2fsummary_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[8]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2fsummary_2eproto -namespace tensorflow { -class HistogramProto; -class HistogramProtoDefaultTypeInternal; -extern HistogramProtoDefaultTypeInternal _HistogramProto_default_instance_; -class Summary; -class SummaryDefaultTypeInternal; -extern SummaryDefaultTypeInternal _Summary_default_instance_; -class SummaryDescription; -class SummaryDescriptionDefaultTypeInternal; -extern SummaryDescriptionDefaultTypeInternal _SummaryDescription_default_instance_; -class SummaryMetadata; -class SummaryMetadataDefaultTypeInternal; -extern SummaryMetadataDefaultTypeInternal _SummaryMetadata_default_instance_; -class SummaryMetadata_PluginData; -class SummaryMetadata_PluginDataDefaultTypeInternal; -extern SummaryMetadata_PluginDataDefaultTypeInternal _SummaryMetadata_PluginData_default_instance_; -class Summary_Audio; -class Summary_AudioDefaultTypeInternal; -extern Summary_AudioDefaultTypeInternal _Summary_Audio_default_instance_; -class Summary_Image; -class Summary_ImageDefaultTypeInternal; -extern Summary_ImageDefaultTypeInternal _Summary_Image_default_instance_; -class Summary_Value; -class Summary_ValueDefaultTypeInternal; -extern Summary_ValueDefaultTypeInternal _Summary_Value_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::HistogramProto* Arena::CreateMaybeMessage<::tensorflow::HistogramProto>(Arena*); -template<> ::tensorflow::Summary* Arena::CreateMaybeMessage<::tensorflow::Summary>(Arena*); -template<> ::tensorflow::SummaryDescription* Arena::CreateMaybeMessage<::tensorflow::SummaryDescription>(Arena*); -template<> ::tensorflow::SummaryMetadata* Arena::CreateMaybeMessage<::tensorflow::SummaryMetadata>(Arena*); -template<> ::tensorflow::SummaryMetadata_PluginData* Arena::CreateMaybeMessage<::tensorflow::SummaryMetadata_PluginData>(Arena*); -template<> ::tensorflow::Summary_Audio* Arena::CreateMaybeMessage<::tensorflow::Summary_Audio>(Arena*); -template<> ::tensorflow::Summary_Image* Arena::CreateMaybeMessage<::tensorflow::Summary_Image>(Arena*); -template<> ::tensorflow::Summary_Value* Arena::CreateMaybeMessage<::tensorflow::Summary_Value>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class SummaryDescription : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.SummaryDescription) */ { - public: - SummaryDescription(); - virtual ~SummaryDescription(); - - SummaryDescription(const SummaryDescription& from); - - inline SummaryDescription& operator=(const SummaryDescription& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SummaryDescription(SummaryDescription&& from) noexcept - : SummaryDescription() { - *this = ::std::move(from); - } - - inline SummaryDescription& operator=(SummaryDescription&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const SummaryDescription& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SummaryDescription* internal_default_instance() { - return reinterpret_cast( - &_SummaryDescription_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(SummaryDescription* other); - void Swap(SummaryDescription* other); - friend void swap(SummaryDescription& a, SummaryDescription& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SummaryDescription* New() const final { - return CreateMaybeMessage(NULL); - } - - SummaryDescription* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const SummaryDescription& from); - void MergeFrom(const SummaryDescription& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SummaryDescription* other); - protected: - explicit SummaryDescription(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string type_hint = 1; - void clear_type_hint(); - static const int kTypeHintFieldNumber = 1; - const ::std::string& type_hint() const; - void set_type_hint(const ::std::string& value); - #if LANG_CXX11 - void set_type_hint(::std::string&& value); - #endif - void set_type_hint(const char* value); - void set_type_hint(const char* value, size_t size); - ::std::string* mutable_type_hint(); - ::std::string* release_type_hint(); - void set_allocated_type_hint(::std::string* type_hint); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_type_hint(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_type_hint( - ::std::string* type_hint); - - // @@protoc_insertion_point(class_scope:tensorflow.SummaryDescription) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr type_hint_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fsummary_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class HistogramProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.HistogramProto) */ { - public: - HistogramProto(); - virtual ~HistogramProto(); - - HistogramProto(const HistogramProto& from); - - inline HistogramProto& operator=(const HistogramProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - HistogramProto(HistogramProto&& from) noexcept - : HistogramProto() { - *this = ::std::move(from); - } - - inline HistogramProto& operator=(HistogramProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const HistogramProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const HistogramProto* internal_default_instance() { - return reinterpret_cast( - &_HistogramProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(HistogramProto* other); - void Swap(HistogramProto* other); - friend void swap(HistogramProto& a, HistogramProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline HistogramProto* New() const final { - return CreateMaybeMessage(NULL); - } - - HistogramProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const HistogramProto& from); - void MergeFrom(const HistogramProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(HistogramProto* other); - protected: - explicit HistogramProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated double bucket_limit = 6 [packed = true]; - int bucket_limit_size() const; - void clear_bucket_limit(); - static const int kBucketLimitFieldNumber = 6; - double bucket_limit(int index) const; - void set_bucket_limit(int index, double value); - void add_bucket_limit(double value); - const ::google::protobuf::RepeatedField< double >& - bucket_limit() const; - ::google::protobuf::RepeatedField< double >* - mutable_bucket_limit(); - - // repeated double bucket = 7 [packed = true]; - int bucket_size() const; - void clear_bucket(); - static const int kBucketFieldNumber = 7; - double bucket(int index) const; - void set_bucket(int index, double value); - void add_bucket(double value); - const ::google::protobuf::RepeatedField< double >& - bucket() const; - ::google::protobuf::RepeatedField< double >* - mutable_bucket(); - - // double min = 1; - void clear_min(); - static const int kMinFieldNumber = 1; - double min() const; - void set_min(double value); - - // double max = 2; - void clear_max(); - static const int kMaxFieldNumber = 2; - double max() const; - void set_max(double value); - - // double num = 3; - void clear_num(); - static const int kNumFieldNumber = 3; - double num() const; - void set_num(double value); - - // double sum = 4; - void clear_sum(); - static const int kSumFieldNumber = 4; - double sum() const; - void set_sum(double value); - - // double sum_squares = 5; - void clear_sum_squares(); - static const int kSumSquaresFieldNumber = 5; - double sum_squares() const; - void set_sum_squares(double value); - - // @@protoc_insertion_point(class_scope:tensorflow.HistogramProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< double > bucket_limit_; - mutable int _bucket_limit_cached_byte_size_; - ::google::protobuf::RepeatedField< double > bucket_; - mutable int _bucket_cached_byte_size_; - double min_; - double max_; - double num_; - double sum_; - double sum_squares_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fsummary_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class SummaryMetadata_PluginData : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.SummaryMetadata.PluginData) */ { - public: - SummaryMetadata_PluginData(); - virtual ~SummaryMetadata_PluginData(); - - SummaryMetadata_PluginData(const SummaryMetadata_PluginData& from); - - inline SummaryMetadata_PluginData& operator=(const SummaryMetadata_PluginData& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SummaryMetadata_PluginData(SummaryMetadata_PluginData&& from) noexcept - : SummaryMetadata_PluginData() { - *this = ::std::move(from); - } - - inline SummaryMetadata_PluginData& operator=(SummaryMetadata_PluginData&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const SummaryMetadata_PluginData& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SummaryMetadata_PluginData* internal_default_instance() { - return reinterpret_cast( - &_SummaryMetadata_PluginData_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void UnsafeArenaSwap(SummaryMetadata_PluginData* other); - void Swap(SummaryMetadata_PluginData* other); - friend void swap(SummaryMetadata_PluginData& a, SummaryMetadata_PluginData& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SummaryMetadata_PluginData* New() const final { - return CreateMaybeMessage(NULL); - } - - SummaryMetadata_PluginData* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const SummaryMetadata_PluginData& from); - void MergeFrom(const SummaryMetadata_PluginData& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SummaryMetadata_PluginData* other); - protected: - explicit SummaryMetadata_PluginData(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string plugin_name = 1; - void clear_plugin_name(); - static const int kPluginNameFieldNumber = 1; - const ::std::string& plugin_name() const; - void set_plugin_name(const ::std::string& value); - #if LANG_CXX11 - void set_plugin_name(::std::string&& value); - #endif - void set_plugin_name(const char* value); - void set_plugin_name(const char* value, size_t size); - ::std::string* mutable_plugin_name(); - ::std::string* release_plugin_name(); - void set_allocated_plugin_name(::std::string* plugin_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_plugin_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_plugin_name( - ::std::string* plugin_name); - - // bytes content = 2; - void clear_content(); - static const int kContentFieldNumber = 2; - const ::std::string& content() const; - void set_content(const ::std::string& value); - #if LANG_CXX11 - void set_content(::std::string&& value); - #endif - void set_content(const char* value); - void set_content(const void* value, size_t size); - ::std::string* mutable_content(); - ::std::string* release_content(); - void set_allocated_content(::std::string* content); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_content(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_content( - ::std::string* content); - - // @@protoc_insertion_point(class_scope:tensorflow.SummaryMetadata.PluginData) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr plugin_name_; - ::google::protobuf::internal::ArenaStringPtr content_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fsummary_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class SummaryMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.SummaryMetadata) */ { - public: - SummaryMetadata(); - virtual ~SummaryMetadata(); - - SummaryMetadata(const SummaryMetadata& from); - - inline SummaryMetadata& operator=(const SummaryMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SummaryMetadata(SummaryMetadata&& from) noexcept - : SummaryMetadata() { - *this = ::std::move(from); - } - - inline SummaryMetadata& operator=(SummaryMetadata&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const SummaryMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SummaryMetadata* internal_default_instance() { - return reinterpret_cast( - &_SummaryMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void UnsafeArenaSwap(SummaryMetadata* other); - void Swap(SummaryMetadata* other); - friend void swap(SummaryMetadata& a, SummaryMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SummaryMetadata* New() const final { - return CreateMaybeMessage(NULL); - } - - SummaryMetadata* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const SummaryMetadata& from); - void MergeFrom(const SummaryMetadata& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SummaryMetadata* other); - protected: - explicit SummaryMetadata(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef SummaryMetadata_PluginData PluginData; - - // accessors ------------------------------------------------------- - - // string display_name = 2; - void clear_display_name(); - static const int kDisplayNameFieldNumber = 2; - const ::std::string& display_name() const; - void set_display_name(const ::std::string& value); - #if LANG_CXX11 - void set_display_name(::std::string&& value); - #endif - void set_display_name(const char* value); - void set_display_name(const char* value, size_t size); - ::std::string* mutable_display_name(); - ::std::string* release_display_name(); - void set_allocated_display_name(::std::string* display_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_display_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_display_name( - ::std::string* display_name); - - // string summary_description = 3; - void clear_summary_description(); - static const int kSummaryDescriptionFieldNumber = 3; - const ::std::string& summary_description() const; - void set_summary_description(const ::std::string& value); - #if LANG_CXX11 - void set_summary_description(::std::string&& value); - #endif - void set_summary_description(const char* value); - void set_summary_description(const char* value, size_t size); - ::std::string* mutable_summary_description(); - ::std::string* release_summary_description(); - void set_allocated_summary_description(::std::string* summary_description); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_summary_description(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_summary_description( - ::std::string* summary_description); - - // .tensorflow.SummaryMetadata.PluginData plugin_data = 1; - bool has_plugin_data() const; - void clear_plugin_data(); - static const int kPluginDataFieldNumber = 1; - private: - const ::tensorflow::SummaryMetadata_PluginData& _internal_plugin_data() const; - public: - const ::tensorflow::SummaryMetadata_PluginData& plugin_data() const; - ::tensorflow::SummaryMetadata_PluginData* release_plugin_data(); - ::tensorflow::SummaryMetadata_PluginData* mutable_plugin_data(); - void set_allocated_plugin_data(::tensorflow::SummaryMetadata_PluginData* plugin_data); - void unsafe_arena_set_allocated_plugin_data( - ::tensorflow::SummaryMetadata_PluginData* plugin_data); - ::tensorflow::SummaryMetadata_PluginData* unsafe_arena_release_plugin_data(); - - // @@protoc_insertion_point(class_scope:tensorflow.SummaryMetadata) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr display_name_; - ::google::protobuf::internal::ArenaStringPtr summary_description_; - ::tensorflow::SummaryMetadata_PluginData* plugin_data_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fsummary_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Summary_Image : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.Summary.Image) */ { - public: - Summary_Image(); - virtual ~Summary_Image(); - - Summary_Image(const Summary_Image& from); - - inline Summary_Image& operator=(const Summary_Image& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Summary_Image(Summary_Image&& from) noexcept - : Summary_Image() { - *this = ::std::move(from); - } - - inline Summary_Image& operator=(Summary_Image&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const Summary_Image& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Summary_Image* internal_default_instance() { - return reinterpret_cast( - &_Summary_Image_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void UnsafeArenaSwap(Summary_Image* other); - void Swap(Summary_Image* other); - friend void swap(Summary_Image& a, Summary_Image& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Summary_Image* New() const final { - return CreateMaybeMessage(NULL); - } - - Summary_Image* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Summary_Image& from); - void MergeFrom(const Summary_Image& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Summary_Image* other); - protected: - explicit Summary_Image(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // bytes encoded_image_string = 4; - void clear_encoded_image_string(); - static const int kEncodedImageStringFieldNumber = 4; - const ::std::string& encoded_image_string() const; - void set_encoded_image_string(const ::std::string& value); - #if LANG_CXX11 - void set_encoded_image_string(::std::string&& value); - #endif - void set_encoded_image_string(const char* value); - void set_encoded_image_string(const void* value, size_t size); - ::std::string* mutable_encoded_image_string(); - ::std::string* release_encoded_image_string(); - void set_allocated_encoded_image_string(::std::string* encoded_image_string); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_encoded_image_string(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_encoded_image_string( - ::std::string* encoded_image_string); - - // int32 height = 1; - void clear_height(); - static const int kHeightFieldNumber = 1; - ::google::protobuf::int32 height() const; - void set_height(::google::protobuf::int32 value); - - // int32 width = 2; - void clear_width(); - static const int kWidthFieldNumber = 2; - ::google::protobuf::int32 width() const; - void set_width(::google::protobuf::int32 value); - - // int32 colorspace = 3; - void clear_colorspace(); - static const int kColorspaceFieldNumber = 3; - ::google::protobuf::int32 colorspace() const; - void set_colorspace(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:tensorflow.Summary.Image) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr encoded_image_string_; - ::google::protobuf::int32 height_; - ::google::protobuf::int32 width_; - ::google::protobuf::int32 colorspace_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fsummary_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Summary_Audio : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.Summary.Audio) */ { - public: - Summary_Audio(); - virtual ~Summary_Audio(); - - Summary_Audio(const Summary_Audio& from); - - inline Summary_Audio& operator=(const Summary_Audio& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Summary_Audio(Summary_Audio&& from) noexcept - : Summary_Audio() { - *this = ::std::move(from); - } - - inline Summary_Audio& operator=(Summary_Audio&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const Summary_Audio& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Summary_Audio* internal_default_instance() { - return reinterpret_cast( - &_Summary_Audio_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void UnsafeArenaSwap(Summary_Audio* other); - void Swap(Summary_Audio* other); - friend void swap(Summary_Audio& a, Summary_Audio& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Summary_Audio* New() const final { - return CreateMaybeMessage(NULL); - } - - Summary_Audio* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Summary_Audio& from); - void MergeFrom(const Summary_Audio& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Summary_Audio* other); - protected: - explicit Summary_Audio(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // bytes encoded_audio_string = 4; - void clear_encoded_audio_string(); - static const int kEncodedAudioStringFieldNumber = 4; - const ::std::string& encoded_audio_string() const; - void set_encoded_audio_string(const ::std::string& value); - #if LANG_CXX11 - void set_encoded_audio_string(::std::string&& value); - #endif - void set_encoded_audio_string(const char* value); - void set_encoded_audio_string(const void* value, size_t size); - ::std::string* mutable_encoded_audio_string(); - ::std::string* release_encoded_audio_string(); - void set_allocated_encoded_audio_string(::std::string* encoded_audio_string); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_encoded_audio_string(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_encoded_audio_string( - ::std::string* encoded_audio_string); - - // string content_type = 5; - void clear_content_type(); - static const int kContentTypeFieldNumber = 5; - const ::std::string& content_type() const; - void set_content_type(const ::std::string& value); - #if LANG_CXX11 - void set_content_type(::std::string&& value); - #endif - void set_content_type(const char* value); - void set_content_type(const char* value, size_t size); - ::std::string* mutable_content_type(); - ::std::string* release_content_type(); - void set_allocated_content_type(::std::string* content_type); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_content_type(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_content_type( - ::std::string* content_type); - - // int64 num_channels = 2; - void clear_num_channels(); - static const int kNumChannelsFieldNumber = 2; - ::google::protobuf::int64 num_channels() const; - void set_num_channels(::google::protobuf::int64 value); - - // int64 length_frames = 3; - void clear_length_frames(); - static const int kLengthFramesFieldNumber = 3; - ::google::protobuf::int64 length_frames() const; - void set_length_frames(::google::protobuf::int64 value); - - // float sample_rate = 1; - void clear_sample_rate(); - static const int kSampleRateFieldNumber = 1; - float sample_rate() const; - void set_sample_rate(float value); - - // @@protoc_insertion_point(class_scope:tensorflow.Summary.Audio) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr encoded_audio_string_; - ::google::protobuf::internal::ArenaStringPtr content_type_; - ::google::protobuf::int64 num_channels_; - ::google::protobuf::int64 length_frames_; - float sample_rate_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fsummary_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Summary_Value : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.Summary.Value) */ { - public: - Summary_Value(); - virtual ~Summary_Value(); - - Summary_Value(const Summary_Value& from); - - inline Summary_Value& operator=(const Summary_Value& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Summary_Value(Summary_Value&& from) noexcept - : Summary_Value() { - *this = ::std::move(from); - } - - inline Summary_Value& operator=(Summary_Value&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const Summary_Value& default_instance(); - - enum ValueCase { - kSimpleValue = 2, - kObsoleteOldStyleHistogram = 3, - kImage = 4, - kHisto = 5, - kAudio = 6, - kTensor = 8, - VALUE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Summary_Value* internal_default_instance() { - return reinterpret_cast( - &_Summary_Value_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void UnsafeArenaSwap(Summary_Value* other); - void Swap(Summary_Value* other); - friend void swap(Summary_Value& a, Summary_Value& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Summary_Value* New() const final { - return CreateMaybeMessage(NULL); - } - - Summary_Value* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Summary_Value& from); - void MergeFrom(const Summary_Value& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Summary_Value* other); - protected: - explicit Summary_Value(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string tag = 1; - void clear_tag(); - static const int kTagFieldNumber = 1; - const ::std::string& tag() const; - void set_tag(const ::std::string& value); - #if LANG_CXX11 - void set_tag(::std::string&& value); - #endif - void set_tag(const char* value); - void set_tag(const char* value, size_t size); - ::std::string* mutable_tag(); - ::std::string* release_tag(); - void set_allocated_tag(::std::string* tag); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_tag(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_tag( - ::std::string* tag); - - // string node_name = 7; - void clear_node_name(); - static const int kNodeNameFieldNumber = 7; - const ::std::string& node_name() const; - void set_node_name(const ::std::string& value); - #if LANG_CXX11 - void set_node_name(::std::string&& value); - #endif - void set_node_name(const char* value); - void set_node_name(const char* value, size_t size); - ::std::string* mutable_node_name(); - ::std::string* release_node_name(); - void set_allocated_node_name(::std::string* node_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_node_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_node_name( - ::std::string* node_name); - - // .tensorflow.SummaryMetadata metadata = 9; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 9; - private: - const ::tensorflow::SummaryMetadata& _internal_metadata() const; - public: - const ::tensorflow::SummaryMetadata& metadata() const; - ::tensorflow::SummaryMetadata* release_metadata(); - ::tensorflow::SummaryMetadata* mutable_metadata(); - void set_allocated_metadata(::tensorflow::SummaryMetadata* metadata); - void unsafe_arena_set_allocated_metadata( - ::tensorflow::SummaryMetadata* metadata); - ::tensorflow::SummaryMetadata* unsafe_arena_release_metadata(); - - // float simple_value = 2; - private: - bool has_simple_value() const; - public: - void clear_simple_value(); - static const int kSimpleValueFieldNumber = 2; - float simple_value() const; - void set_simple_value(float value); - - // bytes obsolete_old_style_histogram = 3; - private: - bool has_obsolete_old_style_histogram() const; - public: - void clear_obsolete_old_style_histogram(); - static const int kObsoleteOldStyleHistogramFieldNumber = 3; - const ::std::string& obsolete_old_style_histogram() const; - void set_obsolete_old_style_histogram(const ::std::string& value); - #if LANG_CXX11 - void set_obsolete_old_style_histogram(::std::string&& value); - #endif - void set_obsolete_old_style_histogram(const char* value); - void set_obsolete_old_style_histogram(const void* value, size_t size); - ::std::string* mutable_obsolete_old_style_histogram(); - ::std::string* release_obsolete_old_style_histogram(); - void set_allocated_obsolete_old_style_histogram(::std::string* obsolete_old_style_histogram); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_obsolete_old_style_histogram(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_obsolete_old_style_histogram( - ::std::string* obsolete_old_style_histogram); - - // .tensorflow.Summary.Image image = 4; - bool has_image() const; - void clear_image(); - static const int kImageFieldNumber = 4; - private: - const ::tensorflow::Summary_Image& _internal_image() const; - public: - const ::tensorflow::Summary_Image& image() const; - ::tensorflow::Summary_Image* release_image(); - ::tensorflow::Summary_Image* mutable_image(); - void set_allocated_image(::tensorflow::Summary_Image* image); - void unsafe_arena_set_allocated_image( - ::tensorflow::Summary_Image* image); - ::tensorflow::Summary_Image* unsafe_arena_release_image(); - - // .tensorflow.HistogramProto histo = 5; - bool has_histo() const; - void clear_histo(); - static const int kHistoFieldNumber = 5; - private: - const ::tensorflow::HistogramProto& _internal_histo() const; - public: - const ::tensorflow::HistogramProto& histo() const; - ::tensorflow::HistogramProto* release_histo(); - ::tensorflow::HistogramProto* mutable_histo(); - void set_allocated_histo(::tensorflow::HistogramProto* histo); - void unsafe_arena_set_allocated_histo( - ::tensorflow::HistogramProto* histo); - ::tensorflow::HistogramProto* unsafe_arena_release_histo(); - - // .tensorflow.Summary.Audio audio = 6; - bool has_audio() const; - void clear_audio(); - static const int kAudioFieldNumber = 6; - private: - const ::tensorflow::Summary_Audio& _internal_audio() const; - public: - const ::tensorflow::Summary_Audio& audio() const; - ::tensorflow::Summary_Audio* release_audio(); - ::tensorflow::Summary_Audio* mutable_audio(); - void set_allocated_audio(::tensorflow::Summary_Audio* audio); - void unsafe_arena_set_allocated_audio( - ::tensorflow::Summary_Audio* audio); - ::tensorflow::Summary_Audio* unsafe_arena_release_audio(); - - // .tensorflow.TensorProto tensor = 8; - bool has_tensor() const; - void clear_tensor(); - static const int kTensorFieldNumber = 8; - private: - const ::tensorflow::TensorProto& _internal_tensor() const; - public: - const ::tensorflow::TensorProto& tensor() const; - ::tensorflow::TensorProto* release_tensor(); - ::tensorflow::TensorProto* mutable_tensor(); - void set_allocated_tensor(::tensorflow::TensorProto* tensor); - void unsafe_arena_set_allocated_tensor( - ::tensorflow::TensorProto* tensor); - ::tensorflow::TensorProto* unsafe_arena_release_tensor(); - - void clear_value(); - ValueCase value_case() const; - // @@protoc_insertion_point(class_scope:tensorflow.Summary.Value) - private: - void set_has_simple_value(); - void set_has_obsolete_old_style_histogram(); - void set_has_image(); - void set_has_histo(); - void set_has_audio(); - void set_has_tensor(); - - inline bool has_value() const; - inline void clear_has_value(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr tag_; - ::google::protobuf::internal::ArenaStringPtr node_name_; - ::tensorflow::SummaryMetadata* metadata_; - union ValueUnion { - ValueUnion() {} - float simple_value_; - ::google::protobuf::internal::ArenaStringPtr obsolete_old_style_histogram_; - ::tensorflow::Summary_Image* image_; - ::tensorflow::HistogramProto* histo_; - ::tensorflow::Summary_Audio* audio_; - ::tensorflow::TensorProto* tensor_; - } value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fsummary_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Summary : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.Summary) */ { - public: - Summary(); - virtual ~Summary(); - - Summary(const Summary& from); - - inline Summary& operator=(const Summary& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Summary(Summary&& from) noexcept - : Summary() { - *this = ::std::move(from); - } - - inline Summary& operator=(Summary&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const Summary& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Summary* internal_default_instance() { - return reinterpret_cast( - &_Summary_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void UnsafeArenaSwap(Summary* other); - void Swap(Summary* other); - friend void swap(Summary& a, Summary& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Summary* New() const final { - return CreateMaybeMessage(NULL); - } - - Summary* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Summary& from); - void MergeFrom(const Summary& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Summary* other); - protected: - explicit Summary(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef Summary_Image Image; - typedef Summary_Audio Audio; - typedef Summary_Value Value; - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.Summary.Value value = 1; - int value_size() const; - void clear_value(); - static const int kValueFieldNumber = 1; - ::tensorflow::Summary_Value* mutable_value(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::Summary_Value >* - mutable_value(); - const ::tensorflow::Summary_Value& value(int index) const; - ::tensorflow::Summary_Value* add_value(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::Summary_Value >& - value() const; - - // @@protoc_insertion_point(class_scope:tensorflow.Summary) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::Summary_Value > value_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fsummary_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// SummaryDescription - -// string type_hint = 1; -inline void SummaryDescription::clear_type_hint() { - type_hint_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& SummaryDescription::type_hint() const { - // @@protoc_insertion_point(field_get:tensorflow.SummaryDescription.type_hint) - return type_hint_.Get(); -} -inline void SummaryDescription::set_type_hint(const ::std::string& value) { - - type_hint_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.SummaryDescription.type_hint) -} -#if LANG_CXX11 -inline void SummaryDescription::set_type_hint(::std::string&& value) { - - type_hint_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.SummaryDescription.type_hint) -} -#endif -inline void SummaryDescription::set_type_hint(const char* value) { - GOOGLE_DCHECK(value != NULL); - - type_hint_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.SummaryDescription.type_hint) -} -inline void SummaryDescription::set_type_hint(const char* value, - size_t size) { - - type_hint_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.SummaryDescription.type_hint) -} -inline ::std::string* SummaryDescription::mutable_type_hint() { - - // @@protoc_insertion_point(field_mutable:tensorflow.SummaryDescription.type_hint) - return type_hint_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* SummaryDescription::release_type_hint() { - // @@protoc_insertion_point(field_release:tensorflow.SummaryDescription.type_hint) - - return type_hint_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void SummaryDescription::set_allocated_type_hint(::std::string* type_hint) { - if (type_hint != NULL) { - - } else { - - } - type_hint_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_hint, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.SummaryDescription.type_hint) -} -inline ::std::string* SummaryDescription::unsafe_arena_release_type_hint() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SummaryDescription.type_hint) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return type_hint_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void SummaryDescription::unsafe_arena_set_allocated_type_hint( - ::std::string* type_hint) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (type_hint != NULL) { - - } else { - - } - type_hint_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - type_hint, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SummaryDescription.type_hint) -} - -// ------------------------------------------------------------------- - -// HistogramProto - -// double min = 1; -inline void HistogramProto::clear_min() { - min_ = 0; -} -inline double HistogramProto::min() const { - // @@protoc_insertion_point(field_get:tensorflow.HistogramProto.min) - return min_; -} -inline void HistogramProto::set_min(double value) { - - min_ = value; - // @@protoc_insertion_point(field_set:tensorflow.HistogramProto.min) -} - -// double max = 2; -inline void HistogramProto::clear_max() { - max_ = 0; -} -inline double HistogramProto::max() const { - // @@protoc_insertion_point(field_get:tensorflow.HistogramProto.max) - return max_; -} -inline void HistogramProto::set_max(double value) { - - max_ = value; - // @@protoc_insertion_point(field_set:tensorflow.HistogramProto.max) -} - -// double num = 3; -inline void HistogramProto::clear_num() { - num_ = 0; -} -inline double HistogramProto::num() const { - // @@protoc_insertion_point(field_get:tensorflow.HistogramProto.num) - return num_; -} -inline void HistogramProto::set_num(double value) { - - num_ = value; - // @@protoc_insertion_point(field_set:tensorflow.HistogramProto.num) -} - -// double sum = 4; -inline void HistogramProto::clear_sum() { - sum_ = 0; -} -inline double HistogramProto::sum() const { - // @@protoc_insertion_point(field_get:tensorflow.HistogramProto.sum) - return sum_; -} -inline void HistogramProto::set_sum(double value) { - - sum_ = value; - // @@protoc_insertion_point(field_set:tensorflow.HistogramProto.sum) -} - -// double sum_squares = 5; -inline void HistogramProto::clear_sum_squares() { - sum_squares_ = 0; -} -inline double HistogramProto::sum_squares() const { - // @@protoc_insertion_point(field_get:tensorflow.HistogramProto.sum_squares) - return sum_squares_; -} -inline void HistogramProto::set_sum_squares(double value) { - - sum_squares_ = value; - // @@protoc_insertion_point(field_set:tensorflow.HistogramProto.sum_squares) -} - -// repeated double bucket_limit = 6 [packed = true]; -inline int HistogramProto::bucket_limit_size() const { - return bucket_limit_.size(); -} -inline void HistogramProto::clear_bucket_limit() { - bucket_limit_.Clear(); -} -inline double HistogramProto::bucket_limit(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.HistogramProto.bucket_limit) - return bucket_limit_.Get(index); -} -inline void HistogramProto::set_bucket_limit(int index, double value) { - bucket_limit_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.HistogramProto.bucket_limit) -} -inline void HistogramProto::add_bucket_limit(double value) { - bucket_limit_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.HistogramProto.bucket_limit) -} -inline const ::google::protobuf::RepeatedField< double >& -HistogramProto::bucket_limit() const { - // @@protoc_insertion_point(field_list:tensorflow.HistogramProto.bucket_limit) - return bucket_limit_; -} -inline ::google::protobuf::RepeatedField< double >* -HistogramProto::mutable_bucket_limit() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.HistogramProto.bucket_limit) - return &bucket_limit_; -} - -// repeated double bucket = 7 [packed = true]; -inline int HistogramProto::bucket_size() const { - return bucket_.size(); -} -inline void HistogramProto::clear_bucket() { - bucket_.Clear(); -} -inline double HistogramProto::bucket(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.HistogramProto.bucket) - return bucket_.Get(index); -} -inline void HistogramProto::set_bucket(int index, double value) { - bucket_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.HistogramProto.bucket) -} -inline void HistogramProto::add_bucket(double value) { - bucket_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.HistogramProto.bucket) -} -inline const ::google::protobuf::RepeatedField< double >& -HistogramProto::bucket() const { - // @@protoc_insertion_point(field_list:tensorflow.HistogramProto.bucket) - return bucket_; -} -inline ::google::protobuf::RepeatedField< double >* -HistogramProto::mutable_bucket() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.HistogramProto.bucket) - return &bucket_; -} - -// ------------------------------------------------------------------- - -// SummaryMetadata_PluginData - -// string plugin_name = 1; -inline void SummaryMetadata_PluginData::clear_plugin_name() { - plugin_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& SummaryMetadata_PluginData::plugin_name() const { - // @@protoc_insertion_point(field_get:tensorflow.SummaryMetadata.PluginData.plugin_name) - return plugin_name_.Get(); -} -inline void SummaryMetadata_PluginData::set_plugin_name(const ::std::string& value) { - - plugin_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.SummaryMetadata.PluginData.plugin_name) -} -#if LANG_CXX11 -inline void SummaryMetadata_PluginData::set_plugin_name(::std::string&& value) { - - plugin_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.SummaryMetadata.PluginData.plugin_name) -} -#endif -inline void SummaryMetadata_PluginData::set_plugin_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - plugin_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.SummaryMetadata.PluginData.plugin_name) -} -inline void SummaryMetadata_PluginData::set_plugin_name(const char* value, - size_t size) { - - plugin_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.SummaryMetadata.PluginData.plugin_name) -} -inline ::std::string* SummaryMetadata_PluginData::mutable_plugin_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.SummaryMetadata.PluginData.plugin_name) - return plugin_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* SummaryMetadata_PluginData::release_plugin_name() { - // @@protoc_insertion_point(field_release:tensorflow.SummaryMetadata.PluginData.plugin_name) - - return plugin_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void SummaryMetadata_PluginData::set_allocated_plugin_name(::std::string* plugin_name) { - if (plugin_name != NULL) { - - } else { - - } - plugin_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), plugin_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.SummaryMetadata.PluginData.plugin_name) -} -inline ::std::string* SummaryMetadata_PluginData::unsafe_arena_release_plugin_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SummaryMetadata.PluginData.plugin_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return plugin_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void SummaryMetadata_PluginData::unsafe_arena_set_allocated_plugin_name( - ::std::string* plugin_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (plugin_name != NULL) { - - } else { - - } - plugin_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - plugin_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SummaryMetadata.PluginData.plugin_name) -} - -// bytes content = 2; -inline void SummaryMetadata_PluginData::clear_content() { - content_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& SummaryMetadata_PluginData::content() const { - // @@protoc_insertion_point(field_get:tensorflow.SummaryMetadata.PluginData.content) - return content_.Get(); -} -inline void SummaryMetadata_PluginData::set_content(const ::std::string& value) { - - content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.SummaryMetadata.PluginData.content) -} -#if LANG_CXX11 -inline void SummaryMetadata_PluginData::set_content(::std::string&& value) { - - content_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.SummaryMetadata.PluginData.content) -} -#endif -inline void SummaryMetadata_PluginData::set_content(const char* value) { - GOOGLE_DCHECK(value != NULL); - - content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.SummaryMetadata.PluginData.content) -} -inline void SummaryMetadata_PluginData::set_content(const void* value, - size_t size) { - - content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.SummaryMetadata.PluginData.content) -} -inline ::std::string* SummaryMetadata_PluginData::mutable_content() { - - // @@protoc_insertion_point(field_mutable:tensorflow.SummaryMetadata.PluginData.content) - return content_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* SummaryMetadata_PluginData::release_content() { - // @@protoc_insertion_point(field_release:tensorflow.SummaryMetadata.PluginData.content) - - return content_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void SummaryMetadata_PluginData::set_allocated_content(::std::string* content) { - if (content != NULL) { - - } else { - - } - content_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), content, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.SummaryMetadata.PluginData.content) -} -inline ::std::string* SummaryMetadata_PluginData::unsafe_arena_release_content() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SummaryMetadata.PluginData.content) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return content_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void SummaryMetadata_PluginData::unsafe_arena_set_allocated_content( - ::std::string* content) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (content != NULL) { - - } else { - - } - content_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - content, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SummaryMetadata.PluginData.content) -} - -// ------------------------------------------------------------------- - -// SummaryMetadata - -// .tensorflow.SummaryMetadata.PluginData plugin_data = 1; -inline bool SummaryMetadata::has_plugin_data() const { - return this != internal_default_instance() && plugin_data_ != NULL; -} -inline void SummaryMetadata::clear_plugin_data() { - if (GetArenaNoVirtual() == NULL && plugin_data_ != NULL) { - delete plugin_data_; - } - plugin_data_ = NULL; -} -inline const ::tensorflow::SummaryMetadata_PluginData& SummaryMetadata::_internal_plugin_data() const { - return *plugin_data_; -} -inline const ::tensorflow::SummaryMetadata_PluginData& SummaryMetadata::plugin_data() const { - const ::tensorflow::SummaryMetadata_PluginData* p = plugin_data_; - // @@protoc_insertion_point(field_get:tensorflow.SummaryMetadata.plugin_data) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_SummaryMetadata_PluginData_default_instance_); -} -inline ::tensorflow::SummaryMetadata_PluginData* SummaryMetadata::release_plugin_data() { - // @@protoc_insertion_point(field_release:tensorflow.SummaryMetadata.plugin_data) - - ::tensorflow::SummaryMetadata_PluginData* temp = plugin_data_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - plugin_data_ = NULL; - return temp; -} -inline ::tensorflow::SummaryMetadata_PluginData* SummaryMetadata::unsafe_arena_release_plugin_data() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SummaryMetadata.plugin_data) - - ::tensorflow::SummaryMetadata_PluginData* temp = plugin_data_; - plugin_data_ = NULL; - return temp; -} -inline ::tensorflow::SummaryMetadata_PluginData* SummaryMetadata::mutable_plugin_data() { - - if (plugin_data_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::SummaryMetadata_PluginData>(GetArenaNoVirtual()); - plugin_data_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.SummaryMetadata.plugin_data) - return plugin_data_; -} -inline void SummaryMetadata::set_allocated_plugin_data(::tensorflow::SummaryMetadata_PluginData* plugin_data) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete plugin_data_; - } - if (plugin_data) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(plugin_data); - if (message_arena != submessage_arena) { - plugin_data = ::google::protobuf::internal::GetOwnedMessage( - message_arena, plugin_data, submessage_arena); - } - - } else { - - } - plugin_data_ = plugin_data; - // @@protoc_insertion_point(field_set_allocated:tensorflow.SummaryMetadata.plugin_data) -} - -// string display_name = 2; -inline void SummaryMetadata::clear_display_name() { - display_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& SummaryMetadata::display_name() const { - // @@protoc_insertion_point(field_get:tensorflow.SummaryMetadata.display_name) - return display_name_.Get(); -} -inline void SummaryMetadata::set_display_name(const ::std::string& value) { - - display_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.SummaryMetadata.display_name) -} -#if LANG_CXX11 -inline void SummaryMetadata::set_display_name(::std::string&& value) { - - display_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.SummaryMetadata.display_name) -} -#endif -inline void SummaryMetadata::set_display_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - display_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.SummaryMetadata.display_name) -} -inline void SummaryMetadata::set_display_name(const char* value, - size_t size) { - - display_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.SummaryMetadata.display_name) -} -inline ::std::string* SummaryMetadata::mutable_display_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.SummaryMetadata.display_name) - return display_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* SummaryMetadata::release_display_name() { - // @@protoc_insertion_point(field_release:tensorflow.SummaryMetadata.display_name) - - return display_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void SummaryMetadata::set_allocated_display_name(::std::string* display_name) { - if (display_name != NULL) { - - } else { - - } - display_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), display_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.SummaryMetadata.display_name) -} -inline ::std::string* SummaryMetadata::unsafe_arena_release_display_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SummaryMetadata.display_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return display_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void SummaryMetadata::unsafe_arena_set_allocated_display_name( - ::std::string* display_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (display_name != NULL) { - - } else { - - } - display_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - display_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SummaryMetadata.display_name) -} - -// string summary_description = 3; -inline void SummaryMetadata::clear_summary_description() { - summary_description_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& SummaryMetadata::summary_description() const { - // @@protoc_insertion_point(field_get:tensorflow.SummaryMetadata.summary_description) - return summary_description_.Get(); -} -inline void SummaryMetadata::set_summary_description(const ::std::string& value) { - - summary_description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.SummaryMetadata.summary_description) -} -#if LANG_CXX11 -inline void SummaryMetadata::set_summary_description(::std::string&& value) { - - summary_description_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.SummaryMetadata.summary_description) -} -#endif -inline void SummaryMetadata::set_summary_description(const char* value) { - GOOGLE_DCHECK(value != NULL); - - summary_description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.SummaryMetadata.summary_description) -} -inline void SummaryMetadata::set_summary_description(const char* value, - size_t size) { - - summary_description_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.SummaryMetadata.summary_description) -} -inline ::std::string* SummaryMetadata::mutable_summary_description() { - - // @@protoc_insertion_point(field_mutable:tensorflow.SummaryMetadata.summary_description) - return summary_description_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* SummaryMetadata::release_summary_description() { - // @@protoc_insertion_point(field_release:tensorflow.SummaryMetadata.summary_description) - - return summary_description_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void SummaryMetadata::set_allocated_summary_description(::std::string* summary_description) { - if (summary_description != NULL) { - - } else { - - } - summary_description_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), summary_description, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.SummaryMetadata.summary_description) -} -inline ::std::string* SummaryMetadata::unsafe_arena_release_summary_description() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SummaryMetadata.summary_description) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return summary_description_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void SummaryMetadata::unsafe_arena_set_allocated_summary_description( - ::std::string* summary_description) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (summary_description != NULL) { - - } else { - - } - summary_description_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - summary_description, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SummaryMetadata.summary_description) -} - -// ------------------------------------------------------------------- - -// Summary_Image - -// int32 height = 1; -inline void Summary_Image::clear_height() { - height_ = 0; -} -inline ::google::protobuf::int32 Summary_Image::height() const { - // @@protoc_insertion_point(field_get:tensorflow.Summary.Image.height) - return height_; -} -inline void Summary_Image::set_height(::google::protobuf::int32 value) { - - height_ = value; - // @@protoc_insertion_point(field_set:tensorflow.Summary.Image.height) -} - -// int32 width = 2; -inline void Summary_Image::clear_width() { - width_ = 0; -} -inline ::google::protobuf::int32 Summary_Image::width() const { - // @@protoc_insertion_point(field_get:tensorflow.Summary.Image.width) - return width_; -} -inline void Summary_Image::set_width(::google::protobuf::int32 value) { - - width_ = value; - // @@protoc_insertion_point(field_set:tensorflow.Summary.Image.width) -} - -// int32 colorspace = 3; -inline void Summary_Image::clear_colorspace() { - colorspace_ = 0; -} -inline ::google::protobuf::int32 Summary_Image::colorspace() const { - // @@protoc_insertion_point(field_get:tensorflow.Summary.Image.colorspace) - return colorspace_; -} -inline void Summary_Image::set_colorspace(::google::protobuf::int32 value) { - - colorspace_ = value; - // @@protoc_insertion_point(field_set:tensorflow.Summary.Image.colorspace) -} - -// bytes encoded_image_string = 4; -inline void Summary_Image::clear_encoded_image_string() { - encoded_image_string_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& Summary_Image::encoded_image_string() const { - // @@protoc_insertion_point(field_get:tensorflow.Summary.Image.encoded_image_string) - return encoded_image_string_.Get(); -} -inline void Summary_Image::set_encoded_image_string(const ::std::string& value) { - - encoded_image_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.Summary.Image.encoded_image_string) -} -#if LANG_CXX11 -inline void Summary_Image::set_encoded_image_string(::std::string&& value) { - - encoded_image_string_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.Summary.Image.encoded_image_string) -} -#endif -inline void Summary_Image::set_encoded_image_string(const char* value) { - GOOGLE_DCHECK(value != NULL); - - encoded_image_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.Summary.Image.encoded_image_string) -} -inline void Summary_Image::set_encoded_image_string(const void* value, - size_t size) { - - encoded_image_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.Summary.Image.encoded_image_string) -} -inline ::std::string* Summary_Image::mutable_encoded_image_string() { - - // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Image.encoded_image_string) - return encoded_image_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* Summary_Image::release_encoded_image_string() { - // @@protoc_insertion_point(field_release:tensorflow.Summary.Image.encoded_image_string) - - return encoded_image_string_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void Summary_Image::set_allocated_encoded_image_string(::std::string* encoded_image_string) { - if (encoded_image_string != NULL) { - - } else { - - } - encoded_image_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), encoded_image_string, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.Summary.Image.encoded_image_string) -} -inline ::std::string* Summary_Image::unsafe_arena_release_encoded_image_string() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Image.encoded_image_string) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return encoded_image_string_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void Summary_Image::unsafe_arena_set_allocated_encoded_image_string( - ::std::string* encoded_image_string) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (encoded_image_string != NULL) { - - } else { - - } - encoded_image_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - encoded_image_string, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Image.encoded_image_string) -} - -// ------------------------------------------------------------------- - -// Summary_Audio - -// float sample_rate = 1; -inline void Summary_Audio::clear_sample_rate() { - sample_rate_ = 0; -} -inline float Summary_Audio::sample_rate() const { - // @@protoc_insertion_point(field_get:tensorflow.Summary.Audio.sample_rate) - return sample_rate_; -} -inline void Summary_Audio::set_sample_rate(float value) { - - sample_rate_ = value; - // @@protoc_insertion_point(field_set:tensorflow.Summary.Audio.sample_rate) -} - -// int64 num_channels = 2; -inline void Summary_Audio::clear_num_channels() { - num_channels_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 Summary_Audio::num_channels() const { - // @@protoc_insertion_point(field_get:tensorflow.Summary.Audio.num_channels) - return num_channels_; -} -inline void Summary_Audio::set_num_channels(::google::protobuf::int64 value) { - - num_channels_ = value; - // @@protoc_insertion_point(field_set:tensorflow.Summary.Audio.num_channels) -} - -// int64 length_frames = 3; -inline void Summary_Audio::clear_length_frames() { - length_frames_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 Summary_Audio::length_frames() const { - // @@protoc_insertion_point(field_get:tensorflow.Summary.Audio.length_frames) - return length_frames_; -} -inline void Summary_Audio::set_length_frames(::google::protobuf::int64 value) { - - length_frames_ = value; - // @@protoc_insertion_point(field_set:tensorflow.Summary.Audio.length_frames) -} - -// bytes encoded_audio_string = 4; -inline void Summary_Audio::clear_encoded_audio_string() { - encoded_audio_string_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& Summary_Audio::encoded_audio_string() const { - // @@protoc_insertion_point(field_get:tensorflow.Summary.Audio.encoded_audio_string) - return encoded_audio_string_.Get(); -} -inline void Summary_Audio::set_encoded_audio_string(const ::std::string& value) { - - encoded_audio_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.Summary.Audio.encoded_audio_string) -} -#if LANG_CXX11 -inline void Summary_Audio::set_encoded_audio_string(::std::string&& value) { - - encoded_audio_string_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.Summary.Audio.encoded_audio_string) -} -#endif -inline void Summary_Audio::set_encoded_audio_string(const char* value) { - GOOGLE_DCHECK(value != NULL); - - encoded_audio_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.Summary.Audio.encoded_audio_string) -} -inline void Summary_Audio::set_encoded_audio_string(const void* value, - size_t size) { - - encoded_audio_string_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.Summary.Audio.encoded_audio_string) -} -inline ::std::string* Summary_Audio::mutable_encoded_audio_string() { - - // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Audio.encoded_audio_string) - return encoded_audio_string_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* Summary_Audio::release_encoded_audio_string() { - // @@protoc_insertion_point(field_release:tensorflow.Summary.Audio.encoded_audio_string) - - return encoded_audio_string_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void Summary_Audio::set_allocated_encoded_audio_string(::std::string* encoded_audio_string) { - if (encoded_audio_string != NULL) { - - } else { - - } - encoded_audio_string_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), encoded_audio_string, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.Summary.Audio.encoded_audio_string) -} -inline ::std::string* Summary_Audio::unsafe_arena_release_encoded_audio_string() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Audio.encoded_audio_string) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return encoded_audio_string_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void Summary_Audio::unsafe_arena_set_allocated_encoded_audio_string( - ::std::string* encoded_audio_string) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (encoded_audio_string != NULL) { - - } else { - - } - encoded_audio_string_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - encoded_audio_string, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Audio.encoded_audio_string) -} - -// string content_type = 5; -inline void Summary_Audio::clear_content_type() { - content_type_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& Summary_Audio::content_type() const { - // @@protoc_insertion_point(field_get:tensorflow.Summary.Audio.content_type) - return content_type_.Get(); -} -inline void Summary_Audio::set_content_type(const ::std::string& value) { - - content_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.Summary.Audio.content_type) -} -#if LANG_CXX11 -inline void Summary_Audio::set_content_type(::std::string&& value) { - - content_type_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.Summary.Audio.content_type) -} -#endif -inline void Summary_Audio::set_content_type(const char* value) { - GOOGLE_DCHECK(value != NULL); - - content_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.Summary.Audio.content_type) -} -inline void Summary_Audio::set_content_type(const char* value, - size_t size) { - - content_type_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.Summary.Audio.content_type) -} -inline ::std::string* Summary_Audio::mutable_content_type() { - - // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Audio.content_type) - return content_type_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* Summary_Audio::release_content_type() { - // @@protoc_insertion_point(field_release:tensorflow.Summary.Audio.content_type) - - return content_type_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void Summary_Audio::set_allocated_content_type(::std::string* content_type) { - if (content_type != NULL) { - - } else { - - } - content_type_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), content_type, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.Summary.Audio.content_type) -} -inline ::std::string* Summary_Audio::unsafe_arena_release_content_type() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Audio.content_type) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return content_type_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void Summary_Audio::unsafe_arena_set_allocated_content_type( - ::std::string* content_type) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (content_type != NULL) { - - } else { - - } - content_type_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - content_type, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Audio.content_type) -} - -// ------------------------------------------------------------------- - -// Summary_Value - -// string node_name = 7; -inline void Summary_Value::clear_node_name() { - node_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& Summary_Value::node_name() const { - // @@protoc_insertion_point(field_get:tensorflow.Summary.Value.node_name) - return node_name_.Get(); -} -inline void Summary_Value::set_node_name(const ::std::string& value) { - - node_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.Summary.Value.node_name) -} -#if LANG_CXX11 -inline void Summary_Value::set_node_name(::std::string&& value) { - - node_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.Summary.Value.node_name) -} -#endif -inline void Summary_Value::set_node_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - node_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.Summary.Value.node_name) -} -inline void Summary_Value::set_node_name(const char* value, - size_t size) { - - node_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.Summary.Value.node_name) -} -inline ::std::string* Summary_Value::mutable_node_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Value.node_name) - return node_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* Summary_Value::release_node_name() { - // @@protoc_insertion_point(field_release:tensorflow.Summary.Value.node_name) - - return node_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void Summary_Value::set_allocated_node_name(::std::string* node_name) { - if (node_name != NULL) { - - } else { - - } - node_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.Summary.Value.node_name) -} -inline ::std::string* Summary_Value::unsafe_arena_release_node_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Value.node_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return node_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void Summary_Value::unsafe_arena_set_allocated_node_name( - ::std::string* node_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (node_name != NULL) { - - } else { - - } - node_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - node_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Value.node_name) -} - -// string tag = 1; -inline void Summary_Value::clear_tag() { - tag_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& Summary_Value::tag() const { - // @@protoc_insertion_point(field_get:tensorflow.Summary.Value.tag) - return tag_.Get(); -} -inline void Summary_Value::set_tag(const ::std::string& value) { - - tag_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.Summary.Value.tag) -} -#if LANG_CXX11 -inline void Summary_Value::set_tag(::std::string&& value) { - - tag_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.Summary.Value.tag) -} -#endif -inline void Summary_Value::set_tag(const char* value) { - GOOGLE_DCHECK(value != NULL); - - tag_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.Summary.Value.tag) -} -inline void Summary_Value::set_tag(const char* value, - size_t size) { - - tag_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.Summary.Value.tag) -} -inline ::std::string* Summary_Value::mutable_tag() { - - // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Value.tag) - return tag_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* Summary_Value::release_tag() { - // @@protoc_insertion_point(field_release:tensorflow.Summary.Value.tag) - - return tag_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void Summary_Value::set_allocated_tag(::std::string* tag) { - if (tag != NULL) { - - } else { - - } - tag_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tag, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.Summary.Value.tag) -} -inline ::std::string* Summary_Value::unsafe_arena_release_tag() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Value.tag) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return tag_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void Summary_Value::unsafe_arena_set_allocated_tag( - ::std::string* tag) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (tag != NULL) { - - } else { - - } - tag_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - tag, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Value.tag) -} - -// .tensorflow.SummaryMetadata metadata = 9; -inline bool Summary_Value::has_metadata() const { - return this != internal_default_instance() && metadata_ != NULL; -} -inline void Summary_Value::clear_metadata() { - if (GetArenaNoVirtual() == NULL && metadata_ != NULL) { - delete metadata_; - } - metadata_ = NULL; -} -inline const ::tensorflow::SummaryMetadata& Summary_Value::_internal_metadata() const { - return *metadata_; -} -inline const ::tensorflow::SummaryMetadata& Summary_Value::metadata() const { - const ::tensorflow::SummaryMetadata* p = metadata_; - // @@protoc_insertion_point(field_get:tensorflow.Summary.Value.metadata) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_SummaryMetadata_default_instance_); -} -inline ::tensorflow::SummaryMetadata* Summary_Value::release_metadata() { - // @@protoc_insertion_point(field_release:tensorflow.Summary.Value.metadata) - - ::tensorflow::SummaryMetadata* temp = metadata_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - metadata_ = NULL; - return temp; -} -inline ::tensorflow::SummaryMetadata* Summary_Value::unsafe_arena_release_metadata() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Value.metadata) - - ::tensorflow::SummaryMetadata* temp = metadata_; - metadata_ = NULL; - return temp; -} -inline ::tensorflow::SummaryMetadata* Summary_Value::mutable_metadata() { - - if (metadata_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::SummaryMetadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Value.metadata) - return metadata_; -} -inline void Summary_Value::set_allocated_metadata(::tensorflow::SummaryMetadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete metadata_; - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(metadata); - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:tensorflow.Summary.Value.metadata) -} - -// float simple_value = 2; -inline bool Summary_Value::has_simple_value() const { - return value_case() == kSimpleValue; -} -inline void Summary_Value::set_has_simple_value() { - _oneof_case_[0] = kSimpleValue; -} -inline void Summary_Value::clear_simple_value() { - if (has_simple_value()) { - value_.simple_value_ = 0; - clear_has_value(); - } -} -inline float Summary_Value::simple_value() const { - // @@protoc_insertion_point(field_get:tensorflow.Summary.Value.simple_value) - if (has_simple_value()) { - return value_.simple_value_; - } - return 0; -} -inline void Summary_Value::set_simple_value(float value) { - if (!has_simple_value()) { - clear_value(); - set_has_simple_value(); - } - value_.simple_value_ = value; - // @@protoc_insertion_point(field_set:tensorflow.Summary.Value.simple_value) -} - -// bytes obsolete_old_style_histogram = 3; -inline bool Summary_Value::has_obsolete_old_style_histogram() const { - return value_case() == kObsoleteOldStyleHistogram; -} -inline void Summary_Value::set_has_obsolete_old_style_histogram() { - _oneof_case_[0] = kObsoleteOldStyleHistogram; -} -inline void Summary_Value::clear_obsolete_old_style_histogram() { - if (has_obsolete_old_style_histogram()) { - value_.obsolete_old_style_histogram_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - clear_has_value(); - } -} -inline const ::std::string& Summary_Value::obsolete_old_style_histogram() const { - // @@protoc_insertion_point(field_get:tensorflow.Summary.Value.obsolete_old_style_histogram) - if (has_obsolete_old_style_histogram()) { - return value_.obsolete_old_style_histogram_.Get(); - } - return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); -} -inline void Summary_Value::set_obsolete_old_style_histogram(const ::std::string& value) { - if (!has_obsolete_old_style_histogram()) { - clear_value(); - set_has_obsolete_old_style_histogram(); - value_.obsolete_old_style_histogram_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.obsolete_old_style_histogram_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.Summary.Value.obsolete_old_style_histogram) -} -#if LANG_CXX11 -inline void Summary_Value::set_obsolete_old_style_histogram(::std::string&& value) { - // @@protoc_insertion_point(field_set:tensorflow.Summary.Value.obsolete_old_style_histogram) - if (!has_obsolete_old_style_histogram()) { - clear_value(); - set_has_obsolete_old_style_histogram(); - value_.obsolete_old_style_histogram_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.obsolete_old_style_histogram_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.Summary.Value.obsolete_old_style_histogram) -} -#endif -inline void Summary_Value::set_obsolete_old_style_histogram(const char* value) { - GOOGLE_DCHECK(value != NULL); - if (!has_obsolete_old_style_histogram()) { - clear_value(); - set_has_obsolete_old_style_histogram(); - value_.obsolete_old_style_histogram_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.obsolete_old_style_histogram_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - ::std::string(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.Summary.Value.obsolete_old_style_histogram) -} -inline void Summary_Value::set_obsolete_old_style_histogram(const void* value, - size_t size) { - if (!has_obsolete_old_style_histogram()) { - clear_value(); - set_has_obsolete_old_style_histogram(); - value_.obsolete_old_style_histogram_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - value_.obsolete_old_style_histogram_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.Summary.Value.obsolete_old_style_histogram) -} -inline ::std::string* Summary_Value::mutable_obsolete_old_style_histogram() { - if (!has_obsolete_old_style_histogram()) { - clear_value(); - set_has_obsolete_old_style_histogram(); - value_.obsolete_old_style_histogram_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - return value_.obsolete_old_style_histogram_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Value.obsolete_old_style_histogram) -} -inline ::std::string* Summary_Value::release_obsolete_old_style_histogram() { - // @@protoc_insertion_point(field_release:tensorflow.Summary.Value.obsolete_old_style_histogram) - if (has_obsolete_old_style_histogram()) { - clear_has_value(); - return value_.obsolete_old_style_histogram_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); - } else { - return NULL; - } -} -inline void Summary_Value::set_allocated_obsolete_old_style_histogram(::std::string* obsolete_old_style_histogram) { - if (!has_obsolete_old_style_histogram()) { - value_.obsolete_old_style_histogram_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - clear_value(); - if (obsolete_old_style_histogram != NULL) { - set_has_obsolete_old_style_histogram(); - value_.obsolete_old_style_histogram_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), obsolete_old_style_histogram, - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_set_allocated:tensorflow.Summary.Value.obsolete_old_style_histogram) -} -inline ::std::string* Summary_Value::unsafe_arena_release_obsolete_old_style_histogram() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Value.obsolete_old_style_histogram) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (has_obsolete_old_style_histogram()) { - clear_has_value(); - return value_.obsolete_old_style_histogram_.UnsafeArenaRelease( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); - } else { - return NULL; - } -} -inline void Summary_Value::unsafe_arena_set_allocated_obsolete_old_style_histogram(::std::string* obsolete_old_style_histogram) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (!has_obsolete_old_style_histogram()) { - value_.obsolete_old_style_histogram_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); - } - clear_value(); - if (obsolete_old_style_histogram) { - set_has_obsolete_old_style_histogram(); - value_.obsolete_old_style_histogram_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), obsolete_old_style_histogram, GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Value.obsolete_old_style_histogram) -} - -// .tensorflow.Summary.Image image = 4; -inline bool Summary_Value::has_image() const { - return value_case() == kImage; -} -inline void Summary_Value::set_has_image() { - _oneof_case_[0] = kImage; -} -inline void Summary_Value::clear_image() { - if (has_image()) { - if (GetArenaNoVirtual() == NULL) { - delete value_.image_; - } - clear_has_value(); - } -} -inline const ::tensorflow::Summary_Image& Summary_Value::_internal_image() const { - return *value_.image_; -} -inline ::tensorflow::Summary_Image* Summary_Value::release_image() { - // @@protoc_insertion_point(field_release:tensorflow.Summary.Value.image) - if (has_image()) { - clear_has_value(); - ::tensorflow::Summary_Image* temp = value_.image_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - value_.image_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::Summary_Image& Summary_Value::image() const { - // @@protoc_insertion_point(field_get:tensorflow.Summary.Value.image) - return has_image() - ? *value_.image_ - : *reinterpret_cast< ::tensorflow::Summary_Image*>(&::tensorflow::_Summary_Image_default_instance_); -} -inline ::tensorflow::Summary_Image* Summary_Value::unsafe_arena_release_image() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Value.image) - if (has_image()) { - clear_has_value(); - ::tensorflow::Summary_Image* temp = value_.image_; - value_.image_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void Summary_Value::unsafe_arena_set_allocated_image(::tensorflow::Summary_Image* image) { - clear_value(); - if (image) { - set_has_image(); - value_.image_ = image; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Value.image) -} -inline ::tensorflow::Summary_Image* Summary_Value::mutable_image() { - if (!has_image()) { - clear_value(); - set_has_image(); - value_.image_ = CreateMaybeMessage< ::tensorflow::Summary_Image >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Value.image) - return value_.image_; -} - -// .tensorflow.HistogramProto histo = 5; -inline bool Summary_Value::has_histo() const { - return value_case() == kHisto; -} -inline void Summary_Value::set_has_histo() { - _oneof_case_[0] = kHisto; -} -inline void Summary_Value::clear_histo() { - if (has_histo()) { - if (GetArenaNoVirtual() == NULL) { - delete value_.histo_; - } - clear_has_value(); - } -} -inline const ::tensorflow::HistogramProto& Summary_Value::_internal_histo() const { - return *value_.histo_; -} -inline ::tensorflow::HistogramProto* Summary_Value::release_histo() { - // @@protoc_insertion_point(field_release:tensorflow.Summary.Value.histo) - if (has_histo()) { - clear_has_value(); - ::tensorflow::HistogramProto* temp = value_.histo_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - value_.histo_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::HistogramProto& Summary_Value::histo() const { - // @@protoc_insertion_point(field_get:tensorflow.Summary.Value.histo) - return has_histo() - ? *value_.histo_ - : *reinterpret_cast< ::tensorflow::HistogramProto*>(&::tensorflow::_HistogramProto_default_instance_); -} -inline ::tensorflow::HistogramProto* Summary_Value::unsafe_arena_release_histo() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Value.histo) - if (has_histo()) { - clear_has_value(); - ::tensorflow::HistogramProto* temp = value_.histo_; - value_.histo_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void Summary_Value::unsafe_arena_set_allocated_histo(::tensorflow::HistogramProto* histo) { - clear_value(); - if (histo) { - set_has_histo(); - value_.histo_ = histo; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Value.histo) -} -inline ::tensorflow::HistogramProto* Summary_Value::mutable_histo() { - if (!has_histo()) { - clear_value(); - set_has_histo(); - value_.histo_ = CreateMaybeMessage< ::tensorflow::HistogramProto >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Value.histo) - return value_.histo_; -} - -// .tensorflow.Summary.Audio audio = 6; -inline bool Summary_Value::has_audio() const { - return value_case() == kAudio; -} -inline void Summary_Value::set_has_audio() { - _oneof_case_[0] = kAudio; -} -inline void Summary_Value::clear_audio() { - if (has_audio()) { - if (GetArenaNoVirtual() == NULL) { - delete value_.audio_; - } - clear_has_value(); - } -} -inline const ::tensorflow::Summary_Audio& Summary_Value::_internal_audio() const { - return *value_.audio_; -} -inline ::tensorflow::Summary_Audio* Summary_Value::release_audio() { - // @@protoc_insertion_point(field_release:tensorflow.Summary.Value.audio) - if (has_audio()) { - clear_has_value(); - ::tensorflow::Summary_Audio* temp = value_.audio_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - value_.audio_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::Summary_Audio& Summary_Value::audio() const { - // @@protoc_insertion_point(field_get:tensorflow.Summary.Value.audio) - return has_audio() - ? *value_.audio_ - : *reinterpret_cast< ::tensorflow::Summary_Audio*>(&::tensorflow::_Summary_Audio_default_instance_); -} -inline ::tensorflow::Summary_Audio* Summary_Value::unsafe_arena_release_audio() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Value.audio) - if (has_audio()) { - clear_has_value(); - ::tensorflow::Summary_Audio* temp = value_.audio_; - value_.audio_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void Summary_Value::unsafe_arena_set_allocated_audio(::tensorflow::Summary_Audio* audio) { - clear_value(); - if (audio) { - set_has_audio(); - value_.audio_ = audio; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Value.audio) -} -inline ::tensorflow::Summary_Audio* Summary_Value::mutable_audio() { - if (!has_audio()) { - clear_value(); - set_has_audio(); - value_.audio_ = CreateMaybeMessage< ::tensorflow::Summary_Audio >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Value.audio) - return value_.audio_; -} - -// .tensorflow.TensorProto tensor = 8; -inline bool Summary_Value::has_tensor() const { - return value_case() == kTensor; -} -inline void Summary_Value::set_has_tensor() { - _oneof_case_[0] = kTensor; -} -inline const ::tensorflow::TensorProto& Summary_Value::_internal_tensor() const { - return *value_.tensor_; -} -inline ::tensorflow::TensorProto* Summary_Value::release_tensor() { - // @@protoc_insertion_point(field_release:tensorflow.Summary.Value.tensor) - if (has_tensor()) { - clear_has_value(); - ::tensorflow::TensorProto* temp = value_.tensor_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - value_.tensor_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::TensorProto& Summary_Value::tensor() const { - // @@protoc_insertion_point(field_get:tensorflow.Summary.Value.tensor) - return has_tensor() - ? *value_.tensor_ - : *reinterpret_cast< ::tensorflow::TensorProto*>(&::tensorflow::_TensorProto_default_instance_); -} -inline ::tensorflow::TensorProto* Summary_Value::unsafe_arena_release_tensor() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.Summary.Value.tensor) - if (has_tensor()) { - clear_has_value(); - ::tensorflow::TensorProto* temp = value_.tensor_; - value_.tensor_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void Summary_Value::unsafe_arena_set_allocated_tensor(::tensorflow::TensorProto* tensor) { - clear_value(); - if (tensor) { - set_has_tensor(); - value_.tensor_ = tensor; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.Summary.Value.tensor) -} -inline ::tensorflow::TensorProto* Summary_Value::mutable_tensor() { - if (!has_tensor()) { - clear_value(); - set_has_tensor(); - value_.tensor_ = CreateMaybeMessage< ::tensorflow::TensorProto >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.Summary.Value.tensor) - return value_.tensor_; -} - -inline bool Summary_Value::has_value() const { - return value_case() != VALUE_NOT_SET; -} -inline void Summary_Value::clear_has_value() { - _oneof_case_[0] = VALUE_NOT_SET; -} -inline Summary_Value::ValueCase Summary_Value::value_case() const { - return Summary_Value::ValueCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// Summary - -// repeated .tensorflow.Summary.Value value = 1; -inline int Summary::value_size() const { - return value_.size(); -} -inline void Summary::clear_value() { - value_.Clear(); -} -inline ::tensorflow::Summary_Value* Summary::mutable_value(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.Summary.value) - return value_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::Summary_Value >* -Summary::mutable_value() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.Summary.value) - return &value_; -} -inline const ::tensorflow::Summary_Value& Summary::value(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.Summary.value) - return value_.Get(index); -} -inline ::tensorflow::Summary_Value* Summary::add_value() { - // @@protoc_insertion_point(field_add:tensorflow.Summary.value) - return value_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::Summary_Value >& -Summary::value() const { - // @@protoc_insertion_point(field_list:tensorflow.Summary.value) - return value_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fsummary_2eproto diff --git a/linux/include/tensorflow/core/framework/summary.pb_text-impl.h b/linux/include/tensorflow/core/framework/summary.pb_text-impl.h deleted file mode 100755 index 1f5d66f38..000000000 --- a/linux/include/tensorflow/core/framework/summary.pb_text-impl.h +++ /dev/null @@ -1,82 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_summary_proto_IMPL_H_ -#define tensorflow_core_framework_summary_proto_IMPL_H_ - -#include "tensorflow/core/framework/resource_handle.pb.h" -#include "tensorflow/core/framework/resource_handle.pb_text-impl.h" -#include "tensorflow/core/framework/summary.pb.h" -#include "tensorflow/core/framework/summary.pb_text.h" -#include "tensorflow/core/framework/tensor.pb.h" -#include "tensorflow/core/framework/tensor.pb_text-impl.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb_text-impl.h" -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/framework/types.pb_text-impl.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::SummaryDescription& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::SummaryDescription* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::HistogramProto& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::HistogramProto* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::SummaryMetadata_PluginData& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::SummaryMetadata_PluginData* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::SummaryMetadata& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::SummaryMetadata* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::Summary_Image& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::Summary_Image* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::Summary_Audio& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::Summary_Audio* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::Summary_Value& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::Summary_Value* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::Summary& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::Summary* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_summary_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/summary.pb_text.h b/linux/include/tensorflow/core/framework/summary.pb_text.h deleted file mode 100755 index 8d42789da..000000000 --- a/linux/include/tensorflow/core/framework/summary.pb_text.h +++ /dev/null @@ -1,94 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_summary_proto_H_ -#define tensorflow_core_framework_summary_proto_H_ - -#include "tensorflow/core/framework/summary.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.SummaryDescription -string ProtoDebugString( - const ::tensorflow::SummaryDescription& msg); -string ProtoShortDebugString( - const ::tensorflow::SummaryDescription& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::SummaryDescription* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.HistogramProto -string ProtoDebugString( - const ::tensorflow::HistogramProto& msg); -string ProtoShortDebugString( - const ::tensorflow::HistogramProto& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::HistogramProto* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.SummaryMetadata.PluginData -string ProtoDebugString( - const ::tensorflow::SummaryMetadata_PluginData& msg); -string ProtoShortDebugString( - const ::tensorflow::SummaryMetadata_PluginData& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::SummaryMetadata_PluginData* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.SummaryMetadata -string ProtoDebugString( - const ::tensorflow::SummaryMetadata& msg); -string ProtoShortDebugString( - const ::tensorflow::SummaryMetadata& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::SummaryMetadata* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.Summary.Image -string ProtoDebugString( - const ::tensorflow::Summary_Image& msg); -string ProtoShortDebugString( - const ::tensorflow::Summary_Image& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::Summary_Image* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.Summary.Audio -string ProtoDebugString( - const ::tensorflow::Summary_Audio& msg); -string ProtoShortDebugString( - const ::tensorflow::Summary_Audio& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::Summary_Audio* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.Summary.Value -string ProtoDebugString( - const ::tensorflow::Summary_Value& msg); -string ProtoShortDebugString( - const ::tensorflow::Summary_Value& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::Summary_Value* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.Summary -string ProtoDebugString( - const ::tensorflow::Summary& msg); -string ProtoShortDebugString( - const ::tensorflow::Summary& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::Summary* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_summary_proto_H_ diff --git a/linux/include/tensorflow/core/framework/tensor.pb.h b/linux/include/tensorflow/core/framework/tensor.pb.h deleted file mode 100755 index 44456f58d..000000000 --- a/linux/include/tensorflow/core/framework/tensor.pb.h +++ /dev/null @@ -1,1388 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/tensor.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "tensorflow/core/framework/resource_handle.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/types.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2ftensor_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2ftensor_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[2]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2ftensor_2eproto -namespace tensorflow { -class TensorProto; -class TensorProtoDefaultTypeInternal; -extern TensorProtoDefaultTypeInternal _TensorProto_default_instance_; -class VariantTensorDataProto; -class VariantTensorDataProtoDefaultTypeInternal; -extern VariantTensorDataProtoDefaultTypeInternal _VariantTensorDataProto_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::TensorProto* Arena::CreateMaybeMessage<::tensorflow::TensorProto>(Arena*); -template<> ::tensorflow::VariantTensorDataProto* Arena::CreateMaybeMessage<::tensorflow::VariantTensorDataProto>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class TensorProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.TensorProto) */ { - public: - TensorProto(); - virtual ~TensorProto(); - - TensorProto(const TensorProto& from); - - inline TensorProto& operator=(const TensorProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TensorProto(TensorProto&& from) noexcept - : TensorProto() { - *this = ::std::move(from); - } - - inline TensorProto& operator=(TensorProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const TensorProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TensorProto* internal_default_instance() { - return reinterpret_cast( - &_TensorProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(TensorProto* other); - void Swap(TensorProto* other); - friend void swap(TensorProto& a, TensorProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TensorProto* New() const final { - return CreateMaybeMessage(NULL); - } - - TensorProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TensorProto& from); - void MergeFrom(const TensorProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TensorProto* other); - protected: - explicit TensorProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated float float_val = 5 [packed = true]; - int float_val_size() const; - void clear_float_val(); - static const int kFloatValFieldNumber = 5; - float float_val(int index) const; - void set_float_val(int index, float value); - void add_float_val(float value); - const ::google::protobuf::RepeatedField< float >& - float_val() const; - ::google::protobuf::RepeatedField< float >* - mutable_float_val(); - - // repeated double double_val = 6 [packed = true]; - int double_val_size() const; - void clear_double_val(); - static const int kDoubleValFieldNumber = 6; - double double_val(int index) const; - void set_double_val(int index, double value); - void add_double_val(double value); - const ::google::protobuf::RepeatedField< double >& - double_val() const; - ::google::protobuf::RepeatedField< double >* - mutable_double_val(); - - // repeated int32 int_val = 7 [packed = true]; - int int_val_size() const; - void clear_int_val(); - static const int kIntValFieldNumber = 7; - ::google::protobuf::int32 int_val(int index) const; - void set_int_val(int index, ::google::protobuf::int32 value); - void add_int_val(::google::protobuf::int32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& - int_val() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* - mutable_int_val(); - - // repeated bytes string_val = 8; - int string_val_size() const; - void clear_string_val(); - static const int kStringValFieldNumber = 8; - const ::std::string& string_val(int index) const; - ::std::string* mutable_string_val(int index); - void set_string_val(int index, const ::std::string& value); - #if LANG_CXX11 - void set_string_val(int index, ::std::string&& value); - #endif - void set_string_val(int index, const char* value); - void set_string_val(int index, const void* value, size_t size); - ::std::string* add_string_val(); - void add_string_val(const ::std::string& value); - #if LANG_CXX11 - void add_string_val(::std::string&& value); - #endif - void add_string_val(const char* value); - void add_string_val(const void* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& string_val() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_string_val(); - - // repeated float scomplex_val = 9 [packed = true]; - int scomplex_val_size() const; - void clear_scomplex_val(); - static const int kScomplexValFieldNumber = 9; - float scomplex_val(int index) const; - void set_scomplex_val(int index, float value); - void add_scomplex_val(float value); - const ::google::protobuf::RepeatedField< float >& - scomplex_val() const; - ::google::protobuf::RepeatedField< float >* - mutable_scomplex_val(); - - // repeated int64 int64_val = 10 [packed = true]; - int int64_val_size() const; - void clear_int64_val(); - static const int kInt64ValFieldNumber = 10; - ::google::protobuf::int64 int64_val(int index) const; - void set_int64_val(int index, ::google::protobuf::int64 value); - void add_int64_val(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - int64_val() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_int64_val(); - - // repeated bool bool_val = 11 [packed = true]; - int bool_val_size() const; - void clear_bool_val(); - static const int kBoolValFieldNumber = 11; - bool bool_val(int index) const; - void set_bool_val(int index, bool value); - void add_bool_val(bool value); - const ::google::protobuf::RepeatedField< bool >& - bool_val() const; - ::google::protobuf::RepeatedField< bool >* - mutable_bool_val(); - - // repeated double dcomplex_val = 12 [packed = true]; - int dcomplex_val_size() const; - void clear_dcomplex_val(); - static const int kDcomplexValFieldNumber = 12; - double dcomplex_val(int index) const; - void set_dcomplex_val(int index, double value); - void add_dcomplex_val(double value); - const ::google::protobuf::RepeatedField< double >& - dcomplex_val() const; - ::google::protobuf::RepeatedField< double >* - mutable_dcomplex_val(); - - // repeated int32 half_val = 13 [packed = true]; - int half_val_size() const; - void clear_half_val(); - static const int kHalfValFieldNumber = 13; - ::google::protobuf::int32 half_val(int index) const; - void set_half_val(int index, ::google::protobuf::int32 value); - void add_half_val(::google::protobuf::int32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& - half_val() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* - mutable_half_val(); - - // repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; - int resource_handle_val_size() const; - void clear_resource_handle_val(); - static const int kResourceHandleValFieldNumber = 14; - ::tensorflow::ResourceHandleProto* mutable_resource_handle_val(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::ResourceHandleProto >* - mutable_resource_handle_val(); - const ::tensorflow::ResourceHandleProto& resource_handle_val(int index) const; - ::tensorflow::ResourceHandleProto* add_resource_handle_val(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::ResourceHandleProto >& - resource_handle_val() const; - - // repeated .tensorflow.VariantTensorDataProto variant_val = 15; - int variant_val_size() const; - void clear_variant_val(); - static const int kVariantValFieldNumber = 15; - ::tensorflow::VariantTensorDataProto* mutable_variant_val(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::VariantTensorDataProto >* - mutable_variant_val(); - const ::tensorflow::VariantTensorDataProto& variant_val(int index) const; - ::tensorflow::VariantTensorDataProto* add_variant_val(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::VariantTensorDataProto >& - variant_val() const; - - // repeated uint32 uint32_val = 16 [packed = true]; - int uint32_val_size() const; - void clear_uint32_val(); - static const int kUint32ValFieldNumber = 16; - ::google::protobuf::uint32 uint32_val(int index) const; - void set_uint32_val(int index, ::google::protobuf::uint32 value); - void add_uint32_val(::google::protobuf::uint32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& - uint32_val() const; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* - mutable_uint32_val(); - - // repeated uint64 uint64_val = 17 [packed = true]; - int uint64_val_size() const; - void clear_uint64_val(); - static const int kUint64ValFieldNumber = 17; - ::google::protobuf::uint64 uint64_val(int index) const; - void set_uint64_val(int index, ::google::protobuf::uint64 value); - void add_uint64_val(::google::protobuf::uint64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& - uint64_val() const; - ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* - mutable_uint64_val(); - - // bytes tensor_content = 4; - void clear_tensor_content(); - static const int kTensorContentFieldNumber = 4; - const ::std::string& tensor_content() const; - void set_tensor_content(const ::std::string& value); - #if LANG_CXX11 - void set_tensor_content(::std::string&& value); - #endif - void set_tensor_content(const char* value); - void set_tensor_content(const void* value, size_t size); - ::std::string* mutable_tensor_content(); - ::std::string* release_tensor_content(); - void set_allocated_tensor_content(::std::string* tensor_content); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_tensor_content(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_tensor_content( - ::std::string* tensor_content); - - // .tensorflow.TensorShapeProto tensor_shape = 2; - bool has_tensor_shape() const; - void clear_tensor_shape(); - static const int kTensorShapeFieldNumber = 2; - private: - const ::tensorflow::TensorShapeProto& _internal_tensor_shape() const; - public: - const ::tensorflow::TensorShapeProto& tensor_shape() const; - ::tensorflow::TensorShapeProto* release_tensor_shape(); - ::tensorflow::TensorShapeProto* mutable_tensor_shape(); - void set_allocated_tensor_shape(::tensorflow::TensorShapeProto* tensor_shape); - void unsafe_arena_set_allocated_tensor_shape( - ::tensorflow::TensorShapeProto* tensor_shape); - ::tensorflow::TensorShapeProto* unsafe_arena_release_tensor_shape(); - - // .tensorflow.DataType dtype = 1; - void clear_dtype(); - static const int kDtypeFieldNumber = 1; - ::tensorflow::DataType dtype() const; - void set_dtype(::tensorflow::DataType value); - - // int32 version_number = 3; - void clear_version_number(); - static const int kVersionNumberFieldNumber = 3; - ::google::protobuf::int32 version_number() const; - void set_version_number(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:tensorflow.TensorProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< float > float_val_; - mutable int _float_val_cached_byte_size_; - ::google::protobuf::RepeatedField< double > double_val_; - mutable int _double_val_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 > int_val_; - mutable int _int_val_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::std::string> string_val_; - ::google::protobuf::RepeatedField< float > scomplex_val_; - mutable int _scomplex_val_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > int64_val_; - mutable int _int64_val_cached_byte_size_; - ::google::protobuf::RepeatedField< bool > bool_val_; - mutable int _bool_val_cached_byte_size_; - ::google::protobuf::RepeatedField< double > dcomplex_val_; - mutable int _dcomplex_val_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 > half_val_; - mutable int _half_val_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::ResourceHandleProto > resource_handle_val_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::VariantTensorDataProto > variant_val_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > uint32_val_; - mutable int _uint32_val_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > uint64_val_; - mutable int _uint64_val_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr tensor_content_; - ::tensorflow::TensorShapeProto* tensor_shape_; - int dtype_; - ::google::protobuf::int32 version_number_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2ftensor_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class VariantTensorDataProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.VariantTensorDataProto) */ { - public: - VariantTensorDataProto(); - virtual ~VariantTensorDataProto(); - - VariantTensorDataProto(const VariantTensorDataProto& from); - - inline VariantTensorDataProto& operator=(const VariantTensorDataProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - VariantTensorDataProto(VariantTensorDataProto&& from) noexcept - : VariantTensorDataProto() { - *this = ::std::move(from); - } - - inline VariantTensorDataProto& operator=(VariantTensorDataProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const VariantTensorDataProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VariantTensorDataProto* internal_default_instance() { - return reinterpret_cast( - &_VariantTensorDataProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(VariantTensorDataProto* other); - void Swap(VariantTensorDataProto* other); - friend void swap(VariantTensorDataProto& a, VariantTensorDataProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline VariantTensorDataProto* New() const final { - return CreateMaybeMessage(NULL); - } - - VariantTensorDataProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const VariantTensorDataProto& from); - void MergeFrom(const VariantTensorDataProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(VariantTensorDataProto* other); - protected: - explicit VariantTensorDataProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.TensorProto tensors = 3; - int tensors_size() const; - void clear_tensors(); - static const int kTensorsFieldNumber = 3; - ::tensorflow::TensorProto* mutable_tensors(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorProto >* - mutable_tensors(); - const ::tensorflow::TensorProto& tensors(int index) const; - ::tensorflow::TensorProto* add_tensors(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorProto >& - tensors() const; - - // string type_name = 1; - void clear_type_name(); - static const int kTypeNameFieldNumber = 1; - const ::std::string& type_name() const; - void set_type_name(const ::std::string& value); - #if LANG_CXX11 - void set_type_name(::std::string&& value); - #endif - void set_type_name(const char* value); - void set_type_name(const char* value, size_t size); - ::std::string* mutable_type_name(); - ::std::string* release_type_name(); - void set_allocated_type_name(::std::string* type_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_type_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_type_name( - ::std::string* type_name); - - // bytes metadata = 2; - void clear_metadata(); - static const int kMetadataFieldNumber = 2; - const ::std::string& metadata() const; - void set_metadata(const ::std::string& value); - #if LANG_CXX11 - void set_metadata(::std::string&& value); - #endif - void set_metadata(const char* value); - void set_metadata(const void* value, size_t size); - ::std::string* mutable_metadata(); - ::std::string* release_metadata(); - void set_allocated_metadata(::std::string* metadata); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_metadata(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_metadata( - ::std::string* metadata); - - // @@protoc_insertion_point(class_scope:tensorflow.VariantTensorDataProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorProto > tensors_; - ::google::protobuf::internal::ArenaStringPtr type_name_; - ::google::protobuf::internal::ArenaStringPtr metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2ftensor_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// TensorProto - -// .tensorflow.DataType dtype = 1; -inline void TensorProto::clear_dtype() { - dtype_ = 0; -} -inline ::tensorflow::DataType TensorProto::dtype() const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.dtype) - return static_cast< ::tensorflow::DataType >(dtype_); -} -inline void TensorProto::set_dtype(::tensorflow::DataType value) { - - dtype_ = value; - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.dtype) -} - -// .tensorflow.TensorShapeProto tensor_shape = 2; -inline bool TensorProto::has_tensor_shape() const { - return this != internal_default_instance() && tensor_shape_ != NULL; -} -inline const ::tensorflow::TensorShapeProto& TensorProto::_internal_tensor_shape() const { - return *tensor_shape_; -} -inline const ::tensorflow::TensorShapeProto& TensorProto::tensor_shape() const { - const ::tensorflow::TensorShapeProto* p = tensor_shape_; - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.tensor_shape) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_TensorShapeProto_default_instance_); -} -inline ::tensorflow::TensorShapeProto* TensorProto::release_tensor_shape() { - // @@protoc_insertion_point(field_release:tensorflow.TensorProto.tensor_shape) - - ::tensorflow::TensorShapeProto* temp = tensor_shape_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - tensor_shape_ = NULL; - return temp; -} -inline ::tensorflow::TensorShapeProto* TensorProto::unsafe_arena_release_tensor_shape() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorProto.tensor_shape) - - ::tensorflow::TensorShapeProto* temp = tensor_shape_; - tensor_shape_ = NULL; - return temp; -} -inline ::tensorflow::TensorShapeProto* TensorProto::mutable_tensor_shape() { - - if (tensor_shape_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::TensorShapeProto>(GetArenaNoVirtual()); - tensor_shape_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.TensorProto.tensor_shape) - return tensor_shape_; -} -inline void TensorProto::set_allocated_tensor_shape(::tensorflow::TensorShapeProto* tensor_shape) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(tensor_shape_); - } - if (tensor_shape) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(tensor_shape)->GetArena(); - if (message_arena != submessage_arena) { - tensor_shape = ::google::protobuf::internal::GetOwnedMessage( - message_arena, tensor_shape, submessage_arena); - } - - } else { - - } - tensor_shape_ = tensor_shape; - // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorProto.tensor_shape) -} - -// int32 version_number = 3; -inline void TensorProto::clear_version_number() { - version_number_ = 0; -} -inline ::google::protobuf::int32 TensorProto::version_number() const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.version_number) - return version_number_; -} -inline void TensorProto::set_version_number(::google::protobuf::int32 value) { - - version_number_ = value; - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.version_number) -} - -// bytes tensor_content = 4; -inline void TensorProto::clear_tensor_content() { - tensor_content_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& TensorProto::tensor_content() const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.tensor_content) - return tensor_content_.Get(); -} -inline void TensorProto::set_tensor_content(const ::std::string& value) { - - tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.tensor_content) -} -#if LANG_CXX11 -inline void TensorProto::set_tensor_content(::std::string&& value) { - - tensor_content_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.TensorProto.tensor_content) -} -#endif -inline void TensorProto::set_tensor_content(const char* value) { - GOOGLE_DCHECK(value != NULL); - - tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.TensorProto.tensor_content) -} -inline void TensorProto::set_tensor_content(const void* value, - size_t size) { - - tensor_content_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.TensorProto.tensor_content) -} -inline ::std::string* TensorProto::mutable_tensor_content() { - - // @@protoc_insertion_point(field_mutable:tensorflow.TensorProto.tensor_content) - return tensor_content_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* TensorProto::release_tensor_content() { - // @@protoc_insertion_point(field_release:tensorflow.TensorProto.tensor_content) - - return tensor_content_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void TensorProto::set_allocated_tensor_content(::std::string* tensor_content) { - if (tensor_content != NULL) { - - } else { - - } - tensor_content_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), tensor_content, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorProto.tensor_content) -} -inline ::std::string* TensorProto::unsafe_arena_release_tensor_content() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorProto.tensor_content) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return tensor_content_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void TensorProto::unsafe_arena_set_allocated_tensor_content( - ::std::string* tensor_content) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (tensor_content != NULL) { - - } else { - - } - tensor_content_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - tensor_content, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorProto.tensor_content) -} - -// repeated int32 half_val = 13 [packed = true]; -inline int TensorProto::half_val_size() const { - return half_val_.size(); -} -inline void TensorProto::clear_half_val() { - half_val_.Clear(); -} -inline ::google::protobuf::int32 TensorProto::half_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.half_val) - return half_val_.Get(index); -} -inline void TensorProto::set_half_val(int index, ::google::protobuf::int32 value) { - half_val_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.half_val) -} -inline void TensorProto::add_half_val(::google::protobuf::int32 value) { - half_val_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.half_val) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -TensorProto::half_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.half_val) - return half_val_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -TensorProto::mutable_half_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.half_val) - return &half_val_; -} - -// repeated float float_val = 5 [packed = true]; -inline int TensorProto::float_val_size() const { - return float_val_.size(); -} -inline void TensorProto::clear_float_val() { - float_val_.Clear(); -} -inline float TensorProto::float_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.float_val) - return float_val_.Get(index); -} -inline void TensorProto::set_float_val(int index, float value) { - float_val_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.float_val) -} -inline void TensorProto::add_float_val(float value) { - float_val_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.float_val) -} -inline const ::google::protobuf::RepeatedField< float >& -TensorProto::float_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.float_val) - return float_val_; -} -inline ::google::protobuf::RepeatedField< float >* -TensorProto::mutable_float_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.float_val) - return &float_val_; -} - -// repeated double double_val = 6 [packed = true]; -inline int TensorProto::double_val_size() const { - return double_val_.size(); -} -inline void TensorProto::clear_double_val() { - double_val_.Clear(); -} -inline double TensorProto::double_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.double_val) - return double_val_.Get(index); -} -inline void TensorProto::set_double_val(int index, double value) { - double_val_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.double_val) -} -inline void TensorProto::add_double_val(double value) { - double_val_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.double_val) -} -inline const ::google::protobuf::RepeatedField< double >& -TensorProto::double_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.double_val) - return double_val_; -} -inline ::google::protobuf::RepeatedField< double >* -TensorProto::mutable_double_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.double_val) - return &double_val_; -} - -// repeated int32 int_val = 7 [packed = true]; -inline int TensorProto::int_val_size() const { - return int_val_.size(); -} -inline void TensorProto::clear_int_val() { - int_val_.Clear(); -} -inline ::google::protobuf::int32 TensorProto::int_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.int_val) - return int_val_.Get(index); -} -inline void TensorProto::set_int_val(int index, ::google::protobuf::int32 value) { - int_val_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.int_val) -} -inline void TensorProto::add_int_val(::google::protobuf::int32 value) { - int_val_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.int_val) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -TensorProto::int_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.int_val) - return int_val_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -TensorProto::mutable_int_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.int_val) - return &int_val_; -} - -// repeated bytes string_val = 8; -inline int TensorProto::string_val_size() const { - return string_val_.size(); -} -inline void TensorProto::clear_string_val() { - string_val_.Clear(); -} -inline const ::std::string& TensorProto::string_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.string_val) - return string_val_.Get(index); -} -inline ::std::string* TensorProto::mutable_string_val(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.TensorProto.string_val) - return string_val_.Mutable(index); -} -inline void TensorProto::set_string_val(int index, const ::std::string& value) { - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.string_val) - string_val_.Mutable(index)->assign(value); -} -#if LANG_CXX11 -inline void TensorProto::set_string_val(int index, ::std::string&& value) { - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.string_val) - string_val_.Mutable(index)->assign(std::move(value)); -} -#endif -inline void TensorProto::set_string_val(int index, const char* value) { - GOOGLE_DCHECK(value != NULL); - string_val_.Mutable(index)->assign(value); - // @@protoc_insertion_point(field_set_char:tensorflow.TensorProto.string_val) -} -inline void TensorProto::set_string_val(int index, const void* value, size_t size) { - string_val_.Mutable(index)->assign( - reinterpret_cast(value), size); - // @@protoc_insertion_point(field_set_pointer:tensorflow.TensorProto.string_val) -} -inline ::std::string* TensorProto::add_string_val() { - // @@protoc_insertion_point(field_add_mutable:tensorflow.TensorProto.string_val) - return string_val_.Add(); -} -inline void TensorProto::add_string_val(const ::std::string& value) { - string_val_.Add()->assign(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.string_val) -} -#if LANG_CXX11 -inline void TensorProto::add_string_val(::std::string&& value) { - string_val_.Add(std::move(value)); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.string_val) -} -#endif -inline void TensorProto::add_string_val(const char* value) { - GOOGLE_DCHECK(value != NULL); - string_val_.Add()->assign(value); - // @@protoc_insertion_point(field_add_char:tensorflow.TensorProto.string_val) -} -inline void TensorProto::add_string_val(const void* value, size_t size) { - string_val_.Add()->assign(reinterpret_cast(value), size); - // @@protoc_insertion_point(field_add_pointer:tensorflow.TensorProto.string_val) -} -inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -TensorProto::string_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.string_val) - return string_val_; -} -inline ::google::protobuf::RepeatedPtrField< ::std::string>* -TensorProto::mutable_string_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.string_val) - return &string_val_; -} - -// repeated float scomplex_val = 9 [packed = true]; -inline int TensorProto::scomplex_val_size() const { - return scomplex_val_.size(); -} -inline void TensorProto::clear_scomplex_val() { - scomplex_val_.Clear(); -} -inline float TensorProto::scomplex_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.scomplex_val) - return scomplex_val_.Get(index); -} -inline void TensorProto::set_scomplex_val(int index, float value) { - scomplex_val_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.scomplex_val) -} -inline void TensorProto::add_scomplex_val(float value) { - scomplex_val_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.scomplex_val) -} -inline const ::google::protobuf::RepeatedField< float >& -TensorProto::scomplex_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.scomplex_val) - return scomplex_val_; -} -inline ::google::protobuf::RepeatedField< float >* -TensorProto::mutable_scomplex_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.scomplex_val) - return &scomplex_val_; -} - -// repeated int64 int64_val = 10 [packed = true]; -inline int TensorProto::int64_val_size() const { - return int64_val_.size(); -} -inline void TensorProto::clear_int64_val() { - int64_val_.Clear(); -} -inline ::google::protobuf::int64 TensorProto::int64_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.int64_val) - return int64_val_.Get(index); -} -inline void TensorProto::set_int64_val(int index, ::google::protobuf::int64 value) { - int64_val_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.int64_val) -} -inline void TensorProto::add_int64_val(::google::protobuf::int64 value) { - int64_val_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.int64_val) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -TensorProto::int64_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.int64_val) - return int64_val_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -TensorProto::mutable_int64_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.int64_val) - return &int64_val_; -} - -// repeated bool bool_val = 11 [packed = true]; -inline int TensorProto::bool_val_size() const { - return bool_val_.size(); -} -inline void TensorProto::clear_bool_val() { - bool_val_.Clear(); -} -inline bool TensorProto::bool_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.bool_val) - return bool_val_.Get(index); -} -inline void TensorProto::set_bool_val(int index, bool value) { - bool_val_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.bool_val) -} -inline void TensorProto::add_bool_val(bool value) { - bool_val_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.bool_val) -} -inline const ::google::protobuf::RepeatedField< bool >& -TensorProto::bool_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.bool_val) - return bool_val_; -} -inline ::google::protobuf::RepeatedField< bool >* -TensorProto::mutable_bool_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.bool_val) - return &bool_val_; -} - -// repeated double dcomplex_val = 12 [packed = true]; -inline int TensorProto::dcomplex_val_size() const { - return dcomplex_val_.size(); -} -inline void TensorProto::clear_dcomplex_val() { - dcomplex_val_.Clear(); -} -inline double TensorProto::dcomplex_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.dcomplex_val) - return dcomplex_val_.Get(index); -} -inline void TensorProto::set_dcomplex_val(int index, double value) { - dcomplex_val_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.dcomplex_val) -} -inline void TensorProto::add_dcomplex_val(double value) { - dcomplex_val_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.dcomplex_val) -} -inline const ::google::protobuf::RepeatedField< double >& -TensorProto::dcomplex_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.dcomplex_val) - return dcomplex_val_; -} -inline ::google::protobuf::RepeatedField< double >* -TensorProto::mutable_dcomplex_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.dcomplex_val) - return &dcomplex_val_; -} - -// repeated .tensorflow.ResourceHandleProto resource_handle_val = 14; -inline int TensorProto::resource_handle_val_size() const { - return resource_handle_val_.size(); -} -inline ::tensorflow::ResourceHandleProto* TensorProto::mutable_resource_handle_val(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.TensorProto.resource_handle_val) - return resource_handle_val_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::ResourceHandleProto >* -TensorProto::mutable_resource_handle_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.resource_handle_val) - return &resource_handle_val_; -} -inline const ::tensorflow::ResourceHandleProto& TensorProto::resource_handle_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.resource_handle_val) - return resource_handle_val_.Get(index); -} -inline ::tensorflow::ResourceHandleProto* TensorProto::add_resource_handle_val() { - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.resource_handle_val) - return resource_handle_val_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::ResourceHandleProto >& -TensorProto::resource_handle_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.resource_handle_val) - return resource_handle_val_; -} - -// repeated .tensorflow.VariantTensorDataProto variant_val = 15; -inline int TensorProto::variant_val_size() const { - return variant_val_.size(); -} -inline void TensorProto::clear_variant_val() { - variant_val_.Clear(); -} -inline ::tensorflow::VariantTensorDataProto* TensorProto::mutable_variant_val(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.TensorProto.variant_val) - return variant_val_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::VariantTensorDataProto >* -TensorProto::mutable_variant_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.variant_val) - return &variant_val_; -} -inline const ::tensorflow::VariantTensorDataProto& TensorProto::variant_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.variant_val) - return variant_val_.Get(index); -} -inline ::tensorflow::VariantTensorDataProto* TensorProto::add_variant_val() { - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.variant_val) - return variant_val_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::VariantTensorDataProto >& -TensorProto::variant_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.variant_val) - return variant_val_; -} - -// repeated uint32 uint32_val = 16 [packed = true]; -inline int TensorProto::uint32_val_size() const { - return uint32_val_.size(); -} -inline void TensorProto::clear_uint32_val() { - uint32_val_.Clear(); -} -inline ::google::protobuf::uint32 TensorProto::uint32_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.uint32_val) - return uint32_val_.Get(index); -} -inline void TensorProto::set_uint32_val(int index, ::google::protobuf::uint32 value) { - uint32_val_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.uint32_val) -} -inline void TensorProto::add_uint32_val(::google::protobuf::uint32 value) { - uint32_val_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.uint32_val) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& -TensorProto::uint32_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.uint32_val) - return uint32_val_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* -TensorProto::mutable_uint32_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.uint32_val) - return &uint32_val_; -} - -// repeated uint64 uint64_val = 17 [packed = true]; -inline int TensorProto::uint64_val_size() const { - return uint64_val_.size(); -} -inline void TensorProto::clear_uint64_val() { - uint64_val_.Clear(); -} -inline ::google::protobuf::uint64 TensorProto::uint64_val(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorProto.uint64_val) - return uint64_val_.Get(index); -} -inline void TensorProto::set_uint64_val(int index, ::google::protobuf::uint64 value) { - uint64_val_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.TensorProto.uint64_val) -} -inline void TensorProto::add_uint64_val(::google::protobuf::uint64 value) { - uint64_val_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.TensorProto.uint64_val) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& -TensorProto::uint64_val() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorProto.uint64_val) - return uint64_val_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* -TensorProto::mutable_uint64_val() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorProto.uint64_val) - return &uint64_val_; -} - -// ------------------------------------------------------------------- - -// VariantTensorDataProto - -// string type_name = 1; -inline void VariantTensorDataProto::clear_type_name() { - type_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& VariantTensorDataProto::type_name() const { - // @@protoc_insertion_point(field_get:tensorflow.VariantTensorDataProto.type_name) - return type_name_.Get(); -} -inline void VariantTensorDataProto::set_type_name(const ::std::string& value) { - - type_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.VariantTensorDataProto.type_name) -} -#if LANG_CXX11 -inline void VariantTensorDataProto::set_type_name(::std::string&& value) { - - type_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.VariantTensorDataProto.type_name) -} -#endif -inline void VariantTensorDataProto::set_type_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - type_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.VariantTensorDataProto.type_name) -} -inline void VariantTensorDataProto::set_type_name(const char* value, - size_t size) { - - type_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.VariantTensorDataProto.type_name) -} -inline ::std::string* VariantTensorDataProto::mutable_type_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.VariantTensorDataProto.type_name) - return type_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* VariantTensorDataProto::release_type_name() { - // @@protoc_insertion_point(field_release:tensorflow.VariantTensorDataProto.type_name) - - return type_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void VariantTensorDataProto::set_allocated_type_name(::std::string* type_name) { - if (type_name != NULL) { - - } else { - - } - type_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.VariantTensorDataProto.type_name) -} -inline ::std::string* VariantTensorDataProto::unsafe_arena_release_type_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.VariantTensorDataProto.type_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return type_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void VariantTensorDataProto::unsafe_arena_set_allocated_type_name( - ::std::string* type_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (type_name != NULL) { - - } else { - - } - type_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - type_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.VariantTensorDataProto.type_name) -} - -// bytes metadata = 2; -inline void VariantTensorDataProto::clear_metadata() { - metadata_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& VariantTensorDataProto::metadata() const { - // @@protoc_insertion_point(field_get:tensorflow.VariantTensorDataProto.metadata) - return metadata_.Get(); -} -inline void VariantTensorDataProto::set_metadata(const ::std::string& value) { - - metadata_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.VariantTensorDataProto.metadata) -} -#if LANG_CXX11 -inline void VariantTensorDataProto::set_metadata(::std::string&& value) { - - metadata_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.VariantTensorDataProto.metadata) -} -#endif -inline void VariantTensorDataProto::set_metadata(const char* value) { - GOOGLE_DCHECK(value != NULL); - - metadata_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.VariantTensorDataProto.metadata) -} -inline void VariantTensorDataProto::set_metadata(const void* value, - size_t size) { - - metadata_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.VariantTensorDataProto.metadata) -} -inline ::std::string* VariantTensorDataProto::mutable_metadata() { - - // @@protoc_insertion_point(field_mutable:tensorflow.VariantTensorDataProto.metadata) - return metadata_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* VariantTensorDataProto::release_metadata() { - // @@protoc_insertion_point(field_release:tensorflow.VariantTensorDataProto.metadata) - - return metadata_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void VariantTensorDataProto::set_allocated_metadata(::std::string* metadata) { - if (metadata != NULL) { - - } else { - - } - metadata_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), metadata, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.VariantTensorDataProto.metadata) -} -inline ::std::string* VariantTensorDataProto::unsafe_arena_release_metadata() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.VariantTensorDataProto.metadata) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return metadata_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void VariantTensorDataProto::unsafe_arena_set_allocated_metadata( - ::std::string* metadata) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (metadata != NULL) { - - } else { - - } - metadata_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - metadata, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.VariantTensorDataProto.metadata) -} - -// repeated .tensorflow.TensorProto tensors = 3; -inline int VariantTensorDataProto::tensors_size() const { - return tensors_.size(); -} -inline void VariantTensorDataProto::clear_tensors() { - tensors_.Clear(); -} -inline ::tensorflow::TensorProto* VariantTensorDataProto::mutable_tensors(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.VariantTensorDataProto.tensors) - return tensors_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorProto >* -VariantTensorDataProto::mutable_tensors() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.VariantTensorDataProto.tensors) - return &tensors_; -} -inline const ::tensorflow::TensorProto& VariantTensorDataProto::tensors(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.VariantTensorDataProto.tensors) - return tensors_.Get(index); -} -inline ::tensorflow::TensorProto* VariantTensorDataProto::add_tensors() { - // @@protoc_insertion_point(field_add:tensorflow.VariantTensorDataProto.tensors) - return tensors_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorProto >& -VariantTensorDataProto::tensors() const { - // @@protoc_insertion_point(field_list:tensorflow.VariantTensorDataProto.tensors) - return tensors_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_2eproto diff --git a/linux/include/tensorflow/core/framework/tensor.pb_text-impl.h b/linux/include/tensorflow/core/framework/tensor.pb_text-impl.h deleted file mode 100755 index 246fcf272..000000000 --- a/linux/include/tensorflow/core/framework/tensor.pb_text-impl.h +++ /dev/null @@ -1,38 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_tensor_proto_IMPL_H_ -#define tensorflow_core_framework_tensor_proto_IMPL_H_ - -#include "tensorflow/core/framework/resource_handle.pb.h" -#include "tensorflow/core/framework/resource_handle.pb_text-impl.h" -#include "tensorflow/core/framework/tensor.pb.h" -#include "tensorflow/core/framework/tensor.pb_text.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb_text-impl.h" -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/framework/types.pb_text-impl.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::TensorProto& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::TensorProto* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::VariantTensorDataProto& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::VariantTensorDataProto* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_tensor_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/tensor.pb_text.h b/linux/include/tensorflow/core/framework/tensor.pb_text.h deleted file mode 100755 index 6d073b0b1..000000000 --- a/linux/include/tensorflow/core/framework/tensor.pb_text.h +++ /dev/null @@ -1,34 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_tensor_proto_H_ -#define tensorflow_core_framework_tensor_proto_H_ - -#include "tensorflow/core/framework/tensor.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.TensorProto -string ProtoDebugString( - const ::tensorflow::TensorProto& msg); -string ProtoShortDebugString( - const ::tensorflow::TensorProto& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::TensorProto* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.VariantTensorDataProto -string ProtoDebugString( - const ::tensorflow::VariantTensorDataProto& msg); -string ProtoShortDebugString( - const ::tensorflow::VariantTensorDataProto& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::VariantTensorDataProto* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_tensor_proto_H_ diff --git a/linux/include/tensorflow/core/framework/tensor_description.pb.h b/linux/include/tensorflow/core/framework/tensor_description.pb.h deleted file mode 100755 index d80a47a5f..000000000 --- a/linux/include/tensorflow/core/framework/tensor_description.pb.h +++ /dev/null @@ -1,366 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/tensor_description.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_5fdescription_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_5fdescription_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/allocation_description.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2ftensor_5fdescription_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2ftensor_5fdescription_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[1]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2ftensor_5fdescription_2eproto -namespace tensorflow { -class TensorDescription; -class TensorDescriptionDefaultTypeInternal; -extern TensorDescriptionDefaultTypeInternal _TensorDescription_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::TensorDescription* Arena::CreateMaybeMessage<::tensorflow::TensorDescription>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class TensorDescription : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.TensorDescription) */ { - public: - TensorDescription(); - virtual ~TensorDescription(); - - TensorDescription(const TensorDescription& from); - - inline TensorDescription& operator=(const TensorDescription& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TensorDescription(TensorDescription&& from) noexcept - : TensorDescription() { - *this = ::std::move(from); - } - - inline TensorDescription& operator=(TensorDescription&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const TensorDescription& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TensorDescription* internal_default_instance() { - return reinterpret_cast( - &_TensorDescription_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(TensorDescription* other); - void Swap(TensorDescription* other); - friend void swap(TensorDescription& a, TensorDescription& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TensorDescription* New() const final { - return CreateMaybeMessage(NULL); - } - - TensorDescription* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TensorDescription& from); - void MergeFrom(const TensorDescription& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TensorDescription* other); - protected: - explicit TensorDescription(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .tensorflow.TensorShapeProto shape = 2; - bool has_shape() const; - void clear_shape(); - static const int kShapeFieldNumber = 2; - private: - const ::tensorflow::TensorShapeProto& _internal_shape() const; - public: - const ::tensorflow::TensorShapeProto& shape() const; - ::tensorflow::TensorShapeProto* release_shape(); - ::tensorflow::TensorShapeProto* mutable_shape(); - void set_allocated_shape(::tensorflow::TensorShapeProto* shape); - void unsafe_arena_set_allocated_shape( - ::tensorflow::TensorShapeProto* shape); - ::tensorflow::TensorShapeProto* unsafe_arena_release_shape(); - - // .tensorflow.AllocationDescription allocation_description = 4; - bool has_allocation_description() const; - void clear_allocation_description(); - static const int kAllocationDescriptionFieldNumber = 4; - private: - const ::tensorflow::AllocationDescription& _internal_allocation_description() const; - public: - const ::tensorflow::AllocationDescription& allocation_description() const; - ::tensorflow::AllocationDescription* release_allocation_description(); - ::tensorflow::AllocationDescription* mutable_allocation_description(); - void set_allocated_allocation_description(::tensorflow::AllocationDescription* allocation_description); - void unsafe_arena_set_allocated_allocation_description( - ::tensorflow::AllocationDescription* allocation_description); - ::tensorflow::AllocationDescription* unsafe_arena_release_allocation_description(); - - // .tensorflow.DataType dtype = 1; - void clear_dtype(); - static const int kDtypeFieldNumber = 1; - ::tensorflow::DataType dtype() const; - void set_dtype(::tensorflow::DataType value); - - // @@protoc_insertion_point(class_scope:tensorflow.TensorDescription) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::tensorflow::TensorShapeProto* shape_; - ::tensorflow::AllocationDescription* allocation_description_; - int dtype_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2ftensor_5fdescription_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// TensorDescription - -// .tensorflow.DataType dtype = 1; -inline void TensorDescription::clear_dtype() { - dtype_ = 0; -} -inline ::tensorflow::DataType TensorDescription::dtype() const { - // @@protoc_insertion_point(field_get:tensorflow.TensorDescription.dtype) - return static_cast< ::tensorflow::DataType >(dtype_); -} -inline void TensorDescription::set_dtype(::tensorflow::DataType value) { - - dtype_ = value; - // @@protoc_insertion_point(field_set:tensorflow.TensorDescription.dtype) -} - -// .tensorflow.TensorShapeProto shape = 2; -inline bool TensorDescription::has_shape() const { - return this != internal_default_instance() && shape_ != NULL; -} -inline const ::tensorflow::TensorShapeProto& TensorDescription::_internal_shape() const { - return *shape_; -} -inline const ::tensorflow::TensorShapeProto& TensorDescription::shape() const { - const ::tensorflow::TensorShapeProto* p = shape_; - // @@protoc_insertion_point(field_get:tensorflow.TensorDescription.shape) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_TensorShapeProto_default_instance_); -} -inline ::tensorflow::TensorShapeProto* TensorDescription::release_shape() { - // @@protoc_insertion_point(field_release:tensorflow.TensorDescription.shape) - - ::tensorflow::TensorShapeProto* temp = shape_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - shape_ = NULL; - return temp; -} -inline ::tensorflow::TensorShapeProto* TensorDescription::unsafe_arena_release_shape() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorDescription.shape) - - ::tensorflow::TensorShapeProto* temp = shape_; - shape_ = NULL; - return temp; -} -inline ::tensorflow::TensorShapeProto* TensorDescription::mutable_shape() { - - if (shape_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::TensorShapeProto>(GetArenaNoVirtual()); - shape_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.TensorDescription.shape) - return shape_; -} -inline void TensorDescription::set_allocated_shape(::tensorflow::TensorShapeProto* shape) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(shape_); - } - if (shape) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(shape)->GetArena(); - if (message_arena != submessage_arena) { - shape = ::google::protobuf::internal::GetOwnedMessage( - message_arena, shape, submessage_arena); - } - - } else { - - } - shape_ = shape; - // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorDescription.shape) -} - -// .tensorflow.AllocationDescription allocation_description = 4; -inline bool TensorDescription::has_allocation_description() const { - return this != internal_default_instance() && allocation_description_ != NULL; -} -inline const ::tensorflow::AllocationDescription& TensorDescription::_internal_allocation_description() const { - return *allocation_description_; -} -inline const ::tensorflow::AllocationDescription& TensorDescription::allocation_description() const { - const ::tensorflow::AllocationDescription* p = allocation_description_; - // @@protoc_insertion_point(field_get:tensorflow.TensorDescription.allocation_description) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_AllocationDescription_default_instance_); -} -inline ::tensorflow::AllocationDescription* TensorDescription::release_allocation_description() { - // @@protoc_insertion_point(field_release:tensorflow.TensorDescription.allocation_description) - - ::tensorflow::AllocationDescription* temp = allocation_description_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - allocation_description_ = NULL; - return temp; -} -inline ::tensorflow::AllocationDescription* TensorDescription::unsafe_arena_release_allocation_description() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorDescription.allocation_description) - - ::tensorflow::AllocationDescription* temp = allocation_description_; - allocation_description_ = NULL; - return temp; -} -inline ::tensorflow::AllocationDescription* TensorDescription::mutable_allocation_description() { - - if (allocation_description_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::AllocationDescription>(GetArenaNoVirtual()); - allocation_description_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.TensorDescription.allocation_description) - return allocation_description_; -} -inline void TensorDescription::set_allocated_allocation_description(::tensorflow::AllocationDescription* allocation_description) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(allocation_description_); - } - if (allocation_description) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(allocation_description)->GetArena(); - if (message_arena != submessage_arena) { - allocation_description = ::google::protobuf::internal::GetOwnedMessage( - message_arena, allocation_description, submessage_arena); - } - - } else { - - } - allocation_description_ = allocation_description; - // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorDescription.allocation_description) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_5fdescription_2eproto diff --git a/linux/include/tensorflow/core/framework/tensor_description.pb_text-impl.h b/linux/include/tensorflow/core/framework/tensor_description.pb_text-impl.h deleted file mode 100755 index 7c0005941..000000000 --- a/linux/include/tensorflow/core/framework/tensor_description.pb_text-impl.h +++ /dev/null @@ -1,31 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_tensor_description_proto_IMPL_H_ -#define tensorflow_core_framework_tensor_description_proto_IMPL_H_ - -#include "tensorflow/core/framework/allocation_description.pb.h" -#include "tensorflow/core/framework/allocation_description.pb_text-impl.h" -#include "tensorflow/core/framework/tensor_description.pb.h" -#include "tensorflow/core/framework/tensor_description.pb_text.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb_text-impl.h" -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/framework/types.pb_text-impl.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::TensorDescription& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::TensorDescription* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_tensor_description_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/tensor_description.pb_text.h b/linux/include/tensorflow/core/framework/tensor_description.pb_text.h deleted file mode 100755 index eed68fd79..000000000 --- a/linux/include/tensorflow/core/framework/tensor_description.pb_text.h +++ /dev/null @@ -1,24 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_tensor_description_proto_H_ -#define tensorflow_core_framework_tensor_description_proto_H_ - -#include "tensorflow/core/framework/tensor_description.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.TensorDescription -string ProtoDebugString( - const ::tensorflow::TensorDescription& msg); -string ProtoShortDebugString( - const ::tensorflow::TensorDescription& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::TensorDescription* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_tensor_description_proto_H_ diff --git a/linux/include/tensorflow/core/framework/tensor_shape.pb.h b/linux/include/tensorflow/core/framework/tensor_shape.pb.h deleted file mode 100755 index edad2caf7..000000000 --- a/linux/include/tensorflow/core/framework/tensor_shape.pb.h +++ /dev/null @@ -1,499 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/tensor_shape.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[2]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto -namespace tensorflow { -class TensorShapeProto; -class TensorShapeProtoDefaultTypeInternal; -extern TensorShapeProtoDefaultTypeInternal _TensorShapeProto_default_instance_; -class TensorShapeProto_Dim; -class TensorShapeProto_DimDefaultTypeInternal; -extern TensorShapeProto_DimDefaultTypeInternal _TensorShapeProto_Dim_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::TensorShapeProto* Arena::CreateMaybeMessage<::tensorflow::TensorShapeProto>(Arena*); -template<> ::tensorflow::TensorShapeProto_Dim* Arena::CreateMaybeMessage<::tensorflow::TensorShapeProto_Dim>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class TensorShapeProto_Dim : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.TensorShapeProto.Dim) */ { - public: - TensorShapeProto_Dim(); - virtual ~TensorShapeProto_Dim(); - - TensorShapeProto_Dim(const TensorShapeProto_Dim& from); - - inline TensorShapeProto_Dim& operator=(const TensorShapeProto_Dim& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TensorShapeProto_Dim(TensorShapeProto_Dim&& from) noexcept - : TensorShapeProto_Dim() { - *this = ::std::move(from); - } - - inline TensorShapeProto_Dim& operator=(TensorShapeProto_Dim&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const TensorShapeProto_Dim& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TensorShapeProto_Dim* internal_default_instance() { - return reinterpret_cast( - &_TensorShapeProto_Dim_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(TensorShapeProto_Dim* other); - void Swap(TensorShapeProto_Dim* other); - friend void swap(TensorShapeProto_Dim& a, TensorShapeProto_Dim& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TensorShapeProto_Dim* New() const final { - return CreateMaybeMessage(NULL); - } - - TensorShapeProto_Dim* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TensorShapeProto_Dim& from); - void MergeFrom(const TensorShapeProto_Dim& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TensorShapeProto_Dim* other); - protected: - explicit TensorShapeProto_Dim(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string name = 2; - void clear_name(); - static const int kNameFieldNumber = 2; - const ::std::string& name() const; - void set_name(const ::std::string& value); - #if LANG_CXX11 - void set_name(::std::string&& value); - #endif - void set_name(const char* value); - void set_name(const char* value, size_t size); - ::std::string* mutable_name(); - ::std::string* release_name(); - void set_allocated_name(::std::string* name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_name( - ::std::string* name); - - // int64 size = 1; - void clear_size(); - static const int kSizeFieldNumber = 1; - ::google::protobuf::int64 size() const; - void set_size(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:tensorflow.TensorShapeProto.Dim) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr name_; - ::google::protobuf::int64 size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class TensorShapeProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.TensorShapeProto) */ { - public: - TensorShapeProto(); - virtual ~TensorShapeProto(); - - TensorShapeProto(const TensorShapeProto& from); - - inline TensorShapeProto& operator=(const TensorShapeProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TensorShapeProto(TensorShapeProto&& from) noexcept - : TensorShapeProto() { - *this = ::std::move(from); - } - - inline TensorShapeProto& operator=(TensorShapeProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const TensorShapeProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TensorShapeProto* internal_default_instance() { - return reinterpret_cast( - &_TensorShapeProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(TensorShapeProto* other); - void Swap(TensorShapeProto* other); - friend void swap(TensorShapeProto& a, TensorShapeProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TensorShapeProto* New() const final { - return CreateMaybeMessage(NULL); - } - - TensorShapeProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TensorShapeProto& from); - void MergeFrom(const TensorShapeProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TensorShapeProto* other); - protected: - explicit TensorShapeProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef TensorShapeProto_Dim Dim; - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.TensorShapeProto.Dim dim = 2; - int dim_size() const; - void clear_dim(); - static const int kDimFieldNumber = 2; - ::tensorflow::TensorShapeProto_Dim* mutable_dim(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >* - mutable_dim(); - const ::tensorflow::TensorShapeProto_Dim& dim(int index) const; - ::tensorflow::TensorShapeProto_Dim* add_dim(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >& - dim() const; - - // bool unknown_rank = 3; - void clear_unknown_rank(); - static const int kUnknownRankFieldNumber = 3; - bool unknown_rank() const; - void set_unknown_rank(bool value); - - // @@protoc_insertion_point(class_scope:tensorflow.TensorShapeProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim > dim_; - bool unknown_rank_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// TensorShapeProto_Dim - -// int64 size = 1; -inline void TensorShapeProto_Dim::clear_size() { - size_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 TensorShapeProto_Dim::size() const { - // @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.Dim.size) - return size_; -} -inline void TensorShapeProto_Dim::set_size(::google::protobuf::int64 value) { - - size_ = value; - // @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.Dim.size) -} - -// string name = 2; -inline void TensorShapeProto_Dim::clear_name() { - name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& TensorShapeProto_Dim::name() const { - // @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.Dim.name) - return name_.Get(); -} -inline void TensorShapeProto_Dim::set_name(const ::std::string& value) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.Dim.name) -} -#if LANG_CXX11 -inline void TensorShapeProto_Dim::set_name(::std::string&& value) { - - name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.TensorShapeProto.Dim.name) -} -#endif -inline void TensorShapeProto_Dim::set_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.TensorShapeProto.Dim.name) -} -inline void TensorShapeProto_Dim::set_name(const char* value, - size_t size) { - - name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.TensorShapeProto.Dim.name) -} -inline ::std::string* TensorShapeProto_Dim::mutable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.TensorShapeProto.Dim.name) - return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* TensorShapeProto_Dim::release_name() { - // @@protoc_insertion_point(field_release:tensorflow.TensorShapeProto.Dim.name) - - return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void TensorShapeProto_Dim::set_allocated_name(::std::string* name) { - if (name != NULL) { - - } else { - - } - name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorShapeProto.Dim.name) -} -inline ::std::string* TensorShapeProto_Dim::unsafe_arena_release_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorShapeProto.Dim.name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void TensorShapeProto_Dim::unsafe_arena_set_allocated_name( - ::std::string* name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (name != NULL) { - - } else { - - } - name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorShapeProto.Dim.name) -} - -// ------------------------------------------------------------------- - -// TensorShapeProto - -// repeated .tensorflow.TensorShapeProto.Dim dim = 2; -inline int TensorShapeProto::dim_size() const { - return dim_.size(); -} -inline void TensorShapeProto::clear_dim() { - dim_.Clear(); -} -inline ::tensorflow::TensorShapeProto_Dim* TensorShapeProto::mutable_dim(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.TensorShapeProto.dim) - return dim_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >* -TensorShapeProto::mutable_dim() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorShapeProto.dim) - return &dim_; -} -inline const ::tensorflow::TensorShapeProto_Dim& TensorShapeProto::dim(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.dim) - return dim_.Get(index); -} -inline ::tensorflow::TensorShapeProto_Dim* TensorShapeProto::add_dim() { - // @@protoc_insertion_point(field_add:tensorflow.TensorShapeProto.dim) - return dim_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >& -TensorShapeProto::dim() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorShapeProto.dim) - return dim_; -} - -// bool unknown_rank = 3; -inline void TensorShapeProto::clear_unknown_rank() { - unknown_rank_ = false; -} -inline bool TensorShapeProto::unknown_rank() const { - // @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.unknown_rank) - return unknown_rank_; -} -inline void TensorShapeProto::set_unknown_rank(bool value) { - - unknown_rank_ = value; - // @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.unknown_rank) -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto diff --git a/linux/include/tensorflow/core/framework/tensor_shape.pb_text-impl.h b/linux/include/tensorflow/core/framework/tensor_shape.pb_text-impl.h deleted file mode 100755 index c7b82211b..000000000 --- a/linux/include/tensorflow/core/framework/tensor_shape.pb_text-impl.h +++ /dev/null @@ -1,32 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_tensor_shape_proto_IMPL_H_ -#define tensorflow_core_framework_tensor_shape_proto_IMPL_H_ - -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb_text.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::TensorShapeProto_Dim& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::TensorShapeProto_Dim* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::TensorShapeProto& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::TensorShapeProto* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_tensor_shape_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/tensor_shape.pb_text.h b/linux/include/tensorflow/core/framework/tensor_shape.pb_text.h deleted file mode 100755 index 7dd28180b..000000000 --- a/linux/include/tensorflow/core/framework/tensor_shape.pb_text.h +++ /dev/null @@ -1,34 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_tensor_shape_proto_H_ -#define tensorflow_core_framework_tensor_shape_proto_H_ - -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.TensorShapeProto.Dim -string ProtoDebugString( - const ::tensorflow::TensorShapeProto_Dim& msg); -string ProtoShortDebugString( - const ::tensorflow::TensorShapeProto_Dim& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::TensorShapeProto_Dim* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.TensorShapeProto -string ProtoDebugString( - const ::tensorflow::TensorShapeProto& msg); -string ProtoShortDebugString( - const ::tensorflow::TensorShapeProto& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::TensorShapeProto* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_tensor_shape_proto_H_ diff --git a/linux/include/tensorflow/core/framework/tensor_slice.pb.h b/linux/include/tensorflow/core/framework/tensor_slice.pb.h deleted file mode 100755 index df285da55..000000000 --- a/linux/include/tensorflow/core/framework/tensor_slice.pb.h +++ /dev/null @@ -1,443 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/tensor_slice.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[2]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto -namespace tensorflow { -class TensorSliceProto; -class TensorSliceProtoDefaultTypeInternal; -extern TensorSliceProtoDefaultTypeInternal _TensorSliceProto_default_instance_; -class TensorSliceProto_Extent; -class TensorSliceProto_ExtentDefaultTypeInternal; -extern TensorSliceProto_ExtentDefaultTypeInternal _TensorSliceProto_Extent_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::TensorSliceProto* Arena::CreateMaybeMessage<::tensorflow::TensorSliceProto>(Arena*); -template<> ::tensorflow::TensorSliceProto_Extent* Arena::CreateMaybeMessage<::tensorflow::TensorSliceProto_Extent>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class TensorSliceProto_Extent : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.TensorSliceProto.Extent) */ { - public: - TensorSliceProto_Extent(); - virtual ~TensorSliceProto_Extent(); - - TensorSliceProto_Extent(const TensorSliceProto_Extent& from); - - inline TensorSliceProto_Extent& operator=(const TensorSliceProto_Extent& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TensorSliceProto_Extent(TensorSliceProto_Extent&& from) noexcept - : TensorSliceProto_Extent() { - *this = ::std::move(from); - } - - inline TensorSliceProto_Extent& operator=(TensorSliceProto_Extent&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const TensorSliceProto_Extent& default_instance(); - - enum HasLengthCase { - kLength = 2, - HAS_LENGTH_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TensorSliceProto_Extent* internal_default_instance() { - return reinterpret_cast( - &_TensorSliceProto_Extent_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(TensorSliceProto_Extent* other); - void Swap(TensorSliceProto_Extent* other); - friend void swap(TensorSliceProto_Extent& a, TensorSliceProto_Extent& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TensorSliceProto_Extent* New() const final { - return CreateMaybeMessage(NULL); - } - - TensorSliceProto_Extent* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TensorSliceProto_Extent& from); - void MergeFrom(const TensorSliceProto_Extent& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TensorSliceProto_Extent* other); - protected: - explicit TensorSliceProto_Extent(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 start = 1; - void clear_start(); - static const int kStartFieldNumber = 1; - ::google::protobuf::int64 start() const; - void set_start(::google::protobuf::int64 value); - - // int64 length = 2; - private: - bool has_length() const; - public: - void clear_length(); - static const int kLengthFieldNumber = 2; - ::google::protobuf::int64 length() const; - void set_length(::google::protobuf::int64 value); - - void clear_has_length(); - HasLengthCase has_length_case() const; - // @@protoc_insertion_point(class_scope:tensorflow.TensorSliceProto.Extent) - private: - void set_has_length(); - - inline bool has_has_length() const; - inline void clear_has_has_length(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int64 start_; - union HasLengthUnion { - HasLengthUnion() {} - ::google::protobuf::int64 length_; - } has_length_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::protobuf_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class TensorSliceProto : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.TensorSliceProto) */ { - public: - TensorSliceProto(); - virtual ~TensorSliceProto(); - - TensorSliceProto(const TensorSliceProto& from); - - inline TensorSliceProto& operator=(const TensorSliceProto& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TensorSliceProto(TensorSliceProto&& from) noexcept - : TensorSliceProto() { - *this = ::std::move(from); - } - - inline TensorSliceProto& operator=(TensorSliceProto&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const TensorSliceProto& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TensorSliceProto* internal_default_instance() { - return reinterpret_cast( - &_TensorSliceProto_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(TensorSliceProto* other); - void Swap(TensorSliceProto* other); - friend void swap(TensorSliceProto& a, TensorSliceProto& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TensorSliceProto* New() const final { - return CreateMaybeMessage(NULL); - } - - TensorSliceProto* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TensorSliceProto& from); - void MergeFrom(const TensorSliceProto& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TensorSliceProto* other); - protected: - explicit TensorSliceProto(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef TensorSliceProto_Extent Extent; - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.TensorSliceProto.Extent extent = 1; - int extent_size() const; - void clear_extent(); - static const int kExtentFieldNumber = 1; - ::tensorflow::TensorSliceProto_Extent* mutable_extent(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorSliceProto_Extent >* - mutable_extent(); - const ::tensorflow::TensorSliceProto_Extent& extent(int index) const; - ::tensorflow::TensorSliceProto_Extent* add_extent(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorSliceProto_Extent >& - extent() const; - - // @@protoc_insertion_point(class_scope:tensorflow.TensorSliceProto) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorSliceProto_Extent > extent_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// TensorSliceProto_Extent - -// int64 start = 1; -inline void TensorSliceProto_Extent::clear_start() { - start_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 TensorSliceProto_Extent::start() const { - // @@protoc_insertion_point(field_get:tensorflow.TensorSliceProto.Extent.start) - return start_; -} -inline void TensorSliceProto_Extent::set_start(::google::protobuf::int64 value) { - - start_ = value; - // @@protoc_insertion_point(field_set:tensorflow.TensorSliceProto.Extent.start) -} - -// int64 length = 2; -inline bool TensorSliceProto_Extent::has_length() const { - return has_length_case() == kLength; -} -inline void TensorSliceProto_Extent::set_has_length() { - _oneof_case_[0] = kLength; -} -inline void TensorSliceProto_Extent::clear_length() { - if (has_length()) { - has_length_.length_ = GOOGLE_LONGLONG(0); - clear_has_has_length(); - } -} -inline ::google::protobuf::int64 TensorSliceProto_Extent::length() const { - // @@protoc_insertion_point(field_get:tensorflow.TensorSliceProto.Extent.length) - if (has_length()) { - return has_length_.length_; - } - return GOOGLE_LONGLONG(0); -} -inline void TensorSliceProto_Extent::set_length(::google::protobuf::int64 value) { - if (!has_length()) { - clear_has_length(); - set_has_length(); - } - has_length_.length_ = value; - // @@protoc_insertion_point(field_set:tensorflow.TensorSliceProto.Extent.length) -} - -inline bool TensorSliceProto_Extent::has_has_length() const { - return has_length_case() != HAS_LENGTH_NOT_SET; -} -inline void TensorSliceProto_Extent::clear_has_has_length() { - _oneof_case_[0] = HAS_LENGTH_NOT_SET; -} -inline TensorSliceProto_Extent::HasLengthCase TensorSliceProto_Extent::has_length_case() const { - return TensorSliceProto_Extent::HasLengthCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// TensorSliceProto - -// repeated .tensorflow.TensorSliceProto.Extent extent = 1; -inline int TensorSliceProto::extent_size() const { - return extent_.size(); -} -inline void TensorSliceProto::clear_extent() { - extent_.Clear(); -} -inline ::tensorflow::TensorSliceProto_Extent* TensorSliceProto::mutable_extent(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.TensorSliceProto.extent) - return extent_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorSliceProto_Extent >* -TensorSliceProto::mutable_extent() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorSliceProto.extent) - return &extent_; -} -inline const ::tensorflow::TensorSliceProto_Extent& TensorSliceProto::extent(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.TensorSliceProto.extent) - return extent_.Get(index); -} -inline ::tensorflow::TensorSliceProto_Extent* TensorSliceProto::add_extent() { - // @@protoc_insertion_point(field_add:tensorflow.TensorSliceProto.extent) - return extent_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::TensorSliceProto_Extent >& -TensorSliceProto::extent() const { - // @@protoc_insertion_point(field_list:tensorflow.TensorSliceProto.extent) - return extent_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto diff --git a/linux/include/tensorflow/core/framework/tensor_slice.pb_text-impl.h b/linux/include/tensorflow/core/framework/tensor_slice.pb_text-impl.h deleted file mode 100755 index 856568dd5..000000000 --- a/linux/include/tensorflow/core/framework/tensor_slice.pb_text-impl.h +++ /dev/null @@ -1,32 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_tensor_slice_proto_IMPL_H_ -#define tensorflow_core_framework_tensor_slice_proto_IMPL_H_ - -#include "tensorflow/core/framework/tensor_slice.pb.h" -#include "tensorflow/core/framework/tensor_slice.pb_text.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::TensorSliceProto_Extent& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::TensorSliceProto_Extent* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::TensorSliceProto& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::TensorSliceProto* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_tensor_slice_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/tensor_slice.pb_text.h b/linux/include/tensorflow/core/framework/tensor_slice.pb_text.h deleted file mode 100755 index 13ce90257..000000000 --- a/linux/include/tensorflow/core/framework/tensor_slice.pb_text.h +++ /dev/null @@ -1,34 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_tensor_slice_proto_H_ -#define tensorflow_core_framework_tensor_slice_proto_H_ - -#include "tensorflow/core/framework/tensor_slice.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.TensorSliceProto.Extent -string ProtoDebugString( - const ::tensorflow::TensorSliceProto_Extent& msg); -string ProtoShortDebugString( - const ::tensorflow::TensorSliceProto_Extent& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::TensorSliceProto_Extent* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.TensorSliceProto -string ProtoDebugString( - const ::tensorflow::TensorSliceProto& msg); -string ProtoShortDebugString( - const ::tensorflow::TensorSliceProto& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::TensorSliceProto* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_tensor_slice_proto_H_ diff --git a/linux/include/tensorflow/core/framework/types.pb.h b/linux/include/tensorflow/core/framework/types.pb.h deleted file mode 100755 index ba3f005b8..000000000 --- a/linux/include/tensorflow/core/framework/types.pb.h +++ /dev/null @@ -1,151 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/types.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftypes_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftypes_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2ftypes_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2ftypes_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[1]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2ftypes_2eproto -namespace tensorflow { -} // namespace tensorflow -namespace tensorflow { - -enum DataType { - DT_INVALID = 0, - DT_FLOAT = 1, - DT_DOUBLE = 2, - DT_INT32 = 3, - DT_UINT8 = 4, - DT_INT16 = 5, - DT_INT8 = 6, - DT_STRING = 7, - DT_COMPLEX64 = 8, - DT_INT64 = 9, - DT_BOOL = 10, - DT_QINT8 = 11, - DT_QUINT8 = 12, - DT_QINT32 = 13, - DT_BFLOAT16 = 14, - DT_QINT16 = 15, - DT_QUINT16 = 16, - DT_UINT16 = 17, - DT_COMPLEX128 = 18, - DT_HALF = 19, - DT_RESOURCE = 20, - DT_VARIANT = 21, - DT_UINT32 = 22, - DT_UINT64 = 23, - DT_FLOAT_REF = 101, - DT_DOUBLE_REF = 102, - DT_INT32_REF = 103, - DT_UINT8_REF = 104, - DT_INT16_REF = 105, - DT_INT8_REF = 106, - DT_STRING_REF = 107, - DT_COMPLEX64_REF = 108, - DT_INT64_REF = 109, - DT_BOOL_REF = 110, - DT_QINT8_REF = 111, - DT_QUINT8_REF = 112, - DT_QINT32_REF = 113, - DT_BFLOAT16_REF = 114, - DT_QINT16_REF = 115, - DT_QUINT16_REF = 116, - DT_UINT16_REF = 117, - DT_COMPLEX128_REF = 118, - DT_HALF_REF = 119, - DT_RESOURCE_REF = 120, - DT_VARIANT_REF = 121, - DT_UINT32_REF = 122, - DT_UINT64_REF = 123, - DataType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - DataType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool DataType_IsValid(int value); -const DataType DataType_MIN = DT_INVALID; -const DataType DataType_MAX = DT_UINT64_REF; -const int DataType_ARRAYSIZE = DataType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* DataType_descriptor(); -inline const ::std::string& DataType_Name(DataType value) { - return ::google::protobuf::internal::NameOfEnum( - DataType_descriptor(), value); -} -inline bool DataType_Parse( - const ::std::string& name, DataType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - DataType_descriptor(), name, value); -} -// =================================================================== - - -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::tensorflow::DataType> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::DataType>() { - return ::tensorflow::DataType_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftypes_2eproto diff --git a/linux/include/tensorflow/core/framework/types.pb_text-impl.h b/linux/include/tensorflow/core/framework/types.pb_text-impl.h deleted file mode 100755 index 4894ed093..000000000 --- a/linux/include/tensorflow/core/framework/types.pb_text-impl.h +++ /dev/null @@ -1,18 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_types_proto_IMPL_H_ -#define tensorflow_core_framework_types_proto_IMPL_H_ - -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/framework/types.pb_text.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_types_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/types.pb_text.h b/linux/include/tensorflow/core/framework/types.pb_text.h deleted file mode 100755 index b12fb212d..000000000 --- a/linux/include/tensorflow/core/framework/types.pb_text.h +++ /dev/null @@ -1,18 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_types_proto_H_ -#define tensorflow_core_framework_types_proto_H_ - -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Enum text output for tensorflow.DataType -const char* EnumName_DataType( - ::tensorflow::DataType value); - -} // namespace tensorflow - -#endif // tensorflow_core_framework_types_proto_H_ diff --git a/linux/include/tensorflow/core/framework/variable.pb.h b/linux/include/tensorflow/core/framework/variable.pb.h deleted file mode 100755 index 3999cf23f..000000000 --- a/linux/include/tensorflow/core/framework/variable.pb.h +++ /dev/null @@ -1,1063 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/variable.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fvariable_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fvariable_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fvariable_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2fvariable_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[2]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2fvariable_2eproto -namespace tensorflow { -class SaveSliceInfoDef; -class SaveSliceInfoDefDefaultTypeInternal; -extern SaveSliceInfoDefDefaultTypeInternal _SaveSliceInfoDef_default_instance_; -class VariableDef; -class VariableDefDefaultTypeInternal; -extern VariableDefDefaultTypeInternal _VariableDef_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::SaveSliceInfoDef* Arena::CreateMaybeMessage<::tensorflow::SaveSliceInfoDef>(Arena*); -template<> ::tensorflow::VariableDef* Arena::CreateMaybeMessage<::tensorflow::VariableDef>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class VariableDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.VariableDef) */ { - public: - VariableDef(); - virtual ~VariableDef(); - - VariableDef(const VariableDef& from); - - inline VariableDef& operator=(const VariableDef& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - VariableDef(VariableDef&& from) noexcept - : VariableDef() { - *this = ::std::move(from); - } - - inline VariableDef& operator=(VariableDef&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const VariableDef& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VariableDef* internal_default_instance() { - return reinterpret_cast( - &_VariableDef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(VariableDef* other); - void Swap(VariableDef* other); - friend void swap(VariableDef& a, VariableDef& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline VariableDef* New() const final { - return CreateMaybeMessage(NULL); - } - - VariableDef* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const VariableDef& from); - void MergeFrom(const VariableDef& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(VariableDef* other); - protected: - explicit VariableDef(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // string variable_name = 1; - void clear_variable_name(); - static const int kVariableNameFieldNumber = 1; - const ::std::string& variable_name() const; - void set_variable_name(const ::std::string& value); - #if LANG_CXX11 - void set_variable_name(::std::string&& value); - #endif - void set_variable_name(const char* value); - void set_variable_name(const char* value, size_t size); - ::std::string* mutable_variable_name(); - ::std::string* release_variable_name(); - void set_allocated_variable_name(::std::string* variable_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_variable_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_variable_name( - ::std::string* variable_name); - - // string initializer_name = 2; - void clear_initializer_name(); - static const int kInitializerNameFieldNumber = 2; - const ::std::string& initializer_name() const; - void set_initializer_name(const ::std::string& value); - #if LANG_CXX11 - void set_initializer_name(::std::string&& value); - #endif - void set_initializer_name(const char* value); - void set_initializer_name(const char* value, size_t size); - ::std::string* mutable_initializer_name(); - ::std::string* release_initializer_name(); - void set_allocated_initializer_name(::std::string* initializer_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_initializer_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_initializer_name( - ::std::string* initializer_name); - - // string snapshot_name = 3; - void clear_snapshot_name(); - static const int kSnapshotNameFieldNumber = 3; - const ::std::string& snapshot_name() const; - void set_snapshot_name(const ::std::string& value); - #if LANG_CXX11 - void set_snapshot_name(::std::string&& value); - #endif - void set_snapshot_name(const char* value); - void set_snapshot_name(const char* value, size_t size); - ::std::string* mutable_snapshot_name(); - ::std::string* release_snapshot_name(); - void set_allocated_snapshot_name(::std::string* snapshot_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_snapshot_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_snapshot_name( - ::std::string* snapshot_name); - - // string initial_value_name = 6; - void clear_initial_value_name(); - static const int kInitialValueNameFieldNumber = 6; - const ::std::string& initial_value_name() const; - void set_initial_value_name(const ::std::string& value); - #if LANG_CXX11 - void set_initial_value_name(::std::string&& value); - #endif - void set_initial_value_name(const char* value); - void set_initial_value_name(const char* value, size_t size); - ::std::string* mutable_initial_value_name(); - ::std::string* release_initial_value_name(); - void set_allocated_initial_value_name(::std::string* initial_value_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_initial_value_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_initial_value_name( - ::std::string* initial_value_name); - - // .tensorflow.SaveSliceInfoDef save_slice_info_def = 4; - bool has_save_slice_info_def() const; - void clear_save_slice_info_def(); - static const int kSaveSliceInfoDefFieldNumber = 4; - private: - const ::tensorflow::SaveSliceInfoDef& _internal_save_slice_info_def() const; - public: - const ::tensorflow::SaveSliceInfoDef& save_slice_info_def() const; - ::tensorflow::SaveSliceInfoDef* release_save_slice_info_def(); - ::tensorflow::SaveSliceInfoDef* mutable_save_slice_info_def(); - void set_allocated_save_slice_info_def(::tensorflow::SaveSliceInfoDef* save_slice_info_def); - void unsafe_arena_set_allocated_save_slice_info_def( - ::tensorflow::SaveSliceInfoDef* save_slice_info_def); - ::tensorflow::SaveSliceInfoDef* unsafe_arena_release_save_slice_info_def(); - - // bool is_resource = 5; - void clear_is_resource(); - static const int kIsResourceFieldNumber = 5; - bool is_resource() const; - void set_is_resource(bool value); - - // bool trainable = 7; - void clear_trainable(); - static const int kTrainableFieldNumber = 7; - bool trainable() const; - void set_trainable(bool value); - - // @@protoc_insertion_point(class_scope:tensorflow.VariableDef) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr variable_name_; - ::google::protobuf::internal::ArenaStringPtr initializer_name_; - ::google::protobuf::internal::ArenaStringPtr snapshot_name_; - ::google::protobuf::internal::ArenaStringPtr initial_value_name_; - ::tensorflow::SaveSliceInfoDef* save_slice_info_def_; - bool is_resource_; - bool trainable_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fvariable_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class SaveSliceInfoDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.SaveSliceInfoDef) */ { - public: - SaveSliceInfoDef(); - virtual ~SaveSliceInfoDef(); - - SaveSliceInfoDef(const SaveSliceInfoDef& from); - - inline SaveSliceInfoDef& operator=(const SaveSliceInfoDef& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SaveSliceInfoDef(SaveSliceInfoDef&& from) noexcept - : SaveSliceInfoDef() { - *this = ::std::move(from); - } - - inline SaveSliceInfoDef& operator=(SaveSliceInfoDef&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const SaveSliceInfoDef& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SaveSliceInfoDef* internal_default_instance() { - return reinterpret_cast( - &_SaveSliceInfoDef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(SaveSliceInfoDef* other); - void Swap(SaveSliceInfoDef* other); - friend void swap(SaveSliceInfoDef& a, SaveSliceInfoDef& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SaveSliceInfoDef* New() const final { - return CreateMaybeMessage(NULL); - } - - SaveSliceInfoDef* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const SaveSliceInfoDef& from); - void MergeFrom(const SaveSliceInfoDef& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SaveSliceInfoDef* other); - protected: - explicit SaveSliceInfoDef(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int64 full_shape = 2; - int full_shape_size() const; - void clear_full_shape(); - static const int kFullShapeFieldNumber = 2; - ::google::protobuf::int64 full_shape(int index) const; - void set_full_shape(int index, ::google::protobuf::int64 value); - void add_full_shape(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - full_shape() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_full_shape(); - - // repeated int64 var_offset = 3; - int var_offset_size() const; - void clear_var_offset(); - static const int kVarOffsetFieldNumber = 3; - ::google::protobuf::int64 var_offset(int index) const; - void set_var_offset(int index, ::google::protobuf::int64 value); - void add_var_offset(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - var_offset() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_var_offset(); - - // repeated int64 var_shape = 4; - int var_shape_size() const; - void clear_var_shape(); - static const int kVarShapeFieldNumber = 4; - ::google::protobuf::int64 var_shape(int index) const; - void set_var_shape(int index, ::google::protobuf::int64 value); - void add_var_shape(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - var_shape() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_var_shape(); - - // string full_name = 1; - void clear_full_name(); - static const int kFullNameFieldNumber = 1; - const ::std::string& full_name() const; - void set_full_name(const ::std::string& value); - #if LANG_CXX11 - void set_full_name(::std::string&& value); - #endif - void set_full_name(const char* value); - void set_full_name(const char* value, size_t size); - ::std::string* mutable_full_name(); - ::std::string* release_full_name(); - void set_allocated_full_name(::std::string* full_name); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_full_name(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_full_name( - ::std::string* full_name); - - // @@protoc_insertion_point(class_scope:tensorflow.SaveSliceInfoDef) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > full_shape_; - mutable int _full_shape_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > var_offset_; - mutable int _var_offset_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > var_shape_; - mutable int _var_shape_cached_byte_size_; - ::google::protobuf::internal::ArenaStringPtr full_name_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fvariable_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// VariableDef - -// string variable_name = 1; -inline void VariableDef::clear_variable_name() { - variable_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& VariableDef::variable_name() const { - // @@protoc_insertion_point(field_get:tensorflow.VariableDef.variable_name) - return variable_name_.Get(); -} -inline void VariableDef::set_variable_name(const ::std::string& value) { - - variable_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.VariableDef.variable_name) -} -#if LANG_CXX11 -inline void VariableDef::set_variable_name(::std::string&& value) { - - variable_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.VariableDef.variable_name) -} -#endif -inline void VariableDef::set_variable_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - variable_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.VariableDef.variable_name) -} -inline void VariableDef::set_variable_name(const char* value, - size_t size) { - - variable_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.VariableDef.variable_name) -} -inline ::std::string* VariableDef::mutable_variable_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.VariableDef.variable_name) - return variable_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* VariableDef::release_variable_name() { - // @@protoc_insertion_point(field_release:tensorflow.VariableDef.variable_name) - - return variable_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void VariableDef::set_allocated_variable_name(::std::string* variable_name) { - if (variable_name != NULL) { - - } else { - - } - variable_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), variable_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.VariableDef.variable_name) -} -inline ::std::string* VariableDef::unsafe_arena_release_variable_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.VariableDef.variable_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return variable_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void VariableDef::unsafe_arena_set_allocated_variable_name( - ::std::string* variable_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (variable_name != NULL) { - - } else { - - } - variable_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - variable_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.VariableDef.variable_name) -} - -// string initial_value_name = 6; -inline void VariableDef::clear_initial_value_name() { - initial_value_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& VariableDef::initial_value_name() const { - // @@protoc_insertion_point(field_get:tensorflow.VariableDef.initial_value_name) - return initial_value_name_.Get(); -} -inline void VariableDef::set_initial_value_name(const ::std::string& value) { - - initial_value_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.VariableDef.initial_value_name) -} -#if LANG_CXX11 -inline void VariableDef::set_initial_value_name(::std::string&& value) { - - initial_value_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.VariableDef.initial_value_name) -} -#endif -inline void VariableDef::set_initial_value_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - initial_value_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.VariableDef.initial_value_name) -} -inline void VariableDef::set_initial_value_name(const char* value, - size_t size) { - - initial_value_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.VariableDef.initial_value_name) -} -inline ::std::string* VariableDef::mutable_initial_value_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.VariableDef.initial_value_name) - return initial_value_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* VariableDef::release_initial_value_name() { - // @@protoc_insertion_point(field_release:tensorflow.VariableDef.initial_value_name) - - return initial_value_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void VariableDef::set_allocated_initial_value_name(::std::string* initial_value_name) { - if (initial_value_name != NULL) { - - } else { - - } - initial_value_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), initial_value_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.VariableDef.initial_value_name) -} -inline ::std::string* VariableDef::unsafe_arena_release_initial_value_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.VariableDef.initial_value_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return initial_value_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void VariableDef::unsafe_arena_set_allocated_initial_value_name( - ::std::string* initial_value_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (initial_value_name != NULL) { - - } else { - - } - initial_value_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - initial_value_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.VariableDef.initial_value_name) -} - -// string initializer_name = 2; -inline void VariableDef::clear_initializer_name() { - initializer_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& VariableDef::initializer_name() const { - // @@protoc_insertion_point(field_get:tensorflow.VariableDef.initializer_name) - return initializer_name_.Get(); -} -inline void VariableDef::set_initializer_name(const ::std::string& value) { - - initializer_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.VariableDef.initializer_name) -} -#if LANG_CXX11 -inline void VariableDef::set_initializer_name(::std::string&& value) { - - initializer_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.VariableDef.initializer_name) -} -#endif -inline void VariableDef::set_initializer_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - initializer_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.VariableDef.initializer_name) -} -inline void VariableDef::set_initializer_name(const char* value, - size_t size) { - - initializer_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.VariableDef.initializer_name) -} -inline ::std::string* VariableDef::mutable_initializer_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.VariableDef.initializer_name) - return initializer_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* VariableDef::release_initializer_name() { - // @@protoc_insertion_point(field_release:tensorflow.VariableDef.initializer_name) - - return initializer_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void VariableDef::set_allocated_initializer_name(::std::string* initializer_name) { - if (initializer_name != NULL) { - - } else { - - } - initializer_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), initializer_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.VariableDef.initializer_name) -} -inline ::std::string* VariableDef::unsafe_arena_release_initializer_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.VariableDef.initializer_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return initializer_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void VariableDef::unsafe_arena_set_allocated_initializer_name( - ::std::string* initializer_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (initializer_name != NULL) { - - } else { - - } - initializer_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - initializer_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.VariableDef.initializer_name) -} - -// string snapshot_name = 3; -inline void VariableDef::clear_snapshot_name() { - snapshot_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& VariableDef::snapshot_name() const { - // @@protoc_insertion_point(field_get:tensorflow.VariableDef.snapshot_name) - return snapshot_name_.Get(); -} -inline void VariableDef::set_snapshot_name(const ::std::string& value) { - - snapshot_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.VariableDef.snapshot_name) -} -#if LANG_CXX11 -inline void VariableDef::set_snapshot_name(::std::string&& value) { - - snapshot_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.VariableDef.snapshot_name) -} -#endif -inline void VariableDef::set_snapshot_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - snapshot_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.VariableDef.snapshot_name) -} -inline void VariableDef::set_snapshot_name(const char* value, - size_t size) { - - snapshot_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.VariableDef.snapshot_name) -} -inline ::std::string* VariableDef::mutable_snapshot_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.VariableDef.snapshot_name) - return snapshot_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* VariableDef::release_snapshot_name() { - // @@protoc_insertion_point(field_release:tensorflow.VariableDef.snapshot_name) - - return snapshot_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void VariableDef::set_allocated_snapshot_name(::std::string* snapshot_name) { - if (snapshot_name != NULL) { - - } else { - - } - snapshot_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), snapshot_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.VariableDef.snapshot_name) -} -inline ::std::string* VariableDef::unsafe_arena_release_snapshot_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.VariableDef.snapshot_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return snapshot_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void VariableDef::unsafe_arena_set_allocated_snapshot_name( - ::std::string* snapshot_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (snapshot_name != NULL) { - - } else { - - } - snapshot_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - snapshot_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.VariableDef.snapshot_name) -} - -// .tensorflow.SaveSliceInfoDef save_slice_info_def = 4; -inline bool VariableDef::has_save_slice_info_def() const { - return this != internal_default_instance() && save_slice_info_def_ != NULL; -} -inline void VariableDef::clear_save_slice_info_def() { - if (GetArenaNoVirtual() == NULL && save_slice_info_def_ != NULL) { - delete save_slice_info_def_; - } - save_slice_info_def_ = NULL; -} -inline const ::tensorflow::SaveSliceInfoDef& VariableDef::_internal_save_slice_info_def() const { - return *save_slice_info_def_; -} -inline const ::tensorflow::SaveSliceInfoDef& VariableDef::save_slice_info_def() const { - const ::tensorflow::SaveSliceInfoDef* p = save_slice_info_def_; - // @@protoc_insertion_point(field_get:tensorflow.VariableDef.save_slice_info_def) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_SaveSliceInfoDef_default_instance_); -} -inline ::tensorflow::SaveSliceInfoDef* VariableDef::release_save_slice_info_def() { - // @@protoc_insertion_point(field_release:tensorflow.VariableDef.save_slice_info_def) - - ::tensorflow::SaveSliceInfoDef* temp = save_slice_info_def_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - save_slice_info_def_ = NULL; - return temp; -} -inline ::tensorflow::SaveSliceInfoDef* VariableDef::unsafe_arena_release_save_slice_info_def() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.VariableDef.save_slice_info_def) - - ::tensorflow::SaveSliceInfoDef* temp = save_slice_info_def_; - save_slice_info_def_ = NULL; - return temp; -} -inline ::tensorflow::SaveSliceInfoDef* VariableDef::mutable_save_slice_info_def() { - - if (save_slice_info_def_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::SaveSliceInfoDef>(GetArenaNoVirtual()); - save_slice_info_def_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.VariableDef.save_slice_info_def) - return save_slice_info_def_; -} -inline void VariableDef::set_allocated_save_slice_info_def(::tensorflow::SaveSliceInfoDef* save_slice_info_def) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete save_slice_info_def_; - } - if (save_slice_info_def) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(save_slice_info_def); - if (message_arena != submessage_arena) { - save_slice_info_def = ::google::protobuf::internal::GetOwnedMessage( - message_arena, save_slice_info_def, submessage_arena); - } - - } else { - - } - save_slice_info_def_ = save_slice_info_def; - // @@protoc_insertion_point(field_set_allocated:tensorflow.VariableDef.save_slice_info_def) -} - -// bool is_resource = 5; -inline void VariableDef::clear_is_resource() { - is_resource_ = false; -} -inline bool VariableDef::is_resource() const { - // @@protoc_insertion_point(field_get:tensorflow.VariableDef.is_resource) - return is_resource_; -} -inline void VariableDef::set_is_resource(bool value) { - - is_resource_ = value; - // @@protoc_insertion_point(field_set:tensorflow.VariableDef.is_resource) -} - -// bool trainable = 7; -inline void VariableDef::clear_trainable() { - trainable_ = false; -} -inline bool VariableDef::trainable() const { - // @@protoc_insertion_point(field_get:tensorflow.VariableDef.trainable) - return trainable_; -} -inline void VariableDef::set_trainable(bool value) { - - trainable_ = value; - // @@protoc_insertion_point(field_set:tensorflow.VariableDef.trainable) -} - -// ------------------------------------------------------------------- - -// SaveSliceInfoDef - -// string full_name = 1; -inline void SaveSliceInfoDef::clear_full_name() { - full_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& SaveSliceInfoDef::full_name() const { - // @@protoc_insertion_point(field_get:tensorflow.SaveSliceInfoDef.full_name) - return full_name_.Get(); -} -inline void SaveSliceInfoDef::set_full_name(const ::std::string& value) { - - full_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.SaveSliceInfoDef.full_name) -} -#if LANG_CXX11 -inline void SaveSliceInfoDef::set_full_name(::std::string&& value) { - - full_name_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.SaveSliceInfoDef.full_name) -} -#endif -inline void SaveSliceInfoDef::set_full_name(const char* value) { - GOOGLE_DCHECK(value != NULL); - - full_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.SaveSliceInfoDef.full_name) -} -inline void SaveSliceInfoDef::set_full_name(const char* value, - size_t size) { - - full_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.SaveSliceInfoDef.full_name) -} -inline ::std::string* SaveSliceInfoDef::mutable_full_name() { - - // @@protoc_insertion_point(field_mutable:tensorflow.SaveSliceInfoDef.full_name) - return full_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* SaveSliceInfoDef::release_full_name() { - // @@protoc_insertion_point(field_release:tensorflow.SaveSliceInfoDef.full_name) - - return full_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void SaveSliceInfoDef::set_allocated_full_name(::std::string* full_name) { - if (full_name != NULL) { - - } else { - - } - full_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), full_name, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.SaveSliceInfoDef.full_name) -} -inline ::std::string* SaveSliceInfoDef::unsafe_arena_release_full_name() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SaveSliceInfoDef.full_name) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return full_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void SaveSliceInfoDef::unsafe_arena_set_allocated_full_name( - ::std::string* full_name) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (full_name != NULL) { - - } else { - - } - full_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - full_name, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SaveSliceInfoDef.full_name) -} - -// repeated int64 full_shape = 2; -inline int SaveSliceInfoDef::full_shape_size() const { - return full_shape_.size(); -} -inline void SaveSliceInfoDef::clear_full_shape() { - full_shape_.Clear(); -} -inline ::google::protobuf::int64 SaveSliceInfoDef::full_shape(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.SaveSliceInfoDef.full_shape) - return full_shape_.Get(index); -} -inline void SaveSliceInfoDef::set_full_shape(int index, ::google::protobuf::int64 value) { - full_shape_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.SaveSliceInfoDef.full_shape) -} -inline void SaveSliceInfoDef::add_full_shape(::google::protobuf::int64 value) { - full_shape_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.SaveSliceInfoDef.full_shape) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -SaveSliceInfoDef::full_shape() const { - // @@protoc_insertion_point(field_list:tensorflow.SaveSliceInfoDef.full_shape) - return full_shape_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -SaveSliceInfoDef::mutable_full_shape() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.SaveSliceInfoDef.full_shape) - return &full_shape_; -} - -// repeated int64 var_offset = 3; -inline int SaveSliceInfoDef::var_offset_size() const { - return var_offset_.size(); -} -inline void SaveSliceInfoDef::clear_var_offset() { - var_offset_.Clear(); -} -inline ::google::protobuf::int64 SaveSliceInfoDef::var_offset(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.SaveSliceInfoDef.var_offset) - return var_offset_.Get(index); -} -inline void SaveSliceInfoDef::set_var_offset(int index, ::google::protobuf::int64 value) { - var_offset_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.SaveSliceInfoDef.var_offset) -} -inline void SaveSliceInfoDef::add_var_offset(::google::protobuf::int64 value) { - var_offset_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.SaveSliceInfoDef.var_offset) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -SaveSliceInfoDef::var_offset() const { - // @@protoc_insertion_point(field_list:tensorflow.SaveSliceInfoDef.var_offset) - return var_offset_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -SaveSliceInfoDef::mutable_var_offset() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.SaveSliceInfoDef.var_offset) - return &var_offset_; -} - -// repeated int64 var_shape = 4; -inline int SaveSliceInfoDef::var_shape_size() const { - return var_shape_.size(); -} -inline void SaveSliceInfoDef::clear_var_shape() { - var_shape_.Clear(); -} -inline ::google::protobuf::int64 SaveSliceInfoDef::var_shape(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.SaveSliceInfoDef.var_shape) - return var_shape_.Get(index); -} -inline void SaveSliceInfoDef::set_var_shape(int index, ::google::protobuf::int64 value) { - var_shape_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.SaveSliceInfoDef.var_shape) -} -inline void SaveSliceInfoDef::add_var_shape(::google::protobuf::int64 value) { - var_shape_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.SaveSliceInfoDef.var_shape) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -SaveSliceInfoDef::var_shape() const { - // @@protoc_insertion_point(field_list:tensorflow.SaveSliceInfoDef.var_shape) - return var_shape_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -SaveSliceInfoDef::mutable_var_shape() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.SaveSliceInfoDef.var_shape) - return &var_shape_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fvariable_2eproto diff --git a/linux/include/tensorflow/core/framework/variable.pb_text-impl.h b/linux/include/tensorflow/core/framework/variable.pb_text-impl.h deleted file mode 100755 index 1220ef19f..000000000 --- a/linux/include/tensorflow/core/framework/variable.pb_text-impl.h +++ /dev/null @@ -1,32 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_variable_proto_IMPL_H_ -#define tensorflow_core_framework_variable_proto_IMPL_H_ - -#include "tensorflow/core/framework/variable.pb.h" -#include "tensorflow/core/framework/variable.pb_text.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::VariableDef& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::VariableDef* msg); - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::SaveSliceInfoDef& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::SaveSliceInfoDef* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_variable_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/variable.pb_text.h b/linux/include/tensorflow/core/framework/variable.pb_text.h deleted file mode 100755 index f70e2c990..000000000 --- a/linux/include/tensorflow/core/framework/variable.pb_text.h +++ /dev/null @@ -1,34 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_variable_proto_H_ -#define tensorflow_core_framework_variable_proto_H_ - -#include "tensorflow/core/framework/variable.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.VariableDef -string ProtoDebugString( - const ::tensorflow::VariableDef& msg); -string ProtoShortDebugString( - const ::tensorflow::VariableDef& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::VariableDef* msg) - TF_MUST_USE_RESULT; - -// Message-text conversion for tensorflow.SaveSliceInfoDef -string ProtoDebugString( - const ::tensorflow::SaveSliceInfoDef& msg); -string ProtoShortDebugString( - const ::tensorflow::SaveSliceInfoDef& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::SaveSliceInfoDef* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_variable_proto_H_ diff --git a/linux/include/tensorflow/core/framework/versions.pb.h b/linux/include/tensorflow/core/framework/versions.pb.h deleted file mode 100755 index b118c1d89..000000000 --- a/linux/include/tensorflow/core/framework/versions.pb.h +++ /dev/null @@ -1,278 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/framework/versions.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fversions_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fversions_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fframework_2fversions_2eproto - -namespace protobuf_tensorflow_2fcore_2fframework_2fversions_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[1]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fframework_2fversions_2eproto -namespace tensorflow { -class VersionDef; -class VersionDefDefaultTypeInternal; -extern VersionDefDefaultTypeInternal _VersionDef_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::VersionDef* Arena::CreateMaybeMessage<::tensorflow::VersionDef>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class VersionDef : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.VersionDef) */ { - public: - VersionDef(); - virtual ~VersionDef(); - - VersionDef(const VersionDef& from); - - inline VersionDef& operator=(const VersionDef& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - VersionDef(VersionDef&& from) noexcept - : VersionDef() { - *this = ::std::move(from); - } - - inline VersionDef& operator=(VersionDef&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const VersionDef& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const VersionDef* internal_default_instance() { - return reinterpret_cast( - &_VersionDef_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(VersionDef* other); - void Swap(VersionDef* other); - friend void swap(VersionDef& a, VersionDef& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline VersionDef* New() const final { - return CreateMaybeMessage(NULL); - } - - VersionDef* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const VersionDef& from); - void MergeFrom(const VersionDef& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(VersionDef* other); - protected: - explicit VersionDef(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int32 bad_consumers = 3; - int bad_consumers_size() const; - void clear_bad_consumers(); - static const int kBadConsumersFieldNumber = 3; - ::google::protobuf::int32 bad_consumers(int index) const; - void set_bad_consumers(int index, ::google::protobuf::int32 value); - void add_bad_consumers(::google::protobuf::int32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& - bad_consumers() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* - mutable_bad_consumers(); - - // int32 producer = 1; - void clear_producer(); - static const int kProducerFieldNumber = 1; - ::google::protobuf::int32 producer() const; - void set_producer(::google::protobuf::int32 value); - - // int32 min_consumer = 2; - void clear_min_consumer(); - static const int kMinConsumerFieldNumber = 2; - ::google::protobuf::int32 min_consumer() const; - void set_min_consumer(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:tensorflow.VersionDef) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 > bad_consumers_; - mutable int _bad_consumers_cached_byte_size_; - ::google::protobuf::int32 producer_; - ::google::protobuf::int32 min_consumer_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fframework_2fversions_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// VersionDef - -// int32 producer = 1; -inline void VersionDef::clear_producer() { - producer_ = 0; -} -inline ::google::protobuf::int32 VersionDef::producer() const { - // @@protoc_insertion_point(field_get:tensorflow.VersionDef.producer) - return producer_; -} -inline void VersionDef::set_producer(::google::protobuf::int32 value) { - - producer_ = value; - // @@protoc_insertion_point(field_set:tensorflow.VersionDef.producer) -} - -// int32 min_consumer = 2; -inline void VersionDef::clear_min_consumer() { - min_consumer_ = 0; -} -inline ::google::protobuf::int32 VersionDef::min_consumer() const { - // @@protoc_insertion_point(field_get:tensorflow.VersionDef.min_consumer) - return min_consumer_; -} -inline void VersionDef::set_min_consumer(::google::protobuf::int32 value) { - - min_consumer_ = value; - // @@protoc_insertion_point(field_set:tensorflow.VersionDef.min_consumer) -} - -// repeated int32 bad_consumers = 3; -inline int VersionDef::bad_consumers_size() const { - return bad_consumers_.size(); -} -inline void VersionDef::clear_bad_consumers() { - bad_consumers_.Clear(); -} -inline ::google::protobuf::int32 VersionDef::bad_consumers(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.VersionDef.bad_consumers) - return bad_consumers_.Get(index); -} -inline void VersionDef::set_bad_consumers(int index, ::google::protobuf::int32 value) { - bad_consumers_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.VersionDef.bad_consumers) -} -inline void VersionDef::add_bad_consumers(::google::protobuf::int32 value) { - bad_consumers_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.VersionDef.bad_consumers) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -VersionDef::bad_consumers() const { - // @@protoc_insertion_point(field_list:tensorflow.VersionDef.bad_consumers) - return bad_consumers_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -VersionDef::mutable_bad_consumers() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.VersionDef.bad_consumers) - return &bad_consumers_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fversions_2eproto diff --git a/linux/include/tensorflow/core/framework/versions.pb_text-impl.h b/linux/include/tensorflow/core/framework/versions.pb_text-impl.h deleted file mode 100755 index 14776c2f5..000000000 --- a/linux/include/tensorflow/core/framework/versions.pb_text-impl.h +++ /dev/null @@ -1,25 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_versions_proto_IMPL_H_ -#define tensorflow_core_framework_versions_proto_IMPL_H_ - -#include "tensorflow/core/framework/versions.pb.h" -#include "tensorflow/core/framework/versions.pb_text.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { - -namespace internal { - -void AppendProtoDebugString( - ::tensorflow::strings::ProtoTextOutput* o, - const ::tensorflow::VersionDef& msg); -bool ProtoParseFromScanner( - ::tensorflow::strings::Scanner* scanner, bool nested, bool close_curly, - ::tensorflow::VersionDef* msg); - -} // namespace internal - -} // namespace tensorflow - -#endif // tensorflow_core_framework_versions_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/framework/versions.pb_text.h b/linux/include/tensorflow/core/framework/versions.pb_text.h deleted file mode 100755 index 393bd97f9..000000000 --- a/linux/include/tensorflow/core/framework/versions.pb_text.h +++ /dev/null @@ -1,24 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_framework_versions_proto_H_ -#define tensorflow_core_framework_versions_proto_H_ - -#include "tensorflow/core/framework/versions.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { - -// Message-text conversion for tensorflow.VersionDef -string ProtoDebugString( - const ::tensorflow::VersionDef& msg); -string ProtoShortDebugString( - const ::tensorflow::VersionDef& msg); -bool ProtoParseFromString( - const string& s, - ::tensorflow::VersionDef* msg) - TF_MUST_USE_RESULT; - -} // namespace tensorflow - -#endif // tensorflow_core_framework_versions_proto_H_ diff --git a/linux/include/tensorflow/core/grappler/costs/op_performance_data.pb.h b/linux/include/tensorflow/core/grappler/costs/op_performance_data.pb.h deleted file mode 100755 index cef77c758..000000000 --- a/linux/include/tensorflow/core/grappler/costs/op_performance_data.pb.h +++ /dev/null @@ -1,2561 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/grappler/costs/op_performance_data.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fgrappler_2fcosts_2fop_5fperformance_5fdata_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fgrappler_2fcosts_2fop_5fperformance_5fdata_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -#include -#include -#include "tensorflow/core/framework/tensor.pb.h" -#include "tensorflow/core/framework/tensor_shape.pb.h" -#include "tensorflow/core/framework/types.pb.h" -#include "tensorflow/core/framework/attr_value.pb.h" -#include "tensorflow/core/protobuf/device_properties.pb.h" -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fgrappler_2fcosts_2fop_5fperformance_5fdata_2eproto - -namespace protobuf_tensorflow_2fcore_2fgrappler_2fcosts_2fop_5fperformance_5fdata_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[9]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fgrappler_2fcosts_2fop_5fperformance_5fdata_2eproto -namespace tensorflow { -class LogNormalDistribution; -class LogNormalDistributionDefaultTypeInternal; -extern LogNormalDistributionDefaultTypeInternal _LogNormalDistribution_default_instance_; -class NormalDistribution; -class NormalDistributionDefaultTypeInternal; -extern NormalDistributionDefaultTypeInternal _NormalDistribution_default_instance_; -class OpInfo; -class OpInfoDefaultTypeInternal; -extern OpInfoDefaultTypeInternal _OpInfo_default_instance_; -class OpInfo_AttrEntry_DoNotUse; -class OpInfo_AttrEntry_DoNotUseDefaultTypeInternal; -extern OpInfo_AttrEntry_DoNotUseDefaultTypeInternal _OpInfo_AttrEntry_DoNotUse_default_instance_; -class OpInfo_TensorProperties; -class OpInfo_TensorPropertiesDefaultTypeInternal; -extern OpInfo_TensorPropertiesDefaultTypeInternal _OpInfo_TensorProperties_default_instance_; -class OpPerformance; -class OpPerformanceDefaultTypeInternal; -extern OpPerformanceDefaultTypeInternal _OpPerformance_default_instance_; -class OpPerformanceList; -class OpPerformanceListDefaultTypeInternal; -extern OpPerformanceListDefaultTypeInternal _OpPerformanceList_default_instance_; -class OpPerformance_OpMemory; -class OpPerformance_OpMemoryDefaultTypeInternal; -extern OpPerformance_OpMemoryDefaultTypeInternal _OpPerformance_OpMemory_default_instance_; -class SessionInfo; -class SessionInfoDefaultTypeInternal; -extern SessionInfoDefaultTypeInternal _SessionInfo_default_instance_; -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::LogNormalDistribution* Arena::CreateMaybeMessage<::tensorflow::LogNormalDistribution>(Arena*); -template<> ::tensorflow::NormalDistribution* Arena::CreateMaybeMessage<::tensorflow::NormalDistribution>(Arena*); -template<> ::tensorflow::OpInfo* Arena::CreateMaybeMessage<::tensorflow::OpInfo>(Arena*); -template<> ::tensorflow::OpInfo_AttrEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::OpInfo_AttrEntry_DoNotUse>(Arena*); -template<> ::tensorflow::OpInfo_TensorProperties* Arena::CreateMaybeMessage<::tensorflow::OpInfo_TensorProperties>(Arena*); -template<> ::tensorflow::OpPerformance* Arena::CreateMaybeMessage<::tensorflow::OpPerformance>(Arena*); -template<> ::tensorflow::OpPerformanceList* Arena::CreateMaybeMessage<::tensorflow::OpPerformanceList>(Arena*); -template<> ::tensorflow::OpPerformance_OpMemory* Arena::CreateMaybeMessage<::tensorflow::OpPerformance_OpMemory>(Arena*); -template<> ::tensorflow::SessionInfo* Arena::CreateMaybeMessage<::tensorflow::SessionInfo>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { - -// =================================================================== - -class SessionInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.SessionInfo) */ { - public: - SessionInfo(); - virtual ~SessionInfo(); - - SessionInfo(const SessionInfo& from); - - inline SessionInfo& operator=(const SessionInfo& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SessionInfo(SessionInfo&& from) noexcept - : SessionInfo() { - *this = ::std::move(from); - } - - inline SessionInfo& operator=(SessionInfo&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const SessionInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SessionInfo* internal_default_instance() { - return reinterpret_cast( - &_SessionInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(SessionInfo* other); - void Swap(SessionInfo* other); - friend void swap(SessionInfo& a, SessionInfo& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SessionInfo* New() const final { - return CreateMaybeMessage(NULL); - } - - SessionInfo* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const SessionInfo& from); - void MergeFrom(const SessionInfo& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SessionInfo* other); - protected: - explicit SessionInfo(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 intra_op_parallelism = 1; - void clear_intra_op_parallelism(); - static const int kIntraOpParallelismFieldNumber = 1; - ::google::protobuf::int64 intra_op_parallelism() const; - void set_intra_op_parallelism(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:tensorflow.SessionInfo) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int64 intra_op_parallelism_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fgrappler_2fcosts_2fop_5fperformance_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class OpInfo_AttrEntry_DoNotUse : public ::google::protobuf::internal::MapEntry { -public: - typedef ::google::protobuf::internal::MapEntry SuperType; - OpInfo_AttrEntry_DoNotUse(); - OpInfo_AttrEntry_DoNotUse(::google::protobuf::Arena* arena); - void MergeFrom(const OpInfo_AttrEntry_DoNotUse& other); - static const OpInfo_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_OpInfo_AttrEntry_DoNotUse_default_instance_); } - void MergeFrom(const ::google::protobuf::Message& other) final; - ::google::protobuf::Metadata GetMetadata() const; -}; - -// ------------------------------------------------------------------- - -class OpInfo_TensorProperties : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.OpInfo.TensorProperties) */ { - public: - OpInfo_TensorProperties(); - virtual ~OpInfo_TensorProperties(); - - OpInfo_TensorProperties(const OpInfo_TensorProperties& from); - - inline OpInfo_TensorProperties& operator=(const OpInfo_TensorProperties& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - OpInfo_TensorProperties(OpInfo_TensorProperties&& from) noexcept - : OpInfo_TensorProperties() { - *this = ::std::move(from); - } - - inline OpInfo_TensorProperties& operator=(OpInfo_TensorProperties&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const OpInfo_TensorProperties& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const OpInfo_TensorProperties* internal_default_instance() { - return reinterpret_cast( - &_OpInfo_TensorProperties_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void UnsafeArenaSwap(OpInfo_TensorProperties* other); - void Swap(OpInfo_TensorProperties* other); - friend void swap(OpInfo_TensorProperties& a, OpInfo_TensorProperties& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline OpInfo_TensorProperties* New() const final { - return CreateMaybeMessage(NULL); - } - - OpInfo_TensorProperties* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const OpInfo_TensorProperties& from); - void MergeFrom(const OpInfo_TensorProperties& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OpInfo_TensorProperties* other); - protected: - explicit OpInfo_TensorProperties(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .tensorflow.TensorShapeProto shape = 2; - bool has_shape() const; - void clear_shape(); - static const int kShapeFieldNumber = 2; - private: - const ::tensorflow::TensorShapeProto& _internal_shape() const; - public: - const ::tensorflow::TensorShapeProto& shape() const; - ::tensorflow::TensorShapeProto* release_shape(); - ::tensorflow::TensorShapeProto* mutable_shape(); - void set_allocated_shape(::tensorflow::TensorShapeProto* shape); - void unsafe_arena_set_allocated_shape( - ::tensorflow::TensorShapeProto* shape); - ::tensorflow::TensorShapeProto* unsafe_arena_release_shape(); - - // .tensorflow.TensorProto value = 3; - bool has_value() const; - void clear_value(); - static const int kValueFieldNumber = 3; - private: - const ::tensorflow::TensorProto& _internal_value() const; - public: - const ::tensorflow::TensorProto& value() const; - ::tensorflow::TensorProto* release_value(); - ::tensorflow::TensorProto* mutable_value(); - void set_allocated_value(::tensorflow::TensorProto* value); - void unsafe_arena_set_allocated_value( - ::tensorflow::TensorProto* value); - ::tensorflow::TensorProto* unsafe_arena_release_value(); - - // .tensorflow.DataType dtype = 1; - void clear_dtype(); - static const int kDtypeFieldNumber = 1; - ::tensorflow::DataType dtype() const; - void set_dtype(::tensorflow::DataType value); - - // @@protoc_insertion_point(class_scope:tensorflow.OpInfo.TensorProperties) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::tensorflow::TensorShapeProto* shape_; - ::tensorflow::TensorProto* value_; - int dtype_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fgrappler_2fcosts_2fop_5fperformance_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class OpInfo : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.OpInfo) */ { - public: - OpInfo(); - virtual ~OpInfo(); - - OpInfo(const OpInfo& from); - - inline OpInfo& operator=(const OpInfo& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - OpInfo(OpInfo&& from) noexcept - : OpInfo() { - *this = ::std::move(from); - } - - inline OpInfo& operator=(OpInfo&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const OpInfo& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const OpInfo* internal_default_instance() { - return reinterpret_cast( - &_OpInfo_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void UnsafeArenaSwap(OpInfo* other); - void Swap(OpInfo* other); - friend void swap(OpInfo& a, OpInfo& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline OpInfo* New() const final { - return CreateMaybeMessage(NULL); - } - - OpInfo* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const OpInfo& from); - void MergeFrom(const OpInfo& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OpInfo* other); - protected: - explicit OpInfo(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef OpInfo_TensorProperties TensorProperties; - - // accessors ------------------------------------------------------- - - // map attr = 2; - int attr_size() const; - void clear_attr(); - static const int kAttrFieldNumber = 2; - const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& - attr() const; - ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* - mutable_attr(); - - // repeated .tensorflow.OpInfo.TensorProperties inputs = 3; - int inputs_size() const; - void clear_inputs(); - static const int kInputsFieldNumber = 3; - ::tensorflow::OpInfo_TensorProperties* mutable_inputs(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::OpInfo_TensorProperties >* - mutable_inputs(); - const ::tensorflow::OpInfo_TensorProperties& inputs(int index) const; - ::tensorflow::OpInfo_TensorProperties* add_inputs(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpInfo_TensorProperties >& - inputs() const; - - // repeated .tensorflow.OpInfo.TensorProperties outputs = 5; - int outputs_size() const; - void clear_outputs(); - static const int kOutputsFieldNumber = 5; - ::tensorflow::OpInfo_TensorProperties* mutable_outputs(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::OpInfo_TensorProperties >* - mutable_outputs(); - const ::tensorflow::OpInfo_TensorProperties& outputs(int index) const; - ::tensorflow::OpInfo_TensorProperties* add_outputs(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpInfo_TensorProperties >& - outputs() const; - - // string op = 1; - void clear_op(); - static const int kOpFieldNumber = 1; - const ::std::string& op() const; - void set_op(const ::std::string& value); - #if LANG_CXX11 - void set_op(::std::string&& value); - #endif - void set_op(const char* value); - void set_op(const char* value, size_t size); - ::std::string* mutable_op(); - ::std::string* release_op(); - void set_allocated_op(::std::string* op); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_op(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_op( - ::std::string* op); - - // .tensorflow.DeviceProperties device = 4; - bool has_device() const; - void clear_device(); - static const int kDeviceFieldNumber = 4; - private: - const ::tensorflow::DeviceProperties& _internal_device() const; - public: - const ::tensorflow::DeviceProperties& device() const; - ::tensorflow::DeviceProperties* release_device(); - ::tensorflow::DeviceProperties* mutable_device(); - void set_allocated_device(::tensorflow::DeviceProperties* device); - void unsafe_arena_set_allocated_device( - ::tensorflow::DeviceProperties* device); - ::tensorflow::DeviceProperties* unsafe_arena_release_device(); - - // .tensorflow.SessionInfo session_info = 6; - bool has_session_info() const; - void clear_session_info(); - static const int kSessionInfoFieldNumber = 6; - private: - const ::tensorflow::SessionInfo& _internal_session_info() const; - public: - const ::tensorflow::SessionInfo& session_info() const; - ::tensorflow::SessionInfo* release_session_info(); - ::tensorflow::SessionInfo* mutable_session_info(); - void set_allocated_session_info(::tensorflow::SessionInfo* session_info); - void unsafe_arena_set_allocated_session_info( - ::tensorflow::SessionInfo* session_info); - ::tensorflow::SessionInfo* unsafe_arena_release_session_info(); - - // @@protoc_insertion_point(class_scope:tensorflow.OpInfo) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::MapField< - OpInfo_AttrEntry_DoNotUse, - ::std::string, ::tensorflow::AttrValue, - ::google::protobuf::internal::WireFormatLite::TYPE_STRING, - ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, - 0 > attr_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::OpInfo_TensorProperties > inputs_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::OpInfo_TensorProperties > outputs_; - ::google::protobuf::internal::ArenaStringPtr op_; - ::tensorflow::DeviceProperties* device_; - ::tensorflow::SessionInfo* session_info_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fgrappler_2fcosts_2fop_5fperformance_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class NormalDistribution : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.NormalDistribution) */ { - public: - NormalDistribution(); - virtual ~NormalDistribution(); - - NormalDistribution(const NormalDistribution& from); - - inline NormalDistribution& operator=(const NormalDistribution& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NormalDistribution(NormalDistribution&& from) noexcept - : NormalDistribution() { - *this = ::std::move(from); - } - - inline NormalDistribution& operator=(NormalDistribution&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const NormalDistribution& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NormalDistribution* internal_default_instance() { - return reinterpret_cast( - &_NormalDistribution_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void UnsafeArenaSwap(NormalDistribution* other); - void Swap(NormalDistribution* other); - friend void swap(NormalDistribution& a, NormalDistribution& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NormalDistribution* New() const final { - return CreateMaybeMessage(NULL); - } - - NormalDistribution* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const NormalDistribution& from); - void MergeFrom(const NormalDistribution& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(NormalDistribution* other); - protected: - explicit NormalDistribution(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // double mu = 1; - void clear_mu(); - static const int kMuFieldNumber = 1; - double mu() const; - void set_mu(double value); - - // double sigma = 2; - void clear_sigma(); - static const int kSigmaFieldNumber = 2; - double sigma() const; - void set_sigma(double value); - - // @@protoc_insertion_point(class_scope:tensorflow.NormalDistribution) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - double mu_; - double sigma_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fgrappler_2fcosts_2fop_5fperformance_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class LogNormalDistribution : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.LogNormalDistribution) */ { - public: - LogNormalDistribution(); - virtual ~LogNormalDistribution(); - - LogNormalDistribution(const LogNormalDistribution& from); - - inline LogNormalDistribution& operator=(const LogNormalDistribution& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - LogNormalDistribution(LogNormalDistribution&& from) noexcept - : LogNormalDistribution() { - *this = ::std::move(from); - } - - inline LogNormalDistribution& operator=(LogNormalDistribution&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const LogNormalDistribution& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const LogNormalDistribution* internal_default_instance() { - return reinterpret_cast( - &_LogNormalDistribution_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void UnsafeArenaSwap(LogNormalDistribution* other); - void Swap(LogNormalDistribution* other); - friend void swap(LogNormalDistribution& a, LogNormalDistribution& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline LogNormalDistribution* New() const final { - return CreateMaybeMessage(NULL); - } - - LogNormalDistribution* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const LogNormalDistribution& from); - void MergeFrom(const LogNormalDistribution& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(LogNormalDistribution* other); - protected: - explicit LogNormalDistribution(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // double mu = 1; - void clear_mu(); - static const int kMuFieldNumber = 1; - double mu() const; - void set_mu(double value); - - // double sigma = 2; - void clear_sigma(); - static const int kSigmaFieldNumber = 2; - double sigma() const; - void set_sigma(double value); - - // @@protoc_insertion_point(class_scope:tensorflow.LogNormalDistribution) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - double mu_; - double sigma_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fgrappler_2fcosts_2fop_5fperformance_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class OpPerformance_OpMemory : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.OpPerformance.OpMemory) */ { - public: - OpPerformance_OpMemory(); - virtual ~OpPerformance_OpMemory(); - - OpPerformance_OpMemory(const OpPerformance_OpMemory& from); - - inline OpPerformance_OpMemory& operator=(const OpPerformance_OpMemory& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - OpPerformance_OpMemory(OpPerformance_OpMemory&& from) noexcept - : OpPerformance_OpMemory() { - *this = ::std::move(from); - } - - inline OpPerformance_OpMemory& operator=(OpPerformance_OpMemory&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const OpPerformance_OpMemory& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const OpPerformance_OpMemory* internal_default_instance() { - return reinterpret_cast( - &_OpPerformance_OpMemory_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void UnsafeArenaSwap(OpPerformance_OpMemory* other); - void Swap(OpPerformance_OpMemory* other); - friend void swap(OpPerformance_OpMemory& a, OpPerformance_OpMemory& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline OpPerformance_OpMemory* New() const final { - return CreateMaybeMessage(NULL); - } - - OpPerformance_OpMemory* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const OpPerformance_OpMemory& from); - void MergeFrom(const OpPerformance_OpMemory& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OpPerformance_OpMemory* other); - protected: - explicit OpPerformance_OpMemory(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int64 output_memory = 1; - int output_memory_size() const; - void clear_output_memory(); - static const int kOutputMemoryFieldNumber = 1; - ::google::protobuf::int64 output_memory(int index) const; - void set_output_memory(int index, ::google::protobuf::int64 value); - void add_output_memory(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - output_memory() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_output_memory(); - - // int64 temp_memory = 2; - void clear_temp_memory(); - static const int kTempMemoryFieldNumber = 2; - ::google::protobuf::int64 temp_memory() const; - void set_temp_memory(::google::protobuf::int64 value); - - // int64 device_temp_memory = 3 [deprecated = true]; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_device_temp_memory(); - GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kDeviceTempMemoryFieldNumber = 3; - GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int64 device_temp_memory() const; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_device_temp_memory(::google::protobuf::int64 value); - - // int64 persistent_memory = 4; - void clear_persistent_memory(); - static const int kPersistentMemoryFieldNumber = 4; - ::google::protobuf::int64 persistent_memory() const; - void set_persistent_memory(::google::protobuf::int64 value); - - // int64 device_persistent_memory = 5 [deprecated = true]; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_device_persistent_memory(); - GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kDevicePersistentMemoryFieldNumber = 5; - GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int64 device_persistent_memory() const; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_device_persistent_memory(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:tensorflow.OpPerformance.OpMemory) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > output_memory_; - mutable int _output_memory_cached_byte_size_; - ::google::protobuf::int64 temp_memory_; - ::google::protobuf::int64 device_temp_memory_; - ::google::protobuf::int64 persistent_memory_; - ::google::protobuf::int64 device_persistent_memory_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fgrappler_2fcosts_2fop_5fperformance_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class OpPerformance : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.OpPerformance) */ { - public: - OpPerformance(); - virtual ~OpPerformance(); - - OpPerformance(const OpPerformance& from); - - inline OpPerformance& operator=(const OpPerformance& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - OpPerformance(OpPerformance&& from) noexcept - : OpPerformance() { - *this = ::std::move(from); - } - - inline OpPerformance& operator=(OpPerformance&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const OpPerformance& default_instance(); - - enum ExecutionTimeCase { - kExecutionTimeNormal = 10, - kExecutionTimeLogNormal = 11, - EXECUTION_TIME_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const OpPerformance* internal_default_instance() { - return reinterpret_cast( - &_OpPerformance_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void UnsafeArenaSwap(OpPerformance* other); - void Swap(OpPerformance* other); - friend void swap(OpPerformance& a, OpPerformance& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline OpPerformance* New() const final { - return CreateMaybeMessage(NULL); - } - - OpPerformance* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const OpPerformance& from); - void MergeFrom(const OpPerformance& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OpPerformance* other); - protected: - explicit OpPerformance(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef OpPerformance_OpMemory OpMemory; - - // accessors ------------------------------------------------------- - - // string node = 5; - void clear_node(); - static const int kNodeFieldNumber = 5; - const ::std::string& node() const; - void set_node(const ::std::string& value); - #if LANG_CXX11 - void set_node(::std::string&& value); - #endif - void set_node(const char* value); - void set_node(const char* value, size_t size); - ::std::string* mutable_node(); - ::std::string* release_node(); - void set_allocated_node(::std::string* node); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - ::std::string* unsafe_arena_release_node(); - PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" - " string fields are deprecated and will be removed in a" - " future release.") - void unsafe_arena_set_allocated_node( - ::std::string* node); - - // .tensorflow.OpInfo op = 1; - bool has_op() const; - void clear_op(); - static const int kOpFieldNumber = 1; - private: - const ::tensorflow::OpInfo& _internal_op() const; - public: - const ::tensorflow::OpInfo& op() const; - ::tensorflow::OpInfo* release_op(); - ::tensorflow::OpInfo* mutable_op(); - void set_allocated_op(::tensorflow::OpInfo* op); - void unsafe_arena_set_allocated_op( - ::tensorflow::OpInfo* op); - ::tensorflow::OpInfo* unsafe_arena_release_op(); - - // .tensorflow.OpPerformance.OpMemory op_memory = 9; - bool has_op_memory() const; - void clear_op_memory(); - static const int kOpMemoryFieldNumber = 9; - private: - const ::tensorflow::OpPerformance_OpMemory& _internal_op_memory() const; - public: - const ::tensorflow::OpPerformance_OpMemory& op_memory() const; - ::tensorflow::OpPerformance_OpMemory* release_op_memory(); - ::tensorflow::OpPerformance_OpMemory* mutable_op_memory(); - void set_allocated_op_memory(::tensorflow::OpPerformance_OpMemory* op_memory); - void unsafe_arena_set_allocated_op_memory( - ::tensorflow::OpPerformance_OpMemory* op_memory); - ::tensorflow::OpPerformance_OpMemory* unsafe_arena_release_op_memory(); - - // .tensorflow.SessionInfo session_info = 12 [deprecated = true]; - GOOGLE_PROTOBUF_DEPRECATED_ATTR bool has_session_info() const; - GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_session_info(); - GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kSessionInfoFieldNumber = 12; - private: - const ::tensorflow::SessionInfo& _internal_session_info() const; - public: - GOOGLE_PROTOBUF_DEPRECATED_ATTR const ::tensorflow::SessionInfo& session_info() const; - GOOGLE_PROTOBUF_DEPRECATED_ATTR ::tensorflow::SessionInfo* release_session_info(); - GOOGLE_PROTOBUF_DEPRECATED_ATTR ::tensorflow::SessionInfo* mutable_session_info(); - GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_allocated_session_info(::tensorflow::SessionInfo* session_info); - GOOGLE_PROTOBUF_DEPRECATED_ATTR void unsafe_arena_set_allocated_session_info( - ::tensorflow::SessionInfo* session_info); - GOOGLE_PROTOBUF_DEPRECATED_ATTR ::tensorflow::SessionInfo* unsafe_arena_release_session_info(); - - // int64 temporary_memory_size = 2; - void clear_temporary_memory_size(); - static const int kTemporaryMemorySizeFieldNumber = 2; - ::google::protobuf::int64 temporary_memory_size() const; - void set_temporary_memory_size(::google::protobuf::int64 value); - - // int64 compute_cost = 3; - void clear_compute_cost(); - static const int kComputeCostFieldNumber = 3; - ::google::protobuf::int64 compute_cost() const; - void set_compute_cost(::google::protobuf::int64 value); - - // double compute_efficiency = 4; - void clear_compute_efficiency(); - static const int kComputeEfficiencyFieldNumber = 4; - double compute_efficiency() const; - void set_compute_efficiency(double value); - - // int64 compute_time = 6; - void clear_compute_time(); - static const int kComputeTimeFieldNumber = 6; - ::google::protobuf::int64 compute_time() const; - void set_compute_time(::google::protobuf::int64 value); - - // int64 memory_time = 7; - void clear_memory_time(); - static const int kMemoryTimeFieldNumber = 7; - ::google::protobuf::int64 memory_time() const; - void set_memory_time(::google::protobuf::int64 value); - - // double memory_efficiency = 8; - void clear_memory_efficiency(); - static const int kMemoryEfficiencyFieldNumber = 8; - double memory_efficiency() const; - void set_memory_efficiency(double value); - - // .tensorflow.NormalDistribution execution_time_normal = 10; - bool has_execution_time_normal() const; - void clear_execution_time_normal(); - static const int kExecutionTimeNormalFieldNumber = 10; - private: - const ::tensorflow::NormalDistribution& _internal_execution_time_normal() const; - public: - const ::tensorflow::NormalDistribution& execution_time_normal() const; - ::tensorflow::NormalDistribution* release_execution_time_normal(); - ::tensorflow::NormalDistribution* mutable_execution_time_normal(); - void set_allocated_execution_time_normal(::tensorflow::NormalDistribution* execution_time_normal); - void unsafe_arena_set_allocated_execution_time_normal( - ::tensorflow::NormalDistribution* execution_time_normal); - ::tensorflow::NormalDistribution* unsafe_arena_release_execution_time_normal(); - - // .tensorflow.LogNormalDistribution execution_time_log_normal = 11; - bool has_execution_time_log_normal() const; - void clear_execution_time_log_normal(); - static const int kExecutionTimeLogNormalFieldNumber = 11; - private: - const ::tensorflow::LogNormalDistribution& _internal_execution_time_log_normal() const; - public: - const ::tensorflow::LogNormalDistribution& execution_time_log_normal() const; - ::tensorflow::LogNormalDistribution* release_execution_time_log_normal(); - ::tensorflow::LogNormalDistribution* mutable_execution_time_log_normal(); - void set_allocated_execution_time_log_normal(::tensorflow::LogNormalDistribution* execution_time_log_normal); - void unsafe_arena_set_allocated_execution_time_log_normal( - ::tensorflow::LogNormalDistribution* execution_time_log_normal); - ::tensorflow::LogNormalDistribution* unsafe_arena_release_execution_time_log_normal(); - - void clear_execution_time(); - ExecutionTimeCase execution_time_case() const; - // @@protoc_insertion_point(class_scope:tensorflow.OpPerformance) - private: - void set_has_execution_time_normal(); - void set_has_execution_time_log_normal(); - - inline bool has_execution_time() const; - inline void clear_has_execution_time(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::internal::ArenaStringPtr node_; - ::tensorflow::OpInfo* op_; - ::tensorflow::OpPerformance_OpMemory* op_memory_; - ::tensorflow::SessionInfo* session_info_; - ::google::protobuf::int64 temporary_memory_size_; - ::google::protobuf::int64 compute_cost_; - double compute_efficiency_; - ::google::protobuf::int64 compute_time_; - ::google::protobuf::int64 memory_time_; - double memory_efficiency_; - union ExecutionTimeUnion { - ExecutionTimeUnion() {} - ::tensorflow::NormalDistribution* execution_time_normal_; - ::tensorflow::LogNormalDistribution* execution_time_log_normal_; - } execution_time_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::protobuf_tensorflow_2fcore_2fgrappler_2fcosts_2fop_5fperformance_5fdata_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class OpPerformanceList : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.OpPerformanceList) */ { - public: - OpPerformanceList(); - virtual ~OpPerformanceList(); - - OpPerformanceList(const OpPerformanceList& from); - - inline OpPerformanceList& operator=(const OpPerformanceList& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - OpPerformanceList(OpPerformanceList&& from) noexcept - : OpPerformanceList() { - *this = ::std::move(from); - } - - inline OpPerformanceList& operator=(OpPerformanceList&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const OpPerformanceList& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const OpPerformanceList* internal_default_instance() { - return reinterpret_cast( - &_OpPerformanceList_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void UnsafeArenaSwap(OpPerformanceList* other); - void Swap(OpPerformanceList* other); - friend void swap(OpPerformanceList& a, OpPerformanceList& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline OpPerformanceList* New() const final { - return CreateMaybeMessage(NULL); - } - - OpPerformanceList* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const OpPerformanceList& from); - void MergeFrom(const OpPerformanceList& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(OpPerformanceList* other); - protected: - explicit OpPerformanceList(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.OpPerformance op_performance = 1; - int op_performance_size() const; - void clear_op_performance(); - static const int kOpPerformanceFieldNumber = 1; - ::tensorflow::OpPerformance* mutable_op_performance(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::OpPerformance >* - mutable_op_performance(); - const ::tensorflow::OpPerformance& op_performance(int index) const; - ::tensorflow::OpPerformance* add_op_performance(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpPerformance >& - op_performance() const; - - // @@protoc_insertion_point(class_scope:tensorflow.OpPerformanceList) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::OpPerformance > op_performance_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fgrappler_2fcosts_2fop_5fperformance_5fdata_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// SessionInfo - -// int64 intra_op_parallelism = 1; -inline void SessionInfo::clear_intra_op_parallelism() { - intra_op_parallelism_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 SessionInfo::intra_op_parallelism() const { - // @@protoc_insertion_point(field_get:tensorflow.SessionInfo.intra_op_parallelism) - return intra_op_parallelism_; -} -inline void SessionInfo::set_intra_op_parallelism(::google::protobuf::int64 value) { - - intra_op_parallelism_ = value; - // @@protoc_insertion_point(field_set:tensorflow.SessionInfo.intra_op_parallelism) -} - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// OpInfo_TensorProperties - -// .tensorflow.DataType dtype = 1; -inline void OpInfo_TensorProperties::clear_dtype() { - dtype_ = 0; -} -inline ::tensorflow::DataType OpInfo_TensorProperties::dtype() const { - // @@protoc_insertion_point(field_get:tensorflow.OpInfo.TensorProperties.dtype) - return static_cast< ::tensorflow::DataType >(dtype_); -} -inline void OpInfo_TensorProperties::set_dtype(::tensorflow::DataType value) { - - dtype_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpInfo.TensorProperties.dtype) -} - -// .tensorflow.TensorShapeProto shape = 2; -inline bool OpInfo_TensorProperties::has_shape() const { - return this != internal_default_instance() && shape_ != NULL; -} -inline const ::tensorflow::TensorShapeProto& OpInfo_TensorProperties::_internal_shape() const { - return *shape_; -} -inline const ::tensorflow::TensorShapeProto& OpInfo_TensorProperties::shape() const { - const ::tensorflow::TensorShapeProto* p = shape_; - // @@protoc_insertion_point(field_get:tensorflow.OpInfo.TensorProperties.shape) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_TensorShapeProto_default_instance_); -} -inline ::tensorflow::TensorShapeProto* OpInfo_TensorProperties::release_shape() { - // @@protoc_insertion_point(field_release:tensorflow.OpInfo.TensorProperties.shape) - - ::tensorflow::TensorShapeProto* temp = shape_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - shape_ = NULL; - return temp; -} -inline ::tensorflow::TensorShapeProto* OpInfo_TensorProperties::unsafe_arena_release_shape() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpInfo.TensorProperties.shape) - - ::tensorflow::TensorShapeProto* temp = shape_; - shape_ = NULL; - return temp; -} -inline ::tensorflow::TensorShapeProto* OpInfo_TensorProperties::mutable_shape() { - - if (shape_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::TensorShapeProto>(GetArenaNoVirtual()); - shape_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.OpInfo.TensorProperties.shape) - return shape_; -} -inline void OpInfo_TensorProperties::set_allocated_shape(::tensorflow::TensorShapeProto* shape) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(shape_); - } - if (shape) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(shape)->GetArena(); - if (message_arena != submessage_arena) { - shape = ::google::protobuf::internal::GetOwnedMessage( - message_arena, shape, submessage_arena); - } - - } else { - - } - shape_ = shape; - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpInfo.TensorProperties.shape) -} - -// .tensorflow.TensorProto value = 3; -inline bool OpInfo_TensorProperties::has_value() const { - return this != internal_default_instance() && value_ != NULL; -} -inline const ::tensorflow::TensorProto& OpInfo_TensorProperties::_internal_value() const { - return *value_; -} -inline const ::tensorflow::TensorProto& OpInfo_TensorProperties::value() const { - const ::tensorflow::TensorProto* p = value_; - // @@protoc_insertion_point(field_get:tensorflow.OpInfo.TensorProperties.value) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_TensorProto_default_instance_); -} -inline ::tensorflow::TensorProto* OpInfo_TensorProperties::release_value() { - // @@protoc_insertion_point(field_release:tensorflow.OpInfo.TensorProperties.value) - - ::tensorflow::TensorProto* temp = value_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - value_ = NULL; - return temp; -} -inline ::tensorflow::TensorProto* OpInfo_TensorProperties::unsafe_arena_release_value() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpInfo.TensorProperties.value) - - ::tensorflow::TensorProto* temp = value_; - value_ = NULL; - return temp; -} -inline ::tensorflow::TensorProto* OpInfo_TensorProperties::mutable_value() { - - if (value_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::TensorProto>(GetArenaNoVirtual()); - value_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.OpInfo.TensorProperties.value) - return value_; -} -inline void OpInfo_TensorProperties::set_allocated_value(::tensorflow::TensorProto* value) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(value_); - } - if (value) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(value)->GetArena(); - if (message_arena != submessage_arena) { - value = ::google::protobuf::internal::GetOwnedMessage( - message_arena, value, submessage_arena); - } - - } else { - - } - value_ = value; - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpInfo.TensorProperties.value) -} - -// ------------------------------------------------------------------- - -// OpInfo - -// string op = 1; -inline void OpInfo::clear_op() { - op_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& OpInfo::op() const { - // @@protoc_insertion_point(field_get:tensorflow.OpInfo.op) - return op_.Get(); -} -inline void OpInfo::set_op(const ::std::string& value) { - - op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpInfo.op) -} -#if LANG_CXX11 -inline void OpInfo::set_op(::std::string&& value) { - - op_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpInfo.op) -} -#endif -inline void OpInfo::set_op(const char* value) { - GOOGLE_DCHECK(value != NULL); - - op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpInfo.op) -} -inline void OpInfo::set_op(const char* value, - size_t size) { - - op_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpInfo.op) -} -inline ::std::string* OpInfo::mutable_op() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpInfo.op) - return op_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* OpInfo::release_op() { - // @@protoc_insertion_point(field_release:tensorflow.OpInfo.op) - - return op_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void OpInfo::set_allocated_op(::std::string* op) { - if (op != NULL) { - - } else { - - } - op_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), op, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpInfo.op) -} -inline ::std::string* OpInfo::unsafe_arena_release_op() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpInfo.op) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return op_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void OpInfo::unsafe_arena_set_allocated_op( - ::std::string* op) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (op != NULL) { - - } else { - - } - op_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - op, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpInfo.op) -} - -// map attr = 2; -inline int OpInfo::attr_size() const { - return attr_.size(); -} -inline const ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >& -OpInfo::attr() const { - // @@protoc_insertion_point(field_map:tensorflow.OpInfo.attr) - return attr_.GetMap(); -} -inline ::google::protobuf::Map< ::std::string, ::tensorflow::AttrValue >* -OpInfo::mutable_attr() { - // @@protoc_insertion_point(field_mutable_map:tensorflow.OpInfo.attr) - return attr_.MutableMap(); -} - -// repeated .tensorflow.OpInfo.TensorProperties inputs = 3; -inline int OpInfo::inputs_size() const { - return inputs_.size(); -} -inline void OpInfo::clear_inputs() { - inputs_.Clear(); -} -inline ::tensorflow::OpInfo_TensorProperties* OpInfo::mutable_inputs(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.OpInfo.inputs) - return inputs_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::OpInfo_TensorProperties >* -OpInfo::mutable_inputs() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.OpInfo.inputs) - return &inputs_; -} -inline const ::tensorflow::OpInfo_TensorProperties& OpInfo::inputs(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.OpInfo.inputs) - return inputs_.Get(index); -} -inline ::tensorflow::OpInfo_TensorProperties* OpInfo::add_inputs() { - // @@protoc_insertion_point(field_add:tensorflow.OpInfo.inputs) - return inputs_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpInfo_TensorProperties >& -OpInfo::inputs() const { - // @@protoc_insertion_point(field_list:tensorflow.OpInfo.inputs) - return inputs_; -} - -// repeated .tensorflow.OpInfo.TensorProperties outputs = 5; -inline int OpInfo::outputs_size() const { - return outputs_.size(); -} -inline void OpInfo::clear_outputs() { - outputs_.Clear(); -} -inline ::tensorflow::OpInfo_TensorProperties* OpInfo::mutable_outputs(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.OpInfo.outputs) - return outputs_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::OpInfo_TensorProperties >* -OpInfo::mutable_outputs() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.OpInfo.outputs) - return &outputs_; -} -inline const ::tensorflow::OpInfo_TensorProperties& OpInfo::outputs(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.OpInfo.outputs) - return outputs_.Get(index); -} -inline ::tensorflow::OpInfo_TensorProperties* OpInfo::add_outputs() { - // @@protoc_insertion_point(field_add:tensorflow.OpInfo.outputs) - return outputs_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpInfo_TensorProperties >& -OpInfo::outputs() const { - // @@protoc_insertion_point(field_list:tensorflow.OpInfo.outputs) - return outputs_; -} - -// .tensorflow.DeviceProperties device = 4; -inline bool OpInfo::has_device() const { - return this != internal_default_instance() && device_ != NULL; -} -inline const ::tensorflow::DeviceProperties& OpInfo::_internal_device() const { - return *device_; -} -inline const ::tensorflow::DeviceProperties& OpInfo::device() const { - const ::tensorflow::DeviceProperties* p = device_; - // @@protoc_insertion_point(field_get:tensorflow.OpInfo.device) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_DeviceProperties_default_instance_); -} -inline ::tensorflow::DeviceProperties* OpInfo::release_device() { - // @@protoc_insertion_point(field_release:tensorflow.OpInfo.device) - - ::tensorflow::DeviceProperties* temp = device_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - device_ = NULL; - return temp; -} -inline ::tensorflow::DeviceProperties* OpInfo::unsafe_arena_release_device() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpInfo.device) - - ::tensorflow::DeviceProperties* temp = device_; - device_ = NULL; - return temp; -} -inline ::tensorflow::DeviceProperties* OpInfo::mutable_device() { - - if (device_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::DeviceProperties>(GetArenaNoVirtual()); - device_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.OpInfo.device) - return device_; -} -inline void OpInfo::set_allocated_device(::tensorflow::DeviceProperties* device) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete reinterpret_cast< ::google::protobuf::MessageLite*>(device_); - } - if (device) { - ::google::protobuf::Arena* submessage_arena = - reinterpret_cast<::google::protobuf::MessageLite*>(device)->GetArena(); - if (message_arena != submessage_arena) { - device = ::google::protobuf::internal::GetOwnedMessage( - message_arena, device, submessage_arena); - } - - } else { - - } - device_ = device; - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpInfo.device) -} - -// .tensorflow.SessionInfo session_info = 6; -inline bool OpInfo::has_session_info() const { - return this != internal_default_instance() && session_info_ != NULL; -} -inline void OpInfo::clear_session_info() { - if (GetArenaNoVirtual() == NULL && session_info_ != NULL) { - delete session_info_; - } - session_info_ = NULL; -} -inline const ::tensorflow::SessionInfo& OpInfo::_internal_session_info() const { - return *session_info_; -} -inline const ::tensorflow::SessionInfo& OpInfo::session_info() const { - const ::tensorflow::SessionInfo* p = session_info_; - // @@protoc_insertion_point(field_get:tensorflow.OpInfo.session_info) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_SessionInfo_default_instance_); -} -inline ::tensorflow::SessionInfo* OpInfo::release_session_info() { - // @@protoc_insertion_point(field_release:tensorflow.OpInfo.session_info) - - ::tensorflow::SessionInfo* temp = session_info_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - session_info_ = NULL; - return temp; -} -inline ::tensorflow::SessionInfo* OpInfo::unsafe_arena_release_session_info() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpInfo.session_info) - - ::tensorflow::SessionInfo* temp = session_info_; - session_info_ = NULL; - return temp; -} -inline ::tensorflow::SessionInfo* OpInfo::mutable_session_info() { - - if (session_info_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::SessionInfo>(GetArenaNoVirtual()); - session_info_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.OpInfo.session_info) - return session_info_; -} -inline void OpInfo::set_allocated_session_info(::tensorflow::SessionInfo* session_info) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete session_info_; - } - if (session_info) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(session_info); - if (message_arena != submessage_arena) { - session_info = ::google::protobuf::internal::GetOwnedMessage( - message_arena, session_info, submessage_arena); - } - - } else { - - } - session_info_ = session_info; - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpInfo.session_info) -} - -// ------------------------------------------------------------------- - -// NormalDistribution - -// double mu = 1; -inline void NormalDistribution::clear_mu() { - mu_ = 0; -} -inline double NormalDistribution::mu() const { - // @@protoc_insertion_point(field_get:tensorflow.NormalDistribution.mu) - return mu_; -} -inline void NormalDistribution::set_mu(double value) { - - mu_ = value; - // @@protoc_insertion_point(field_set:tensorflow.NormalDistribution.mu) -} - -// double sigma = 2; -inline void NormalDistribution::clear_sigma() { - sigma_ = 0; -} -inline double NormalDistribution::sigma() const { - // @@protoc_insertion_point(field_get:tensorflow.NormalDistribution.sigma) - return sigma_; -} -inline void NormalDistribution::set_sigma(double value) { - - sigma_ = value; - // @@protoc_insertion_point(field_set:tensorflow.NormalDistribution.sigma) -} - -// ------------------------------------------------------------------- - -// LogNormalDistribution - -// double mu = 1; -inline void LogNormalDistribution::clear_mu() { - mu_ = 0; -} -inline double LogNormalDistribution::mu() const { - // @@protoc_insertion_point(field_get:tensorflow.LogNormalDistribution.mu) - return mu_; -} -inline void LogNormalDistribution::set_mu(double value) { - - mu_ = value; - // @@protoc_insertion_point(field_set:tensorflow.LogNormalDistribution.mu) -} - -// double sigma = 2; -inline void LogNormalDistribution::clear_sigma() { - sigma_ = 0; -} -inline double LogNormalDistribution::sigma() const { - // @@protoc_insertion_point(field_get:tensorflow.LogNormalDistribution.sigma) - return sigma_; -} -inline void LogNormalDistribution::set_sigma(double value) { - - sigma_ = value; - // @@protoc_insertion_point(field_set:tensorflow.LogNormalDistribution.sigma) -} - -// ------------------------------------------------------------------- - -// OpPerformance_OpMemory - -// repeated int64 output_memory = 1; -inline int OpPerformance_OpMemory::output_memory_size() const { - return output_memory_.size(); -} -inline void OpPerformance_OpMemory::clear_output_memory() { - output_memory_.Clear(); -} -inline ::google::protobuf::int64 OpPerformance_OpMemory::output_memory(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.OpPerformance.OpMemory.output_memory) - return output_memory_.Get(index); -} -inline void OpPerformance_OpMemory::set_output_memory(int index, ::google::protobuf::int64 value) { - output_memory_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.OpPerformance.OpMemory.output_memory) -} -inline void OpPerformance_OpMemory::add_output_memory(::google::protobuf::int64 value) { - output_memory_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.OpPerformance.OpMemory.output_memory) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& -OpPerformance_OpMemory::output_memory() const { - // @@protoc_insertion_point(field_list:tensorflow.OpPerformance.OpMemory.output_memory) - return output_memory_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* -OpPerformance_OpMemory::mutable_output_memory() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.OpPerformance.OpMemory.output_memory) - return &output_memory_; -} - -// int64 temp_memory = 2; -inline void OpPerformance_OpMemory::clear_temp_memory() { - temp_memory_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 OpPerformance_OpMemory::temp_memory() const { - // @@protoc_insertion_point(field_get:tensorflow.OpPerformance.OpMemory.temp_memory) - return temp_memory_; -} -inline void OpPerformance_OpMemory::set_temp_memory(::google::protobuf::int64 value) { - - temp_memory_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpPerformance.OpMemory.temp_memory) -} - -// int64 persistent_memory = 4; -inline void OpPerformance_OpMemory::clear_persistent_memory() { - persistent_memory_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 OpPerformance_OpMemory::persistent_memory() const { - // @@protoc_insertion_point(field_get:tensorflow.OpPerformance.OpMemory.persistent_memory) - return persistent_memory_; -} -inline void OpPerformance_OpMemory::set_persistent_memory(::google::protobuf::int64 value) { - - persistent_memory_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpPerformance.OpMemory.persistent_memory) -} - -// int64 device_temp_memory = 3 [deprecated = true]; -inline void OpPerformance_OpMemory::clear_device_temp_memory() { - device_temp_memory_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 OpPerformance_OpMemory::device_temp_memory() const { - // @@protoc_insertion_point(field_get:tensorflow.OpPerformance.OpMemory.device_temp_memory) - return device_temp_memory_; -} -inline void OpPerformance_OpMemory::set_device_temp_memory(::google::protobuf::int64 value) { - - device_temp_memory_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpPerformance.OpMemory.device_temp_memory) -} - -// int64 device_persistent_memory = 5 [deprecated = true]; -inline void OpPerformance_OpMemory::clear_device_persistent_memory() { - device_persistent_memory_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 OpPerformance_OpMemory::device_persistent_memory() const { - // @@protoc_insertion_point(field_get:tensorflow.OpPerformance.OpMemory.device_persistent_memory) - return device_persistent_memory_; -} -inline void OpPerformance_OpMemory::set_device_persistent_memory(::google::protobuf::int64 value) { - - device_persistent_memory_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpPerformance.OpMemory.device_persistent_memory) -} - -// ------------------------------------------------------------------- - -// OpPerformance - -// .tensorflow.OpInfo op = 1; -inline bool OpPerformance::has_op() const { - return this != internal_default_instance() && op_ != NULL; -} -inline void OpPerformance::clear_op() { - if (GetArenaNoVirtual() == NULL && op_ != NULL) { - delete op_; - } - op_ = NULL; -} -inline const ::tensorflow::OpInfo& OpPerformance::_internal_op() const { - return *op_; -} -inline const ::tensorflow::OpInfo& OpPerformance::op() const { - const ::tensorflow::OpInfo* p = op_; - // @@protoc_insertion_point(field_get:tensorflow.OpPerformance.op) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_OpInfo_default_instance_); -} -inline ::tensorflow::OpInfo* OpPerformance::release_op() { - // @@protoc_insertion_point(field_release:tensorflow.OpPerformance.op) - - ::tensorflow::OpInfo* temp = op_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - op_ = NULL; - return temp; -} -inline ::tensorflow::OpInfo* OpPerformance::unsafe_arena_release_op() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpPerformance.op) - - ::tensorflow::OpInfo* temp = op_; - op_ = NULL; - return temp; -} -inline ::tensorflow::OpInfo* OpPerformance::mutable_op() { - - if (op_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::OpInfo>(GetArenaNoVirtual()); - op_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.OpPerformance.op) - return op_; -} -inline void OpPerformance::set_allocated_op(::tensorflow::OpInfo* op) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete op_; - } - if (op) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(op); - if (message_arena != submessage_arena) { - op = ::google::protobuf::internal::GetOwnedMessage( - message_arena, op, submessage_arena); - } - - } else { - - } - op_ = op; - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpPerformance.op) -} - -// .tensorflow.SessionInfo session_info = 12 [deprecated = true]; -inline bool OpPerformance::has_session_info() const { - return this != internal_default_instance() && session_info_ != NULL; -} -inline void OpPerformance::clear_session_info() { - if (GetArenaNoVirtual() == NULL && session_info_ != NULL) { - delete session_info_; - } - session_info_ = NULL; -} -inline const ::tensorflow::SessionInfo& OpPerformance::_internal_session_info() const { - return *session_info_; -} -inline const ::tensorflow::SessionInfo& OpPerformance::session_info() const { - const ::tensorflow::SessionInfo* p = session_info_; - // @@protoc_insertion_point(field_get:tensorflow.OpPerformance.session_info) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_SessionInfo_default_instance_); -} -inline ::tensorflow::SessionInfo* OpPerformance::release_session_info() { - // @@protoc_insertion_point(field_release:tensorflow.OpPerformance.session_info) - - ::tensorflow::SessionInfo* temp = session_info_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - session_info_ = NULL; - return temp; -} -inline ::tensorflow::SessionInfo* OpPerformance::unsafe_arena_release_session_info() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpPerformance.session_info) - - ::tensorflow::SessionInfo* temp = session_info_; - session_info_ = NULL; - return temp; -} -inline ::tensorflow::SessionInfo* OpPerformance::mutable_session_info() { - - if (session_info_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::SessionInfo>(GetArenaNoVirtual()); - session_info_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.OpPerformance.session_info) - return session_info_; -} -inline void OpPerformance::set_allocated_session_info(::tensorflow::SessionInfo* session_info) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete session_info_; - } - if (session_info) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(session_info); - if (message_arena != submessage_arena) { - session_info = ::google::protobuf::internal::GetOwnedMessage( - message_arena, session_info, submessage_arena); - } - - } else { - - } - session_info_ = session_info; - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpPerformance.session_info) -} - -// string node = 5; -inline void OpPerformance::clear_node() { - node_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline const ::std::string& OpPerformance::node() const { - // @@protoc_insertion_point(field_get:tensorflow.OpPerformance.node) - return node_.Get(); -} -inline void OpPerformance::set_node(const ::std::string& value) { - - node_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set:tensorflow.OpPerformance.node) -} -#if LANG_CXX11 -inline void OpPerformance::set_node(::std::string&& value) { - - node_.Set( - &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_rvalue:tensorflow.OpPerformance.node) -} -#endif -inline void OpPerformance::set_node(const char* value) { - GOOGLE_DCHECK(value != NULL); - - node_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value), - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_char:tensorflow.OpPerformance.node) -} -inline void OpPerformance::set_node(const char* value, - size_t size) { - - node_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( - reinterpret_cast(value), size), GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_pointer:tensorflow.OpPerformance.node) -} -inline ::std::string* OpPerformance::mutable_node() { - - // @@protoc_insertion_point(field_mutable:tensorflow.OpPerformance.node) - return node_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline ::std::string* OpPerformance::release_node() { - // @@protoc_insertion_point(field_release:tensorflow.OpPerformance.node) - - return node_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); -} -inline void OpPerformance::set_allocated_node(::std::string* node) { - if (node != NULL) { - - } else { - - } - node_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), node, - GetArenaNoVirtual()); - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpPerformance.node) -} -inline ::std::string* OpPerformance::unsafe_arena_release_node() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpPerformance.node) - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - - return node_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - GetArenaNoVirtual()); -} -inline void OpPerformance::unsafe_arena_set_allocated_node( - ::std::string* node) { - GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); - if (node != NULL) { - - } else { - - } - node_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), - node, GetArenaNoVirtual()); - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpPerformance.node) -} - -// int64 temporary_memory_size = 2; -inline void OpPerformance::clear_temporary_memory_size() { - temporary_memory_size_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 OpPerformance::temporary_memory_size() const { - // @@protoc_insertion_point(field_get:tensorflow.OpPerformance.temporary_memory_size) - return temporary_memory_size_; -} -inline void OpPerformance::set_temporary_memory_size(::google::protobuf::int64 value) { - - temporary_memory_size_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpPerformance.temporary_memory_size) -} - -// int64 compute_cost = 3; -inline void OpPerformance::clear_compute_cost() { - compute_cost_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 OpPerformance::compute_cost() const { - // @@protoc_insertion_point(field_get:tensorflow.OpPerformance.compute_cost) - return compute_cost_; -} -inline void OpPerformance::set_compute_cost(::google::protobuf::int64 value) { - - compute_cost_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpPerformance.compute_cost) -} - -// int64 compute_time = 6; -inline void OpPerformance::clear_compute_time() { - compute_time_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 OpPerformance::compute_time() const { - // @@protoc_insertion_point(field_get:tensorflow.OpPerformance.compute_time) - return compute_time_; -} -inline void OpPerformance::set_compute_time(::google::protobuf::int64 value) { - - compute_time_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpPerformance.compute_time) -} - -// int64 memory_time = 7; -inline void OpPerformance::clear_memory_time() { - memory_time_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 OpPerformance::memory_time() const { - // @@protoc_insertion_point(field_get:tensorflow.OpPerformance.memory_time) - return memory_time_; -} -inline void OpPerformance::set_memory_time(::google::protobuf::int64 value) { - - memory_time_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpPerformance.memory_time) -} - -// double compute_efficiency = 4; -inline void OpPerformance::clear_compute_efficiency() { - compute_efficiency_ = 0; -} -inline double OpPerformance::compute_efficiency() const { - // @@protoc_insertion_point(field_get:tensorflow.OpPerformance.compute_efficiency) - return compute_efficiency_; -} -inline void OpPerformance::set_compute_efficiency(double value) { - - compute_efficiency_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpPerformance.compute_efficiency) -} - -// double memory_efficiency = 8; -inline void OpPerformance::clear_memory_efficiency() { - memory_efficiency_ = 0; -} -inline double OpPerformance::memory_efficiency() const { - // @@protoc_insertion_point(field_get:tensorflow.OpPerformance.memory_efficiency) - return memory_efficiency_; -} -inline void OpPerformance::set_memory_efficiency(double value) { - - memory_efficiency_ = value; - // @@protoc_insertion_point(field_set:tensorflow.OpPerformance.memory_efficiency) -} - -// .tensorflow.NormalDistribution execution_time_normal = 10; -inline bool OpPerformance::has_execution_time_normal() const { - return execution_time_case() == kExecutionTimeNormal; -} -inline void OpPerformance::set_has_execution_time_normal() { - _oneof_case_[0] = kExecutionTimeNormal; -} -inline void OpPerformance::clear_execution_time_normal() { - if (has_execution_time_normal()) { - if (GetArenaNoVirtual() == NULL) { - delete execution_time_.execution_time_normal_; - } - clear_has_execution_time(); - } -} -inline const ::tensorflow::NormalDistribution& OpPerformance::_internal_execution_time_normal() const { - return *execution_time_.execution_time_normal_; -} -inline ::tensorflow::NormalDistribution* OpPerformance::release_execution_time_normal() { - // @@protoc_insertion_point(field_release:tensorflow.OpPerformance.execution_time_normal) - if (has_execution_time_normal()) { - clear_has_execution_time(); - ::tensorflow::NormalDistribution* temp = execution_time_.execution_time_normal_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - execution_time_.execution_time_normal_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::NormalDistribution& OpPerformance::execution_time_normal() const { - // @@protoc_insertion_point(field_get:tensorflow.OpPerformance.execution_time_normal) - return has_execution_time_normal() - ? *execution_time_.execution_time_normal_ - : *reinterpret_cast< ::tensorflow::NormalDistribution*>(&::tensorflow::_NormalDistribution_default_instance_); -} -inline ::tensorflow::NormalDistribution* OpPerformance::unsafe_arena_release_execution_time_normal() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpPerformance.execution_time_normal) - if (has_execution_time_normal()) { - clear_has_execution_time(); - ::tensorflow::NormalDistribution* temp = execution_time_.execution_time_normal_; - execution_time_.execution_time_normal_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void OpPerformance::unsafe_arena_set_allocated_execution_time_normal(::tensorflow::NormalDistribution* execution_time_normal) { - clear_execution_time(); - if (execution_time_normal) { - set_has_execution_time_normal(); - execution_time_.execution_time_normal_ = execution_time_normal; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpPerformance.execution_time_normal) -} -inline ::tensorflow::NormalDistribution* OpPerformance::mutable_execution_time_normal() { - if (!has_execution_time_normal()) { - clear_execution_time(); - set_has_execution_time_normal(); - execution_time_.execution_time_normal_ = CreateMaybeMessage< ::tensorflow::NormalDistribution >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.OpPerformance.execution_time_normal) - return execution_time_.execution_time_normal_; -} - -// .tensorflow.LogNormalDistribution execution_time_log_normal = 11; -inline bool OpPerformance::has_execution_time_log_normal() const { - return execution_time_case() == kExecutionTimeLogNormal; -} -inline void OpPerformance::set_has_execution_time_log_normal() { - _oneof_case_[0] = kExecutionTimeLogNormal; -} -inline void OpPerformance::clear_execution_time_log_normal() { - if (has_execution_time_log_normal()) { - if (GetArenaNoVirtual() == NULL) { - delete execution_time_.execution_time_log_normal_; - } - clear_has_execution_time(); - } -} -inline const ::tensorflow::LogNormalDistribution& OpPerformance::_internal_execution_time_log_normal() const { - return *execution_time_.execution_time_log_normal_; -} -inline ::tensorflow::LogNormalDistribution* OpPerformance::release_execution_time_log_normal() { - // @@protoc_insertion_point(field_release:tensorflow.OpPerformance.execution_time_log_normal) - if (has_execution_time_log_normal()) { - clear_has_execution_time(); - ::tensorflow::LogNormalDistribution* temp = execution_time_.execution_time_log_normal_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - execution_time_.execution_time_log_normal_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::LogNormalDistribution& OpPerformance::execution_time_log_normal() const { - // @@protoc_insertion_point(field_get:tensorflow.OpPerformance.execution_time_log_normal) - return has_execution_time_log_normal() - ? *execution_time_.execution_time_log_normal_ - : *reinterpret_cast< ::tensorflow::LogNormalDistribution*>(&::tensorflow::_LogNormalDistribution_default_instance_); -} -inline ::tensorflow::LogNormalDistribution* OpPerformance::unsafe_arena_release_execution_time_log_normal() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpPerformance.execution_time_log_normal) - if (has_execution_time_log_normal()) { - clear_has_execution_time(); - ::tensorflow::LogNormalDistribution* temp = execution_time_.execution_time_log_normal_; - execution_time_.execution_time_log_normal_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void OpPerformance::unsafe_arena_set_allocated_execution_time_log_normal(::tensorflow::LogNormalDistribution* execution_time_log_normal) { - clear_execution_time(); - if (execution_time_log_normal) { - set_has_execution_time_log_normal(); - execution_time_.execution_time_log_normal_ = execution_time_log_normal; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.OpPerformance.execution_time_log_normal) -} -inline ::tensorflow::LogNormalDistribution* OpPerformance::mutable_execution_time_log_normal() { - if (!has_execution_time_log_normal()) { - clear_execution_time(); - set_has_execution_time_log_normal(); - execution_time_.execution_time_log_normal_ = CreateMaybeMessage< ::tensorflow::LogNormalDistribution >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.OpPerformance.execution_time_log_normal) - return execution_time_.execution_time_log_normal_; -} - -// .tensorflow.OpPerformance.OpMemory op_memory = 9; -inline bool OpPerformance::has_op_memory() const { - return this != internal_default_instance() && op_memory_ != NULL; -} -inline void OpPerformance::clear_op_memory() { - if (GetArenaNoVirtual() == NULL && op_memory_ != NULL) { - delete op_memory_; - } - op_memory_ = NULL; -} -inline const ::tensorflow::OpPerformance_OpMemory& OpPerformance::_internal_op_memory() const { - return *op_memory_; -} -inline const ::tensorflow::OpPerformance_OpMemory& OpPerformance::op_memory() const { - const ::tensorflow::OpPerformance_OpMemory* p = op_memory_; - // @@protoc_insertion_point(field_get:tensorflow.OpPerformance.op_memory) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::_OpPerformance_OpMemory_default_instance_); -} -inline ::tensorflow::OpPerformance_OpMemory* OpPerformance::release_op_memory() { - // @@protoc_insertion_point(field_release:tensorflow.OpPerformance.op_memory) - - ::tensorflow::OpPerformance_OpMemory* temp = op_memory_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - op_memory_ = NULL; - return temp; -} -inline ::tensorflow::OpPerformance_OpMemory* OpPerformance::unsafe_arena_release_op_memory() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.OpPerformance.op_memory) - - ::tensorflow::OpPerformance_OpMemory* temp = op_memory_; - op_memory_ = NULL; - return temp; -} -inline ::tensorflow::OpPerformance_OpMemory* OpPerformance::mutable_op_memory() { - - if (op_memory_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::OpPerformance_OpMemory>(GetArenaNoVirtual()); - op_memory_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.OpPerformance.op_memory) - return op_memory_; -} -inline void OpPerformance::set_allocated_op_memory(::tensorflow::OpPerformance_OpMemory* op_memory) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete op_memory_; - } - if (op_memory) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(op_memory); - if (message_arena != submessage_arena) { - op_memory = ::google::protobuf::internal::GetOwnedMessage( - message_arena, op_memory, submessage_arena); - } - - } else { - - } - op_memory_ = op_memory; - // @@protoc_insertion_point(field_set_allocated:tensorflow.OpPerformance.op_memory) -} - -inline bool OpPerformance::has_execution_time() const { - return execution_time_case() != EXECUTION_TIME_NOT_SET; -} -inline void OpPerformance::clear_has_execution_time() { - _oneof_case_[0] = EXECUTION_TIME_NOT_SET; -} -inline OpPerformance::ExecutionTimeCase OpPerformance::execution_time_case() const { - return OpPerformance::ExecutionTimeCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// OpPerformanceList - -// repeated .tensorflow.OpPerformance op_performance = 1; -inline int OpPerformanceList::op_performance_size() const { - return op_performance_.size(); -} -inline void OpPerformanceList::clear_op_performance() { - op_performance_.Clear(); -} -inline ::tensorflow::OpPerformance* OpPerformanceList::mutable_op_performance(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.OpPerformanceList.op_performance) - return op_performance_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::OpPerformance >* -OpPerformanceList::mutable_op_performance() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.OpPerformanceList.op_performance) - return &op_performance_; -} -inline const ::tensorflow::OpPerformance& OpPerformanceList::op_performance(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.OpPerformanceList.op_performance) - return op_performance_.Get(index); -} -inline ::tensorflow::OpPerformance* OpPerformanceList::add_op_performance() { - // @@protoc_insertion_point(field_add:tensorflow.OpPerformanceList.op_performance) - return op_performance_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::OpPerformance >& -OpPerformanceList::op_performance() const { - // @@protoc_insertion_point(field_list:tensorflow.OpPerformanceList.op_performance) - return op_performance_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fgrappler_2fcosts_2fop_5fperformance_5fdata_2eproto diff --git a/linux/include/tensorflow/core/kernels/boosted_trees/boosted_trees.pb.h b/linux/include/tensorflow/core/kernels/boosted_trees/boosted_trees.pb.h deleted file mode 100755 index 39f446c3b..000000000 --- a/linux/include/tensorflow/core/kernels/boosted_trees/boosted_trees.pb.h +++ /dev/null @@ -1,3183 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/kernels/boosted_trees/boosted_trees.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto - -namespace protobuf_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[13]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto -namespace tensorflow { -namespace boosted_trees { -class BucketizedSplit; -class BucketizedSplitDefaultTypeInternal; -extern BucketizedSplitDefaultTypeInternal _BucketizedSplit_default_instance_; -class CategoricalSplit; -class CategoricalSplitDefaultTypeInternal; -extern CategoricalSplitDefaultTypeInternal _CategoricalSplit_default_instance_; -class DebugOutput; -class DebugOutputDefaultTypeInternal; -extern DebugOutputDefaultTypeInternal _DebugOutput_default_instance_; -class GrowingMetadata; -class GrowingMetadataDefaultTypeInternal; -extern GrowingMetadataDefaultTypeInternal _GrowingMetadata_default_instance_; -class Leaf; -class LeafDefaultTypeInternal; -extern LeafDefaultTypeInternal _Leaf_default_instance_; -class Node; -class NodeDefaultTypeInternal; -extern NodeDefaultTypeInternal _Node_default_instance_; -class NodeMetadata; -class NodeMetadataDefaultTypeInternal; -extern NodeMetadataDefaultTypeInternal _NodeMetadata_default_instance_; -class SparseVector; -class SparseVectorDefaultTypeInternal; -extern SparseVectorDefaultTypeInternal _SparseVector_default_instance_; -class Tree; -class TreeDefaultTypeInternal; -extern TreeDefaultTypeInternal _Tree_default_instance_; -class TreeEnsemble; -class TreeEnsembleDefaultTypeInternal; -extern TreeEnsembleDefaultTypeInternal _TreeEnsemble_default_instance_; -class TreeMetadata; -class TreeMetadataDefaultTypeInternal; -extern TreeMetadataDefaultTypeInternal _TreeMetadata_default_instance_; -class TreeMetadata_PostPruneNodeUpdate; -class TreeMetadata_PostPruneNodeUpdateDefaultTypeInternal; -extern TreeMetadata_PostPruneNodeUpdateDefaultTypeInternal _TreeMetadata_PostPruneNodeUpdate_default_instance_; -class Vector; -class VectorDefaultTypeInternal; -extern VectorDefaultTypeInternal _Vector_default_instance_; -} // namespace boosted_trees -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::boosted_trees::BucketizedSplit* Arena::CreateMaybeMessage<::tensorflow::boosted_trees::BucketizedSplit>(Arena*); -template<> ::tensorflow::boosted_trees::CategoricalSplit* Arena::CreateMaybeMessage<::tensorflow::boosted_trees::CategoricalSplit>(Arena*); -template<> ::tensorflow::boosted_trees::DebugOutput* Arena::CreateMaybeMessage<::tensorflow::boosted_trees::DebugOutput>(Arena*); -template<> ::tensorflow::boosted_trees::GrowingMetadata* Arena::CreateMaybeMessage<::tensorflow::boosted_trees::GrowingMetadata>(Arena*); -template<> ::tensorflow::boosted_trees::Leaf* Arena::CreateMaybeMessage<::tensorflow::boosted_trees::Leaf>(Arena*); -template<> ::tensorflow::boosted_trees::Node* Arena::CreateMaybeMessage<::tensorflow::boosted_trees::Node>(Arena*); -template<> ::tensorflow::boosted_trees::NodeMetadata* Arena::CreateMaybeMessage<::tensorflow::boosted_trees::NodeMetadata>(Arena*); -template<> ::tensorflow::boosted_trees::SparseVector* Arena::CreateMaybeMessage<::tensorflow::boosted_trees::SparseVector>(Arena*); -template<> ::tensorflow::boosted_trees::Tree* Arena::CreateMaybeMessage<::tensorflow::boosted_trees::Tree>(Arena*); -template<> ::tensorflow::boosted_trees::TreeEnsemble* Arena::CreateMaybeMessage<::tensorflow::boosted_trees::TreeEnsemble>(Arena*); -template<> ::tensorflow::boosted_trees::TreeMetadata* Arena::CreateMaybeMessage<::tensorflow::boosted_trees::TreeMetadata>(Arena*); -template<> ::tensorflow::boosted_trees::TreeMetadata_PostPruneNodeUpdate* Arena::CreateMaybeMessage<::tensorflow::boosted_trees::TreeMetadata_PostPruneNodeUpdate>(Arena*); -template<> ::tensorflow::boosted_trees::Vector* Arena::CreateMaybeMessage<::tensorflow::boosted_trees::Vector>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { -namespace boosted_trees { - -// =================================================================== - -class Node : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.boosted_trees.Node) */ { - public: - Node(); - virtual ~Node(); - - Node(const Node& from); - - inline Node& operator=(const Node& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Node(Node&& from) noexcept - : Node() { - *this = ::std::move(from); - } - - inline Node& operator=(Node&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const Node& default_instance(); - - enum NodeCase { - kLeaf = 1, - kBucketizedSplit = 2, - kCategoricalSplit = 3, - NODE_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Node* internal_default_instance() { - return reinterpret_cast( - &_Node_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void UnsafeArenaSwap(Node* other); - void Swap(Node* other); - friend void swap(Node& a, Node& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Node* New() const final { - return CreateMaybeMessage(NULL); - } - - Node* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Node& from); - void MergeFrom(const Node& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Node* other); - protected: - explicit Node(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .tensorflow.boosted_trees.NodeMetadata metadata = 777; - bool has_metadata() const; - void clear_metadata(); - static const int kMetadataFieldNumber = 777; - private: - const ::tensorflow::boosted_trees::NodeMetadata& _internal_metadata() const; - public: - const ::tensorflow::boosted_trees::NodeMetadata& metadata() const; - ::tensorflow::boosted_trees::NodeMetadata* release_metadata(); - ::tensorflow::boosted_trees::NodeMetadata* mutable_metadata(); - void set_allocated_metadata(::tensorflow::boosted_trees::NodeMetadata* metadata); - void unsafe_arena_set_allocated_metadata( - ::tensorflow::boosted_trees::NodeMetadata* metadata); - ::tensorflow::boosted_trees::NodeMetadata* unsafe_arena_release_metadata(); - - // .tensorflow.boosted_trees.Leaf leaf = 1; - bool has_leaf() const; - void clear_leaf(); - static const int kLeafFieldNumber = 1; - private: - const ::tensorflow::boosted_trees::Leaf& _internal_leaf() const; - public: - const ::tensorflow::boosted_trees::Leaf& leaf() const; - ::tensorflow::boosted_trees::Leaf* release_leaf(); - ::tensorflow::boosted_trees::Leaf* mutable_leaf(); - void set_allocated_leaf(::tensorflow::boosted_trees::Leaf* leaf); - void unsafe_arena_set_allocated_leaf( - ::tensorflow::boosted_trees::Leaf* leaf); - ::tensorflow::boosted_trees::Leaf* unsafe_arena_release_leaf(); - - // .tensorflow.boosted_trees.BucketizedSplit bucketized_split = 2; - bool has_bucketized_split() const; - void clear_bucketized_split(); - static const int kBucketizedSplitFieldNumber = 2; - private: - const ::tensorflow::boosted_trees::BucketizedSplit& _internal_bucketized_split() const; - public: - const ::tensorflow::boosted_trees::BucketizedSplit& bucketized_split() const; - ::tensorflow::boosted_trees::BucketizedSplit* release_bucketized_split(); - ::tensorflow::boosted_trees::BucketizedSplit* mutable_bucketized_split(); - void set_allocated_bucketized_split(::tensorflow::boosted_trees::BucketizedSplit* bucketized_split); - void unsafe_arena_set_allocated_bucketized_split( - ::tensorflow::boosted_trees::BucketizedSplit* bucketized_split); - ::tensorflow::boosted_trees::BucketizedSplit* unsafe_arena_release_bucketized_split(); - - // .tensorflow.boosted_trees.CategoricalSplit categorical_split = 3; - bool has_categorical_split() const; - void clear_categorical_split(); - static const int kCategoricalSplitFieldNumber = 3; - private: - const ::tensorflow::boosted_trees::CategoricalSplit& _internal_categorical_split() const; - public: - const ::tensorflow::boosted_trees::CategoricalSplit& categorical_split() const; - ::tensorflow::boosted_trees::CategoricalSplit* release_categorical_split(); - ::tensorflow::boosted_trees::CategoricalSplit* mutable_categorical_split(); - void set_allocated_categorical_split(::tensorflow::boosted_trees::CategoricalSplit* categorical_split); - void unsafe_arena_set_allocated_categorical_split( - ::tensorflow::boosted_trees::CategoricalSplit* categorical_split); - ::tensorflow::boosted_trees::CategoricalSplit* unsafe_arena_release_categorical_split(); - - void clear_node(); - NodeCase node_case() const; - // @@protoc_insertion_point(class_scope:tensorflow.boosted_trees.Node) - private: - void set_has_leaf(); - void set_has_bucketized_split(); - void set_has_categorical_split(); - - inline bool has_node() const; - inline void clear_has_node(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::tensorflow::boosted_trees::NodeMetadata* metadata_; - union NodeUnion { - NodeUnion() {} - ::tensorflow::boosted_trees::Leaf* leaf_; - ::tensorflow::boosted_trees::BucketizedSplit* bucketized_split_; - ::tensorflow::boosted_trees::CategoricalSplit* categorical_split_; - } node_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::protobuf_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class NodeMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.boosted_trees.NodeMetadata) */ { - public: - NodeMetadata(); - virtual ~NodeMetadata(); - - NodeMetadata(const NodeMetadata& from); - - inline NodeMetadata& operator=(const NodeMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - NodeMetadata(NodeMetadata&& from) noexcept - : NodeMetadata() { - *this = ::std::move(from); - } - - inline NodeMetadata& operator=(NodeMetadata&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const NodeMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const NodeMetadata* internal_default_instance() { - return reinterpret_cast( - &_NodeMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void UnsafeArenaSwap(NodeMetadata* other); - void Swap(NodeMetadata* other); - friend void swap(NodeMetadata& a, NodeMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline NodeMetadata* New() const final { - return CreateMaybeMessage(NULL); - } - - NodeMetadata* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const NodeMetadata& from); - void MergeFrom(const NodeMetadata& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(NodeMetadata* other); - protected: - explicit NodeMetadata(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // .tensorflow.boosted_trees.Leaf original_leaf = 2; - bool has_original_leaf() const; - void clear_original_leaf(); - static const int kOriginalLeafFieldNumber = 2; - private: - const ::tensorflow::boosted_trees::Leaf& _internal_original_leaf() const; - public: - const ::tensorflow::boosted_trees::Leaf& original_leaf() const; - ::tensorflow::boosted_trees::Leaf* release_original_leaf(); - ::tensorflow::boosted_trees::Leaf* mutable_original_leaf(); - void set_allocated_original_leaf(::tensorflow::boosted_trees::Leaf* original_leaf); - void unsafe_arena_set_allocated_original_leaf( - ::tensorflow::boosted_trees::Leaf* original_leaf); - ::tensorflow::boosted_trees::Leaf* unsafe_arena_release_original_leaf(); - - // float gain = 1; - void clear_gain(); - static const int kGainFieldNumber = 1; - float gain() const; - void set_gain(float value); - - // @@protoc_insertion_point(class_scope:tensorflow.boosted_trees.NodeMetadata) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::tensorflow::boosted_trees::Leaf* original_leaf_; - float gain_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Leaf : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.boosted_trees.Leaf) */ { - public: - Leaf(); - virtual ~Leaf(); - - Leaf(const Leaf& from); - - inline Leaf& operator=(const Leaf& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Leaf(Leaf&& from) noexcept - : Leaf() { - *this = ::std::move(from); - } - - inline Leaf& operator=(Leaf&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const Leaf& default_instance(); - - enum LeafCase { - kVector = 1, - kSparseVector = 2, - LEAF_NOT_SET = 0, - }; - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Leaf* internal_default_instance() { - return reinterpret_cast( - &_Leaf_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void UnsafeArenaSwap(Leaf* other); - void Swap(Leaf* other); - friend void swap(Leaf& a, Leaf& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Leaf* New() const final { - return CreateMaybeMessage(NULL); - } - - Leaf* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Leaf& from); - void MergeFrom(const Leaf& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Leaf* other); - protected: - explicit Leaf(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // float scalar = 3; - void clear_scalar(); - static const int kScalarFieldNumber = 3; - float scalar() const; - void set_scalar(float value); - - // .tensorflow.boosted_trees.Vector vector = 1; - bool has_vector() const; - void clear_vector(); - static const int kVectorFieldNumber = 1; - private: - const ::tensorflow::boosted_trees::Vector& _internal_vector() const; - public: - const ::tensorflow::boosted_trees::Vector& vector() const; - ::tensorflow::boosted_trees::Vector* release_vector(); - ::tensorflow::boosted_trees::Vector* mutable_vector(); - void set_allocated_vector(::tensorflow::boosted_trees::Vector* vector); - void unsafe_arena_set_allocated_vector( - ::tensorflow::boosted_trees::Vector* vector); - ::tensorflow::boosted_trees::Vector* unsafe_arena_release_vector(); - - // .tensorflow.boosted_trees.SparseVector sparse_vector = 2; - bool has_sparse_vector() const; - void clear_sparse_vector(); - static const int kSparseVectorFieldNumber = 2; - private: - const ::tensorflow::boosted_trees::SparseVector& _internal_sparse_vector() const; - public: - const ::tensorflow::boosted_trees::SparseVector& sparse_vector() const; - ::tensorflow::boosted_trees::SparseVector* release_sparse_vector(); - ::tensorflow::boosted_trees::SparseVector* mutable_sparse_vector(); - void set_allocated_sparse_vector(::tensorflow::boosted_trees::SparseVector* sparse_vector); - void unsafe_arena_set_allocated_sparse_vector( - ::tensorflow::boosted_trees::SparseVector* sparse_vector); - ::tensorflow::boosted_trees::SparseVector* unsafe_arena_release_sparse_vector(); - - void clear_leaf(); - LeafCase leaf_case() const; - // @@protoc_insertion_point(class_scope:tensorflow.boosted_trees.Leaf) - private: - void set_has_vector(); - void set_has_sparse_vector(); - - inline bool has_leaf() const; - inline void clear_has_leaf(); - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - float scalar_; - union LeafUnion { - LeafUnion() {} - ::tensorflow::boosted_trees::Vector* vector_; - ::tensorflow::boosted_trees::SparseVector* sparse_vector_; - } leaf_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - ::google::protobuf::uint32 _oneof_case_[1]; - - friend struct ::protobuf_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Vector : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.boosted_trees.Vector) */ { - public: - Vector(); - virtual ~Vector(); - - Vector(const Vector& from); - - inline Vector& operator=(const Vector& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Vector(Vector&& from) noexcept - : Vector() { - *this = ::std::move(from); - } - - inline Vector& operator=(Vector&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const Vector& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Vector* internal_default_instance() { - return reinterpret_cast( - &_Vector_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void UnsafeArenaSwap(Vector* other); - void Swap(Vector* other); - friend void swap(Vector& a, Vector& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Vector* New() const final { - return CreateMaybeMessage(NULL); - } - - Vector* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Vector& from); - void MergeFrom(const Vector& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Vector* other); - protected: - explicit Vector(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated float value = 1; - int value_size() const; - void clear_value(); - static const int kValueFieldNumber = 1; - float value(int index) const; - void set_value(int index, float value); - void add_value(float value); - const ::google::protobuf::RepeatedField< float >& - value() const; - ::google::protobuf::RepeatedField< float >* - mutable_value(); - - // @@protoc_insertion_point(class_scope:tensorflow.boosted_trees.Vector) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< float > value_; - mutable int _value_cached_byte_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class SparseVector : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.boosted_trees.SparseVector) */ { - public: - SparseVector(); - virtual ~SparseVector(); - - SparseVector(const SparseVector& from); - - inline SparseVector& operator=(const SparseVector& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - SparseVector(SparseVector&& from) noexcept - : SparseVector() { - *this = ::std::move(from); - } - - inline SparseVector& operator=(SparseVector&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const SparseVector& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const SparseVector* internal_default_instance() { - return reinterpret_cast( - &_SparseVector_default_instance_); - } - static constexpr int kIndexInFileMessages = - 4; - - void UnsafeArenaSwap(SparseVector* other); - void Swap(SparseVector* other); - friend void swap(SparseVector& a, SparseVector& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline SparseVector* New() const final { - return CreateMaybeMessage(NULL); - } - - SparseVector* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const SparseVector& from); - void MergeFrom(const SparseVector& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(SparseVector* other); - protected: - explicit SparseVector(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int32 index = 1; - int index_size() const; - void clear_index(); - static const int kIndexFieldNumber = 1; - ::google::protobuf::int32 index(int index) const; - void set_index(int index, ::google::protobuf::int32 value); - void add_index(::google::protobuf::int32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& - index() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* - mutable_index(); - - // repeated float value = 2; - int value_size() const; - void clear_value(); - static const int kValueFieldNumber = 2; - float value(int index) const; - void set_value(int index, float value); - void add_value(float value); - const ::google::protobuf::RepeatedField< float >& - value() const; - ::google::protobuf::RepeatedField< float >* - mutable_value(); - - // @@protoc_insertion_point(class_scope:tensorflow.boosted_trees.SparseVector) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 > index_; - mutable int _index_cached_byte_size_; - ::google::protobuf::RepeatedField< float > value_; - mutable int _value_cached_byte_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class BucketizedSplit : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.boosted_trees.BucketizedSplit) */ { - public: - BucketizedSplit(); - virtual ~BucketizedSplit(); - - BucketizedSplit(const BucketizedSplit& from); - - inline BucketizedSplit& operator=(const BucketizedSplit& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - BucketizedSplit(BucketizedSplit&& from) noexcept - : BucketizedSplit() { - *this = ::std::move(from); - } - - inline BucketizedSplit& operator=(BucketizedSplit&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const BucketizedSplit& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const BucketizedSplit* internal_default_instance() { - return reinterpret_cast( - &_BucketizedSplit_default_instance_); - } - static constexpr int kIndexInFileMessages = - 5; - - void UnsafeArenaSwap(BucketizedSplit* other); - void Swap(BucketizedSplit* other); - friend void swap(BucketizedSplit& a, BucketizedSplit& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline BucketizedSplit* New() const final { - return CreateMaybeMessage(NULL); - } - - BucketizedSplit* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const BucketizedSplit& from); - void MergeFrom(const BucketizedSplit& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(BucketizedSplit* other); - protected: - explicit BucketizedSplit(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int32 feature_id = 1; - void clear_feature_id(); - static const int kFeatureIdFieldNumber = 1; - ::google::protobuf::int32 feature_id() const; - void set_feature_id(::google::protobuf::int32 value); - - // int32 threshold = 2; - void clear_threshold(); - static const int kThresholdFieldNumber = 2; - ::google::protobuf::int32 threshold() const; - void set_threshold(::google::protobuf::int32 value); - - // int32 left_id = 3; - void clear_left_id(); - static const int kLeftIdFieldNumber = 3; - ::google::protobuf::int32 left_id() const; - void set_left_id(::google::protobuf::int32 value); - - // int32 right_id = 4; - void clear_right_id(); - static const int kRightIdFieldNumber = 4; - ::google::protobuf::int32 right_id() const; - void set_right_id(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:tensorflow.boosted_trees.BucketizedSplit) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int32 feature_id_; - ::google::protobuf::int32 threshold_; - ::google::protobuf::int32 left_id_; - ::google::protobuf::int32 right_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class CategoricalSplit : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.boosted_trees.CategoricalSplit) */ { - public: - CategoricalSplit(); - virtual ~CategoricalSplit(); - - CategoricalSplit(const CategoricalSplit& from); - - inline CategoricalSplit& operator=(const CategoricalSplit& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - CategoricalSplit(CategoricalSplit&& from) noexcept - : CategoricalSplit() { - *this = ::std::move(from); - } - - inline CategoricalSplit& operator=(CategoricalSplit&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const CategoricalSplit& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const CategoricalSplit* internal_default_instance() { - return reinterpret_cast( - &_CategoricalSplit_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - void UnsafeArenaSwap(CategoricalSplit* other); - void Swap(CategoricalSplit* other); - friend void swap(CategoricalSplit& a, CategoricalSplit& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline CategoricalSplit* New() const final { - return CreateMaybeMessage(NULL); - } - - CategoricalSplit* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const CategoricalSplit& from); - void MergeFrom(const CategoricalSplit& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(CategoricalSplit* other); - protected: - explicit CategoricalSplit(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int32 feature_id = 1; - void clear_feature_id(); - static const int kFeatureIdFieldNumber = 1; - ::google::protobuf::int32 feature_id() const; - void set_feature_id(::google::protobuf::int32 value); - - // int32 value = 2; - void clear_value(); - static const int kValueFieldNumber = 2; - ::google::protobuf::int32 value() const; - void set_value(::google::protobuf::int32 value); - - // int32 left_id = 3; - void clear_left_id(); - static const int kLeftIdFieldNumber = 3; - ::google::protobuf::int32 left_id() const; - void set_left_id(::google::protobuf::int32 value); - - // int32 right_id = 4; - void clear_right_id(); - static const int kRightIdFieldNumber = 4; - ::google::protobuf::int32 right_id() const; - void set_right_id(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:tensorflow.boosted_trees.CategoricalSplit) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int32 feature_id_; - ::google::protobuf::int32 value_; - ::google::protobuf::int32 left_id_; - ::google::protobuf::int32 right_id_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Tree : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.boosted_trees.Tree) */ { - public: - Tree(); - virtual ~Tree(); - - Tree(const Tree& from); - - inline Tree& operator=(const Tree& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Tree(Tree&& from) noexcept - : Tree() { - *this = ::std::move(from); - } - - inline Tree& operator=(Tree&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const Tree& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Tree* internal_default_instance() { - return reinterpret_cast( - &_Tree_default_instance_); - } - static constexpr int kIndexInFileMessages = - 7; - - void UnsafeArenaSwap(Tree* other); - void Swap(Tree* other); - friend void swap(Tree& a, Tree& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Tree* New() const final { - return CreateMaybeMessage(NULL); - } - - Tree* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Tree& from); - void MergeFrom(const Tree& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Tree* other); - protected: - explicit Tree(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.boosted_trees.Node nodes = 1; - int nodes_size() const; - void clear_nodes(); - static const int kNodesFieldNumber = 1; - ::tensorflow::boosted_trees::Node* mutable_nodes(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::Node >* - mutable_nodes(); - const ::tensorflow::boosted_trees::Node& nodes(int index) const; - ::tensorflow::boosted_trees::Node* add_nodes(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::Node >& - nodes() const; - - // @@protoc_insertion_point(class_scope:tensorflow.boosted_trees.Tree) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::Node > nodes_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class TreeMetadata_PostPruneNodeUpdate : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.boosted_trees.TreeMetadata.PostPruneNodeUpdate) */ { - public: - TreeMetadata_PostPruneNodeUpdate(); - virtual ~TreeMetadata_PostPruneNodeUpdate(); - - TreeMetadata_PostPruneNodeUpdate(const TreeMetadata_PostPruneNodeUpdate& from); - - inline TreeMetadata_PostPruneNodeUpdate& operator=(const TreeMetadata_PostPruneNodeUpdate& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TreeMetadata_PostPruneNodeUpdate(TreeMetadata_PostPruneNodeUpdate&& from) noexcept - : TreeMetadata_PostPruneNodeUpdate() { - *this = ::std::move(from); - } - - inline TreeMetadata_PostPruneNodeUpdate& operator=(TreeMetadata_PostPruneNodeUpdate&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const TreeMetadata_PostPruneNodeUpdate& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TreeMetadata_PostPruneNodeUpdate* internal_default_instance() { - return reinterpret_cast( - &_TreeMetadata_PostPruneNodeUpdate_default_instance_); - } - static constexpr int kIndexInFileMessages = - 8; - - void UnsafeArenaSwap(TreeMetadata_PostPruneNodeUpdate* other); - void Swap(TreeMetadata_PostPruneNodeUpdate* other); - friend void swap(TreeMetadata_PostPruneNodeUpdate& a, TreeMetadata_PostPruneNodeUpdate& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TreeMetadata_PostPruneNodeUpdate* New() const final { - return CreateMaybeMessage(NULL); - } - - TreeMetadata_PostPruneNodeUpdate* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TreeMetadata_PostPruneNodeUpdate& from); - void MergeFrom(const TreeMetadata_PostPruneNodeUpdate& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TreeMetadata_PostPruneNodeUpdate* other); - protected: - explicit TreeMetadata_PostPruneNodeUpdate(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int32 new_node_id = 1; - void clear_new_node_id(); - static const int kNewNodeIdFieldNumber = 1; - ::google::protobuf::int32 new_node_id() const; - void set_new_node_id(::google::protobuf::int32 value); - - // float logit_change = 2; - void clear_logit_change(); - static const int kLogitChangeFieldNumber = 2; - float logit_change() const; - void set_logit_change(float value); - - // @@protoc_insertion_point(class_scope:tensorflow.boosted_trees.TreeMetadata.PostPruneNodeUpdate) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int32 new_node_id_; - float logit_change_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class TreeMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.boosted_trees.TreeMetadata) */ { - public: - TreeMetadata(); - virtual ~TreeMetadata(); - - TreeMetadata(const TreeMetadata& from); - - inline TreeMetadata& operator=(const TreeMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TreeMetadata(TreeMetadata&& from) noexcept - : TreeMetadata() { - *this = ::std::move(from); - } - - inline TreeMetadata& operator=(TreeMetadata&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const TreeMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TreeMetadata* internal_default_instance() { - return reinterpret_cast( - &_TreeMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 9; - - void UnsafeArenaSwap(TreeMetadata* other); - void Swap(TreeMetadata* other); - friend void swap(TreeMetadata& a, TreeMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TreeMetadata* New() const final { - return CreateMaybeMessage(NULL); - } - - TreeMetadata* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TreeMetadata& from); - void MergeFrom(const TreeMetadata& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TreeMetadata* other); - protected: - explicit TreeMetadata(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - typedef TreeMetadata_PostPruneNodeUpdate PostPruneNodeUpdate; - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.boosted_trees.TreeMetadata.PostPruneNodeUpdate post_pruned_nodes_meta = 4; - int post_pruned_nodes_meta_size() const; - void clear_post_pruned_nodes_meta(); - static const int kPostPrunedNodesMetaFieldNumber = 4; - ::tensorflow::boosted_trees::TreeMetadata_PostPruneNodeUpdate* mutable_post_pruned_nodes_meta(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::TreeMetadata_PostPruneNodeUpdate >* - mutable_post_pruned_nodes_meta(); - const ::tensorflow::boosted_trees::TreeMetadata_PostPruneNodeUpdate& post_pruned_nodes_meta(int index) const; - ::tensorflow::boosted_trees::TreeMetadata_PostPruneNodeUpdate* add_post_pruned_nodes_meta(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::TreeMetadata_PostPruneNodeUpdate >& - post_pruned_nodes_meta() const; - - // int32 num_layers_grown = 2; - void clear_num_layers_grown(); - static const int kNumLayersGrownFieldNumber = 2; - ::google::protobuf::int32 num_layers_grown() const; - void set_num_layers_grown(::google::protobuf::int32 value); - - // bool is_finalized = 3; - void clear_is_finalized(); - static const int kIsFinalizedFieldNumber = 3; - bool is_finalized() const; - void set_is_finalized(bool value); - - // @@protoc_insertion_point(class_scope:tensorflow.boosted_trees.TreeMetadata) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::TreeMetadata_PostPruneNodeUpdate > post_pruned_nodes_meta_; - ::google::protobuf::int32 num_layers_grown_; - bool is_finalized_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class GrowingMetadata : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.boosted_trees.GrowingMetadata) */ { - public: - GrowingMetadata(); - virtual ~GrowingMetadata(); - - GrowingMetadata(const GrowingMetadata& from); - - inline GrowingMetadata& operator=(const GrowingMetadata& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - GrowingMetadata(GrowingMetadata&& from) noexcept - : GrowingMetadata() { - *this = ::std::move(from); - } - - inline GrowingMetadata& operator=(GrowingMetadata&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const GrowingMetadata& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const GrowingMetadata* internal_default_instance() { - return reinterpret_cast( - &_GrowingMetadata_default_instance_); - } - static constexpr int kIndexInFileMessages = - 10; - - void UnsafeArenaSwap(GrowingMetadata* other); - void Swap(GrowingMetadata* other); - friend void swap(GrowingMetadata& a, GrowingMetadata& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline GrowingMetadata* New() const final { - return CreateMaybeMessage(NULL); - } - - GrowingMetadata* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const GrowingMetadata& from); - void MergeFrom(const GrowingMetadata& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(GrowingMetadata* other); - protected: - explicit GrowingMetadata(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 num_trees_attempted = 1; - void clear_num_trees_attempted(); - static const int kNumTreesAttemptedFieldNumber = 1; - ::google::protobuf::int64 num_trees_attempted() const; - void set_num_trees_attempted(::google::protobuf::int64 value); - - // int64 num_layers_attempted = 2; - void clear_num_layers_attempted(); - static const int kNumLayersAttemptedFieldNumber = 2; - ::google::protobuf::int64 num_layers_attempted() const; - void set_num_layers_attempted(::google::protobuf::int64 value); - - // int32 last_layer_node_start = 3; - void clear_last_layer_node_start(); - static const int kLastLayerNodeStartFieldNumber = 3; - ::google::protobuf::int32 last_layer_node_start() const; - void set_last_layer_node_start(::google::protobuf::int32 value); - - // int32 last_layer_node_end = 4; - void clear_last_layer_node_end(); - static const int kLastLayerNodeEndFieldNumber = 4; - ::google::protobuf::int32 last_layer_node_end() const; - void set_last_layer_node_end(::google::protobuf::int32 value); - - // @@protoc_insertion_point(class_scope:tensorflow.boosted_trees.GrowingMetadata) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::int64 num_trees_attempted_; - ::google::protobuf::int64 num_layers_attempted_; - ::google::protobuf::int32 last_layer_node_start_; - ::google::protobuf::int32 last_layer_node_end_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class TreeEnsemble : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.boosted_trees.TreeEnsemble) */ { - public: - TreeEnsemble(); - virtual ~TreeEnsemble(); - - TreeEnsemble(const TreeEnsemble& from); - - inline TreeEnsemble& operator=(const TreeEnsemble& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - TreeEnsemble(TreeEnsemble&& from) noexcept - : TreeEnsemble() { - *this = ::std::move(from); - } - - inline TreeEnsemble& operator=(TreeEnsemble&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const TreeEnsemble& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const TreeEnsemble* internal_default_instance() { - return reinterpret_cast( - &_TreeEnsemble_default_instance_); - } - static constexpr int kIndexInFileMessages = - 11; - - void UnsafeArenaSwap(TreeEnsemble* other); - void Swap(TreeEnsemble* other); - friend void swap(TreeEnsemble& a, TreeEnsemble& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline TreeEnsemble* New() const final { - return CreateMaybeMessage(NULL); - } - - TreeEnsemble* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const TreeEnsemble& from); - void MergeFrom(const TreeEnsemble& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(TreeEnsemble* other); - protected: - explicit TreeEnsemble(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.boosted_trees.Tree trees = 1; - int trees_size() const; - void clear_trees(); - static const int kTreesFieldNumber = 1; - ::tensorflow::boosted_trees::Tree* mutable_trees(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::Tree >* - mutable_trees(); - const ::tensorflow::boosted_trees::Tree& trees(int index) const; - ::tensorflow::boosted_trees::Tree* add_trees(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::Tree >& - trees() const; - - // repeated float tree_weights = 2; - int tree_weights_size() const; - void clear_tree_weights(); - static const int kTreeWeightsFieldNumber = 2; - float tree_weights(int index) const; - void set_tree_weights(int index, float value); - void add_tree_weights(float value); - const ::google::protobuf::RepeatedField< float >& - tree_weights() const; - ::google::protobuf::RepeatedField< float >* - mutable_tree_weights(); - - // repeated .tensorflow.boosted_trees.TreeMetadata tree_metadata = 3; - int tree_metadata_size() const; - void clear_tree_metadata(); - static const int kTreeMetadataFieldNumber = 3; - ::tensorflow::boosted_trees::TreeMetadata* mutable_tree_metadata(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::TreeMetadata >* - mutable_tree_metadata(); - const ::tensorflow::boosted_trees::TreeMetadata& tree_metadata(int index) const; - ::tensorflow::boosted_trees::TreeMetadata* add_tree_metadata(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::TreeMetadata >& - tree_metadata() const; - - // .tensorflow.boosted_trees.GrowingMetadata growing_metadata = 4; - bool has_growing_metadata() const; - void clear_growing_metadata(); - static const int kGrowingMetadataFieldNumber = 4; - private: - const ::tensorflow::boosted_trees::GrowingMetadata& _internal_growing_metadata() const; - public: - const ::tensorflow::boosted_trees::GrowingMetadata& growing_metadata() const; - ::tensorflow::boosted_trees::GrowingMetadata* release_growing_metadata(); - ::tensorflow::boosted_trees::GrowingMetadata* mutable_growing_metadata(); - void set_allocated_growing_metadata(::tensorflow::boosted_trees::GrowingMetadata* growing_metadata); - void unsafe_arena_set_allocated_growing_metadata( - ::tensorflow::boosted_trees::GrowingMetadata* growing_metadata); - ::tensorflow::boosted_trees::GrowingMetadata* unsafe_arena_release_growing_metadata(); - - // @@protoc_insertion_point(class_scope:tensorflow.boosted_trees.TreeEnsemble) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::Tree > trees_; - ::google::protobuf::RepeatedField< float > tree_weights_; - mutable int _tree_weights_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::TreeMetadata > tree_metadata_; - ::tensorflow::boosted_trees::GrowingMetadata* growing_metadata_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class DebugOutput : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.boosted_trees.DebugOutput) */ { - public: - DebugOutput(); - virtual ~DebugOutput(); - - DebugOutput(const DebugOutput& from); - - inline DebugOutput& operator=(const DebugOutput& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - DebugOutput(DebugOutput&& from) noexcept - : DebugOutput() { - *this = ::std::move(from); - } - - inline DebugOutput& operator=(DebugOutput&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - inline ::google::protobuf::Arena* GetArena() const final { - return GetArenaNoVirtual(); - } - inline void* GetMaybeArenaPointer() const final { - return MaybeArenaPtr(); - } - static const ::google::protobuf::Descriptor* descriptor(); - static const DebugOutput& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const DebugOutput* internal_default_instance() { - return reinterpret_cast( - &_DebugOutput_default_instance_); - } - static constexpr int kIndexInFileMessages = - 12; - - void UnsafeArenaSwap(DebugOutput* other); - void Swap(DebugOutput* other); - friend void swap(DebugOutput& a, DebugOutput& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline DebugOutput* New() const final { - return CreateMaybeMessage(NULL); - } - - DebugOutput* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const DebugOutput& from); - void MergeFrom(const DebugOutput& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(DebugOutput* other); - protected: - explicit DebugOutput(::google::protobuf::Arena* arena); - private: - static void ArenaDtor(void* object); - inline void RegisterArenaDtor(::google::protobuf::Arena* arena); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return _internal_metadata_.arena(); - } - inline void* MaybeArenaPtr() const { - return _internal_metadata_.raw_arena_ptr(); - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated int32 feature_ids = 1; - int feature_ids_size() const; - void clear_feature_ids(); - static const int kFeatureIdsFieldNumber = 1; - ::google::protobuf::int32 feature_ids(int index) const; - void set_feature_ids(int index, ::google::protobuf::int32 value); - void add_feature_ids(::google::protobuf::int32 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& - feature_ids() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* - mutable_feature_ids(); - - // repeated float logits_path = 2; - int logits_path_size() const; - void clear_logits_path(); - static const int kLogitsPathFieldNumber = 2; - float logits_path(int index) const; - void set_logits_path(int index, float value); - void add_logits_path(float value); - const ::google::protobuf::RepeatedField< float >& - logits_path() const; - ::google::protobuf::RepeatedField< float >* - mutable_logits_path(); - - // @@protoc_insertion_point(class_scope:tensorflow.boosted_trees.DebugOutput) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - template friend class ::google::protobuf::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - ::google::protobuf::RepeatedField< ::google::protobuf::int32 > feature_ids_; - mutable int _feature_ids_cached_byte_size_; - ::google::protobuf::RepeatedField< float > logits_path_; - mutable int _logits_path_cached_byte_size_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto::TableStruct; -}; -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -// Node - -// .tensorflow.boosted_trees.Leaf leaf = 1; -inline bool Node::has_leaf() const { - return node_case() == kLeaf; -} -inline void Node::set_has_leaf() { - _oneof_case_[0] = kLeaf; -} -inline void Node::clear_leaf() { - if (has_leaf()) { - if (GetArenaNoVirtual() == NULL) { - delete node_.leaf_; - } - clear_has_node(); - } -} -inline const ::tensorflow::boosted_trees::Leaf& Node::_internal_leaf() const { - return *node_.leaf_; -} -inline ::tensorflow::boosted_trees::Leaf* Node::release_leaf() { - // @@protoc_insertion_point(field_release:tensorflow.boosted_trees.Node.leaf) - if (has_leaf()) { - clear_has_node(); - ::tensorflow::boosted_trees::Leaf* temp = node_.leaf_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - node_.leaf_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::boosted_trees::Leaf& Node::leaf() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.Node.leaf) - return has_leaf() - ? *node_.leaf_ - : *reinterpret_cast< ::tensorflow::boosted_trees::Leaf*>(&::tensorflow::boosted_trees::_Leaf_default_instance_); -} -inline ::tensorflow::boosted_trees::Leaf* Node::unsafe_arena_release_leaf() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.boosted_trees.Node.leaf) - if (has_leaf()) { - clear_has_node(); - ::tensorflow::boosted_trees::Leaf* temp = node_.leaf_; - node_.leaf_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void Node::unsafe_arena_set_allocated_leaf(::tensorflow::boosted_trees::Leaf* leaf) { - clear_node(); - if (leaf) { - set_has_leaf(); - node_.leaf_ = leaf; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.boosted_trees.Node.leaf) -} -inline ::tensorflow::boosted_trees::Leaf* Node::mutable_leaf() { - if (!has_leaf()) { - clear_node(); - set_has_leaf(); - node_.leaf_ = CreateMaybeMessage< ::tensorflow::boosted_trees::Leaf >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.boosted_trees.Node.leaf) - return node_.leaf_; -} - -// .tensorflow.boosted_trees.BucketizedSplit bucketized_split = 2; -inline bool Node::has_bucketized_split() const { - return node_case() == kBucketizedSplit; -} -inline void Node::set_has_bucketized_split() { - _oneof_case_[0] = kBucketizedSplit; -} -inline void Node::clear_bucketized_split() { - if (has_bucketized_split()) { - if (GetArenaNoVirtual() == NULL) { - delete node_.bucketized_split_; - } - clear_has_node(); - } -} -inline const ::tensorflow::boosted_trees::BucketizedSplit& Node::_internal_bucketized_split() const { - return *node_.bucketized_split_; -} -inline ::tensorflow::boosted_trees::BucketizedSplit* Node::release_bucketized_split() { - // @@protoc_insertion_point(field_release:tensorflow.boosted_trees.Node.bucketized_split) - if (has_bucketized_split()) { - clear_has_node(); - ::tensorflow::boosted_trees::BucketizedSplit* temp = node_.bucketized_split_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - node_.bucketized_split_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::boosted_trees::BucketizedSplit& Node::bucketized_split() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.Node.bucketized_split) - return has_bucketized_split() - ? *node_.bucketized_split_ - : *reinterpret_cast< ::tensorflow::boosted_trees::BucketizedSplit*>(&::tensorflow::boosted_trees::_BucketizedSplit_default_instance_); -} -inline ::tensorflow::boosted_trees::BucketizedSplit* Node::unsafe_arena_release_bucketized_split() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.boosted_trees.Node.bucketized_split) - if (has_bucketized_split()) { - clear_has_node(); - ::tensorflow::boosted_trees::BucketizedSplit* temp = node_.bucketized_split_; - node_.bucketized_split_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void Node::unsafe_arena_set_allocated_bucketized_split(::tensorflow::boosted_trees::BucketizedSplit* bucketized_split) { - clear_node(); - if (bucketized_split) { - set_has_bucketized_split(); - node_.bucketized_split_ = bucketized_split; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.boosted_trees.Node.bucketized_split) -} -inline ::tensorflow::boosted_trees::BucketizedSplit* Node::mutable_bucketized_split() { - if (!has_bucketized_split()) { - clear_node(); - set_has_bucketized_split(); - node_.bucketized_split_ = CreateMaybeMessage< ::tensorflow::boosted_trees::BucketizedSplit >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.boosted_trees.Node.bucketized_split) - return node_.bucketized_split_; -} - -// .tensorflow.boosted_trees.CategoricalSplit categorical_split = 3; -inline bool Node::has_categorical_split() const { - return node_case() == kCategoricalSplit; -} -inline void Node::set_has_categorical_split() { - _oneof_case_[0] = kCategoricalSplit; -} -inline void Node::clear_categorical_split() { - if (has_categorical_split()) { - if (GetArenaNoVirtual() == NULL) { - delete node_.categorical_split_; - } - clear_has_node(); - } -} -inline const ::tensorflow::boosted_trees::CategoricalSplit& Node::_internal_categorical_split() const { - return *node_.categorical_split_; -} -inline ::tensorflow::boosted_trees::CategoricalSplit* Node::release_categorical_split() { - // @@protoc_insertion_point(field_release:tensorflow.boosted_trees.Node.categorical_split) - if (has_categorical_split()) { - clear_has_node(); - ::tensorflow::boosted_trees::CategoricalSplit* temp = node_.categorical_split_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - node_.categorical_split_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::boosted_trees::CategoricalSplit& Node::categorical_split() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.Node.categorical_split) - return has_categorical_split() - ? *node_.categorical_split_ - : *reinterpret_cast< ::tensorflow::boosted_trees::CategoricalSplit*>(&::tensorflow::boosted_trees::_CategoricalSplit_default_instance_); -} -inline ::tensorflow::boosted_trees::CategoricalSplit* Node::unsafe_arena_release_categorical_split() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.boosted_trees.Node.categorical_split) - if (has_categorical_split()) { - clear_has_node(); - ::tensorflow::boosted_trees::CategoricalSplit* temp = node_.categorical_split_; - node_.categorical_split_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void Node::unsafe_arena_set_allocated_categorical_split(::tensorflow::boosted_trees::CategoricalSplit* categorical_split) { - clear_node(); - if (categorical_split) { - set_has_categorical_split(); - node_.categorical_split_ = categorical_split; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.boosted_trees.Node.categorical_split) -} -inline ::tensorflow::boosted_trees::CategoricalSplit* Node::mutable_categorical_split() { - if (!has_categorical_split()) { - clear_node(); - set_has_categorical_split(); - node_.categorical_split_ = CreateMaybeMessage< ::tensorflow::boosted_trees::CategoricalSplit >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.boosted_trees.Node.categorical_split) - return node_.categorical_split_; -} - -// .tensorflow.boosted_trees.NodeMetadata metadata = 777; -inline bool Node::has_metadata() const { - return this != internal_default_instance() && metadata_ != NULL; -} -inline void Node::clear_metadata() { - if (GetArenaNoVirtual() == NULL && metadata_ != NULL) { - delete metadata_; - } - metadata_ = NULL; -} -inline const ::tensorflow::boosted_trees::NodeMetadata& Node::_internal_metadata() const { - return *metadata_; -} -inline const ::tensorflow::boosted_trees::NodeMetadata& Node::metadata() const { - const ::tensorflow::boosted_trees::NodeMetadata* p = metadata_; - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.Node.metadata) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::boosted_trees::_NodeMetadata_default_instance_); -} -inline ::tensorflow::boosted_trees::NodeMetadata* Node::release_metadata() { - // @@protoc_insertion_point(field_release:tensorflow.boosted_trees.Node.metadata) - - ::tensorflow::boosted_trees::NodeMetadata* temp = metadata_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - metadata_ = NULL; - return temp; -} -inline ::tensorflow::boosted_trees::NodeMetadata* Node::unsafe_arena_release_metadata() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.boosted_trees.Node.metadata) - - ::tensorflow::boosted_trees::NodeMetadata* temp = metadata_; - metadata_ = NULL; - return temp; -} -inline ::tensorflow::boosted_trees::NodeMetadata* Node::mutable_metadata() { - - if (metadata_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::boosted_trees::NodeMetadata>(GetArenaNoVirtual()); - metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.boosted_trees.Node.metadata) - return metadata_; -} -inline void Node::set_allocated_metadata(::tensorflow::boosted_trees::NodeMetadata* metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete metadata_; - } - if (metadata) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(metadata); - if (message_arena != submessage_arena) { - metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, metadata, submessage_arena); - } - - } else { - - } - metadata_ = metadata; - // @@protoc_insertion_point(field_set_allocated:tensorflow.boosted_trees.Node.metadata) -} - -inline bool Node::has_node() const { - return node_case() != NODE_NOT_SET; -} -inline void Node::clear_has_node() { - _oneof_case_[0] = NODE_NOT_SET; -} -inline Node::NodeCase Node::node_case() const { - return Node::NodeCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// NodeMetadata - -// float gain = 1; -inline void NodeMetadata::clear_gain() { - gain_ = 0; -} -inline float NodeMetadata::gain() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.NodeMetadata.gain) - return gain_; -} -inline void NodeMetadata::set_gain(float value) { - - gain_ = value; - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.NodeMetadata.gain) -} - -// .tensorflow.boosted_trees.Leaf original_leaf = 2; -inline bool NodeMetadata::has_original_leaf() const { - return this != internal_default_instance() && original_leaf_ != NULL; -} -inline void NodeMetadata::clear_original_leaf() { - if (GetArenaNoVirtual() == NULL && original_leaf_ != NULL) { - delete original_leaf_; - } - original_leaf_ = NULL; -} -inline const ::tensorflow::boosted_trees::Leaf& NodeMetadata::_internal_original_leaf() const { - return *original_leaf_; -} -inline const ::tensorflow::boosted_trees::Leaf& NodeMetadata::original_leaf() const { - const ::tensorflow::boosted_trees::Leaf* p = original_leaf_; - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.NodeMetadata.original_leaf) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::boosted_trees::_Leaf_default_instance_); -} -inline ::tensorflow::boosted_trees::Leaf* NodeMetadata::release_original_leaf() { - // @@protoc_insertion_point(field_release:tensorflow.boosted_trees.NodeMetadata.original_leaf) - - ::tensorflow::boosted_trees::Leaf* temp = original_leaf_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - original_leaf_ = NULL; - return temp; -} -inline ::tensorflow::boosted_trees::Leaf* NodeMetadata::unsafe_arena_release_original_leaf() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.boosted_trees.NodeMetadata.original_leaf) - - ::tensorflow::boosted_trees::Leaf* temp = original_leaf_; - original_leaf_ = NULL; - return temp; -} -inline ::tensorflow::boosted_trees::Leaf* NodeMetadata::mutable_original_leaf() { - - if (original_leaf_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::boosted_trees::Leaf>(GetArenaNoVirtual()); - original_leaf_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.boosted_trees.NodeMetadata.original_leaf) - return original_leaf_; -} -inline void NodeMetadata::set_allocated_original_leaf(::tensorflow::boosted_trees::Leaf* original_leaf) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete original_leaf_; - } - if (original_leaf) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(original_leaf); - if (message_arena != submessage_arena) { - original_leaf = ::google::protobuf::internal::GetOwnedMessage( - message_arena, original_leaf, submessage_arena); - } - - } else { - - } - original_leaf_ = original_leaf; - // @@protoc_insertion_point(field_set_allocated:tensorflow.boosted_trees.NodeMetadata.original_leaf) -} - -// ------------------------------------------------------------------- - -// Leaf - -// .tensorflow.boosted_trees.Vector vector = 1; -inline bool Leaf::has_vector() const { - return leaf_case() == kVector; -} -inline void Leaf::set_has_vector() { - _oneof_case_[0] = kVector; -} -inline void Leaf::clear_vector() { - if (has_vector()) { - if (GetArenaNoVirtual() == NULL) { - delete leaf_.vector_; - } - clear_has_leaf(); - } -} -inline const ::tensorflow::boosted_trees::Vector& Leaf::_internal_vector() const { - return *leaf_.vector_; -} -inline ::tensorflow::boosted_trees::Vector* Leaf::release_vector() { - // @@protoc_insertion_point(field_release:tensorflow.boosted_trees.Leaf.vector) - if (has_vector()) { - clear_has_leaf(); - ::tensorflow::boosted_trees::Vector* temp = leaf_.vector_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - leaf_.vector_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::boosted_trees::Vector& Leaf::vector() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.Leaf.vector) - return has_vector() - ? *leaf_.vector_ - : *reinterpret_cast< ::tensorflow::boosted_trees::Vector*>(&::tensorflow::boosted_trees::_Vector_default_instance_); -} -inline ::tensorflow::boosted_trees::Vector* Leaf::unsafe_arena_release_vector() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.boosted_trees.Leaf.vector) - if (has_vector()) { - clear_has_leaf(); - ::tensorflow::boosted_trees::Vector* temp = leaf_.vector_; - leaf_.vector_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void Leaf::unsafe_arena_set_allocated_vector(::tensorflow::boosted_trees::Vector* vector) { - clear_leaf(); - if (vector) { - set_has_vector(); - leaf_.vector_ = vector; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.boosted_trees.Leaf.vector) -} -inline ::tensorflow::boosted_trees::Vector* Leaf::mutable_vector() { - if (!has_vector()) { - clear_leaf(); - set_has_vector(); - leaf_.vector_ = CreateMaybeMessage< ::tensorflow::boosted_trees::Vector >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.boosted_trees.Leaf.vector) - return leaf_.vector_; -} - -// .tensorflow.boosted_trees.SparseVector sparse_vector = 2; -inline bool Leaf::has_sparse_vector() const { - return leaf_case() == kSparseVector; -} -inline void Leaf::set_has_sparse_vector() { - _oneof_case_[0] = kSparseVector; -} -inline void Leaf::clear_sparse_vector() { - if (has_sparse_vector()) { - if (GetArenaNoVirtual() == NULL) { - delete leaf_.sparse_vector_; - } - clear_has_leaf(); - } -} -inline const ::tensorflow::boosted_trees::SparseVector& Leaf::_internal_sparse_vector() const { - return *leaf_.sparse_vector_; -} -inline ::tensorflow::boosted_trees::SparseVector* Leaf::release_sparse_vector() { - // @@protoc_insertion_point(field_release:tensorflow.boosted_trees.Leaf.sparse_vector) - if (has_sparse_vector()) { - clear_has_leaf(); - ::tensorflow::boosted_trees::SparseVector* temp = leaf_.sparse_vector_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - leaf_.sparse_vector_ = NULL; - return temp; - } else { - return NULL; - } -} -inline const ::tensorflow::boosted_trees::SparseVector& Leaf::sparse_vector() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.Leaf.sparse_vector) - return has_sparse_vector() - ? *leaf_.sparse_vector_ - : *reinterpret_cast< ::tensorflow::boosted_trees::SparseVector*>(&::tensorflow::boosted_trees::_SparseVector_default_instance_); -} -inline ::tensorflow::boosted_trees::SparseVector* Leaf::unsafe_arena_release_sparse_vector() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.boosted_trees.Leaf.sparse_vector) - if (has_sparse_vector()) { - clear_has_leaf(); - ::tensorflow::boosted_trees::SparseVector* temp = leaf_.sparse_vector_; - leaf_.sparse_vector_ = NULL; - return temp; - } else { - return NULL; - } -} -inline void Leaf::unsafe_arena_set_allocated_sparse_vector(::tensorflow::boosted_trees::SparseVector* sparse_vector) { - clear_leaf(); - if (sparse_vector) { - set_has_sparse_vector(); - leaf_.sparse_vector_ = sparse_vector; - } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.boosted_trees.Leaf.sparse_vector) -} -inline ::tensorflow::boosted_trees::SparseVector* Leaf::mutable_sparse_vector() { - if (!has_sparse_vector()) { - clear_leaf(); - set_has_sparse_vector(); - leaf_.sparse_vector_ = CreateMaybeMessage< ::tensorflow::boosted_trees::SparseVector >( - GetArenaNoVirtual()); - } - // @@protoc_insertion_point(field_mutable:tensorflow.boosted_trees.Leaf.sparse_vector) - return leaf_.sparse_vector_; -} - -// float scalar = 3; -inline void Leaf::clear_scalar() { - scalar_ = 0; -} -inline float Leaf::scalar() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.Leaf.scalar) - return scalar_; -} -inline void Leaf::set_scalar(float value) { - - scalar_ = value; - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.Leaf.scalar) -} - -inline bool Leaf::has_leaf() const { - return leaf_case() != LEAF_NOT_SET; -} -inline void Leaf::clear_has_leaf() { - _oneof_case_[0] = LEAF_NOT_SET; -} -inline Leaf::LeafCase Leaf::leaf_case() const { - return Leaf::LeafCase(_oneof_case_[0]); -} -// ------------------------------------------------------------------- - -// Vector - -// repeated float value = 1; -inline int Vector::value_size() const { - return value_.size(); -} -inline void Vector::clear_value() { - value_.Clear(); -} -inline float Vector::value(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.Vector.value) - return value_.Get(index); -} -inline void Vector::set_value(int index, float value) { - value_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.Vector.value) -} -inline void Vector::add_value(float value) { - value_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.boosted_trees.Vector.value) -} -inline const ::google::protobuf::RepeatedField< float >& -Vector::value() const { - // @@protoc_insertion_point(field_list:tensorflow.boosted_trees.Vector.value) - return value_; -} -inline ::google::protobuf::RepeatedField< float >* -Vector::mutable_value() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.boosted_trees.Vector.value) - return &value_; -} - -// ------------------------------------------------------------------- - -// SparseVector - -// repeated int32 index = 1; -inline int SparseVector::index_size() const { - return index_.size(); -} -inline void SparseVector::clear_index() { - index_.Clear(); -} -inline ::google::protobuf::int32 SparseVector::index(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.SparseVector.index) - return index_.Get(index); -} -inline void SparseVector::set_index(int index, ::google::protobuf::int32 value) { - index_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.SparseVector.index) -} -inline void SparseVector::add_index(::google::protobuf::int32 value) { - index_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.boosted_trees.SparseVector.index) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -SparseVector::index() const { - // @@protoc_insertion_point(field_list:tensorflow.boosted_trees.SparseVector.index) - return index_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -SparseVector::mutable_index() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.boosted_trees.SparseVector.index) - return &index_; -} - -// repeated float value = 2; -inline int SparseVector::value_size() const { - return value_.size(); -} -inline void SparseVector::clear_value() { - value_.Clear(); -} -inline float SparseVector::value(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.SparseVector.value) - return value_.Get(index); -} -inline void SparseVector::set_value(int index, float value) { - value_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.SparseVector.value) -} -inline void SparseVector::add_value(float value) { - value_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.boosted_trees.SparseVector.value) -} -inline const ::google::protobuf::RepeatedField< float >& -SparseVector::value() const { - // @@protoc_insertion_point(field_list:tensorflow.boosted_trees.SparseVector.value) - return value_; -} -inline ::google::protobuf::RepeatedField< float >* -SparseVector::mutable_value() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.boosted_trees.SparseVector.value) - return &value_; -} - -// ------------------------------------------------------------------- - -// BucketizedSplit - -// int32 feature_id = 1; -inline void BucketizedSplit::clear_feature_id() { - feature_id_ = 0; -} -inline ::google::protobuf::int32 BucketizedSplit::feature_id() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.BucketizedSplit.feature_id) - return feature_id_; -} -inline void BucketizedSplit::set_feature_id(::google::protobuf::int32 value) { - - feature_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.BucketizedSplit.feature_id) -} - -// int32 threshold = 2; -inline void BucketizedSplit::clear_threshold() { - threshold_ = 0; -} -inline ::google::protobuf::int32 BucketizedSplit::threshold() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.BucketizedSplit.threshold) - return threshold_; -} -inline void BucketizedSplit::set_threshold(::google::protobuf::int32 value) { - - threshold_ = value; - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.BucketizedSplit.threshold) -} - -// int32 left_id = 3; -inline void BucketizedSplit::clear_left_id() { - left_id_ = 0; -} -inline ::google::protobuf::int32 BucketizedSplit::left_id() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.BucketizedSplit.left_id) - return left_id_; -} -inline void BucketizedSplit::set_left_id(::google::protobuf::int32 value) { - - left_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.BucketizedSplit.left_id) -} - -// int32 right_id = 4; -inline void BucketizedSplit::clear_right_id() { - right_id_ = 0; -} -inline ::google::protobuf::int32 BucketizedSplit::right_id() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.BucketizedSplit.right_id) - return right_id_; -} -inline void BucketizedSplit::set_right_id(::google::protobuf::int32 value) { - - right_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.BucketizedSplit.right_id) -} - -// ------------------------------------------------------------------- - -// CategoricalSplit - -// int32 feature_id = 1; -inline void CategoricalSplit::clear_feature_id() { - feature_id_ = 0; -} -inline ::google::protobuf::int32 CategoricalSplit::feature_id() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.CategoricalSplit.feature_id) - return feature_id_; -} -inline void CategoricalSplit::set_feature_id(::google::protobuf::int32 value) { - - feature_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.CategoricalSplit.feature_id) -} - -// int32 value = 2; -inline void CategoricalSplit::clear_value() { - value_ = 0; -} -inline ::google::protobuf::int32 CategoricalSplit::value() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.CategoricalSplit.value) - return value_; -} -inline void CategoricalSplit::set_value(::google::protobuf::int32 value) { - - value_ = value; - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.CategoricalSplit.value) -} - -// int32 left_id = 3; -inline void CategoricalSplit::clear_left_id() { - left_id_ = 0; -} -inline ::google::protobuf::int32 CategoricalSplit::left_id() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.CategoricalSplit.left_id) - return left_id_; -} -inline void CategoricalSplit::set_left_id(::google::protobuf::int32 value) { - - left_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.CategoricalSplit.left_id) -} - -// int32 right_id = 4; -inline void CategoricalSplit::clear_right_id() { - right_id_ = 0; -} -inline ::google::protobuf::int32 CategoricalSplit::right_id() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.CategoricalSplit.right_id) - return right_id_; -} -inline void CategoricalSplit::set_right_id(::google::protobuf::int32 value) { - - right_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.CategoricalSplit.right_id) -} - -// ------------------------------------------------------------------- - -// Tree - -// repeated .tensorflow.boosted_trees.Node nodes = 1; -inline int Tree::nodes_size() const { - return nodes_.size(); -} -inline void Tree::clear_nodes() { - nodes_.Clear(); -} -inline ::tensorflow::boosted_trees::Node* Tree::mutable_nodes(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.boosted_trees.Tree.nodes) - return nodes_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::Node >* -Tree::mutable_nodes() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.boosted_trees.Tree.nodes) - return &nodes_; -} -inline const ::tensorflow::boosted_trees::Node& Tree::nodes(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.Tree.nodes) - return nodes_.Get(index); -} -inline ::tensorflow::boosted_trees::Node* Tree::add_nodes() { - // @@protoc_insertion_point(field_add:tensorflow.boosted_trees.Tree.nodes) - return nodes_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::Node >& -Tree::nodes() const { - // @@protoc_insertion_point(field_list:tensorflow.boosted_trees.Tree.nodes) - return nodes_; -} - -// ------------------------------------------------------------------- - -// TreeMetadata_PostPruneNodeUpdate - -// int32 new_node_id = 1; -inline void TreeMetadata_PostPruneNodeUpdate::clear_new_node_id() { - new_node_id_ = 0; -} -inline ::google::protobuf::int32 TreeMetadata_PostPruneNodeUpdate::new_node_id() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.TreeMetadata.PostPruneNodeUpdate.new_node_id) - return new_node_id_; -} -inline void TreeMetadata_PostPruneNodeUpdate::set_new_node_id(::google::protobuf::int32 value) { - - new_node_id_ = value; - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.TreeMetadata.PostPruneNodeUpdate.new_node_id) -} - -// float logit_change = 2; -inline void TreeMetadata_PostPruneNodeUpdate::clear_logit_change() { - logit_change_ = 0; -} -inline float TreeMetadata_PostPruneNodeUpdate::logit_change() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.TreeMetadata.PostPruneNodeUpdate.logit_change) - return logit_change_; -} -inline void TreeMetadata_PostPruneNodeUpdate::set_logit_change(float value) { - - logit_change_ = value; - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.TreeMetadata.PostPruneNodeUpdate.logit_change) -} - -// ------------------------------------------------------------------- - -// TreeMetadata - -// int32 num_layers_grown = 2; -inline void TreeMetadata::clear_num_layers_grown() { - num_layers_grown_ = 0; -} -inline ::google::protobuf::int32 TreeMetadata::num_layers_grown() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.TreeMetadata.num_layers_grown) - return num_layers_grown_; -} -inline void TreeMetadata::set_num_layers_grown(::google::protobuf::int32 value) { - - num_layers_grown_ = value; - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.TreeMetadata.num_layers_grown) -} - -// bool is_finalized = 3; -inline void TreeMetadata::clear_is_finalized() { - is_finalized_ = false; -} -inline bool TreeMetadata::is_finalized() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.TreeMetadata.is_finalized) - return is_finalized_; -} -inline void TreeMetadata::set_is_finalized(bool value) { - - is_finalized_ = value; - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.TreeMetadata.is_finalized) -} - -// repeated .tensorflow.boosted_trees.TreeMetadata.PostPruneNodeUpdate post_pruned_nodes_meta = 4; -inline int TreeMetadata::post_pruned_nodes_meta_size() const { - return post_pruned_nodes_meta_.size(); -} -inline void TreeMetadata::clear_post_pruned_nodes_meta() { - post_pruned_nodes_meta_.Clear(); -} -inline ::tensorflow::boosted_trees::TreeMetadata_PostPruneNodeUpdate* TreeMetadata::mutable_post_pruned_nodes_meta(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.boosted_trees.TreeMetadata.post_pruned_nodes_meta) - return post_pruned_nodes_meta_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::TreeMetadata_PostPruneNodeUpdate >* -TreeMetadata::mutable_post_pruned_nodes_meta() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.boosted_trees.TreeMetadata.post_pruned_nodes_meta) - return &post_pruned_nodes_meta_; -} -inline const ::tensorflow::boosted_trees::TreeMetadata_PostPruneNodeUpdate& TreeMetadata::post_pruned_nodes_meta(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.TreeMetadata.post_pruned_nodes_meta) - return post_pruned_nodes_meta_.Get(index); -} -inline ::tensorflow::boosted_trees::TreeMetadata_PostPruneNodeUpdate* TreeMetadata::add_post_pruned_nodes_meta() { - // @@protoc_insertion_point(field_add:tensorflow.boosted_trees.TreeMetadata.post_pruned_nodes_meta) - return post_pruned_nodes_meta_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::TreeMetadata_PostPruneNodeUpdate >& -TreeMetadata::post_pruned_nodes_meta() const { - // @@protoc_insertion_point(field_list:tensorflow.boosted_trees.TreeMetadata.post_pruned_nodes_meta) - return post_pruned_nodes_meta_; -} - -// ------------------------------------------------------------------- - -// GrowingMetadata - -// int64 num_trees_attempted = 1; -inline void GrowingMetadata::clear_num_trees_attempted() { - num_trees_attempted_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 GrowingMetadata::num_trees_attempted() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.GrowingMetadata.num_trees_attempted) - return num_trees_attempted_; -} -inline void GrowingMetadata::set_num_trees_attempted(::google::protobuf::int64 value) { - - num_trees_attempted_ = value; - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.GrowingMetadata.num_trees_attempted) -} - -// int64 num_layers_attempted = 2; -inline void GrowingMetadata::clear_num_layers_attempted() { - num_layers_attempted_ = GOOGLE_LONGLONG(0); -} -inline ::google::protobuf::int64 GrowingMetadata::num_layers_attempted() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.GrowingMetadata.num_layers_attempted) - return num_layers_attempted_; -} -inline void GrowingMetadata::set_num_layers_attempted(::google::protobuf::int64 value) { - - num_layers_attempted_ = value; - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.GrowingMetadata.num_layers_attempted) -} - -// int32 last_layer_node_start = 3; -inline void GrowingMetadata::clear_last_layer_node_start() { - last_layer_node_start_ = 0; -} -inline ::google::protobuf::int32 GrowingMetadata::last_layer_node_start() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.GrowingMetadata.last_layer_node_start) - return last_layer_node_start_; -} -inline void GrowingMetadata::set_last_layer_node_start(::google::protobuf::int32 value) { - - last_layer_node_start_ = value; - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.GrowingMetadata.last_layer_node_start) -} - -// int32 last_layer_node_end = 4; -inline void GrowingMetadata::clear_last_layer_node_end() { - last_layer_node_end_ = 0; -} -inline ::google::protobuf::int32 GrowingMetadata::last_layer_node_end() const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.GrowingMetadata.last_layer_node_end) - return last_layer_node_end_; -} -inline void GrowingMetadata::set_last_layer_node_end(::google::protobuf::int32 value) { - - last_layer_node_end_ = value; - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.GrowingMetadata.last_layer_node_end) -} - -// ------------------------------------------------------------------- - -// TreeEnsemble - -// repeated .tensorflow.boosted_trees.Tree trees = 1; -inline int TreeEnsemble::trees_size() const { - return trees_.size(); -} -inline void TreeEnsemble::clear_trees() { - trees_.Clear(); -} -inline ::tensorflow::boosted_trees::Tree* TreeEnsemble::mutable_trees(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.boosted_trees.TreeEnsemble.trees) - return trees_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::Tree >* -TreeEnsemble::mutable_trees() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.boosted_trees.TreeEnsemble.trees) - return &trees_; -} -inline const ::tensorflow::boosted_trees::Tree& TreeEnsemble::trees(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.TreeEnsemble.trees) - return trees_.Get(index); -} -inline ::tensorflow::boosted_trees::Tree* TreeEnsemble::add_trees() { - // @@protoc_insertion_point(field_add:tensorflow.boosted_trees.TreeEnsemble.trees) - return trees_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::Tree >& -TreeEnsemble::trees() const { - // @@protoc_insertion_point(field_list:tensorflow.boosted_trees.TreeEnsemble.trees) - return trees_; -} - -// repeated float tree_weights = 2; -inline int TreeEnsemble::tree_weights_size() const { - return tree_weights_.size(); -} -inline void TreeEnsemble::clear_tree_weights() { - tree_weights_.Clear(); -} -inline float TreeEnsemble::tree_weights(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.TreeEnsemble.tree_weights) - return tree_weights_.Get(index); -} -inline void TreeEnsemble::set_tree_weights(int index, float value) { - tree_weights_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.TreeEnsemble.tree_weights) -} -inline void TreeEnsemble::add_tree_weights(float value) { - tree_weights_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.boosted_trees.TreeEnsemble.tree_weights) -} -inline const ::google::protobuf::RepeatedField< float >& -TreeEnsemble::tree_weights() const { - // @@protoc_insertion_point(field_list:tensorflow.boosted_trees.TreeEnsemble.tree_weights) - return tree_weights_; -} -inline ::google::protobuf::RepeatedField< float >* -TreeEnsemble::mutable_tree_weights() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.boosted_trees.TreeEnsemble.tree_weights) - return &tree_weights_; -} - -// repeated .tensorflow.boosted_trees.TreeMetadata tree_metadata = 3; -inline int TreeEnsemble::tree_metadata_size() const { - return tree_metadata_.size(); -} -inline void TreeEnsemble::clear_tree_metadata() { - tree_metadata_.Clear(); -} -inline ::tensorflow::boosted_trees::TreeMetadata* TreeEnsemble::mutable_tree_metadata(int index) { - // @@protoc_insertion_point(field_mutable:tensorflow.boosted_trees.TreeEnsemble.tree_metadata) - return tree_metadata_.Mutable(index); -} -inline ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::TreeMetadata >* -TreeEnsemble::mutable_tree_metadata() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.boosted_trees.TreeEnsemble.tree_metadata) - return &tree_metadata_; -} -inline const ::tensorflow::boosted_trees::TreeMetadata& TreeEnsemble::tree_metadata(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.TreeEnsemble.tree_metadata) - return tree_metadata_.Get(index); -} -inline ::tensorflow::boosted_trees::TreeMetadata* TreeEnsemble::add_tree_metadata() { - // @@protoc_insertion_point(field_add:tensorflow.boosted_trees.TreeEnsemble.tree_metadata) - return tree_metadata_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::tensorflow::boosted_trees::TreeMetadata >& -TreeEnsemble::tree_metadata() const { - // @@protoc_insertion_point(field_list:tensorflow.boosted_trees.TreeEnsemble.tree_metadata) - return tree_metadata_; -} - -// .tensorflow.boosted_trees.GrowingMetadata growing_metadata = 4; -inline bool TreeEnsemble::has_growing_metadata() const { - return this != internal_default_instance() && growing_metadata_ != NULL; -} -inline void TreeEnsemble::clear_growing_metadata() { - if (GetArenaNoVirtual() == NULL && growing_metadata_ != NULL) { - delete growing_metadata_; - } - growing_metadata_ = NULL; -} -inline const ::tensorflow::boosted_trees::GrowingMetadata& TreeEnsemble::_internal_growing_metadata() const { - return *growing_metadata_; -} -inline const ::tensorflow::boosted_trees::GrowingMetadata& TreeEnsemble::growing_metadata() const { - const ::tensorflow::boosted_trees::GrowingMetadata* p = growing_metadata_; - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.TreeEnsemble.growing_metadata) - return p != NULL ? *p : *reinterpret_cast( - &::tensorflow::boosted_trees::_GrowingMetadata_default_instance_); -} -inline ::tensorflow::boosted_trees::GrowingMetadata* TreeEnsemble::release_growing_metadata() { - // @@protoc_insertion_point(field_release:tensorflow.boosted_trees.TreeEnsemble.growing_metadata) - - ::tensorflow::boosted_trees::GrowingMetadata* temp = growing_metadata_; - if (GetArenaNoVirtual() != NULL) { - temp = ::google::protobuf::internal::DuplicateIfNonNull(temp); - } - growing_metadata_ = NULL; - return temp; -} -inline ::tensorflow::boosted_trees::GrowingMetadata* TreeEnsemble::unsafe_arena_release_growing_metadata() { - // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.boosted_trees.TreeEnsemble.growing_metadata) - - ::tensorflow::boosted_trees::GrowingMetadata* temp = growing_metadata_; - growing_metadata_ = NULL; - return temp; -} -inline ::tensorflow::boosted_trees::GrowingMetadata* TreeEnsemble::mutable_growing_metadata() { - - if (growing_metadata_ == NULL) { - auto* p = CreateMaybeMessage<::tensorflow::boosted_trees::GrowingMetadata>(GetArenaNoVirtual()); - growing_metadata_ = p; - } - // @@protoc_insertion_point(field_mutable:tensorflow.boosted_trees.TreeEnsemble.growing_metadata) - return growing_metadata_; -} -inline void TreeEnsemble::set_allocated_growing_metadata(::tensorflow::boosted_trees::GrowingMetadata* growing_metadata) { - ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); - if (message_arena == NULL) { - delete growing_metadata_; - } - if (growing_metadata) { - ::google::protobuf::Arena* submessage_arena = - ::google::protobuf::Arena::GetArena(growing_metadata); - if (message_arena != submessage_arena) { - growing_metadata = ::google::protobuf::internal::GetOwnedMessage( - message_arena, growing_metadata, submessage_arena); - } - - } else { - - } - growing_metadata_ = growing_metadata; - // @@protoc_insertion_point(field_set_allocated:tensorflow.boosted_trees.TreeEnsemble.growing_metadata) -} - -// ------------------------------------------------------------------- - -// DebugOutput - -// repeated int32 feature_ids = 1; -inline int DebugOutput::feature_ids_size() const { - return feature_ids_.size(); -} -inline void DebugOutput::clear_feature_ids() { - feature_ids_.Clear(); -} -inline ::google::protobuf::int32 DebugOutput::feature_ids(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.DebugOutput.feature_ids) - return feature_ids_.Get(index); -} -inline void DebugOutput::set_feature_ids(int index, ::google::protobuf::int32 value) { - feature_ids_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.DebugOutput.feature_ids) -} -inline void DebugOutput::add_feature_ids(::google::protobuf::int32 value) { - feature_ids_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.boosted_trees.DebugOutput.feature_ids) -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >& -DebugOutput::feature_ids() const { - // @@protoc_insertion_point(field_list:tensorflow.boosted_trees.DebugOutput.feature_ids) - return feature_ids_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >* -DebugOutput::mutable_feature_ids() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.boosted_trees.DebugOutput.feature_ids) - return &feature_ids_; -} - -// repeated float logits_path = 2; -inline int DebugOutput::logits_path_size() const { - return logits_path_.size(); -} -inline void DebugOutput::clear_logits_path() { - logits_path_.Clear(); -} -inline float DebugOutput::logits_path(int index) const { - // @@protoc_insertion_point(field_get:tensorflow.boosted_trees.DebugOutput.logits_path) - return logits_path_.Get(index); -} -inline void DebugOutput::set_logits_path(int index, float value) { - logits_path_.Set(index, value); - // @@protoc_insertion_point(field_set:tensorflow.boosted_trees.DebugOutput.logits_path) -} -inline void DebugOutput::add_logits_path(float value) { - logits_path_.Add(value); - // @@protoc_insertion_point(field_add:tensorflow.boosted_trees.DebugOutput.logits_path) -} -inline const ::google::protobuf::RepeatedField< float >& -DebugOutput::logits_path() const { - // @@protoc_insertion_point(field_list:tensorflow.boosted_trees.DebugOutput.logits_path) - return logits_path_; -} -inline ::google::protobuf::RepeatedField< float >* -DebugOutput::mutable_logits_path() { - // @@protoc_insertion_point(field_mutable_list:tensorflow.boosted_trees.DebugOutput.logits_path) - return &logits_path_; -} - -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace boosted_trees -} // namespace tensorflow - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2fkernels_2fboosted_5ftrees_2fboosted_5ftrees_2eproto diff --git a/linux/include/tensorflow/core/lib/core/error_codes.pb.h b/linux/include/tensorflow/core/lib/core/error_codes.pb.h deleted file mode 100755 index 2200af308..000000000 --- a/linux/include/tensorflow/core/lib/core/error_codes.pb.h +++ /dev/null @@ -1,126 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/lib/core/error_codes.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2flib_2fcore_2ferror_5fcodes_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2flib_2fcore_2ferror_5fcodes_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2flib_2fcore_2ferror_5fcodes_2eproto - -namespace protobuf_tensorflow_2fcore_2flib_2fcore_2ferror_5fcodes_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[1]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2flib_2fcore_2ferror_5fcodes_2eproto -namespace tensorflow { -namespace error { -} // namespace error -} // namespace tensorflow -namespace tensorflow { -namespace error { - -enum Code { - OK = 0, - CANCELLED = 1, - UNKNOWN = 2, - INVALID_ARGUMENT = 3, - DEADLINE_EXCEEDED = 4, - NOT_FOUND = 5, - ALREADY_EXISTS = 6, - PERMISSION_DENIED = 7, - UNAUTHENTICATED = 16, - RESOURCE_EXHAUSTED = 8, - FAILED_PRECONDITION = 9, - ABORTED = 10, - OUT_OF_RANGE = 11, - UNIMPLEMENTED = 12, - INTERNAL = 13, - UNAVAILABLE = 14, - DATA_LOSS = 15, - DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_ = 20, - Code_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, - Code_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max -}; -bool Code_IsValid(int value); -const Code Code_MIN = OK; -const Code Code_MAX = DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_; -const int Code_ARRAYSIZE = Code_MAX + 1; - -const ::google::protobuf::EnumDescriptor* Code_descriptor(); -inline const ::std::string& Code_Name(Code value) { - return ::google::protobuf::internal::NameOfEnum( - Code_descriptor(), value); -} -inline bool Code_Parse( - const ::std::string& name, Code* value) { - return ::google::protobuf::internal::ParseNamedEnum( - Code_descriptor(), name, value); -} -// =================================================================== - - -// =================================================================== - - -// =================================================================== - -#ifdef __GNUC__ - #pragma GCC diagnostic push - #pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif // __GNUC__ -#ifdef __GNUC__ - #pragma GCC diagnostic pop -#endif // __GNUC__ - -// @@protoc_insertion_point(namespace_scope) - -} // namespace error -} // namespace tensorflow - -namespace google { -namespace protobuf { - -template <> struct is_proto_enum< ::tensorflow::error::Code> : ::std::true_type {}; -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::error::Code>() { - return ::tensorflow::error::Code_descriptor(); -} - -} // namespace protobuf -} // namespace google - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_INCLUDED_tensorflow_2fcore_2flib_2fcore_2ferror_5fcodes_2eproto diff --git a/linux/include/tensorflow/core/lib/core/error_codes.pb_text-impl.h b/linux/include/tensorflow/core/lib/core/error_codes.pb_text-impl.h deleted file mode 100755 index ceb500b84..000000000 --- a/linux/include/tensorflow/core/lib/core/error_codes.pb_text-impl.h +++ /dev/null @@ -1,20 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_lib_core_error_codes_proto_IMPL_H_ -#define tensorflow_core_lib_core_error_codes_proto_IMPL_H_ - -#include "tensorflow/core/lib/core/error_codes.pb.h" -#include "tensorflow/core/lib/core/error_codes.pb_text.h" -#include "tensorflow/core/lib/strings/proto_text_util.h" -#include "tensorflow/core/lib/strings/scanner.h" - -namespace tensorflow { -namespace error { - -namespace internal { - -} // namespace internal - -} // namespace error -} // namespace tensorflow - -#endif // tensorflow_core_lib_core_error_codes_proto_IMPL_H_ diff --git a/linux/include/tensorflow/core/lib/core/error_codes.pb_text.h b/linux/include/tensorflow/core/lib/core/error_codes.pb_text.h deleted file mode 100755 index db9471f95..000000000 --- a/linux/include/tensorflow/core/lib/core/error_codes.pb_text.h +++ /dev/null @@ -1,20 +0,0 @@ -// GENERATED FILE - DO NOT MODIFY -#ifndef tensorflow_core_lib_core_error_codes_proto_H_ -#define tensorflow_core_lib_core_error_codes_proto_H_ - -#include "tensorflow/core/lib/core/error_codes.pb.h" -#include "tensorflow/core/platform/macros.h" -#include "tensorflow/core/platform/protobuf.h" -#include "tensorflow/core/platform/types.h" - -namespace tensorflow { -namespace error { - -// Enum text output for tensorflow.error.Code -const char* EnumName_Code( - ::tensorflow::error::Code value); - -} // namespace error -} // namespace tensorflow - -#endif // tensorflow_core_lib_core_error_codes_proto_H_ diff --git a/linux/include/tensorflow/core/profiler/profile.pb.h b/linux/include/tensorflow/core/profiler/profile.pb.h deleted file mode 100755 index 5f1755390..000000000 --- a/linux/include/tensorflow/core/profiler/profile.pb.h +++ /dev/null @@ -1,2170 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: tensorflow/core/profiler/profile.proto - -#ifndef PROTOBUF_INCLUDED_tensorflow_2fcore_2fprofiler_2fprofile_2eproto -#define PROTOBUF_INCLUDED_tensorflow_2fcore_2fprofiler_2fprofile_2eproto - -#include - -#include - -#if GOOGLE_PROTOBUF_VERSION < 3006000 -#error This file was generated by a newer version of protoc which is -#error incompatible with your Protocol Buffer headers. Please update -#error your headers. -#endif -#if 3006000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION -#error This file was generated by an older version of protoc which is -#error incompatible with your Protocol Buffer headers. Please -#error regenerate this file with a newer version of protoc. -#endif - -#include -#include -#include -#include -#include -#include -#include -#include -#include // IWYU pragma: export -#include // IWYU pragma: export -#include -// @@protoc_insertion_point(includes) -#define PROTOBUF_INTERNAL_EXPORT_protobuf_tensorflow_2fcore_2fprofiler_2fprofile_2eproto - -namespace protobuf_tensorflow_2fcore_2fprofiler_2fprofile_2eproto { -// Internal implementation detail -- do not use these members. -struct TableStruct { - static const ::google::protobuf::internal::ParseTableField entries[]; - static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; - static const ::google::protobuf::internal::ParseTable schema[8]; - static const ::google::protobuf::internal::FieldMetadata field_metadata[]; - static const ::google::protobuf::internal::SerializationTable serialization_table[]; - static const ::google::protobuf::uint32 offsets[]; -}; -void AddDescriptors(); -} // namespace protobuf_tensorflow_2fcore_2fprofiler_2fprofile_2eproto -namespace tensorflow { -namespace tfprof { -namespace pprof { -class Function; -class FunctionDefaultTypeInternal; -extern FunctionDefaultTypeInternal _Function_default_instance_; -class Label; -class LabelDefaultTypeInternal; -extern LabelDefaultTypeInternal _Label_default_instance_; -class Line; -class LineDefaultTypeInternal; -extern LineDefaultTypeInternal _Line_default_instance_; -class Location; -class LocationDefaultTypeInternal; -extern LocationDefaultTypeInternal _Location_default_instance_; -class Mapping; -class MappingDefaultTypeInternal; -extern MappingDefaultTypeInternal _Mapping_default_instance_; -class Profile; -class ProfileDefaultTypeInternal; -extern ProfileDefaultTypeInternal _Profile_default_instance_; -class Sample; -class SampleDefaultTypeInternal; -extern SampleDefaultTypeInternal _Sample_default_instance_; -class ValueType; -class ValueTypeDefaultTypeInternal; -extern ValueTypeDefaultTypeInternal _ValueType_default_instance_; -} // namespace pprof -} // namespace tfprof -} // namespace tensorflow -namespace google { -namespace protobuf { -template<> ::tensorflow::tfprof::pprof::Function* Arena::CreateMaybeMessage<::tensorflow::tfprof::pprof::Function>(Arena*); -template<> ::tensorflow::tfprof::pprof::Label* Arena::CreateMaybeMessage<::tensorflow::tfprof::pprof::Label>(Arena*); -template<> ::tensorflow::tfprof::pprof::Line* Arena::CreateMaybeMessage<::tensorflow::tfprof::pprof::Line>(Arena*); -template<> ::tensorflow::tfprof::pprof::Location* Arena::CreateMaybeMessage<::tensorflow::tfprof::pprof::Location>(Arena*); -template<> ::tensorflow::tfprof::pprof::Mapping* Arena::CreateMaybeMessage<::tensorflow::tfprof::pprof::Mapping>(Arena*); -template<> ::tensorflow::tfprof::pprof::Profile* Arena::CreateMaybeMessage<::tensorflow::tfprof::pprof::Profile>(Arena*); -template<> ::tensorflow::tfprof::pprof::Sample* Arena::CreateMaybeMessage<::tensorflow::tfprof::pprof::Sample>(Arena*); -template<> ::tensorflow::tfprof::pprof::ValueType* Arena::CreateMaybeMessage<::tensorflow::tfprof::pprof::ValueType>(Arena*); -} // namespace protobuf -} // namespace google -namespace tensorflow { -namespace tfprof { -namespace pprof { - -// =================================================================== - -class Profile : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.tfprof.pprof.Profile) */ { - public: - Profile(); - virtual ~Profile(); - - Profile(const Profile& from); - - inline Profile& operator=(const Profile& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Profile(Profile&& from) noexcept - : Profile() { - *this = ::std::move(from); - } - - inline Profile& operator=(Profile&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const Profile& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Profile* internal_default_instance() { - return reinterpret_cast( - &_Profile_default_instance_); - } - static constexpr int kIndexInFileMessages = - 0; - - void Swap(Profile* other); - friend void swap(Profile& a, Profile& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Profile* New() const final { - return CreateMaybeMessage(NULL); - } - - Profile* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Profile& from); - void MergeFrom(const Profile& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Profile* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated .tensorflow.tfprof.pprof.ValueType sample_type = 1; - int sample_type_size() const; - void clear_sample_type(); - static const int kSampleTypeFieldNumber = 1; - ::tensorflow::tfprof::pprof::ValueType* mutable_sample_type(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::tfprof::pprof::ValueType >* - mutable_sample_type(); - const ::tensorflow::tfprof::pprof::ValueType& sample_type(int index) const; - ::tensorflow::tfprof::pprof::ValueType* add_sample_type(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::tfprof::pprof::ValueType >& - sample_type() const; - - // repeated .tensorflow.tfprof.pprof.Sample sample = 2; - int sample_size() const; - void clear_sample(); - static const int kSampleFieldNumber = 2; - ::tensorflow::tfprof::pprof::Sample* mutable_sample(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::tfprof::pprof::Sample >* - mutable_sample(); - const ::tensorflow::tfprof::pprof::Sample& sample(int index) const; - ::tensorflow::tfprof::pprof::Sample* add_sample(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::tfprof::pprof::Sample >& - sample() const; - - // repeated .tensorflow.tfprof.pprof.Mapping mapping = 3; - int mapping_size() const; - void clear_mapping(); - static const int kMappingFieldNumber = 3; - ::tensorflow::tfprof::pprof::Mapping* mutable_mapping(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::tfprof::pprof::Mapping >* - mutable_mapping(); - const ::tensorflow::tfprof::pprof::Mapping& mapping(int index) const; - ::tensorflow::tfprof::pprof::Mapping* add_mapping(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::tfprof::pprof::Mapping >& - mapping() const; - - // repeated .tensorflow.tfprof.pprof.Location location = 4; - int location_size() const; - void clear_location(); - static const int kLocationFieldNumber = 4; - ::tensorflow::tfprof::pprof::Location* mutable_location(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::tfprof::pprof::Location >* - mutable_location(); - const ::tensorflow::tfprof::pprof::Location& location(int index) const; - ::tensorflow::tfprof::pprof::Location* add_location(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::tfprof::pprof::Location >& - location() const; - - // repeated .tensorflow.tfprof.pprof.Function function = 5; - int function_size() const; - void clear_function(); - static const int kFunctionFieldNumber = 5; - ::tensorflow::tfprof::pprof::Function* mutable_function(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::tfprof::pprof::Function >* - mutable_function(); - const ::tensorflow::tfprof::pprof::Function& function(int index) const; - ::tensorflow::tfprof::pprof::Function* add_function(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::tfprof::pprof::Function >& - function() const; - - // repeated string string_table = 6; - int string_table_size() const; - void clear_string_table(); - static const int kStringTableFieldNumber = 6; - const ::std::string& string_table(int index) const; - ::std::string* mutable_string_table(int index); - void set_string_table(int index, const ::std::string& value); - #if LANG_CXX11 - void set_string_table(int index, ::std::string&& value); - #endif - void set_string_table(int index, const char* value); - void set_string_table(int index, const char* value, size_t size); - ::std::string* add_string_table(); - void add_string_table(const ::std::string& value); - #if LANG_CXX11 - void add_string_table(::std::string&& value); - #endif - void add_string_table(const char* value); - void add_string_table(const char* value, size_t size); - const ::google::protobuf::RepeatedPtrField< ::std::string>& string_table() const; - ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_string_table(); - - // repeated int64 comment = 13; - int comment_size() const; - void clear_comment(); - static const int kCommentFieldNumber = 13; - ::google::protobuf::int64 comment(int index) const; - void set_comment(int index, ::google::protobuf::int64 value); - void add_comment(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - comment() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_comment(); - - // .tensorflow.tfprof.pprof.ValueType period_type = 11; - bool has_period_type() const; - void clear_period_type(); - static const int kPeriodTypeFieldNumber = 11; - private: - const ::tensorflow::tfprof::pprof::ValueType& _internal_period_type() const; - public: - const ::tensorflow::tfprof::pprof::ValueType& period_type() const; - ::tensorflow::tfprof::pprof::ValueType* release_period_type(); - ::tensorflow::tfprof::pprof::ValueType* mutable_period_type(); - void set_allocated_period_type(::tensorflow::tfprof::pprof::ValueType* period_type); - - // int64 drop_frames = 7; - void clear_drop_frames(); - static const int kDropFramesFieldNumber = 7; - ::google::protobuf::int64 drop_frames() const; - void set_drop_frames(::google::protobuf::int64 value); - - // int64 keep_frames = 8; - void clear_keep_frames(); - static const int kKeepFramesFieldNumber = 8; - ::google::protobuf::int64 keep_frames() const; - void set_keep_frames(::google::protobuf::int64 value); - - // int64 time_nanos = 9; - void clear_time_nanos(); - static const int kTimeNanosFieldNumber = 9; - ::google::protobuf::int64 time_nanos() const; - void set_time_nanos(::google::protobuf::int64 value); - - // int64 duration_nanos = 10; - void clear_duration_nanos(); - static const int kDurationNanosFieldNumber = 10; - ::google::protobuf::int64 duration_nanos() const; - void set_duration_nanos(::google::protobuf::int64 value); - - // int64 period = 12; - void clear_period(); - static const int kPeriodFieldNumber = 12; - ::google::protobuf::int64 period() const; - void set_period(::google::protobuf::int64 value); - - // int64 default_sample_type = 14; - void clear_default_sample_type(); - static const int kDefaultSampleTypeFieldNumber = 14; - ::google::protobuf::int64 default_sample_type() const; - void set_default_sample_type(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:tensorflow.tfprof.pprof.Profile) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::tfprof::pprof::ValueType > sample_type_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::tfprof::pprof::Sample > sample_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::tfprof::pprof::Mapping > mapping_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::tfprof::pprof::Location > location_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::tfprof::pprof::Function > function_; - ::google::protobuf::RepeatedPtrField< ::std::string> string_table_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > comment_; - mutable int _comment_cached_byte_size_; - ::tensorflow::tfprof::pprof::ValueType* period_type_; - ::google::protobuf::int64 drop_frames_; - ::google::protobuf::int64 keep_frames_; - ::google::protobuf::int64 time_nanos_; - ::google::protobuf::int64 duration_nanos_; - ::google::protobuf::int64 period_; - ::google::protobuf::int64 default_sample_type_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fprofiler_2fprofile_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class ValueType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.tfprof.pprof.ValueType) */ { - public: - ValueType(); - virtual ~ValueType(); - - ValueType(const ValueType& from); - - inline ValueType& operator=(const ValueType& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - ValueType(ValueType&& from) noexcept - : ValueType() { - *this = ::std::move(from); - } - - inline ValueType& operator=(ValueType&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const ValueType& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const ValueType* internal_default_instance() { - return reinterpret_cast( - &_ValueType_default_instance_); - } - static constexpr int kIndexInFileMessages = - 1; - - void Swap(ValueType* other); - friend void swap(ValueType& a, ValueType& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline ValueType* New() const final { - return CreateMaybeMessage(NULL); - } - - ValueType* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const ValueType& from); - void MergeFrom(const ValueType& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(ValueType* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // int64 type = 1; - void clear_type(); - static const int kTypeFieldNumber = 1; - ::google::protobuf::int64 type() const; - void set_type(::google::protobuf::int64 value); - - // int64 unit = 2; - void clear_unit(); - static const int kUnitFieldNumber = 2; - ::google::protobuf::int64 unit() const; - void set_unit(::google::protobuf::int64 value); - - // @@protoc_insertion_point(class_scope:tensorflow.tfprof.pprof.ValueType) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::int64 type_; - ::google::protobuf::int64 unit_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fprofiler_2fprofile_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Sample : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.tfprof.pprof.Sample) */ { - public: - Sample(); - virtual ~Sample(); - - Sample(const Sample& from); - - inline Sample& operator=(const Sample& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Sample(Sample&& from) noexcept - : Sample() { - *this = ::std::move(from); - } - - inline Sample& operator=(Sample&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const Sample& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Sample* internal_default_instance() { - return reinterpret_cast( - &_Sample_default_instance_); - } - static constexpr int kIndexInFileMessages = - 2; - - void Swap(Sample* other); - friend void swap(Sample& a, Sample& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Sample* New() const final { - return CreateMaybeMessage(NULL); - } - - Sample* New(::google::protobuf::Arena* arena) const final { - return CreateMaybeMessage(arena); - } - void CopyFrom(const ::google::protobuf::Message& from) final; - void MergeFrom(const ::google::protobuf::Message& from) final; - void CopyFrom(const Sample& from); - void MergeFrom(const Sample& from); - void Clear() final; - bool IsInitialized() const final; - - size_t ByteSizeLong() const final; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) final; - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const final; - ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( - bool deterministic, ::google::protobuf::uint8* target) const final; - int GetCachedSize() const final { return _cached_size_.Get(); } - - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const final; - void InternalSwap(Sample* other); - private: - inline ::google::protobuf::Arena* GetArenaNoVirtual() const { - return NULL; - } - inline void* MaybeArenaPtr() const { - return NULL; - } - public: - - ::google::protobuf::Metadata GetMetadata() const final; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // repeated uint64 location_id = 1; - int location_id_size() const; - void clear_location_id(); - static const int kLocationIdFieldNumber = 1; - ::google::protobuf::uint64 location_id(int index) const; - void set_location_id(int index, ::google::protobuf::uint64 value); - void add_location_id(::google::protobuf::uint64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& - location_id() const; - ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* - mutable_location_id(); - - // repeated int64 value = 2; - int value_size() const; - void clear_value(); - static const int kValueFieldNumber = 2; - ::google::protobuf::int64 value(int index) const; - void set_value(int index, ::google::protobuf::int64 value); - void add_value(::google::protobuf::int64 value); - const ::google::protobuf::RepeatedField< ::google::protobuf::int64 >& - value() const; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 >* - mutable_value(); - - // repeated .tensorflow.tfprof.pprof.Label label = 3; - int label_size() const; - void clear_label(); - static const int kLabelFieldNumber = 3; - ::tensorflow::tfprof::pprof::Label* mutable_label(int index); - ::google::protobuf::RepeatedPtrField< ::tensorflow::tfprof::pprof::Label >* - mutable_label(); - const ::tensorflow::tfprof::pprof::Label& label(int index) const; - ::tensorflow::tfprof::pprof::Label* add_label(); - const ::google::protobuf::RepeatedPtrField< ::tensorflow::tfprof::pprof::Label >& - label() const; - - // @@protoc_insertion_point(class_scope:tensorflow.tfprof.pprof.Sample) - private: - - ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > location_id_; - mutable int _location_id_cached_byte_size_; - ::google::protobuf::RepeatedField< ::google::protobuf::int64 > value_; - mutable int _value_cached_byte_size_; - ::google::protobuf::RepeatedPtrField< ::tensorflow::tfprof::pprof::Label > label_; - mutable ::google::protobuf::internal::CachedSize _cached_size_; - friend struct ::protobuf_tensorflow_2fcore_2fprofiler_2fprofile_2eproto::TableStruct; -}; -// ------------------------------------------------------------------- - -class Label : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tensorflow.tfprof.pprof.Label) */ { - public: - Label(); - virtual ~Label(); - - Label(const Label& from); - - inline Label& operator=(const Label& from) { - CopyFrom(from); - return *this; - } - #if LANG_CXX11 - Label(Label&& from) noexcept - : Label() { - *this = ::std::move(from); - } - - inline Label& operator=(Label&& from) noexcept { - if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { - if (this != &from) InternalSwap(&from); - } else { - CopyFrom(from); - } - return *this; - } - #endif - static const ::google::protobuf::Descriptor* descriptor(); - static const Label& default_instance(); - - static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY - static inline const Label* internal_default_instance() { - return reinterpret_cast( - &_Label_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - void Swap(Label* other); - friend void swap(Label& a, Label& b) { - a.Swap(&b); - } - - // implements Message ---------------------------------------------- - - inline Label* New() const final { - return CreateMaybeMessage