Home
last modified time | relevance | path

Searched refs:InvalidArgument (Results 1 – 25 of 898) sorted by relevance

12345678910>>...36

/external/tensorflow/tensorflow/compiler/xla/service/
Dshape_inference.cc54 return InvalidArgument("Expected array argument for %s, but got %s.", in ExpectArray()
65 return InvalidArgument( in VerifyReducerShape()
75 return InvalidArgument( in VerifyReducerShape()
83 return InvalidArgument( in VerifyReducerShape()
92 return InvalidArgument( in VerifyReducerShape()
100 return InvalidArgument( in VerifyReducerShape()
113 return InvalidArgument( in VerifyReducerShape()
122 return InvalidArgument( in VerifyReducerShape()
133 return InvalidArgument( in VerifyReducerShape()
147 return InvalidArgument( in VerifyReducerShape()
[all …]
/external/tensorflow/tensorflow/contrib/boosted_trees/lib/utils/
Dbatch_features.cc49 errors::InvalidArgument("Dense float feature must be a matrix.")); in Initialize()
52 errors::InvalidArgument( in Initialize()
57 errors::InvalidArgument( in Initialize()
68 errors::InvalidArgument("Inconsistent number of sparse float features.")); in Initialize()
79 errors::InvalidArgument( in Initialize()
83 errors::InvalidArgument( in Initialize()
87 errors::InvalidArgument( in Initialize()
92 errors::InvalidArgument( in Initialize()
96 errors::InvalidArgument( in Initialize()
112 errors::InvalidArgument("Inconsistent number of sparse int features.")); in Initialize()
[all …]
Dbatch_features_test.cc28 using errors::InvalidArgument;
44 InvalidArgument("Dense float feature must be a matrix."); in TEST_F()
53 InvalidArgument("Dense float vector must have batch_size rows: 8 vs. 2"); in TEST_F()
61 auto expected_error = InvalidArgument( in TEST_F()
73 InvalidArgument("Sparse float feature indices must be a matrix."); in TEST_F()
86 InvalidArgument("Sparse float feature values must be a vector."); in TEST_F()
99 InvalidArgument("Sparse float feature shape must be a vector."); in TEST_F()
112 InvalidArgument("Sparse float feature column must be two-dimensional."); in TEST_F()
124 auto expected_error = InvalidArgument( in TEST_F()
138 InvalidArgument("Sparse int feature indices must be a matrix."); in TEST_F()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Ddecode_csv_op.cc34 errors::InvalidArgument("Out type too large")); in DecodeCSVOp()
40 errors::InvalidArgument("select_cols should match output size")); in DecodeCSVOp()
44 errors::InvalidArgument( in DecodeCSVOp()
49 errors::InvalidArgument("select_cols should be non-negative indices")); in DecodeCSVOp()
51 errors::InvalidArgument("field_delim should be only 1 char")); in DecodeCSVOp()
65 errors::InvalidArgument( in Compute()
68 errors::InvalidArgument( in Compute()
89 errors::InvalidArgument("Expect ", out_type_.size(), in Compute()
102 errors::InvalidArgument( in Compute()
110 errors::InvalidArgument( in Compute()
[all …]
Ddecode_image_op.cc83 errors::InvalidArgument("Bad op type ", type_string())); in DecodeImageOp()
93 errors::InvalidArgument("channels must be 0, 1, 3, or 4, got ", in DecodeImageOp()
104 errors::InvalidArgument("Type must be uint8 or uint16, got ", dt)); in DecodeImageOp()
121 errors::InvalidArgument("ratio must be 1, 2, 4, or 8, got ", in DecodeImageOp()
138 errors::InvalidArgument("dct_method must be one of " in DecodeImageOp()
151 errors::InvalidArgument("contents must be scalar, got shape ", in Compute()
160 errors::InvalidArgument("Expected image (JPEG, PNG, or GIF), got ", in Compute()
163 errors::InvalidArgument( in Compute()
167 errors::InvalidArgument(FileFormatString(magic, input), in Compute()
188 errors::InvalidArgument( in DecodeJpeg()
[all …]
Dimage_resizer_state.h82 errors::InvalidArgument("If half_pixel_centers is True, " in ValidateAndCalculateOutputSize()
85 errors::InvalidArgument("input must be 4-dimensional", in ValidateAndCalculateOutputSize()
89 errors::InvalidArgument("shape_t must be 1-dimensional", in ValidateAndCalculateOutputSize()
92 errors::InvalidArgument("shape_t must have two elements", in ValidateAndCalculateOutputSize()
103 errors::InvalidArgument("input sizes must be between 0 and max int32")); in ValidateAndCalculateOutputSize()
109 errors::InvalidArgument("output dimensions must be positive")); in ValidateAndCalculateOutputSize()
112 errors::InvalidArgument("image must have at least one channel")); in ValidateAndCalculateOutputSize()
115 errors::InvalidArgument("input image must be of non-zero size")); in ValidateAndCalculateOutputSize()
123 errors::InvalidArgument( in ValidateAndCalculateOutputSize()
128 errors::InvalidArgument( in ValidateAndCalculateOutputSize()
[all …]
Dlinalg_ops_common.cc36 errors::InvalidArgument("Expected a single input matrix, got %d.", in ValidateSingleMatrix()
39 errors::InvalidArgument("Input must be a matrix.")); in ValidateSingleMatrix()
47 errors::InvalidArgument("Expected a single input matrix, got %d.", in ValidateSingleSquareMatrix()
50 errors::InvalidArgument("Input matrix must be square.")); in ValidateSingleSquareMatrix()
58 errors::InvalidArgument("Expected two input matrices, got %d.", in ValidateSolver()
61 errors::InvalidArgument("First input (lhs) must be a matrix.")); in ValidateSolver()
63 errors::InvalidArgument("Second input (rhs) must be a matrix.")); in ValidateSolver()
67 errors::InvalidArgument("Input matrix and rhs are incompatible.")); in ValidateSolver()
75 errors::InvalidArgument("Expected two input matrices, got %d.", in ValidateSquareSolver()
79 errors::InvalidArgument("First input (lhs) must be a square matrix.")); in ValidateSquareSolver()
[all …]
Dtraining_ops.cc481 errors::InvalidArgument("alpha is not a scalar: ", in Compute()
486 errors::InvalidArgument("var and delta do not have the same shape", in Compute()
523 errors::InvalidArgument("alpha is not a scalar: ", in Compute()
528 errors::InvalidArgument("var and delta do not have the same shape", in Compute()
660 errors::InvalidArgument("lr is not a scalar: ", in DoValidate()
664 errors::InvalidArgument("rho is not a scalar: ", in DoValidate()
668 errors::InvalidArgument("epsilon is not a scalar: ", in DoValidate()
673 errors::InvalidArgument("var and accum do not have the same shape", in DoValidate()
678 errors::InvalidArgument("var and grad do not have the same shape", in DoValidate()
802 errors::InvalidArgument("var and accum_grad do not have the same shape", in DoCompute()
[all …]
Dlist_kernels.h95 errors::InvalidArgument( in Compute()
100 errors::InvalidArgument( in Compute()
111 errors::InvalidArgument("Tried to stack elements of an empty ", in Compute()
131 errors::InvalidArgument( in Compute()
193 errors::InvalidArgument("Invalid data types; op elements ", in Compute()
199 errors::InvalidArgument("Trying to access element ", index, in Compute()
228 errors::InvalidArgument("Trying to read an uninitialized tensor but ", in Compute()
258 errors::InvalidArgument("Invalid data types; op elements ", in Compute()
264 errors::InvalidArgument("Trying to pop from an empty list.")); in Compute()
276 errors::InvalidArgument("Trying to read an uninitialized tensor but ", in Compute()
[all …]
Ddeserialize_sparse_variant_op.cc40 errors::InvalidArgument("Serialized sparse should have non-zero rank ", in Compute()
43 errors::InvalidArgument( in Compute()
79 errors::InvalidArgument( in Compute()
138 errors::InvalidArgument( in Compute()
283 return errors::InvalidArgument( in GetAndValidateSparseTensorShape()
287 return errors::InvalidArgument( in GetAndValidateSparseTensorShape()
293 return errors::InvalidArgument( in GetAndValidateSparseTensorShape()
309 return errors::InvalidArgument( in GetAndValidateSparseTensorIndicesAndValues()
313 return errors::InvalidArgument( in GetAndValidateSparseTensorIndicesAndValues()
319 return errors::InvalidArgument( in GetAndValidateSparseTensorIndicesAndValues()
[all …]
Dnon_max_suppression_op.cc46 errors::InvalidArgument("scores must be 1-D", in CheckScoreSizes()
49 errors::InvalidArgument("scores has incompatible shape")); in CheckScoreSizes()
57 errors::InvalidArgument("overlaps must be 2-D", in ParseAndCheckOverlapSizes()
62 errors::InvalidArgument("overlaps must be square", in ParseAndCheckOverlapSizes()
70 errors::InvalidArgument("boxes must be 2-D", in ParseAndCheckBoxSizes()
74 errors::InvalidArgument("boxes must have 4 columns")); in ParseAndCheckBoxSizes()
82 errors::InvalidArgument("scores must be 3-D", in CheckCombinedNMSScoreSizes()
85 errors::InvalidArgument("scores has incompatible shape")); in CheckCombinedNMSScoreSizes()
94 errors::InvalidArgument("boxes must be 4-D", in ParseAndCheckCombinedNMSBoxSizes()
99 errors::InvalidArgument( in ParseAndCheckCombinedNMSBoxSizes()
[all …]
Dctc_loss_op.cc60 errors::InvalidArgument("inputs is not a 3-Tensor")); in Compute()
62 errors::InvalidArgument("sequence_length is not a vector")); in Compute()
64 errors::InvalidArgument("labels_indices is not a matrix")); in Compute()
66 errors::InvalidArgument("labels_values is not a vector")); in Compute()
74 errors::InvalidArgument("num_classes cannot exceed max int")); in Compute()
79 errors::InvalidArgument("len(sequence_length) != batch_size. ", in Compute()
85 errors::InvalidArgument( in Compute()
92 errors::InvalidArgument("batch_size must not be 0")); in Compute()
110 errors::InvalidArgument("label SparseTensor is not valid: ", in Compute()
117 errors::InvalidArgument("labels batch index must be between ", in Compute()
[all …]
Dsample_distorted_bounding_box_op.cc206 errors::InvalidArgument("Min object covered must be non-negative: ", in SampleDistortedBoundingBoxV2Op()
216 errors::InvalidArgument( in SampleDistortedBoundingBoxV2Op()
221 errors::InvalidArgument("Aspect ratio range must be non-negative: [", in SampleDistortedBoundingBoxV2Op()
228 errors::InvalidArgument("Area range field must specify 2 dimensions")); in SampleDistortedBoundingBoxV2Op()
232 errors::InvalidArgument("Area range must be non-negative: [", in SampleDistortedBoundingBoxV2Op()
236 errors::InvalidArgument( in SampleDistortedBoundingBoxV2Op()
242 errors::InvalidArgument("Max attempts must be non-negative: ", in SampleDistortedBoundingBoxV2Op()
250 errors::InvalidArgument("image_size must be 1-dimensional", in Compute()
253 errors::InvalidArgument("image_size must contain 3 elements", in Compute()
261 errors::InvalidArgument("image height cannot be >= int32 max")); in Compute()
[all …]
Ddecode_bmp_op.cc39 errors::InvalidArgument("channels must be 0, 1, 3 or 4, got ", in DecodeBmpOp()
53 errors::InvalidArgument("contents must be scalar, got shape ", in Compute()
60 errors::InvalidArgument("Incomplete bmp content, requires at " in Compute()
81 errors::InvalidArgument( in Compute()
91 errors::InvalidArgument( in Compute()
95 errors::InvalidArgument("Width must be positive")); in Compute()
97 errors::InvalidArgument("Height must be nonzero")); in Compute()
99 errors::InvalidArgument("header size must be nonnegative")); in Compute()
107 errors::InvalidArgument( in Compute()
124 errors::InvalidArgument("Incomplete bmp content, requires at least ", in Compute()
Dreverse_sequence_op.cc57 errors::InvalidArgument("batch_dim == seq_dim == ", seq_dim)); in CheckErrors()
59 errors::InvalidArgument("seq_dim must be < input.dims()", "( ", in CheckErrors()
62 errors::InvalidArgument("batch_dim must be < input.dims()", "( ", in CheckErrors()
65 errors::InvalidArgument("len(seq_lens) != input.dims(", batch_dim, in CheckErrors()
71 errors::InvalidArgument("seq_lens(", d, ") < 0")); in CheckErrors()
73 errors::InvalidArgument("seq_lens(", d, ") > input.dims(", in CheckErrors()
83 errors::InvalidArgument("batch_dim == seq_dim == ", seq_dim)); in CheckErrorsGPU()
85 errors::InvalidArgument("seq_dim must be < input.dims()", "( ", in CheckErrorsGPU()
88 errors::InvalidArgument("batch_dim must be < input.dims()", "( ", in CheckErrorsGPU()
92 errors::InvalidArgument("len(seq_lens) != input.dims(", batch_dim, in CheckErrorsGPU()
[all …]
Davgpooling_op.cc56 errors::InvalidArgument("Invalid data format")); in AvgPoolingOp()
59 errors::InvalidArgument("Default AvgPoolingOp only supports NHWC ", in AvgPoolingOp()
64 errors::InvalidArgument("Sliding window ksize field must " in AvgPoolingOp()
68 errors::InvalidArgument("Sliding window stride field must " in AvgPoolingOp()
89 errors::InvalidArgument("tensor_in must be 4-dimensional")); in Compute()
124 errors::InvalidArgument("Invalid data format")); in AvgPoolingOp()
127 errors::InvalidArgument("Sliding window ksize field must " in AvgPoolingOp()
131 errors::InvalidArgument("Sliding window stride field must " in AvgPoolingOp()
154 errors::InvalidArgument("tensor_in must be 4-dimensional")); in Compute()
222 errors::InvalidArgument("Invalid data format")); in AvgPoolingGradOp()
[all …]
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
Dtraining_ops.cc41 errors::InvalidArgument("alpha is not a scalar: ", in Compile()
47 errors::InvalidArgument("var and delta do not have the same shape: ", in Compile()
86 errors::InvalidArgument("alpha is not a scalar: ", in Compile()
90 errors::InvalidArgument("l1 is not a scalar: ", in Compile()
94 errors::InvalidArgument("l2 is not a scalar: ", in Compile()
99 errors::InvalidArgument("var and delta do not have the same shape: ", in Compile()
132 errors::InvalidArgument( in Compile()
138 errors::InvalidArgument("lr is not a scalar: ", in Compile()
143 errors::InvalidArgument( in Compile()
149 errors::InvalidArgument("momentum is not a scalar: ", in Compile()
[all …]
Dpooling_ops.cc51 errors::InvalidArgument("Sliding window ksize field must " in PoolingOp()
56 errors::InvalidArgument("Sliding window stride field must " in PoolingOp()
82 return errors::InvalidArgument("ksize must be a vector, not shape ", in GetKernelSize()
86 return errors::InvalidArgument( in GetKernelSize()
106 return errors::InvalidArgument("stride must be a vector, not shape ", in GetStride()
110 return errors::InvalidArgument( in GetStride()
158 errors::InvalidArgument("Invalid data format")); in MaxPoolOp()
172 errors::InvalidArgument("Input to ", type_string(), in Compile()
211 errors::InvalidArgument("Invalid data format")); in AvgPoolOp()
225 errors::InvalidArgument("Input to ", type_string(), in Compile()
[all …]
Dsequence_ops.cc44 return errors::InvalidArgument("Requires delta != 0: ", delta); in CreateRangeTensor()
48 return errors::InvalidArgument( in CreateRangeTensor()
53 return errors::InvalidArgument( in CreateRangeTensor()
77 errors::InvalidArgument("start must be a scalar, not shape ", in Compile()
80 errors::InvalidArgument("limit must be a scalar, not shape ", in Compile()
83 errors::InvalidArgument("delta must be a scalar, not shape ", in Compile()
106 output = errors::InvalidArgument("Invalid type for Range ", in Compile()
129 errors::InvalidArgument("start must be a scalar, not shape ", in Compile()
132 errors::InvalidArgument("stop must be a scalar, not shape ", in Compile()
135 errors::InvalidArgument("num must be a scalar, not shape ", in Compile()
[all …]
/external/tensorflow/tensorflow/core/lib/wav/
Dwav_io.cc91 return errors::InvalidArgument("Negative offsets are not allowed: ", in IncrementOffset()
95 return errors::InvalidArgument("Initial offset is outside data range: ", in IncrementOffset()
100 return errors::InvalidArgument("Data too short when trying to read string"); in IncrementOffset()
105 return errors::InvalidArgument("Offset too large, overflowed: ", in IncrementOffset()
118 return errors::InvalidArgument("Header mismatch: Expected ", expected_text, in ExpectText()
145 return errors::InvalidArgument("audio is null"); in EncodeAudioAsS16LEWav()
148 return errors::InvalidArgument("wav_string is null"); in EncodeAudioAsS16LEWav()
151 return errors::InvalidArgument("sample_rate must be in (0, 2^32), got: ", in EncodeAudioAsS16LEWav()
155 return errors::InvalidArgument("num_channels must be in (0, 2^16), got: ", in EncodeAudioAsS16LEWav()
159 return errors::InvalidArgument("num_frames must be positive."); in EncodeAudioAsS16LEWav()
[all …]
/external/tensorflow/tensorflow/contrib/ffmpeg/
Dencode_audio_op.cc66 errors::InvalidArgument("EncodeAudio requires exactly four inputs.")); in Compute()
74 errors::InvalidArgument( in Compute()
79 errors::InvalidArgument( in Compute()
83 errors::InvalidArgument( in Compute()
88 errors::InvalidArgument( in Compute()
93 errors::InvalidArgument( in Compute()
104 errors::InvalidArgument( in Compute()
107 errors::InvalidArgument( in Compute()
112 errors::InvalidArgument("bits_per_second must be positive, but got: ", in Compute()
162 errors::InvalidArgument("file_format arg must be \"wav\".")); in EncodeAudioOp()
[all …]
Ddecode_audio_op.cc112 errors::InvalidArgument("DecodeAudio requires exactly four inputs.")); in Compute()
120 errors::InvalidArgument( in Compute()
124 errors::InvalidArgument( in Compute()
129 errors::InvalidArgument( in Compute()
134 errors::InvalidArgument( in Compute()
149 errors::InvalidArgument("file_format must be one of {", in Compute()
153 errors::InvalidArgument( in Compute()
158 errors::InvalidArgument("channel_count must be positive, but got: ", in Compute()
187 return errors::InvalidArgument( in __anon7cbea4000202()
228 errors::InvalidArgument("file_format must be one of {", in DecodeAudioOp()
[all …]
/external/tensorflow/tensorflow/contrib/rnn/kernels/
Dgru_ops.cc60 errors::InvalidArgument("h_prev.dims(0) != batch_size: ", in Compute()
64 errors::InvalidArgument( in Compute()
70 errors::InvalidArgument( in Compute()
75 errors::InvalidArgument("w_ru.dim_size(1) != cell_size * 2: ", in Compute()
81 errors::InvalidArgument( in Compute()
86 errors::InvalidArgument( in Compute()
92 errors::InvalidArgument("b_ru.dim_size(0) != cell_size * 2: ", in Compute()
97 errors::InvalidArgument("Rank of b_ru must be 1", in Compute()
101 errors::InvalidArgument( in Compute()
105 errors::InvalidArgument("Rank of b_c must be 1", in Compute()
[all …]
/external/tensorflow/tensorflow/contrib/nearest_neighbor/kernels/
Dhyperplane_lsh_probes.cc26 using errors::InvalidArgument;
47 InvalidArgument("Need a two-dimensional products tensor, got ", in Compute()
52 InvalidArgument("Need a scalar num_tables tensor, got ", in Compute()
56 InvalidArgument("num_tables must be at least 1 but got ", in Compute()
59 InvalidArgument("Need num_tables <= 1000, got ", num_tables, in Compute()
66 InvalidArgument("Need a scalar num_hyperplanes_per_table " in Compute()
73 InvalidArgument("num_hyperplanes_per_table must be at least 1 " in Compute()
77 InvalidArgument("Need num_hyperplanes_per_table <= 30, got ", in Compute()
85 InvalidArgument("Need a scalar num_probes tensor, got ", in Compute()
89 InvalidArgument("num_probes must be at least 1.")); in Compute()
[all …]
/external/tensorflow/tensorflow/core/util/
Dexample_proto_helper.cc37 return errors::InvalidArgument("Received input dtype: ", in CheckValidType()
55 return errors::InvalidArgument("Invalid input dtype: ", in CheckTypesMatch()
72 return errors::InvalidArgument( in FeatureDenseCopy()
85 return errors::InvalidArgument( in FeatureDenseCopy()
98 return errors::InvalidArgument( in FeatureDenseCopy()
111 return errors::InvalidArgument("Invalid input dtype: ", in FeatureDenseCopy()
239 return errors::InvalidArgument("Name: ", example_name, ", Feature: ", key, in SingleExampleProtoToTensors()
250 return errors::InvalidArgument("Name: ", example_name, in SingleExampleProtoToTensors()
282 return errors::InvalidArgument("Name: ", example_name, in SingleExampleProtoToTensors()
331 return errors::InvalidArgument( in BatchExampleProtoToTensors()
[all …]

12345678910>>...36