Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 57 for tensor_shape (0.47 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

        for var_name, shape in var_name_and_shapes:
          self.assertIn(var_name, variable_node_defs)
          self.assertEqual(
              shape,
              tensor_shape.TensorShape(
                  variable_node_defs[var_name].attr['shape'].shape
              ),
          )
    
      @parameterized.named_parameters(
          ('use_constant_with_int32_input', dtypes.int32, False, True),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

    #include "tensorflow/compiler/mlir/tensorflow/utils/convert_type.h"
    #include "tensorflow/compiler/mlir/tensorflow/utils/mangling_util.h"
    #include "tensorflow/core/framework/tensor_shape.pb.h"
    
    namespace mlir {
    
    namespace {
    
    constexpr char kDeviceAttr[] = "device";
    
    #define GEN_PASS_DEF_RESOURCEOPLIFTINGPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_device_passes.h.inc"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

    #include "tensorflow/compiler/mlir/tensorflow/utils/dynamic_shape_utils.h"
    #include "tensorflow/compiler/mlir/tensorflow/utils/mangling_util.h"
    #include "tensorflow/core/framework/tensor.pb.h"
    #include "tensorflow/core/framework/tensor_shape.pb.h"
    #include "tensorflow/core/platform/errors.h"
    #include "tensorflow/core/platform/status.h"
    #include "tensorflow/lite/experimental/remat/metadata_util.h"
    #include "tensorflow/lite/graph_info.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

    template <typename T, int num_dims>
    tensorflow::TensorShape ToTensorShape(llvm::ArrayRef<T> sizes) {
      return tensorflow::TensorShape(
          llvm::SmallVector<int64_t, num_dims>(sizes.begin(), sizes.end()));
    }
    
    template <typename T, int num_dims>
    tensorflow::TensorShape ToTensorShape(
        llvm::iterator_range<DenseElementsAttr::ElementIterator<T>> sizes) {
      return tensorflow::TensorShape(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_host_send_recv_device_context_test.cc

      SetDevice("GPU");
      Tensor origin_cpu_tensor(host_allocator_, DT_FLOAT, TensorShape({2, 2}));
      test::FillValues<float>(&origin_cpu_tensor, {1.2, 2.3, 3.4, 4.5});
      Tensor device_tensor(device_allocator_, DT_FLOAT, TensorShape({2, 2}));
      Tensor dest_cpu_tensor(host_allocator_, DT_FLOAT, TensorShape({2, 2}));
    
      stream_executor::Platform* platform =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_host_send_device_context.h

    // Concrete once transfer is completed.
    //
    // Example usage:
    //
    //  Device device;
    //  stream_executor::Stream stream(executor);
    //  Tensor cpu_tensor(host_allocator, DT_FLOAT, TensorShape({2, 2}));
    //  Tensor device_tensor(device_allocator, DT_FLOAT, TensorShape({2, 2}));
    //  se::DeviceMemoryBase gpu_dst{device_tensor.data(), 4 * sizeof(float)};
    //  xla::Shape shape(xla::F32, {2, 2}, {}, {})
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc

      EXPECT_TRUE(output_shape.IsIdenticalTo(TensorShape()));
    }
    
    TEST(ConvertTypeToTensorTypeTest, ConvertStringTensor) {
      mlir::MLIRContext context;
      RegisterDialects(context);
      mlir::Builder b(&context);
    
      // Create the sample tensor to convert.
      Tensor tensor(DT_STRING, TensorShape({1, 2, 2, 1}));
      EXPECT_EQ(4, tensor.NumElements());
      auto Tt = tensor.flat<tstring>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_host_recv_device_context.h

    // Concrete once transfer is completed.
    //
    // Example usage:
    //
    //  Device device;
    //  stream_executor::Stream stream(executor);
    //  Tensor device_tensor(device_allocator, DT_FLOAT, TensorShape({2, 2}));
    //  se::DeviceMemoryBase gpu_dst{device_tensor.data(), 4 * sizeof(float)};
    //  xla::Shape shape(xla::F32, {2, 2}, {}, {})
    //  tsl::AsyncValueRef<std::unique_ptr<se::Event>> done_event =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

        ArrayInfo array_info;
        array_info.imported_dtype = tensor_info.dtype();
    
        if (tensor_info.has_tensor_shape()) {
          array_info.shape = tensor_info.tensor_shape();
        } else {
          // If there is no tensor shape in the tensor info, conservatively set
          // unknown_rank to true.
          array_info.shape.set_unknown_rank(true);
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf.cc

        llvm::StringRef device_type,
        std::vector<std::unique_ptr<mlir::Pass>>& custom_legalization_passes,
        XlaShapeLayoutHelpers::ShapeDeterminationFns shape_determination_fns,
        const std::vector<tensorflow::TensorShape>& arg_shapes,
        std::vector<tpu::ShardingAndIndex>* arg_core_mapping,
        std::vector<std::vector<xla::Shape>>* per_core_arg_shapes,
        xla::CompileOnlyClient* client) {
      CompilationTimer timer;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 00:40:46 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top