Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for _output_shapes (0.22 sec)

  1. tensorflow/cc/saved_model/testdata/half_plus_two_pbtxt/00000123/saved_model.pbtxt

                s: "loc:@a"
              }
            }
          }
          attr {
            key: "_output_shapes"
            value {
              list {
                shape {
                }
              }
            }
          }
        }
        node {
          name: "b/initial_value"
          op: "Const"
          attr {
            key: "_output_shapes"
            value {
              list {
                shape {
                }
              }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 26 01:10:27 UTC 2017
    - 46.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc

          end++;
        if (begin != end) {
          mlir::TF::ResultShapeRange output_shapes = {
              mlir::TF::ResultShapeIterator(begin),
              mlir::TF::ResultShapeIterator(end)};
          SetShapeAttribute("_output_shapes", output_shapes, attributes);
        }
      }
    
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.h

    // HLO-level inputs are supplied, and HLO-level outputs are produced.
    // xla_params is the HLO-level inputs and returns is the HLO-level outputs.
    // If unconditionally_use_output_shapes is true then the unregistered
    // attribute _output_shapes is always used to set the output shapes of the ops.
    ABSL_DEPRECATED(
        "Use v1/compile_tf_graph.h::CompileTensorflowGraphToHlo instead.")
    Status BuildHloFromGraph(
        const Graph& graph, xla::XlaBuilder& builder,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

          (*node_def->mutable_attr())["_handle_dtypes"] = handle_dtypes_attr;
          (*node_def->mutable_attr())["_handle_shapes"] = handle_shapes_attr;
        }
      }
    
      TF_RETURN_IF_ERROR(
          SetShapeAttribute("_output_shapes", arg_type, node_def->mutable_attr()));
    
      DataType dtype;
      TF_RETURN_IF_ERROR(ConvertToDataType(arg_type.getElementType(), &dtype));
      AttrValue type_attr;
      type_attr.set_type(dtype);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

          (*node_def->mutable_attr())["_handle_dtypes"] = handle_dtypes_attr;
          (*node_def->mutable_attr())["_handle_shapes"] = handle_shapes_attr;
        }
      }
    
      TF_RETURN_IF_ERROR(
          SetShapeAttribute("_output_shapes", arg_type, node_def->mutable_attr()));
    
      DataType dtype;
      TF_RETURN_IF_ERROR(ConvertToDataType(arg_type.getElementType(), &dtype));
      AttrValue type_attr;
      type_attr.set_type(dtype);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

      // the shape inference pass is run early in the pass pipeline, shape inference
      // during import is not necessary.
      config.enable_shape_inference = false;
      // Some graphs may require _output_shapes (an unregistered attribute)
      // to override shapes. It is unfortunately not always set correctly so only
      // do it optionally.
      config.unconditionally_use_set_output_shapes =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/constant-fold.mlir

    func.func @testUnimplementedOp() -> (tensor<i32>, tensor<i32>) {
      %0 = arith.constant dense<1> : tensor<i32>
      %1 = arith.constant dense<2> : tensor<i32>
      %2 = "tf.Maximum"(%0, %1) {_output_shapes = ["tfshape$"]} : (tensor<i32>, tensor<i32>) -> tensor<i32>
      %3 = "tf.Minimum"(%0, %1) {random_attr = "hello"} : (tensor<i32>, tensor<i32>) -> tensor<i32>
      func.return %2, %3: tensor<i32>, tensor<i32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 31 23:22:24 UTC 2024
    - 36.7K bytes
    - Viewed (0)
  8. 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)
  9. tensorflow/compiler/mlir/tfr/tests/end2end.mlir

        %drop_remainder: i1 {tfr.name="drop_remainder"},
        %f: !tfr.attr {tfr.name="func"},
        %output_types: !tfr.attr {tfr.name="output_types"},
        %output_shapes: !tfr.attr {tfr.name="output_shapes"},
        %preserve_cardinality: i1 {tfr.name="preserve_cardinality", tfr.default=false}) -> !tfr.tensor {
      %batch = "tfr.constant_tensor"(%batch_size) : (i64) -> tensor<i64>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_experimental_test.cc

        CHECK_EQ(TF_OK, TF_GetCode(status_)) << TF_Message(status_);
        CHECK_EQ(output_shapes->num_items, 1);
    
        int num_dims = output_shapes->items[0].num_dims;
        int64_t* dims = output_shapes->items[0].dims;
    
        if (!expected_shape.has_value()) {
          EXPECT_EQ(num_dims, -1);
          EXPECT_EQ(dims, nullptr);
          return;
        }
    
        EXPECT_EQ(num_dims, expected_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)
Back to top