| /external/pytorch/torch/testing/_internal/ |
| D | common_nn.py | 80 # `wrap_functional(lambda i: F.poisson_nll_loss(i, t.type_as(i), reduction='none'))`, 87 # `wrap_functional(lambda i: F.poisson_nll_loss(i, t.type_as(i), reduction='none'))`, 178 lambda i: F.poisson_nll_loss(i, t.type_as(i), reduction='none')), 193 lambda i: F.binary_cross_entropy(i, t.type_as(i), reduction='none')), 209 lambda i: F.binary_cross_entropy(i, t.type_as(i), reduction='none')), 225 lambda i: F.binary_cross_entropy(i, t.type_as(i), 226 weight=weights.type_as(i), reduction='none')), 245 lambda i: F.binary_cross_entropy(i, t.type_as(i), 246 weight=weights.type_as(i), reduction='none')), 264 lambda i: F.binary_cross_entropy_with_logits(i, t.type_as(i), reduce=False)), [all …]
|
| /external/deqp-deps/SPIRV-Tools/test/val/ |
| D | val_ray_tracing_test.cpp | 380 %type_as = OpTypeAccelerationStructureKHR in GenerateRayTraceCode() 381 %as_uc_ptr = OpTypePointer UniformConstant %type_as in GenerateRayTraceCode() 419 %as = OpLoad %type_as %top_level_as in TEST_F() 434 %as = OpLoad %type_as %top_level_as in TEST_F() 460 %as = OpLoad %type_as %top_level_as in TEST_F() 472 %as = OpLoad %type_as %top_level_as in TEST_F() 484 %as = OpLoad %type_as %top_level_as in TEST_F() 496 %as = OpLoad %type_as %top_level_as in TEST_F() 508 %as = OpLoad %type_as %top_level_as in TEST_F() 520 %as = OpLoad %type_as %top_level_as in TEST_F() [all …]
|
| D | val_ray_query_test.cpp | 66 %type_as = OpTypeAccelerationStructureKHR in GenerateShaderCode() 93 %ptr_as = OpTypePointer UniformConstant %type_as in GenerateShaderCode() 366 %as = OpLoad %type_as %top_level_as in TEST_F() 389 %as_1 = OpLoad %type_as %top_level_as in TEST_F() 397 %as_2 = OpLoad %type_as %top_level_as in TEST_F() 407 %load = OpLoad %type_as %top_level_as in TEST_F() 431 %load = OpLoad %type_as %top_level_as in TEST_F() 443 %load = OpLoad %type_as %top_level_as in TEST_F() 455 %load = OpLoad %type_as %top_level_as in TEST_F() 467 %load = OpLoad %type_as %top_level_as in TEST_F() [all …]
|
| /external/angle/third_party/spirv-tools/src/test/val/ |
| D | val_ray_tracing_test.cpp | 380 %type_as = OpTypeAccelerationStructureKHR in GenerateRayTraceCode() 381 %as_uc_ptr = OpTypePointer UniformConstant %type_as in GenerateRayTraceCode() 419 %as = OpLoad %type_as %top_level_as in TEST_F() 434 %as = OpLoad %type_as %top_level_as in TEST_F() 460 %as = OpLoad %type_as %top_level_as in TEST_F() 472 %as = OpLoad %type_as %top_level_as in TEST_F() 484 %as = OpLoad %type_as %top_level_as in TEST_F() 496 %as = OpLoad %type_as %top_level_as in TEST_F() 508 %as = OpLoad %type_as %top_level_as in TEST_F() 520 %as = OpLoad %type_as %top_level_as in TEST_F() [all …]
|
| D | val_ray_query_test.cpp | 69 %type_as = OpTypeAccelerationStructureKHR in GenerateShaderCode() 99 %ptr_as = OpTypePointer UniformConstant %type_as in GenerateShaderCode() 373 %as = OpLoad %type_as %top_level_as in TEST_F() 396 %as_1 = OpLoad %type_as %top_level_as in TEST_F() 404 %as_2 = OpLoad %type_as %top_level_as in TEST_F() 414 %load = OpLoad %type_as %top_level_as in TEST_F() 438 %load = OpLoad %type_as %top_level_as in TEST_F() 450 %load = OpLoad %type_as %top_level_as in TEST_F() 462 %load = OpLoad %type_as %top_level_as in TEST_F() 474 %load = OpLoad %type_as %top_level_as in TEST_F() [all …]
|
| /external/swiftshader/third_party/SPIRV-Tools/test/val/ |
| D | val_ray_tracing_test.cpp | 380 %type_as = OpTypeAccelerationStructureKHR in GenerateRayTraceCode() 381 %as_uc_ptr = OpTypePointer UniformConstant %type_as in GenerateRayTraceCode() 419 %as = OpLoad %type_as %top_level_as in TEST_F() 434 %as = OpLoad %type_as %top_level_as in TEST_F() 460 %as = OpLoad %type_as %top_level_as in TEST_F() 472 %as = OpLoad %type_as %top_level_as in TEST_F() 484 %as = OpLoad %type_as %top_level_as in TEST_F() 496 %as = OpLoad %type_as %top_level_as in TEST_F() 508 %as = OpLoad %type_as %top_level_as in TEST_F() 520 %as = OpLoad %type_as %top_level_as in TEST_F() [all …]
|
| D | val_ray_query_test.cpp | 66 %type_as = OpTypeAccelerationStructureKHR in GenerateShaderCode() 93 %ptr_as = OpTypePointer UniformConstant %type_as in GenerateShaderCode() 366 %as = OpLoad %type_as %top_level_as in TEST_F() 389 %as_1 = OpLoad %type_as %top_level_as in TEST_F() 397 %as_2 = OpLoad %type_as %top_level_as in TEST_F() 407 %load = OpLoad %type_as %top_level_as in TEST_F() 431 %load = OpLoad %type_as %top_level_as in TEST_F() 443 %load = OpLoad %type_as %top_level_as in TEST_F() 455 %load = OpLoad %type_as %top_level_as in TEST_F() 467 %load = OpLoad %type_as %top_level_as in TEST_F() [all …]
|
| /external/pytorch/torch/distributed/_shard/sharded_tensor/_ops/ |
| D | tensor_ops.py | 67 Args: same as ``torch.Tensor.type_as``. 81 Args: same as ``torch.Tensor.type_as``. 90 Handles ``__torch_function__`` dispatch for the ``torch.Tensor.type_as`` op. 92 Args: same as ``torch.Tensor.type_as``. 104 new_local_shards.append(Shard(shard.tensor.type_as(tensor), shard.metadata)) 111 torch.Tensor.type_as,
|
| /external/pytorch/torch/csrc/jit/runtime/ |
| D | symbolic_script.cpp | 881 … grad_self = (grad_output * (self > other).type_as(grad_output))._grad_sum_to_size(self_size) 882 … grad_other = (grad_output * (other > self).type_as(grad_output))._grad_sum_to_size(other_size) 889 … grad_self = (grad_output * (self < other).type_as(grad_output))._grad_sum_to_size(self.size()) 890 … grad_other = (grad_output * (other < self).type_as(grad_output))._grad_sum_to_size(other.size()) 906 return grad_output * (result > 0).type_as(result) 920 … return grad_output * torch.where(self > 0, 1.0, negative_slope).type_as(result), None 939 m = (self > 3.).type_as(result) 949 return torch.where(m, lhs, m.type_as(self)) 977 … grad_self = (grad_output * condition.type_as(grad_output))._grad_sum_to_size(self_size) 978 …grad_other = (grad_output * (condition.bitwise_not()).type_as(grad_output))._grad_sum_to_size(othe… [all …]
|
| /external/pytorch/torch/csrc/jit/passes/ |
| D | peephole.cpp | 118 node->matches("aten::type_as(Tensor self, Tensor other) -> Tensor") && in optimizeBlock() 120 // x.type_as(y) == x iff x.type() == y.type() in optimizeBlock() 127 " (x.type_as(y) == x) is replaced with ", in optimizeBlock() 349 // insert a type_as conditional on the tensor shape being a scalar, in FuseAddMM() 376 // we can't use type_as if we don't know the target type (mm), the in FuseAddMM() 382 // We insert the type_as if we're sure that the added element is a in FuseAddMM() 389 graph->insertNode(graph->create(aten::type_as, 1)); in FuseAddMM()
|
| /external/executorch/examples/models/llama/ |
| D | rope.py | 92 return xq_out.type_as(xq), xk_out.type_as(xk) 120 t = torch.arange(end, device=freqs.device, dtype=torch.int64).type_as(
|
| /external/pytorch/torch/distributions/ |
| D | uniform.py | 87 lb = self.low.le(value).type_as(self.low) 88 ub = self.high.gt(value).type_as(self.low)
|
| D | negative_binomial.py | 48 self.total_count = self.total_count.type_as(self.probs) 54 self.total_count = self.total_count.type_as(self.logits)
|
| D | binomial.py | 61 self.total_count = self.total_count.type_as(self.probs) 67 self.total_count = self.total_count.type_as(self.logits)
|
| /external/pytorch/test/jit/ |
| D | test_custom_operators.py | 85 r"aten::type_as\(\) is missing value for argument 'other'.", 88 torch.ops.aten.type_as(torch.ones(5, 5))
|
| D | test_peephole.py | 65 return x.type_as(y) 68 FileCheck().check("type_as").run(str(tf.graph)) 70 FileCheck().check_not("type_as").run(str(tf.graph)) 78 return x.type_as(y) 137 return x.type_as(y) 146 FileCheck().check_not("type_as").run(str(trace.graph))
|
| /external/pytorch/test/cpp_api_parity/ |
| D | utils.py | 71 …# which is strictly equivalent to `F.binary_cross_entropy(i, t.type_as(i), reduction='none')` in P… 284 # lambda i: F.binary_cross_entropy(i, t.type_as(i), 285 # weight=weights.type_as(i), reduction='none')),
|
| /external/executorch/backends/vulkan/ |
| D | custom_ops_lib.py | 227 return xq_out.type_as(xq), xk_out.type_as(xk)
|
| /external/executorch/backends/vulkan/_passes/ |
| D | custom_ops_defs.py | 227 return xq_out.type_as(xq), xk_out.type_as(xk)
|
| /external/pytorch/torch/csrc/jit/codegen/fuser/cpu/ |
| D | resource_strings.h | 10 /*with type_as not checking type of its input, a fusion group can have non-fp32
|
| /external/pytorch/torch/distributed/algorithms/model_averaging/ |
| D | utils.py | 49 p.data = flat_params[offset : offset + p.numel()].view_as(p).type_as(p)
|
| /external/pytorch/benchmarks/gpt_fast/ |
| D | model.py | 265 output = self._norm(x.float()).type_as(x) 292 return x_out2.type_as(x)
|
| D | mixtral_moe_model.py | 278 output = self._norm(x.float()).type_as(x) 305 return x_out2.type_as(x)
|
| /external/pytorch/test/ |
| D | test_jit_fuser.py | 376 mask = (x == 0).type_as(x) 378 mask = (x != 0).type_as(x) 390 mask = (x > 0).type_as(x) 392 mask = (x < 0).type_as(x) 407 mask = (x >= 0).type_as(x) 409 mask = (x <= 0).type_as(x)
|
| /external/pytorch/test/onnx/ |
| D | test_pytorch_onnx_onnxruntime_cuda.py | 123 x = x.type_as(y)
|