Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for tensor_shape (0.33 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

      // `tensor_shape`. `tfl_pad_values` should be formatted as `[[low_0, high_0],
      // [low_1, high_1], ..., [low_n, high_n]]`, where `low_x` and `high_x` are the
      // low and high paddings for the x-th dimension, respectively.
      SmallVector<int64_t> InferPaddedTensorShape(
          const ArrayRef<int64_t> tensor_shape,
          const ArrayRef<int32_t> tfl_pad_values) const {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

          std::vector<int64_t> tensor_shape =
              mlir::cast<ShapedType>(tensor.getType()).getShape().vec();
    
          // Calculate offsets based on depth_idx, channel_idx and tensor_shape
          std::vector<int64_t> start_indices(tensor_shape.size(), 0);
          std::vector<int64_t> limit_indices = tensor_shape;
          const std::vector<int64_t> strides(tensor_shape.size(), 1);
          start_indices[channel_idx] = depth_idx;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  3. tensorflow/c/c_api.cc

    #include "tensorflow/core/framework/shape_inference.h"
    #include "tensorflow/core/framework/tensor.h"
    #include "tensorflow/core/framework/tensor.pb.h"  // NOLINT
    #include "tensorflow/core/framework/tensor_shape.h"
    #include "tensorflow/core/framework/tensor_shape.pb.h"
    #include "tensorflow/core/framework/types.h"
    #include "tensorflow/core/framework/versions.pb.h"
    #include "tensorflow/core/graph/graph.h"
    #include "tensorflow/core/graph/node_builder.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

    #include "tensorflow/core/framework/graph_to_functiondef.h"
    #include "tensorflow/core/framework/node_def_builder.h"
    #include "tensorflow/core/framework/node_def_util.h"
    #include "tensorflow/core/framework/tensor_shape.pb.h"
    #include "tensorflow/core/graph/algorithm.h"
    #include "tensorflow/core/lib/core/errors.h"
    #include "tensorflow/core/lib/gtl/cleanup.h"
    #include "tensorflow/core/platform/macros.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  6. 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)
Back to top