/external/tensorflow/tensorflow/contrib/optimizer_v2/ |
adam.py | 123 math_ops.cast(beta1_power, var.dtype.base_dtype), 124 math_ops.cast(beta2_power, var.dtype.base_dtype), 140 math_ops.cast(beta1_power, grad.dtype.base_dtype), 141 math_ops.cast(beta2_power, grad.dtype.base_dtype), 151 beta1_power = math_ops.cast(beta1_power, var.dtype.base_dtype) 152 beta2_power = math_ops.cast(beta2_power, var.dtype.base_dtype)
|
/external/tensorflow/tensorflow/core/kernels/ |
adjust_contrast_op.h | 72 (input.template cast<float>().sum(reduction_axis).eval() / 80 (input.template cast<float>() - mean_values) * contrast_factor_tensor + 141 output.device(d) = (input.template cast<float>() 146 .template cast<T>() 152 (input - output).template cast<float>() * contrast_factor_tensor; 153 output.device(d) += adjusted.template cast<T>();
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
gradient_correctness_test.py | 62 k = math_ops.cast(math_ops.cast(x, dtypes.int32), dtypes.float32) 71 k = math_ops.cast(math_ops.cast(x, dtypes.int32), dtypes.float32) 79 x = math_ops.cast(k, dtypes.float32) 109 x = math_ops.cast(k, dtypes.float32)
|
/external/tensorflow/tensorflow/python/ops/ |
confusion_matrix.py | 156 predictions = math_ops.cast(predictions, dtypes.int64) 157 labels = math_ops.cast(labels, dtypes.int64) 173 num_classes_int64 = math_ops.cast(num_classes, dtypes.int64) 187 weights = math_ops.cast(weights, dtype) 196 dense_shape=math_ops.cast(shape, dtypes.int64)) 197 zero_matrix = array_ops.zeros(math_ops.cast(shape, dtypes.int32), dtype)
|
/external/v8/src/compiler/ |
code-generator-impl.h | 131 return LocationOperand::cast(op)->GetRegister(); 135 return LocationOperand::cast(op)->GetFloatRegister(); 139 return LocationOperand::cast(op)->GetDoubleRegister(); 143 return LocationOperand::cast(op)->GetSimd128Register(); 148 return gen_->code()->GetImmediate(ImmediateOperand::cast(op)); 151 ConstantOperand::cast(op)->virtual_register());
|
gap-resolver.cc | 30 const LocationOperand& src_loc = LocationOperand::cast(move->source()); 31 const LocationOperand& dst_loc = LocationOperand::cast(move->destination()); 95 REP_BIT(LocationOperand::cast(move->destination()).representation()); 158 LocationOperand::cast(other->source()).representation() > 221 if (LocationOperand::cast(other->source()).representation() > 228 if (LocationOperand::cast(other->source()).representation() >
|
/external/v8/src/objects/ |
fixed-array-inl.h | 72 return Handle<T>(T::cast(obj), isolate); 79 return Handle<T>(T::cast(obj), isolate); 300 if (FixedArray::cast(this)->length() == 0) return 0; 301 return Smi::ToInt(FixedArray::cast(this)->get(kLengthIndex)); 305 return FixedArray::cast(this)->set(kLengthIndex, Smi::FromInt(length)); 309 return FixedArray::cast(this)->get(kFirstIndex + index); 317 FixedArray::cast(this)->set(kFirstIndex + index, obj, mode); 322 FixedArray::cast(this)->set(kFirstIndex + index, undefined, 391 PodArray<T>* PodArray<T>::cast(Object* object) { function in class:v8::internal::PodArray 396 const PodArray<T>* PodArray<T>::cast(const Object* object) function in class:v8::internal::PodArray 753 FixedTypedArray<Traits>* FixedTypedArray<Traits>::cast(Object* object) { function in class:v8::internal::FixedTypedArray 761 const FixedTypedArray<Traits>* FixedTypedArray<Traits>::cast( function in class:v8::internal::FixedTypedArray [all...] |
/external/v8/src/regexp/ |
regexp-utils.cc | 51 JSRegExp::cast(*recv)->set_last_index(*value_as_object, SKIP_WRITE_BARRIER); 63 return handle(JSRegExp::cast(*recv)->last_index(), isolate); 125 Handle<JSReceiver> receiver = Handle<JSReceiver>::cast(object); 148 JSReceiver* recv = JSReceiver::cast(*obj); 159 if (JSReceiver::cast(proto)->map() != *initial_proto_initial_map) { 165 Object* last_index = JSRegExp::cast(recv)->last_index();
|
/external/v8/src/ |
transitions-inl.h | 22 return TransitionArray::cast(raw_transitions_->ToStrongHeapObject()); 35 return WeakFixedArray::cast(prototype_transitions); 60 return Name::cast(Get(ToKeyIndex(transition_number))->ToStrongHeapObject()); 70 Map* map = Map::cast(raw_transitions_->ToWeakHeapObject()); 103 return Map::cast(raw->ToWeakHeapObject()); 123 return Map::cast(raw_transitions_->ToWeakHeapObject());
|
lookup.cc | 219 index < static_cast<uint32_t>(String::cast(*receiver)->length())) { 224 Handle<JSValue>::cast(result)->set_value(*receiver); 232 return Handle<JSReceiver>::cast(root); 238 return handle(Handle<HeapObject>::cast(receiver_)->map(), isolate_); 396 Handle<JSObject> holder_obj = Handle<JSObject>::cast(holder); 417 JSGlobalObject::cast(*holder_obj)->global_dictionary(), isolate()); 471 Handle<JSObject> holder_obj = Handle<JSObject>::cast(holder); 504 JSGlobalObject::cast(*holder_obj)->global_dictionary(), isolate()); 549 AccessorInfo::cast(*GetAccessors())->is_special_data_property())); 560 Handle<JSGlobalObject> global = Handle<JSGlobalObject>::cast(receiver) [all...] |
/external/v8/src/builtins/ |
builtins-array.cc | 33 double value = HeapNumber::cast(object)->value(); 92 Handle<JSArray> array = Handle<JSArray>::cast(receiver); 178 Handle<JSArray> array = Handle<JSArray>::cast(receiver); 227 Handle<JSArray> array = Handle<JSArray>::cast(receiver); 383 Handle<JSArray> array = Handle<JSArray>::cast(receiver); 464 Handle<JSArray> array = Handle<JSArray>::cast(receiver); 474 if (IsJSArrayFastElementMovingAllowed(isolate, JSArray::cast(*receiver))) { 494 !IsJSArrayFastElementMovingAllowed(isolate, JSArray::cast(*receiver))) { 497 Handle<JSArray> array = Handle<JSArray>::cast(receiver); 517 Handle<JSArray> array = Handle<JSArray>::cast(receiver) [all...] |
/external/llvm/unittests/Analysis/ |
ScalarEvolutionTest.cpp | 53 Function *F = cast<Function>(M.getOrInsertFunction("f", FTy)); 73 const SCEVMulExpr *M0 = cast<SCEVMulExpr>(P0); 74 const SCEVMulExpr *M1 = cast<SCEVMulExpr>(P1); 75 const SCEVMulExpr *M2 = cast<SCEVMulExpr>(P2); 77 EXPECT_EQ(cast<SCEVConstant>(M0->getOperand(0))->getValue()->getZExtValue(), 79 EXPECT_EQ(cast<SCEVConstant>(M1->getOperand(0))->getValue()->getZExtValue(), 81 EXPECT_EQ(cast<SCEVConstant>(M2->getOperand(0))->getValue()->getZExtValue(), 85 EXPECT_EQ(cast<SCEVUnknown>(M0->getOperand(1))->getValue(), V0); 86 EXPECT_EQ(cast<SCEVUnknown>(M1->getOperand(1))->getValue(), V1); 87 EXPECT_EQ(cast<SCEVUnknown>(M2->getOperand(1))->getValue(), V2) [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
LoopUnrollPeel.cpp | 191 const SCEVAddRecExpr *LeftAR = cast<SCEVAddRecExpr>(LeftSCEV); 283 PHINode *Phi = cast<PHINode>(&*BI); 428 DT->addNewBlock(NewBB, cast<BasicBlock>(VMap[IDom->getBlock()])); 437 InsertTop->getTerminator()->setSuccessor(0, cast<BasicBlock>(VMap[Header])); 444 BasicBlock *NewLatch = cast<BasicBlock>(VMap[Latch]); 445 BranchInst *LatchBR = cast<BranchInst>(NewLatch->getTerminator()); 461 PHINode *NewPHI = cast<PHINode>(VMap[&*I]); 472 cast<BasicBlock>(VMap[Header])->getInstList().erase(NewPHI); 480 PHINode *PHI = cast<PHINode>(I); 485 PHI->addIncoming(LatchVal, cast<BasicBlock>(VMap[Latch])) [all...] |
/external/swiftshader/third_party/LLVM/include/llvm/ |
Instructions.h | 112 // Methods for support type inquiry through isa, cast, and dyn_cast: 118 return isa<Instruction>(V) && classof(cast<Instruction>(V)); 228 return cast<PointerType>(getPointerOperand()->getType())->getAddressSpace(); 232 // Methods for support type inquiry through isa, cast, and dyn_cast: 238 return isa<Instruction>(V) && classof(cast<Instruction>(V)); 351 return cast<PointerType>(getPointerOperand()->getType())->getAddressSpace(); 354 // Methods for support type inquiry through isa, cast, and dyn_cast: 360 return isa<Instruction>(V) && classof(cast<Instruction>(V)); 426 // Methods for support type inquiry through isa, cast, and dyn_cast: 432 return isa<Instruction>(V) && classof(cast<Instruction>(V)) [all...] |
/external/llvm/lib/Transforms/IPO/ |
ArgumentPromotion.cpp | 184 StructType *StructTy = cast<StructType>(type); 286 Type *AgTy = cast<PointerType>(PtrArg->getType())->getElementType(); 677 Type *AgTy = cast<PointerType>(I->getType())->getElementType(); 678 StructType *STy = cast<StructType>(AgTy); 701 Instruction *UI = cast<Instruction>(U); 706 SrcTy = cast<GetElementPtrInst>(UI)->getSourceElementType(); 714 Indices.push_back(cast<ConstantInt>(*II)->getSExtValue()); 724 OrigLoad = cast<LoadInst>(UI->user_back()); 732 cast<PointerType>(I->getType()->getScalarType())->getElementType(), 807 Type *AgTy = cast<PointerType>(I->getType())->getElementType() [all...] |
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
InstrEmitter.cpp | 99 unsigned DestReg = cast<RegisterSDNode>(User->getOperand(1))->getReg(); 180 unsigned Reg = cast<RegisterSDNode>(User->getOperand(1))->getReg(); 203 VRBase = cast<RegisterSDNode>(Node->getOperand(i-NumResults))->getReg(); 215 unsigned Reg = cast<RegisterSDNode>(User->getOperand(1))->getReg(); 439 unsigned DestReg = cast<RegisterSDNode>(User->getOperand(1))->getReg(); 451 unsigned SubIdx = cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue(); 489 unsigned SubIdx = cast<ConstantSDNode>(N2)->getZExtValue(); 519 const ConstantSDNode *SD = cast<ConstantSDNode>(N0); 548 unsigned DstRCIdx = cast<ConstantSDNode>(Node->getOperand(1))->getZExtValue(); 565 unsigned DstRCIdx = cast<ConstantSDNode>(Node->getOperand(0))->getZExtValue() [all...] |
/external/swiftshader/third_party/subzero/src/ |
IceTargetLowering.cpp | 118 LastSrc = llvm::cast<Variable>(Instr->getSrc(0)); 415 lowerAlloca(llvm::cast<InstAlloca>(Instr)); 418 lowerArithmetic(llvm::cast<InstArithmetic>(Instr)); 421 lowerAssign(llvm::cast<InstAssign>(Instr)); 424 lowerBr(llvm::cast<InstBr>(Instr)); 427 lowerBreakpoint(llvm::cast<InstBreakpoint>(Instr)); 430 lowerCall(llvm::cast<InstCall>(Instr)); 432 case Inst::Cast: 433 lowerCast(llvm::cast<InstCast>(Instr)); 436 lowerExtractElement(llvm::cast<InstExtractElement>(Instr)) [all...] |
IceConverter.cpp | 227 return convertPHINodeInstruction(cast<PHINode>(Instr)); 229 return convertBrInstruction(cast<BranchInst>(Instr)); 231 return convertRetInstruction(cast<ReturnInst>(Instr)); 233 return convertIntToPtrInstruction(cast<IntToPtrInst>(Instr)); 235 return convertPtrToIntInstruction(cast<PtrToIntInst>(Instr)); 237 return convertICmpInstruction(cast<ICmpInst>(Instr)); 239 return convertFCmpInstruction(cast<FCmpInst>(Instr)); 241 return convertSelectInstruction(cast<SelectInst>(Instr)); 243 return convertSwitchInstruction(cast<SwitchInst>(Instr)); 245 return convertLoadInstruction(cast<LoadInst>(Instr)) [all...] |
/external/llvm/lib/Analysis/ |
VectorUtils.cpp | 194 const APInt &APStepVal = cast<SCEVConstant>(M->getOperand(0))->getAPInt(); 223 // If we have stripped off the recurrence cast we have to make sure that we 236 VectorType *VTy = cast<VectorType>(V->getType()); 248 unsigned IIElt = cast<ConstantInt>(III->getOperand(2))->getZExtValue(); 303 !cast<ConstantInt>(InsertEltInst->getOperand(2))->isNullValue()) 363 Instruction *I = cast<Instruction>(Val); 399 for (Value *O : cast<User>(I)->operands()) { 442 Ty = cast<Instruction>(*MI)->getOperand(0)->getType(); 444 MinBWs[cast<Instruction>(*MI)] = MinBW; 453 Instruction *I0 = cast<Instruction>(VL[0]) [all...] |
/external/llvm/lib/Target/MSP430/ |
MSP430ISelDAGToDAG.cpp | 158 AM.BlockAddr = cast<BlockAddressSDNode>(N0)->getBlockAddress(); 159 //AM.SymbolFlags = cast<BlockAddressSDNode>(N0)->getTargetFlags(); 185 uint64_t Val = cast<ConstantSDNode>(N)->getSExtValue(); 199 AM.Base.FrameIndex = cast<FrameIndexSDNode>(N)->getIndex(); 309 if (cast<ConstantSDNode>(LD->getOffset())->getZExtValue() != 1) 315 if (cast<ConstantSDNode>(LD->getOffset())->getZExtValue() != 2) 327 LoadSDNode *LD = cast<LoadSDNode>(N); 356 LoadSDNode *LD = cast<LoadSDNode>(N1); 363 MemRefs0[0] = cast<MemSDNode>(N1)->getMemOperand(); 367 cast<MachineSDNode>(ResNode)->setMemRefs(MemRefs0, MemRefs0 + 1) [all...] |
/external/llvm/unittests/Transforms/Utils/ |
MemorySSA.cpp | 97 MemoryDef *StoreAccess = cast<MemoryDef>(MSSA.getMemoryAccess(StoreInst)); 102 MemoryUse *LoadAccess = cast<MemoryUse>( 133 MemoryUse *LoadAccess = cast<MemoryUse>(MSSA.getMemoryAccess(LoadInst)); 134 MemoryDef *StoreAccess = cast<MemoryDef>(MSSA.getMemoryAccess(StoreInst)); 139 MemoryPhi *MP = cast<MemoryPhi>(DefiningAccess); 142 EXPECT_TRUE(MSSA.isLiveOnEntryDef(cast<MemoryAccess>(Op.get()))); 179 MemoryUse *LoadAccess = cast<MemoryUse>(MSSA.getMemoryAccess(LoadInst)); 180 MemoryDef *StoreAccess = cast<MemoryDef>(MSSA.getMemoryAccess(StoreInst)); 199 MemoryAccess *Operand = cast<MemoryAccess>(&*Op); 240 cast<MemoryUseOrDef>(MSSA.getMemoryAccess(V))->getDefiningAccess() [all...] |
/external/perfetto/src/trace_processor/ |
sqlite_utils.h | 273 auto cast = static_cast<T>(above); 274 return value < above ? cast : (is_eq ? cast : cast + 1); 304 auto cast = static_cast<T>(below); 305 return value > below ? cast : (is_eq ? cast : cast - 1); 328 auto cast = static_cast<T>(below); 329 return value > below ? std::numeric_limits<T>::max() : cast; [all...] |
/external/swiftshader/third_party/LLVM/lib/Target/MSP430/ |
MSP430ISelDAGToDAG.cpp | 163 AM.BlockAddr = cast<BlockAddressSDNode>(N0)->getBlockAddress(); 164 //AM.SymbolFlags = cast<BlockAddressSDNode>(N0)->getTargetFlags(); 190 uint64_t Val = cast<ConstantSDNode>(N)->getSExtValue(); 204 AM.Base.FrameIndex = cast<FrameIndexSDNode>(N)->getIndex(); 312 if (cast<ConstantSDNode>(LD->getOffset())->getZExtValue() != 1) 318 if (cast<ConstantSDNode>(LD->getOffset())->getZExtValue() != 2) 330 LoadSDNode *LD = cast<LoadSDNode>(N); 359 LoadSDNode *LD = cast<LoadSDNode>(N1); 366 MemRefs0[0] = cast<MemSDNode>(N1)->getMemOperand(); 372 cast<MachineSDNode>(ResNode)->setMemRefs(MemRefs0, MemRefs0 + 1) [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
Operator.h | 44 return cast<ConstantExpr>(this)->getOpcode(); 113 return (isa<Instruction>(V) && classof(cast<Instruction>(V))) || 114 (isa<ConstantExpr>(V) && classof(cast<ConstantExpr>(V))); 154 return (isa<Instruction>(V) && classof(cast<Instruction>(V))) || 155 (isa<ConstantExpr>(V) && classof(cast<ConstantExpr>(V))); 378 return (isa<Instruction>(V) && classof(cast<Instruction>(V))) || 379 (isa<ConstantExpr>(V) && classof(cast<ConstantExpr>(V))); 394 return (isa<Instruction>(V) && classof(cast<Instruction>(V))) || 395 (isa<ConstantExpr>(V) && classof(cast<ConstantExpr>(V))); 556 return cast<PointerType>(getPointerOperandType())->getAddressSpace() [all...] |
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/MSP430/ |
MSP430ISelDAGToDAG.cpp | 161 AM.BlockAddr = cast<BlockAddressSDNode>(N0)->getBlockAddress(); 162 //AM.SymbolFlags = cast<BlockAddressSDNode>(N0)->getTargetFlags(); 188 uint64_t Val = cast<ConstantSDNode>(N)->getSExtValue(); 202 AM.Base.FrameIndex = cast<FrameIndexSDNode>(N)->getIndex(); 312 if (cast<ConstantSDNode>(LD->getOffset())->getZExtValue() != 1) 318 if (cast<ConstantSDNode>(LD->getOffset())->getZExtValue() != 2) 330 LoadSDNode *LD = cast<LoadSDNode>(N); 359 LoadSDNode *LD = cast<LoadSDNode>(N1); 366 MemRefs0[0] = cast<MemSDNode>(N1)->getMemOperand(); 370 cast<MachineSDNode>(ResNode)->setMemRefs(MemRefs0, MemRefs0 + 1) [all...] |