Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 88 for input_shapes_ (0.66 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference_pass.cc

    class ShapeInference
        : public impl::TensorFlowShapeInferencePassBase<ShapeInference> {
     public:
      ShapeInference() = default;
      explicit ShapeInference(ArrayRef<ArrayRef<int64_t>> input_shapes)
          : input_shapes_(input_shapes) {}
      void runOnOperation() override {
        // Parse `input_arg_shapes_` if provided (test only)
        SmallVector<ArrayRef<int64_t>> input_shapes_vec;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_experimental_test.cc

        // Create input_shapes.
        TF_ShapeAndTypeList* input_shapes =
            TF_NewShapeAndTypeList(input_shapes_vec.size());
        for (size_t i = 0; i < input_shapes_vec.size(); ++i) {
          const auto& input_shape = input_shapes_vec[i];
          if (input_shape.has_value()) {
            TF_ShapeAndTypeListSetShape(input_shapes, i, input_shape->data(),
                                        input_shape->size());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 17 22:27:52 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.cc

        Output input_shape_i = ops::Slice(
            host_scope.WithOpName("input_shape_", i), input_shape,
            constant_pool.Get1DHostConstant(i), constant_pool.Get1DHostConstant(1));
    
        slice_size.push_back(ops::Sub(host_scope.WithOpName("slice_size_", i),
                                      input_shape_i, begin_i));
        DCHECK_EQ(slice_size.back().type(), DT_INT64);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  4. tensorflow/c/c_api_experimental.cc

      // Set input_shapes.
      for (int i = 0; i < num_inputs; ++i) {
        std::vector<DimensionHandle> dims;
        const TF_ShapeAndType& input_shape = input_shapes->items[i];
        if (input_shape.num_dims == InferenceContext::kUnknownRank) {
          c.SetInput(i, c.UnknownShape());
          continue;
        }
        dims.reserve(input_shape.num_dims);
        for (int j = 0; j < input_shape.num_dims; ++j) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.cc

        const std::vector<std::optional<std::vector<int>>>& input_shapes,
        const std::vector<std::string>& output_arrays,
        const std::vector<std::string>& control_output_arrays,
        const GraphdefToMlirOptions& import_options, mlir::MLIRContext* context) {
      auto module_or = GraphdefToMlirImport(
          input, input_arrays, input_dtypes, input_shapes, output_arrays,
          control_output_arrays, import_options, context);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 11:51:44 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  6. tensorflow/c/kernels/bitcast_op_test.cc

                      .Finalize(&def));
      shape_inference::InferenceContext c(0, def, op_def, {S({3, 4})}, {}, {}, {});
      std::vector<shape_inference::ShapeHandle> input_shapes;
      TF_CHECK_OK(c.input("input", &input_shapes));
      ASSERT_EQ("[3,4]", c.DebugString(input_shapes[0]));
      TF_CHECK_OK(reg->shape_inference_fn(&c));
      ASSERT_EQ("[3,4,8]", c.DebugString(c.output(0)));
    }
    
    TEST(BitcastOpTest, TestShapeInference_SmallerShape) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 18 15:10:51 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  7. tensorflow/cc/gradients/grad_helper.cc

      // data = { input_shape, axes_ones }
      //      = { [2, 3, 5, 7], [1, 1] }
      // The input_rank_range entry in indices first replicates the
      // input_shape to the result.
      // The axes entry in indices then moves a 1 to each of its entries,
      // resulting in
      // [2, 1, 1, 7]
      std::vector<Output> indices = {input_rank_range, axes};
      std::vector<Output> data = {input_shape, axes_ones};
      return DynamicStitch(scope, indices, data);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 07 23:11:54 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/tpu-multiple-while-body-func.mlir

      }) {sym_name = "__inference_wrapped_function_4260250_0", sym_visibility = "private", tf._input_shapes = [#tf_type.shape<>], tf.signature.is_stateful, function_type = (tensor<i32>) -> ()} : () -> ()
      "func.func"() ({
      ^bb0(%arg0: tensor<i32>):
        "func.return"(%arg0) : (tensor<i32>) -> ()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 13 21:23:47 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/tf_mlir_translate.h

    GraphdefToMlirTranslateFunction(
        llvm::StringRef input, const std::vector<std::string>& input_arrays,
        const std::vector<std::string>& input_dtypes,
        const std::vector<std::optional<std::vector<int>>>& input_shapes,
        const std::vector<std::string>& output_arrays,
        const std::vector<std::string>& control_output_arrays,
        const GraphdefToMlirOptions& import_options, mlir::MLIRContext* context);
    
    ABSL_DEPRECATED(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py

          merge_fusion_with_dequantize: bool,
      ):
        lhs_dim_size, rhs_dim_size = dim_sizes
        input_shape = (*lhs_dim_size,)
        filter_shape = (*rhs_dim_size,)
        static_input_shape = [dim if dim is not None else 2 for dim in input_shape]
        model = self._create_matmul_model(
            input_shape,
            filter_shape,
            self._input_saved_model_path,
            bias_fn,
            activation_fn,
        )
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 51.4K bytes
    - Viewed (0)
Back to top