diff --git a/backend/VERSION b/backend/VERSION index 7c1886bb9..2cfabea2f 100644 --- a/backend/VERSION +++ b/backend/VERSION @@ -1 +1 @@ -0.0.10 +0.0.11 diff --git a/backend/src/ffi.h b/backend/src/ffi.h deleted file mode 100644 index 68e9a1b25..000000000 --- a/backend/src/ffi.h +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2022 Joel Berkeley - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -extern "C" { - int sizeof_int(); - - void set_array_int(int* arr, int idx, int value); -} diff --git a/backend/src/tensorflow/compiler/xla/client/client_library.cpp b/backend/src/tensorflow/compiler/xla/client/client_library.cpp index 603a77e41..edfd0bdd0 100644 --- a/backend/src/tensorflow/compiler/xla/client/client_library.cpp +++ b/backend/src/tensorflow/compiler/xla/client/client_library.cpp @@ -16,8 +16,8 @@ limitations under the License. #include "tensorflow/compiler/xla/client/client_library.h" #include "tensorflow/compiler/xla/client/local_client.h" +#include "local_client.h" #include "../../../stream_executor/platform.h" -#include "client_library.h" extern "C" { LocalClient* ClientLibrary_GetOrCreateLocalClient( diff --git a/backend/src/tensorflow/compiler/xla/client/client_library.h b/backend/src/tensorflow/compiler/xla/client/client_library.h deleted file mode 100644 index fec135a4b..000000000 --- a/backend/src/tensorflow/compiler/xla/client/client_library.h +++ /dev/null @@ -1,22 +0,0 @@ -/* -Copyright 2022 Joel Berkeley - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -#include "local_client.h" - -extern "C" { - LocalClient* ClientLibrary_GetOrCreateLocalClient( - Platform* platform, int* allowed_devices, int allowed_devices_len - ); -} diff --git a/backend/src/tensorflow/compiler/xla/client/global_data.cpp b/backend/src/tensorflow/compiler/xla/client/global_data.cpp deleted file mode 100644 index e69de29bb..000000000 diff --git a/backend/src/tensorflow/compiler/xla/client/lib/arithmetic.h b/backend/src/tensorflow/compiler/xla/client/lib/arithmetic.h deleted file mode 100644 index 0cae0959c..000000000 --- a/backend/src/tensorflow/compiler/xla/client/lib/arithmetic.h +++ /dev/null @@ -1,21 +0,0 @@ -/* -Copyright 2022 Joel Berkeley - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -#include "../xla_builder.h" - -extern "C" { - XlaOp* ArgMax(XlaOp& input, int output_type, int axis); - XlaOp* ArgMin(XlaOp& input, int output_type, int axis); -} diff --git a/backend/src/tensorflow/compiler/xla/client/lib/constants.h b/backend/src/tensorflow/compiler/xla/client/lib/constants.h deleted file mode 100644 index 4b3365e92..000000000 --- a/backend/src/tensorflow/compiler/xla/client/lib/constants.h +++ /dev/null @@ -1,23 +0,0 @@ -/* -Copyright 2022 Joel Berkeley - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -#include "../xla_builder.h" - -extern "C" { - XlaOp* MinValue(XlaBuilder* builder, int type); - XlaOp* MinFiniteValue(XlaBuilder* builder, int type); - XlaOp* MaxValue(XlaBuilder* builder, int type); - XlaOp* MaxFiniteValue(XlaBuilder* builder, int type); -} diff --git a/backend/src/tensorflow/compiler/xla/client/lib/math.h b/backend/src/tensorflow/compiler/xla/client/lib/math.h deleted file mode 100644 index 229284c26..000000000 --- a/backend/src/tensorflow/compiler/xla/client/lib/math.h +++ /dev/null @@ -1,31 +0,0 @@ -/* -Copyright 2022 Joel Berkeley - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -#include "../xla_builder.h" - -extern "C" { - XlaOp* Square(XlaOp& x); - XlaOp* Reciprocal(XlaOp& x); - XlaOp* Acos(XlaOp& x); - XlaOp* Asin(XlaOp& x); - XlaOp* Atan(XlaOp& x); - XlaOp* Tan(XlaOp& x); - XlaOp* Acosh(XlaOp& x); - XlaOp* Asinh(XlaOp& x); - XlaOp* Atanh(XlaOp& x); - XlaOp* Cosh(XlaOp& x); - XlaOp* Sinh(XlaOp& x); - XlaOp* Erf(XlaOp& x); -} diff --git a/backend/src/tensorflow/compiler/xla/client/lib/matrix.h b/backend/src/tensorflow/compiler/xla/client/lib/matrix.h deleted file mode 100644 index 81b40ead4..000000000 --- a/backend/src/tensorflow/compiler/xla/client/lib/matrix.h +++ /dev/null @@ -1,22 +0,0 @@ -/* -Copyright 2022 Joel Berkeley - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -#include "../xla_builder.h" - -extern "C" { - XlaOp* IdentityMatrix(XlaBuilder* builder, int type, int m, int n); - XlaOp* GetMatrixDiagonal(XlaOp& x); - XlaOp* Triangle(XlaOp& x, int lower); -} diff --git a/backend/src/tensorflow/compiler/xla/client/lib/prng.cpp b/backend/src/tensorflow/compiler/xla/client/lib/prng.cpp index 48e450187..aa9237c9a 100644 --- a/backend/src/tensorflow/compiler/xla/client/lib/prng.cpp +++ b/backend/src/tensorflow/compiler/xla/client/lib/prng.cpp @@ -17,7 +17,6 @@ limitations under the License. #include "../../shape.h" #include "../xla_builder.h" -#include "prng.h" xla::BitGeneratorTy BitGenerator(int bit_generator) { xla::BitGeneratorTy bit_generator_; @@ -37,6 +36,15 @@ xla::BitGeneratorTy BitGenerator(int bit_generator) { } extern "C" { + struct RngOutput { + XlaOp* value; + XlaOp* state; + }; + + void delete_RngOutput(RngOutput* rngOutput) { + free(rngOutput); + } + RngOutput* UniformFloatingPointDistribution( XlaOp& key, XlaOp& initial_state, diff --git a/backend/src/tensorflow/compiler/xla/client/lib/prng.h b/backend/src/tensorflow/compiler/xla/client/lib/prng.h deleted file mode 100644 index cf5328ab0..000000000 --- a/backend/src/tensorflow/compiler/xla/client/lib/prng.h +++ /dev/null @@ -1,41 +0,0 @@ -/* -Copyright 2022 Joel Berkeley - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -#include "../../shape.h" -#include "../xla_builder.h" - -extern "C" { - struct RngOutput { - XlaOp* value; - XlaOp* state; - }; - - void delete_RngOutput(RngOutput* rngOutput) { - free(rngOutput); - } - - RngOutput* UniformFloatingPointDistribution( - XlaOp& key, - XlaOp& initial_state, - int bit_generator, - XlaOp& minval, - XlaOp& maxval, - Shape& shape - ); - - RngOutput* NormalFloatingPointDistribution( - XlaOp& key, XlaOp& initial_state, int bit_generator, Shape& shape - ); -} diff --git a/backend/src/tensorflow/compiler/xla/client/local_client.cpp b/backend/src/tensorflow/compiler/xla/client/local_client.cpp index 86623450a..1c10e219c 100644 --- a/backend/src/tensorflow/compiler/xla/client/local_client.cpp +++ b/backend/src/tensorflow/compiler/xla/client/local_client.cpp @@ -17,7 +17,9 @@ limitations under the License. #include "tensorflow/compiler/xla/client/local_client.h" #include "../literal.h" +#include "global_data.h" #include "local_client.h" +#include "xla_computation.h" extern "C" { GlobalData* LocalClient_TransferToServer(LocalClient& client, Literal& literal) { diff --git a/backend/src/tensorflow/compiler/xla/client/local_client.h b/backend/src/tensorflow/compiler/xla/client/local_client.h index 8dd80de45..19f69777f 100644 --- a/backend/src/tensorflow/compiler/xla/client/local_client.h +++ b/backend/src/tensorflow/compiler/xla/client/local_client.h @@ -13,19 +13,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -#include "../literal.h" -#include "global_data.h" -#include "xla_computation.h" - extern "C" { struct LocalClient; - - GlobalData* LocalClient_TransferToServer(LocalClient& client, Literal& literal); - - Literal* LocalClient_ExecuteAndTransfer( - LocalClient& client, - XlaComputation& computation, - GlobalData** arguments, - int arguments_len - ); } diff --git a/backend/src/tensorflow/compiler/xla/client/xla_builder.cpp b/backend/src/tensorflow/compiler/xla/client/xla_builder.cpp index e4baf9d4b..6d4ae213c 100644 --- a/backend/src/tensorflow/compiler/xla/client/xla_builder.cpp +++ b/backend/src/tensorflow/compiler/xla/client/xla_builder.cpp @@ -24,6 +24,7 @@ limitations under the License. #include "tensorflow/compiler/xla/xla_data.pb.h" #include "../literal.h" +#include "../shape.h" #include "../xla_data.pb.h" #include "xla_builder.h" #include "xla_computation.h" diff --git a/backend/src/tensorflow/compiler/xla/client/xla_builder.h b/backend/src/tensorflow/compiler/xla/client/xla_builder.h index bc1ac6a88..119bd84fd 100644 --- a/backend/src/tensorflow/compiler/xla/client/xla_builder.h +++ b/backend/src/tensorflow/compiler/xla/client/xla_builder.h @@ -17,164 +17,9 @@ limitations under the License. #include "tensorflow/compiler/xla/client/xla_builder.h" -#include "../literal.h" -#include "../xla_data.pb.h" -#include "xla_computation.h" - extern "C" { - /* - * - * - * XlaOp - * - * - */ - struct XlaOp; - int sizeof_XlaOp(); - void set_array_XlaOp(XlaOp* arr, int idx, XlaOp* op); - void XlaOp_delete(XlaOp* s); - - /* - * - * - * XlaBuilder - * - * - */ - struct XlaBuilder; - XlaBuilder* XlaBuilder_new(const char* computation_name); - void XlaBuilder_delete(XlaBuilder* s); - const char* XlaBuilder_name(XlaBuilder& s); - XlaBuilder* CreateSubBuilder(XlaBuilder& s, const char* computation_name); - XlaComputation* XlaBuilder_Build(XlaBuilder& s, XlaOp& root); - const char* XlaBuilder_OpToString(XlaBuilder& s, XlaOp& op); - - /* - * - * - * Free functions - * - * - */ - - XlaOp* Parameter(XlaBuilder& builder, int parameter_number, Shape& shape, const char* name); - XlaOp* ConstantLiteral(XlaBuilder& builder, Literal& data); - XlaOp* Broadcast(XlaOp& s, int* broadcast_sizes, int len); - - XlaOp* BroadcastInDim( - XlaOp& s, int* out_dim_size, int ods_len, int* broadcast_dimensions, int bcd_len - ); - - XlaOp* Reshape( - XlaOp& operand, int* dimensions, int dimensions_len, int* new_sizes, int new_sizes_len - ); - - XlaOp* Slice( - XlaOp& operand, - int* start_indices, - int start_indices_len, - int* limit_indices, - int limit_indices_len, - int* strides, - int strides_len - ); - - XlaOp* DynamicSlice( - XlaOp& operand, - XlaOp* start_indices, - int start_indices_len, - int* slice_sizes, - int slice_sizes_len - ); - - XlaOp* ConcatInDim(XlaBuilder* builder, XlaOp* operands, int operands_len, int dimension); - XlaOp* Select(XlaOp& pred, XlaOp& on_true, XlaOp& on_false); - XlaOp* Tuple(XlaBuilder* builder, XlaOp* elements, int elements_len); - XlaOp* GetTupleElement(XlaOp& tuple_data, int index); } XlaOp* unaryOp(std::function op, XlaOp& operand); - -extern "C" { - XlaOp* Eq(XlaOp& lhs, XlaOp& rhs); - XlaOp* Ne(XlaOp& lhs, XlaOp& rhs); - XlaOp* Ge(XlaOp& lhs, XlaOp& rhs); - XlaOp* Gt(XlaOp& lhs, XlaOp& rhs); - XlaOp* Lt(XlaOp& lhs, XlaOp& rhs); - XlaOp* Le(XlaOp& lhs, XlaOp& rhs); - - XlaOp* Dot(XlaOp& lhs, XlaOp& rhs); - XlaOp* DotGeneral(XlaOp& lhs, XlaOp& rhs, DotDimensionNumbers& dimension_numbers); - XlaOp* TriangularSolve( - XlaOp& a, XlaOp& b, int left_side, int lower, int unit_diagonal, int transpose_a - ); - XlaOp* Cholesky(XlaOp& a, int lower); - - XlaOp* Add(XlaOp& lhs, XlaOp& rhs); - XlaOp* Sub(XlaOp& lhs, XlaOp& rhs); - XlaOp* Mul(XlaOp& lhs, XlaOp& rhs); - XlaOp* Div(XlaOp& lhs, XlaOp& rhs); - XlaOp* Rem(XlaOp& lhs, XlaOp& rhs); - XlaOp* Max(XlaOp& lhs, XlaOp& rhs); - XlaOp* Min(XlaOp& lhs, XlaOp& rhs); - XlaOp* And(XlaOp& lhs, XlaOp& rhs); - XlaOp* Or(XlaOp& lhs, XlaOp& rhs); - XlaOp* Not(XlaOp& operand); - - XlaOp* Reduce( - XlaOp& operand, - XlaOp& init_value, - const XlaComputation& computation, - int* dimensions_to_reduce, - int dimensions_to_reduce_len - ); - - XlaOp* Abs(XlaOp& operand); - XlaOp* Exp(XlaOp& operand); - XlaOp* Floor(XlaOp& operand); - XlaOp* Ceil(XlaOp& operand); - XlaOp* Log(XlaOp& operand); - XlaOp* Logistic(XlaOp& operand); - XlaOp* Cos(XlaOp& operand); - XlaOp* Sin(XlaOp& operand); - XlaOp* Tanh(XlaOp& operand); - XlaOp* Sqrt(XlaOp& operand); - - XlaOp* Pow(XlaOp& lhs, XlaOp& rhs); - - XlaOp* Iota(XlaBuilder* builder, Shape& shape, int iota_dimension); - - XlaOp* ConvertElementType(XlaOp& operand, int new_element_type); - - XlaOp* Neg(XlaOp& operand); - - XlaOp* Transpose(XlaOp& operand, int* permutation, int rank); - XlaOp* Rev(XlaOp& operand, int* dimensions, int dimensions_len); - - XlaOp* Sort( - XlaOp* operands, int operands_len, XlaComputation& comparator, int dimension, int is_stable - ); - - XlaOp* Map( - XlaBuilder* builder, - XlaOp* operands, - int operands_len, - XlaComputation& computation, - int* dimensions, - int dimensions_len, - XlaOp* static_operands, - int static_operands_len - ); - - XlaOp* RngBitGenerator(int algorithm, XlaOp& initial_state, Shape& shape); - - XlaOp* Conditional( - XlaOp& predicate, - XlaOp& true_operand, - const XlaComputation& true_computation, - XlaOp& false_operand, - const XlaComputation& false_computation - ); -} diff --git a/backend/src/tensorflow/compiler/xla/client/xla_computation.h b/backend/src/tensorflow/compiler/xla/client/xla_computation.h index 83ae36f06..38555c125 100644 --- a/backend/src/tensorflow/compiler/xla/client/xla_computation.h +++ b/backend/src/tensorflow/compiler/xla/client/xla_computation.h @@ -15,6 +15,4 @@ limitations under the License. */ extern "C" { struct XlaComputation; - - void XlaComputation_delete(XlaComputation* s); } diff --git a/backend/src/tensorflow/compiler/xla/literal.h b/backend/src/tensorflow/compiler/xla/literal.h index 7d404aa73..284cc7bb0 100644 --- a/backend/src/tensorflow/compiler/xla/literal.h +++ b/backend/src/tensorflow/compiler/xla/literal.h @@ -13,33 +13,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -#include "shape.h" -#include "shape_util.h" - extern "C" { struct Literal; - - Literal* Literal_new(Shape& shape); - - void Literal_delete(Literal* lit); - - int Literal_Get_bool( - Literal& lit, int* multi_index, int multi_index_len, ShapeIndex& shape_index - ); - int Literal_Get_int( - Literal& lit, int* multi_index, int multi_index_len, ShapeIndex& shape_index - ); - double Literal_Get_double( - Literal& lit, int* multi_index, int multi_index_len, ShapeIndex& shape_index - ); - - void Literal_Set_bool( - Literal& lit, int* multi_index, int multi_index_len, ShapeIndex& shape_index, int value - ); - void Literal_Set_int( - Literal& lit, int* multi_index, int multi_index_len, ShapeIndex& shape_index, int value - ); - void Literal_Set_double( - Literal& lit, int* multi_index, int multi_index_len, ShapeIndex& shape_index, double value - ); } diff --git a/backend/src/tensorflow/compiler/xla/service/platform_util.h b/backend/src/tensorflow/compiler/xla/service/platform_util.h deleted file mode 100644 index a86179d62..000000000 --- a/backend/src/tensorflow/compiler/xla/service/platform_util.h +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2022 Joel Berkeley - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -#include "../../stream_executor/platform.h" - -extern "C" { - Platform* PlatformUtil_GetPlatform(const char* platform_name); -} diff --git a/backend/src/tensorflow/compiler/xla/shape.h b/backend/src/tensorflow/compiler/xla/shape.h index 2fd128262..27da41111 100644 --- a/backend/src/tensorflow/compiler/xla/shape.h +++ b/backend/src/tensorflow/compiler/xla/shape.h @@ -15,6 +15,4 @@ limitations under the License. */ extern "C" { struct Shape; - - void Shape_delete(Shape* s); } diff --git a/backend/src/tensorflow/compiler/xla/shape_util.h b/backend/src/tensorflow/compiler/xla/shape_util.h index 42ba0016e..6b1668ecd 100644 --- a/backend/src/tensorflow/compiler/xla/shape_util.h +++ b/backend/src/tensorflow/compiler/xla/shape_util.h @@ -13,15 +13,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -#include "shape.h" - extern "C" { struct ShapeIndex; - - ShapeIndex* ShapeIndex_new(); - void ShapeIndex_delete(ShapeIndex* s); - void ShapeIndex_push_back(ShapeIndex& shape_index, int value); - void ShapeIndex_push_front(ShapeIndex& shape_index, int value); - - Shape* MakeShape(int primitive_type, int* shape, int rank); } diff --git a/backend/src/tensorflow/compiler/xla/xla_data.pb.h b/backend/src/tensorflow/compiler/xla/xla_data.pb.h index e6788f558..9c335539c 100644 --- a/backend/src/tensorflow/compiler/xla/xla_data.pb.h +++ b/backend/src/tensorflow/compiler/xla/xla_data.pb.h @@ -13,28 +13,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ -#include "tensorflow/compiler/xla/xla_data.pb.h" - extern "C" { struct DotDimensionNumbers; - - DotDimensionNumbers* DotDimensionNumbers_new(); - - void DotDimensionNumbers_delete(DotDimensionNumbers* dimension_numbers); - - void DotDimensionNumbers_add_lhs_contracting_dimensions( - DotDimensionNumbers& dimension_numbers, int dim - ); - - void DotDimensionNumbers_add_rhs_contracting_dimensions( - DotDimensionNumbers& dimension_numbers, int dim - ); - - void DotDimensionNumbers_add_lhs_batch_dimensions( - DotDimensionNumbers& dimension_numbers, int dim - ); - - void DotDimensionNumbers_add_rhs_batch_dimensions( - DotDimensionNumbers& dimension_numbers, int dim - ); } diff --git a/backend/src/tensorflow/core/common_runtime/gpu/gpu_init.h b/backend/src/tensorflow/core/common_runtime/gpu/gpu_init.h deleted file mode 100644 index 12e99310f..000000000 --- a/backend/src/tensorflow/core/common_runtime/gpu/gpu_init.h +++ /dev/null @@ -1,20 +0,0 @@ -/* -Copyright 2022 Joel Berkeley - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -*/ -#include "../../../stream_executor/platform.h" - -extern "C" { - Platform* GPUMachineManager(); -} diff --git a/backend/src/tensorflow/core/platform/status.h b/backend/src/tensorflow/core/platform/status.h index b4306acd3..25eeedddc 100644 --- a/backend/src/tensorflow/core/platform/status.h +++ b/backend/src/tensorflow/core/platform/status.h @@ -15,6 +15,4 @@ limitations under the License. */ extern "C" { struct Status; - void Status_delete(Status* status); - int Status_ok(Status& status); } diff --git a/backend/src/tensorflow/stream_executor/BUILD b/backend/src/tensorflow/stream_executor/BUILD index b2c5cd45c..7cd14a6d5 100644 --- a/backend/src/tensorflow/stream_executor/BUILD +++ b/backend/src/tensorflow/stream_executor/BUILD @@ -18,6 +18,5 @@ cc_library( alwayslink = True, srcs = glob(["*.cpp"]), hdrs = glob(["*.h"]), - deps = ["@xla_extension//:xla_extension"], visibility = ["//visibility:public"], )