/external/protobuf/src/google/protobuf/stubs/ |
D | statusor_test.cc | 71 TEST(StatusOr, TestDefaultCtor) { in TEST() argument 72 StatusOr<int> thing; in TEST() 77 TEST(StatusOr, TestStatusCtor) { in TEST() argument 78 StatusOr<int> thing(Status::CANCELLED); in TEST() 83 TEST(StatusOr, TestValueCtor) { in TEST() argument 85 StatusOr<int> thing(kI); in TEST() 90 TEST(StatusOr, TestCopyCtorStatusOk) { in TEST() argument 92 StatusOr<int> original(kI); in TEST() 93 StatusOr<int> copy(original); in TEST() 98 TEST(StatusOr, TestCopyCtorStatusNotOk) { in TEST() argument [all …]
|
D | statusor.h | 97 class StatusOr { 98 template<typename U> friend class StatusOr; variable 102 StatusOr(); 114 StatusOr(const Status& status); // NOLINT 127 StatusOr(const T& value); // NOLINT 130 StatusOr(const StatusOr& other); 134 StatusOr(const StatusOr<U>& other); 137 StatusOr& operator=(const StatusOr& other); 141 StatusOr& operator=(const StatusOr<U>& other); 189 inline StatusOr<T>::StatusOr() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/ |
D | statusor.h | 83 class TF_MUST_USE_RESULT StatusOr; variable 87 class StatusOr : private internal_statusor::StatusOrData<T>, 92 friend class StatusOr; variable 103 explicit StatusOr(); 107 StatusOr(const StatusOr&) = default; 108 StatusOr& operator=(const StatusOr&) = default; 112 StatusOr(StatusOr&&) = default; 113 StatusOr& operator=(StatusOr&&) = default; 119 StatusOr(const StatusOr<U>& other); 121 StatusOr(StatusOr<U>&& other); [all …]
|
D | statusor_test.cc | 68 StatusOr<std::unique_ptr<int>> ReturnUniquePtr() { in ReturnUniquePtr() 73 TEST(StatusOr, ElementType) { in TEST() argument 74 static_assert(std::is_same<StatusOr<int>::element_type, int>(), ""); in TEST() 75 static_assert(std::is_same<StatusOr<char>::element_type, char>(), ""); in TEST() 78 TEST(StatusOr, TestNoDefaultConstructorInitialization) { in TEST() argument 80 StatusOr<NoDefaultConstructor> statusor(tensorflow::errors::Cancelled("")); in TEST() 85 StatusOr<NoDefaultConstructor> statusor2; in TEST() 90 TEST(StatusOr, TestMoveOnlyInitialization) { in TEST() argument 91 StatusOr<std::unique_ptr<int>> thing(ReturnUniquePtr()); in TEST() 102 TEST(StatusOr, TestMoveOnlyStatusCtr) { in TEST() argument [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | user_computation.h | 57 static StatusOr<std::unique_ptr<UserComputation>> MakeWithRemapping( 68 StatusOr<ComputationDataHandle> AddParameterInstruction( 72 StatusOr<ComputationDataHandle> AddPadInstruction( 80 StatusOr<ComputationDataHandle> AddRngInstruction( 85 StatusOr<ComputationDataHandle> AddUnaryInstruction( 89 StatusOr<ComputationDataHandle> AddBatchNormTrainingInstruction( 93 StatusOr<ComputationDataHandle> AddBatchNormInferenceInstruction( 97 StatusOr<ComputationDataHandle> AddBatchNormGradInstruction( 102 StatusOr<ComputationDataHandle> AddBinaryInstruction( 107 StatusOr<ComputationDataHandle> AddTernaryInstruction( [all …]
|
D | shape_inference.h | 49 static StatusOr<Shape> InferUnaryOpShape(UnaryOperation operation, 51 static StatusOr<Shape> InferUnaryOpShape(HloOpcode opcode, 56 static StatusOr<Shape> InferBinaryOpShape( 59 static StatusOr<Shape> InferBinaryOpShape(HloOpcode opcode, 65 static StatusOr<Shape> InferTernaryOpShape(TernaryOperation operation, 68 static StatusOr<Shape> InferTernaryOpShape(HloOpcode opcode, 75 static StatusOr<Shape> InferVariadicOpShape( 78 static StatusOr<Shape> InferVariadicOpShape( 84 static StatusOr<Shape> InferMapShape( 91 static StatusOr<Shape> InferBatchNormTrainingShape(const Shape& operand_shape, [all …]
|
D | elemental_ir_emitter.h | 44 virtual StatusOr<llvm::Value*> EmitUnaryOp(const HloInstruction* op, 47 virtual StatusOr<llvm::Value*> EmitBinaryOp(const HloInstruction* op, 61 virtual StatusOr<llvm::Value*> EmitIntegerUnaryOp( 64 virtual StatusOr<llvm::Value*> EmitFloatUnaryOp( 67 virtual StatusOr<llvm::Value*> EmitComplexUnaryOp( 70 virtual StatusOr<llvm::Value*> EmitIntegerBinaryOp(const HloInstruction* op, 75 virtual StatusOr<llvm::Value*> EmitFloatBinaryOp( 79 virtual StatusOr<llvm::Value*> EmitComplexBinaryOp( 95 virtual StatusOr<llvm::Value*> EmitErfInv(PrimitiveType prim_type, 98 virtual StatusOr<llvm::Value*> EmitErfcInv(PrimitiveType prim_type, [all …]
|
D | platform_util.h | 37 static StatusOr<std::vector<perftools::gputools::Platform*>> 45 static StatusOr<perftools::gputools::Platform*> GetDefaultPlatform(); 50 static StatusOr<perftools::gputools::Platform*> GetSolePlatform(); 54 static StatusOr<perftools::gputools::Platform*> GetPlatform( 59 static StatusOr<perftools::gputools::Platform*> GetPlatformExceptFor( 67 static StatusOr<std::vector<perftools::gputools::StreamExecutor*>>
|
D | service.h | 81 static StatusOr<std::unique_ptr<Service>> NewService( 83 static StatusOr<std::unique_ptr<Service>> NewService( 251 StatusOr<std::unique_ptr<HloModuleConfig>> CreateModuleConfig( 265 static StatusOr<std::unique_ptr<Backend>> CreateComputeConstantBackend(); 270 StatusOr<std::vector<const ShapedBuffer*>> ResolveAndValidateArguments( 276 StatusOr<std::unique_ptr<HloModuleConfig>> CreateModuleConfig( 287 StatusOr<std::unique_ptr<Executable>> BuildExecutable( 295 StatusOr<std::vector<std::unique_ptr<Executable>>> BuildExecutables( 305 StatusOr<std::shared_ptr<Executable>> BuildAndCacheExecutable( 315 StatusOr<GlobalDataHandle> ExecuteAndRegisterResult( [all …]
|
D | hlo_runner.h | 50 static StatusOr<std::unique_ptr<HloModule>> CreateModuleFromString( 56 static StatusOr<std::unique_ptr<HloModule>> ReadModuleFromBinaryProtoFile( 58 static StatusOr<std::unique_ptr<HloModule>> ReadModuleFromTextProtoFile( 63 static StatusOr<std::unique_ptr<HloModule>> ReadModuleFromHloTextFile( 73 StatusOr<std::unique_ptr<Literal>> Execute( 86 StatusOr<std::unique_ptr<Literal>> ExecuteInternal( 99 StatusOr<std::unique_ptr<Literal>> HloRunner::Execute( in Execute()
|
D | computation_tracker.h | 59 StatusOr<ComputationHandle> LoadSessionModule( 65 StatusOr<std::unique_ptr<SessionModule>> SnapshotComputation( 70 StatusOr<UserComputation*> Resolve( 82 StatusOr<std::unique_ptr<HloModule>> BuildHloModule( 102 StatusOr<ComputationHandle> LoadSessionComputation( 109 StatusOr<UserComputation*> ResolveInternal(
|
D | backend.h | 72 static StatusOr<std::unique_ptr<Backend>> CreateBackend( 77 static StatusOr<std::unique_ptr<Backend>> CreateDefaultBackend(); 105 StatusOr<perftools::gputools::StreamExecutor*> stream_executor( 119 StatusOr<StreamPtr> BorrowStream(int device_ordinal); 120 StatusOr<StreamPtr> BorrowStream( 126 std::function<StatusOr<StreamPtr>(int)> StreamBorrower() { in StreamBorrower() 144 StatusOr<bool> devices_equivalent(int device_ordinal_a, int device_ordinal_b);
|
/external/tensorflow/tensorflow/stream_executor/lib/ |
D | statusor.h | 88 class StatusOr { 89 template<typename U> friend class StatusOr; variable 93 StatusOr() : status_(error::UNKNOWN, "") {} in StatusOr() function 105 StatusOr(const Status& status); // NOLINT 118 StatusOr(const T& value); // NOLINT 122 StatusOr(const StatusOr<U>& other) // NOLINT in StatusOr() function 128 StatusOr& operator=(const StatusOr<U>& other) { 136 StatusOr(T&& value); // NOLINT 142 StatusOr(StatusOr<U>&& other) // NOLINT in StatusOr() function 149 StatusOr& operator=(StatusOr<U>&& other) { [all …]
|
/external/tensorflow/tensorflow/compiler/xla/client/ |
D | client.h | 54 StatusOr<std::unique_ptr<GlobalData>> Execute( 83 StatusOr<std::vector<std::unique_ptr<GlobalData>>> ExecuteParallel( 90 StatusOr<std::vector<DeviceHandle>> GetDeviceHandles(int64 device_count); 98 StatusOr<std::unique_ptr<Literal>> Transfer( 108 StatusOr<std::unique_ptr<GlobalData>> TransferToServer( 124 StatusOr<std::unique_ptr<Literal>> TransferFromOutfeed( 134 StatusOr<std::unique_ptr<Literal>> ExecuteAndTransfer( 144 StatusOr<std::vector<std::unique_ptr<GlobalData>>> DeconstructTuple( 148 StatusOr<ComputationStats> GetComputationStats( 153 StatusOr<Shape> GetShape(const GlobalData& data); [all …]
|
D | local_client.h | 41 StatusOr<std::unique_ptr<ScopedShapedBuffer>> Run( 76 StatusOr<std::unique_ptr<ScopedShapedBuffer>> ExecuteAndDump( 91 StatusOr<std::unique_ptr<Literal>> LiteralFromShapedBuffer( 121 StatusOr<std::unique_ptr<LocalExecutable>> Compile( 130 StatusOr<std::unique_ptr<ScopedShapedBuffer>> LiteralToShapedBuffer( 136 StatusOr<std::unique_ptr<Literal>> ShapedBufferToLiteral( 150 StatusOr<std::unique_ptr<Literal>> TransferFromOutfeedLocal( 158 StatusOr<int> ReplicaNumberToDeviceOrdinal(int replica_number);
|
D | client.cc | 39 StatusOr<std::unique_ptr<Literal>> Client::Transfer( in Transfer() 66 StatusOr<std::unique_ptr<GlobalData>> Client::TransferToServer( in TransferToServer() 116 StatusOr<std::unique_ptr<Literal>> Client::TransferFromOutfeed( in TransferFromOutfeed() 164 StatusOr<std::unique_ptr<Literal>> Client::ExecuteAndTransfer( in ExecuteAndTransfer() 180 StatusOr<Computation> Client::LoadSnapshot(const SessionModule& module) { in LoadSnapshot() 194 StatusOr<std::unique_ptr<GlobalData>> Client::Execute( in Execute() 234 StatusOr<std::vector<std::unique_ptr<GlobalData>>> Client::ExecuteParallel( in ExecuteParallel() 269 StatusOr<std::vector<DeviceHandle>> Client::GetDeviceHandles( in GetDeviceHandles() 306 StatusOr<std::vector<std::unique_ptr<GlobalData>>> Client::DeconstructTuple( in DeconstructTuple() 327 StatusOr<ComputationStats> Client::GetComputationStats( in GetComputationStats() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/service/gpu/ |
D | elemental_ir_emitter.h | 42 using NestedComputer = std::function<StatusOr<llvm::Value*>( 54 StatusOr<llvm::Value*> EmitFloatUnaryOp( 57 StatusOr<llvm::Value*> EmitFloatBinaryOp( 61 StatusOr<llvm::Value*> EmitErfcInv(PrimitiveType prim_type, 64 StatusOr<llvm::Value*> EmitLog(PrimitiveType prim_type, 67 StatusOr<llvm::Value*> EmitSin(PrimitiveType prim_type, 70 StatusOr<llvm::Value*> EmitCos(PrimitiveType prim_type, 73 StatusOr<llvm::Value*> EmitExp(PrimitiveType prim_type, 76 StatusOr<llvm::Value*> EmitPow(PrimitiveType prim_type, llvm::Value* lhs, 79 StatusOr<llvm::Value*> EmitAtan2(PrimitiveType prim_type, llvm::Value* lhs, [all …]
|
D | elemental_ir_emitter.cc | 69 StatusOr<llvm::Value*> GpuElementalIrEmitter::EmitLibdeviceMathCall( in EmitLibdeviceMathCall() 114 StatusOr<llvm::Value*> GpuElementalIrEmitter::EmitLlvmIntrinsicMathCall( in EmitLlvmIntrinsicMathCall() 139 StatusOr<llvm::Value*> GpuElementalIrEmitter::EmitMathCall( in EmitMathCall() 158 StatusOr<llvm::Value*> GpuElementalIrEmitter::EmitFloatBinaryOp( in EmitFloatBinaryOp() 178 StatusOr<llvm::Value*> GpuElementalIrEmitter::EmitPowerOp( in EmitPowerOp() 187 auto make_sqrt = [&, this]() -> StatusOr<llvm::Value*> { in EmitPowerOp() 220 StatusOr<llvm::Value*> GpuElementalIrEmitter::EmitErfcInv( in EmitErfcInv() 225 StatusOr<llvm::Value*> GpuElementalIrEmitter::EmitLog( in EmitLog() 230 StatusOr<llvm::Value*> GpuElementalIrEmitter::EmitSin( in EmitSin() 235 StatusOr<llvm::Value*> GpuElementalIrEmitter::EmitCos( in EmitCos() [all …]
|
/external/protobuf/src/google/protobuf/util/internal/ |
D | datapiece.h | 117 util::StatusOr<int32> ToInt32() const; 120 util::StatusOr<uint32> ToUint32() const; 123 util::StatusOr<int64> ToInt64() const; 126 util::StatusOr<uint64> ToUint64() const; 129 util::StatusOr<double> ToDouble() const; 132 util::StatusOr<float> ToFloat() const; 135 util::StatusOr<bool> ToBool() const; 138 util::StatusOr<string> ToString() const; 144 util::StatusOr<string> ToBytes() const; 152 util::StatusOr<int> ToEnum(const google::protobuf::Enum* enum_type) const; [all …]
|
D | datapiece.cc | 53 using util::StatusOr; 62 StatusOr<To> ValidateNumberConversion(To after, From before) { in ValidateNumberConversion() 79 StatusOr<To> NumberConvertAndCheck(From before) { in NumberConvertAndCheck() 89 StatusOr<To> FloatingPointToIntConvertAndCheck(From before) { in FloatingPointToIntConvertAndCheck() 98 StatusOr<To> FloatingPointConvertAndCheck(From before) { in FloatingPointConvertAndCheck() 115 StatusOr<int32> DataPiece::ToInt32() const { in ToInt32() 127 StatusOr<uint32> DataPiece::ToUint32() const { in ToUint32() 139 StatusOr<int64> DataPiece::ToInt64() const { in ToInt64() 151 StatusOr<uint64> DataPiece::ToUint64() const { in ToUint64() 163 StatusOr<double> DataPiece::ToDouble() const { in ToDouble() [all …]
|
/external/tensorflow/tensorflow/stream_executor/cuda/ |
D | cuda_diagnostics.h | 36 string DriverVersionStatusToString(port::StatusOr<DriverVersion> version); 39 port::StatusOr<DriverVersion> StringToDriverVersion(const string &value); 60 static port::StatusOr<DriverVersion> FindKernelModuleVersion( 64 static port::StatusOr<DriverVersion> FindKernelDriverVersion(); 68 static port::StatusOr<DriverVersion> FindDsoVersion(); 83 port::StatusOr<DriverVersion> dso_version, 84 port::StatusOr<DriverVersion> kernel_version);
|
D | cuda_driver.h | 70 static port::StatusOr<CUdevice> DeviceFromContext(CudaContext* context); 176 static port::StatusOr<CUsharedconfig> ContextGetSharedMemConfig( 345 static port::StatusOr<CUresult> QueryEvent(CudaContext* context, 351 static port::StatusOr<CudaContext*> GetPointerContext(CUdeviceptr pointer); 354 static port::StatusOr<CUdevice> GetPointerDevice(CUdeviceptr pointer); 357 static port::StatusOr<MemorySpace> GetPointerMemorySpace(CUdeviceptr pointer); 373 static port::StatusOr<int> GetMultiprocessorCount(CUdevice device); 377 static port::StatusOr<int64> GetMaxThreadsPerMultiprocessor(CUdevice device); 381 static port::StatusOr<int64> GetMaxThreadsPerBlock(CUdevice device); 385 static port::StatusOr<int64> GetMaxSharedMemoryPerCore(CUdevice device); [all …]
|
D | cuda_platform.h | 58 port::StatusOr<StreamExecutor*> FirstExecutorForBus(int bus_ordinal); 69 port::StatusOr<StreamExecutor*> ExecutorForDevice(int ordinal) override; 71 port::StatusOr<StreamExecutor*> ExecutorForDeviceWithPluginConfig( 74 port::StatusOr<StreamExecutor*> GetExecutor( 77 port::StatusOr<std::unique_ptr<StreamExecutor>> GetUncachedExecutor(
|
/external/tensorflow/tensorflow/stream_executor/ |
D | dso_loader.cc | 247 /* static */ port::StatusOr<void*> CachedDsoLoader::GetCublasDsoHandle() { in GetCublasDsoHandle() 248 static port::StatusOr<void*> result = in GetCublasDsoHandle() 253 /* static */ port::StatusOr<void*> CachedDsoLoader::GetCurandDsoHandle() { in GetCurandDsoHandle() 254 static port::StatusOr<void*> result = in GetCurandDsoHandle() 259 /* static */ port::StatusOr<void*> CachedDsoLoader::GetCudnnDsoHandle() { in GetCudnnDsoHandle() 260 static port::StatusOr<void*> result = in GetCudnnDsoHandle() 265 /* static */ port::StatusOr<void*> CachedDsoLoader::GetCufftDsoHandle() { in GetCufftDsoHandle() 266 static port::StatusOr<void*> result = in GetCufftDsoHandle() 271 /* static */ port::StatusOr<void*> CachedDsoLoader::GetLibcudaDsoHandle() { in GetLibcudaDsoHandle() 272 static port::StatusOr<void*> result = in GetLibcudaDsoHandle() [all …]
|
D | dso_loader.h | 100 static port::StatusOr<void*> GetCublasDsoHandle(); 101 static port::StatusOr<void*> GetCudnnDsoHandle(); 102 static port::StatusOr<void*> GetCufftDsoHandle(); 103 static port::StatusOr<void*> GetCurandDsoHandle(); 104 static port::StatusOr<void*> GetLibcudaDsoHandle(); 105 static port::StatusOr<void*> GetLibcuptiDsoHandle(); 110 static port::StatusOr<void*> FetchHandleResult(
|