LCOV - code coverage report
Current view: top level - libtorch/include/ATen/ops - scalar_tensor.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 0.0 % 2 0
Test Date: 2024-04-30 13:17:26 Functions: 0.0 % 1 0

            Line data    Source code
       1              : #pragma once
       2              : 
       3              : // @generated by torchgen/gen.py from Function.h
       4              : 
       5              : #include <ATen/Context.h>
       6              : #include <ATen/DeviceGuard.h>
       7              : #include <ATen/TensorUtils.h>
       8              : #include <ATen/TracerMode.h>
       9              : #include <ATen/core/Generator.h>
      10              : #include <ATen/core/Reduction.h>
      11              : #include <ATen/core/Tensor.h>
      12              : #include <c10/core/Scalar.h>
      13              : #include <c10/core/Storage.h>
      14              : #include <c10/core/TensorOptions.h>
      15              : #include <c10/util/Deprecated.h>
      16              : #include <c10/util/Optional.h>
      17              : 
      18              : 
      19              : 
      20              : #include <ATen/ops/scalar_tensor_ops.h>
      21              : 
      22              : namespace at {
      23              : 
      24              : 
      25              : // aten::scalar_tensor(Scalar s, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor
      26            0 : inline at::Tensor scalar_tensor(const at::Scalar & s, at::TensorOptions options={}) {
      27            0 :     return at::_ops::scalar_tensor::call(s, optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt());
      28              : }
      29              : // aten::scalar_tensor(Scalar s, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor
      30              : inline at::Tensor scalar_tensor(const at::Scalar & s, c10::optional<at::ScalarType> dtype, c10::optional<at::Layout> layout, c10::optional<at::Device> device, c10::optional<bool> pin_memory) {
      31              :     return at::_ops::scalar_tensor::call(s, dtype, layout, device, pin_memory);
      32              : }
      33              : 
      34              : // aten::scalar_tensor.out(Scalar s, *, Tensor(a!) out) -> Tensor(a!)
      35              : inline at::Tensor & scalar_tensor_out(at::Tensor & out, const at::Scalar & s) {
      36              :     return at::_ops::scalar_tensor_out::call(s, out);
      37              : }
      38              : // aten::scalar_tensor.out(Scalar s, *, Tensor(a!) out) -> Tensor(a!)
      39              : inline at::Tensor & scalar_tensor_outf(const at::Scalar & s, at::Tensor & out) {
      40              :     return at::_ops::scalar_tensor_out::call(s, out);
      41              : }
      42              : 
      43              : }
        

Generated by: LCOV version 2.0-1