Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for tensor_shape (0.3 sec)

  1. tensorflow/compiler/mlir/tf2xla/internal/utils/test_metadata_config.cc

      for (auto input_type : func_type.getInputs()) {
        tensorflow::TensorShape tensor_shape;
        xla::Shape xla_shape = xla::TypeToShape(input_type);
        TF_RETURN_IF_ERROR(tensorflow::TensorShape::BuildTensorShape(
            xla_shape.dimensions(), &tensor_shape));
        arg_shapes.emplace_back(tensor_shape);
    
        DataType dtype;
        TF_RETURN_IF_ERROR(ConvertToDataType(input_type, &dtype));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_host_recv_device_context.cc

        Tensor* cpu_tensor, StatusCallback done) {
      DataType dtype = EncodePrimitiveTypeAsDataType(shape_.element_type()).value();
      TensorShape tensor_shape;
      Status status = XLAShapeToTensorShape(shape_, &tensor_shape);
      if (!status.ok()) {
        done(status);
        return;
      }
    
      *cpu_tensor = Tensor(dtype, tensor_shape);
    
      status = stream_->Memcpy(cpu_tensor->data(), device_memory_base_,
                               device_memory_base_.size());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/convert_type.h

    #define TENSORFLOW_COMPILER_MLIR_TENSORFLOW_UTILS_CONVERT_TYPE_H_
    
    #include "mlir/IR/Builders.h"  // from @llvm-project
    #include "mlir/IR/Types.h"  // from @llvm-project
    #include "tensorflow/core/framework/tensor_shape.h"
    #include "tensorflow/core/framework/tensor_shape.pb.h"
    #include "tensorflow/core/framework/types.pb.h"
    
    namespace tensorflow {
    
    using tsl::StatusOr;
    
    // Converts the TensorFlow DataType 'dtype' into an MLIR (scalar) type.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/end2end/fake_quant_without_identity.pbtxt

      op: "Const"
      attr {
        key: "dtype"
        value {
          type: DT_FLOAT
        }
      }
      attr {
        key: "value"
        value {
          tensor {
            dtype: DT_FLOAT
            tensor_shape {
              dim {
                size: 1
              }
              dim {
                size: 1
              }
              dim {
                size: 256
              }
              dim {
                size: 186
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tests/end2end/fake_quant_without_identity_4bit.pbtxt

      op: "Const"
      attr {
        key: "dtype"
        value {
          type: DT_FLOAT
        }
      }
      attr {
        key: "value"
        value {
          tensor {
            dtype: DT_FLOAT
            tensor_shape {
              dim {
                size: 1
              }
              dim {
                size: 1
              }
              dim {
                size: 256
              }
              dim {
                size: 186
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tests/end2end/fake_quant_per_channel.pbtxt

      op: "Const"
      attr {
        key: "dtype"
        value {
          type: DT_FLOAT
        }
      }
      attr {
        key: "value"
        value {
          tensor {
            dtype: DT_FLOAT
            tensor_shape {
              dim {
                size: 1
              }
              dim {
                size: 1
              }
              dim {
                size: 256
              }
              dim {
                size: 186
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/end2end/fake_quant_per_channel_4bit.pbtxt

      op: "Const"
      attr {
        key: "dtype"
        value {
          type: DT_FLOAT
        }
      }
      attr {
        key: "value"
        value {
          tensor {
            dtype: DT_FLOAT
            tensor_shape {
              dim {
                size: 1
              }
              dim {
                size: 1
              }
              dim {
                size: 256
              }
              dim {
                size: 186
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  8. tensorflow/cc/experimental/libtf/impl/tensor_spec_test.cc

    ==============================================================================*/
    
    #include "tensorflow/cc/experimental/libtf/impl/tensor_spec.h"
    
    #include "absl/hash/hash_testing.h"
    #include "tensorflow/core/framework/tensor_shape.h"
    #include "tensorflow/core/framework/types.pb.h"
    #include "tensorflow/core/platform/test.h"
    
    namespace tf {
    namespace libtf {
    namespace impl {
    
    TEST(TensorSpecTest, TestSupportsAbslHash) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 09:47:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  9. tensorflow/cc/experimental/libtf/impl/iostream_test.cc

    #include "tensorflow/cc/experimental/libtf/impl/scalars.h"
    #include "tensorflow/cc/experimental/libtf/impl/string.h"
    #include "tensorflow/cc/experimental/libtf/impl/tensor_spec.h"
    #include "tensorflow/core/framework/tensor_shape.h"
    #include "tensorflow/core/framework/types.pb.h"
    #include "tensorflow/core/platform/test.h"
    
    namespace tf {
    namespace libtf {
    namespace impl {
    
    TEST(OStreamTest, TestInt64) {
      Int64 x(42);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 09:47:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc

        ShapedType tensor_shape, const bool is_lhs,
        SmallVector<int64_t> &opponent_shape) {
      int opponent_required_dim = xladot_output_rank;
      int used_rank = tensor_shape.getRank();
    
      if (is_lhs) {
        used_rank -= dnums.lhs_contracting_dimensions_size();
        for (int64_t v : dnums.lhs_contracting_dimensions()) {
          opponent_shape.push_back(tensor_shape.getDimSize(v));
        }
      } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 47.1K bytes
    - Viewed (0)
Back to top