Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for output_shapes (0.16 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/split_into_island_per_op.mlir

            init_func = @__init_func_530, next_func = @__next_func_680,
            next_func.experimental_ints_on_device = true,
            operandSegmentSizes = array<i32: 2, 2, 1>,
            output_shapes = [#tf_type.shape<?>],
            output_types = [f32],
            metadata = ""
          } :
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/tests/unfreeze_constants.mlir

        %0:3 = "tf.While"(%cst_0, %cst_1, %arg0) {T = [i32, i32, f32], _lower_using_switch_merge = true, _num_original_outputs = 4 : i64, _read_only_resource_inputs = [], body = @while_body, cond = @while_cond, device = "", is_stateless = true, output_shapes = [#tf_type.shape<>, #tf_type.shape<>, #tf_type.shape<1x5x5x1024>], parallel_iterations = 10 : i64, shape_invariant} : (tensor<i32>, tensor<i32>, tensor<1x5x5x1024xf32>) -> (tensor<i32>, tensor<i32>, tensor<1x5x5x1024xf32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/region-control-flow-to-functional.mlir

        "tf.Yield"(%1) : (tensor<5xf32>) -> ()
      }) {device = "/job:tpu_host_worker/replica:0/task:0/device:CPU:0", metadata = "", operandSegmentSizes = array<i32: 1, 2, 1>, output_shapes = [#tf_type.shape<>], output_types = [!tf_type.string]} : (tensor<4xf32>, tensor<3xf32>, tensor<!tf_type.resource>, tensor<2xf32>) -> tensor<!tf_type.variant>
      return
    }
    
    // -----
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 02 11:15:34 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc

      SmallVector<int64_t, 2> output_shape{1, mlir::ShapedType::kDynamic};
      EXPECT_EQ(mlir::cast<RankedTensorType>(output_types[0]).getShape().size(),
                output_shape.size());
      for (int i = 0; i < output_shape.size(); i++) {
        EXPECT_EQ(mlir::cast<RankedTensorType>(output_types[0]).getDimSize(i),
                  output_shape[i]);
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc

      PartialTensorShape output_shape =
          ConvertTypeToTensorShape(mlir::UnrankedTensorType::get(b.getF32Type()));
      EXPECT_TRUE(output_shape.IsIdenticalTo(PartialTensorShape()));
    }
    
    TEST(ConvertTypeToTensorTypeTest, NonFullyDefinedRankedTensorType) {
      mlir::MLIRContext context;
      RegisterDialects(context);
      mlir::Builder b(&context);
    
      PartialTensorShape output_shape = ConvertTypeToTensorShape(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

        return failure();
    
      // Build the lstm op.
      SmallVector<int64_t, 3> output_shape;
      if (time_majored) {
        output_shape = {time, batch, n_output};
      } else {
        output_shape = {batch, time, n_output};
      }
      auto result_type = mlir::RankedTensorType::get(
          output_shape,
          mlir::cast<RankedTensorType>(final_inputs.getType()).getElementType());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

        SmallVector<int64_t, 4> output_shape;
        for (int i = 0; i < num_dimensions; ++i) {
          perm.push_back(perm_tensor.getValues<IntegerAttr>()[i].getInt());
          output_shape.push_back(input_shape[perm[i]]);
    
          // Check that the derived output shape matches the static shape.
          assert(!output_type.hasStaticShape() ||
                 output_type.getShape()[i] == output_shape[i]);
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/utils/utils.h

    inline DenseElementsAttr GetShape(Value output_val, bool truncate = false) {
      auto output_shape = output_val.getType().dyn_cast<ShapedType>().getShape();
    
      SmallVector<int32_t> shape;
      shape.reserve(output_shape.size());
    
      bool needs_truncation = true;
      for (size_t dim_idx = 0; dim_idx < output_shape.size(); ++dim_idx) {
        int64_t dim = output_shape[dim_idx];
        if (truncate && needs_truncation && dim == 1) {
          continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.cc

      // dimensions.
      SmallVector<int64_t> output_shape(output_tensor_rank);
      for (int i = 0; i < output_tensor_rank; i++) {
        if (collapsed_dims.contains(i)) {
          // The collapsed dimension's size should have been 1, so it restores the
          // dimension with size 1.
          output_shape[i] = 1;
        } else {
          output_shape[i] = *shape_itr;
          shape_itr++;
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils.cc

      SmallVector<int64_t> output_shape(input_shape.getShape().begin(),
                                        input_shape.getShape().end());
      for (int i : spatial_dims) {
        output_shape[i] += padding_values[2 * i] + padding_values[2 * i + 1];
      }
    
      return builder.create<TF::PadV2Op>(
          loc, RankedTensorType::get(output_shape, builder.getI8Type()), input,
          temp_padding,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top