|
| 1 | +/* |
| 2 | + Copyright 2021 The TensorFlow Authors. All Rights Reserved. |
| 3 | +
|
| 4 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + you may not use this file except in compliance with the License. |
| 6 | + You may obtain a copy of the License at |
| 7 | +
|
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | + Unless required by applicable law or agreed to in writing, software |
| 11 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + See the License for the specific language governing permissions and |
| 14 | + limitations under the License. |
| 15 | + ============================================================================== |
| 16 | + */ |
| 17 | +package org.tensorflow; |
| 18 | + |
| 19 | +import com.squareup.javapoet.ClassName; |
| 20 | +import com.squareup.javapoet.ParameterizedTypeName; |
| 21 | +import com.squareup.javapoet.TypeName; |
| 22 | + |
| 23 | +public class Names { |
| 24 | + |
| 25 | + public static final String TensorflowPackage = "org.tensorflow"; |
| 26 | + public static final String OpPackage = TensorflowPackage + ".op"; |
| 27 | + public static final String TypesPackage = TensorflowPackage + ".types"; |
| 28 | + |
| 29 | + public static final ClassName Operator = ClassName.get(OpPackage + ".annotation", "Operator"); |
| 30 | + public static final ClassName Endpoint = ClassName.get(OpPackage + ".annotation", "Endpoint"); |
| 31 | + |
| 32 | + public static final ClassName TType = ClassName.get(TypesPackage + ".family", "TType"); |
| 33 | + public static final ClassName TString = ClassName.get(TypesPackage, "TString"); |
| 34 | + public static final ClassName TBool = ClassName.get(TypesPackage, "TBool"); |
| 35 | + |
| 36 | + public static final ClassName TNumber = ClassName.get(TypesPackage + ".family", "TNumber"); |
| 37 | + |
| 38 | + public static final ClassName TFloating = ClassName.get(TypesPackage + ".family", "TFloating"); |
| 39 | + public static final ClassName TBfloat16 = ClassName.get(TypesPackage, "TBfloat16"); |
| 40 | + public static final ClassName TFloat16 = ClassName.get(TypesPackage, "TFloat16"); |
| 41 | + public static final ClassName TFloat32 = ClassName.get(TypesPackage, "TFloat32"); |
| 42 | + public static final ClassName TFloat64 = ClassName.get(TypesPackage, "TFloat64"); |
| 43 | + |
| 44 | + public static final ClassName TIntegral = ClassName.get(TypesPackage + ".family", "TIntegral"); |
| 45 | + public static final ClassName TUint8 = ClassName.get(TypesPackage, "TUint8"); |
| 46 | + public static final ClassName TInt32 = ClassName.get(TypesPackage, "TInt32"); |
| 47 | + public static final ClassName TInt64 = ClassName.get(TypesPackage, "TInt64"); |
| 48 | + |
| 49 | + public static final TypeName Op = ClassName.get(OpPackage, "Op"); |
| 50 | + public static final ClassName RawOp = ClassName.get(OpPackage, "RawOp"); |
| 51 | + public static final ClassName Operation = ClassName.get(TensorflowPackage, "Operation"); |
| 52 | + public static final ClassName Operands = ClassName.get(OpPackage, "Operands"); |
| 53 | + public static final ClassName OperationBuilder = ClassName.get(TensorflowPackage, "OperationBuilder"); |
| 54 | + public static final TypeName IterableOp = ParameterizedTypeName.get(ClassName.get(Iterable.class), Op); |
| 55 | + |
| 56 | + public static final ClassName Operand = ClassName.get(TensorflowPackage, "Operand"); |
| 57 | + public static final ClassName Output = ClassName.get(TensorflowPackage, "Output"); |
| 58 | + |
| 59 | + public static final ClassName Shape = ClassName.get(TensorflowPackage + ".ndarray", "Shape"); |
| 60 | + public static final ClassName Tensor = ClassName.get(TensorflowPackage, "Tensor"); |
| 61 | + public static final ClassName ConcreteFunction = ClassName.get(TensorflowPackage, "ConcreteFunction"); |
| 62 | + |
| 63 | + public static final ClassName Scope = ClassName.get(OpPackage, "Scope"); |
| 64 | + public static final TypeName DeviceSpec = ClassName.get(TensorflowPackage, "DeviceSpec"); |
| 65 | + public static final ClassName Ops = ClassName.get(OpPackage, "Ops"); |
| 66 | + |
| 67 | + public static final TypeName ExecutionEnvironment = |
| 68 | + ClassName.get(TensorflowPackage, "ExecutionEnvironment"); |
| 69 | + public static final TypeName EagerSession = ClassName.get(TensorflowPackage, "EagerSession"); |
| 70 | + |
| 71 | + public static final TypeName String = ClassName.get(String.class); |
| 72 | + |
| 73 | +} |
0 commit comments