Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 19 of 19 for shape_of (0.21 sec)

  1. tensorflow/c/eager/c_api_experimental_test.cc

        ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
        TFE_Op* shape_op = ShapeOp(ctx, hgpu);
        TFE_OpSetDevice(shape_op, gpu_device_name.c_str(), status.get());
        ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
        TFE_TensorHandle* retvals[1];
        int num_retvals = 1;
        TFE_Execute(shape_op, &retvals[0], &num_retvals, status.get());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 03:14:26 UTC 2023
    - 31.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/duplicate_shape_determining_constants.cc

    // or bounded from the XLA compiler's perspective, even if it is not a
    // `ConstOp`.
    bool IsOutputCompileTimeConstantOrBounded(Operation* op) {
      return llvm::isa_and_nonnull<TF::ShapeOp, TF::ShapeNOp, TF::RankOp,
                                   TF::SizeOp, TF::TensorArraySizeV3Op,
                                   TF::XlaSetBoundOp>(op);
    }
    
    // Recursively duplicate constants for `op_operands` upward.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc

          OperationName(mlir::TF::RankOp::getOperationName(), context),
          OperationName(mlir::TF::RangeOp::getOperationName(), context),
          OperationName(mlir::TF::ShapeOp::getOperationName(), context),
          OperationName(mlir::TF::ShapeNOp::getOperationName(), context),
          OperationName(mlir::TF::SizeOp::getOperationName(), context),
      };
    
      supported_ops->insert(allowlist_ops.begin(), allowlist_ops.end());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc

    // returns an error.
    LogicalResult GetConstShapeValue(Value shape_value,
                                     llvm::SmallVector<int64_t, 8>* shape) {
      auto shape_op = shape_value.getDefiningOp();
      if (!shape_op) return failure();
      auto shape_const_op = llvm::dyn_cast<TF::ConstOp>(shape_op);
      if (!shape_const_op) return failure();
      for (const auto& v : shape_const_op.getValue().getValues<APInt>()) {
        int64_t dim_size = v.getSExtValue();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc

          TF_SignatureDefParamTensorSpec(param_out);
      const TF_Shape* shape_out = TF_TensorSpecShape(tensor_spec_out);
    
      // Output "output_0" is a scalar, float32 tensor
      EXPECT_EQ("output_0", std::string(TF_SignatureDefParamName(param_out)));
      EXPECT_EQ(TF_FLOAT, TF_TensorSpecDataType(tensor_spec_out));
      EXPECT_EQ(0, TF_ShapeDims(shape_out));
    
      std::vector<TFE_TensorHandle*> compute_fn_inputs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 08:08:45 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td

      NativeCodeCall<"GetF32Scalar(&$_builder, " # value # ")">;
    
    def TrueBoolAttr : AttrConstraint<CPred<"$_self.cast<::mlir::BoolAttr>().getValue()">>;
    
    def CreateTFShapeOp : NativeCodeCall<
        "$_builder.create<TF::ShapeOp>($0.getLoc(), $1, $2)">;
    
    def IsI32 : NativeCodeCall<
        "$_builder.getBoolAttr(getElementTypeOrSelf($0.getType()).isInteger(32))">;
    
    def CreateTFCastOpF32 : NativeCodeCall<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

        return rewriter.create<TF::ConstOp>(loc, static_shape_attr).getOutput();
      }
    
      // If the shape is not static, create a new ShapeOp.
      BoolAttr false_attr = rewriter.getBoolAttr(false);
      return rewriter
          .create<TF::ShapeOp>(loc, input,
                               /*use_32bit=*/false_attr)
          .getOutput();
    }
    
    mlir::TFL::MirrorPaddingType GetTFLMirrorPaddingFromString(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tests/lower-static-tensor-list.mlir

    // CHECK:  [[DIFF_RES:%.*]] = "tf.Greater"([[SIZE_DIFF]], [[ZERO]]) : (tensor<i32>, tensor<i32>) -> tensor<i1>
    // CHECK:  [[SHAPE_1:%.*]] = "tf.Shape"([[INPUT]]) : (tensor<3x10xf32>) -> tensor<?xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 39.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.cc

        TypeID::get<TF::ReshapeOp>(),
        TypeID::get<TF::ReverseV2Op>(),
        TypeID::get<TF::RFFTOp>(),
        TypeID::get<TF::RsqrtGradOp>(),
        TypeID::get<TF::ScatterNdOp>(),
        TypeID::get<TF::ShapeOp>(),
        TypeID::get<TF::SinhOp>(),
        TypeID::get<TF::SizeOp>(),
        TypeID::get<TF::SliceOp>(),
        TypeID::get<TF::SoftmaxCrossEntropyWithLogitsOp>(),
        TypeID::get<TF::SoftplusOp>(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 21.7K bytes
    - Viewed (0)
Back to top