Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 62 for Dtype (0.11 sec)

  1. tensorflow/compiler/jit/xla_kernel_creator_test.cc

          "XTimesY",
          // Args
          {"x: float", "y: resource"},
          // Return values
          {"z: float"},
          // Attr def
          {},
          // Nodes
          {
              {{"y0"}, "ReadVariableOp", {"y"}, {{"dtype", DT_FLOAT}}},
              {{"z"}, "Mul", {"x", "y0"}, {{"T", DT_FLOAT}}},
          });
    }
    
    class XlaKernelCreatorTest : public ::testing::Test {
     protected:
      void Init(const std::vector<FunctionDef>& flib) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 16 01:39:55 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util_test.cc

      auto build_result = BuildHloFromGraph(*graph, /*use_output_shapes=*/true);
      ASSERT_FALSE(build_result.ok());
      EXPECT_THAT(build_result.message(),
                  HasSubstr("op operand type 'tensor<2x3x4x5xi32>' and result type "
                            "'tensor<1xi32>' are cast incompatible"));
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 19:54:38 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

          // If the arg type already matches the global_tensor type, we don't need
          // to do anything.
          if (!underlying_type.empty() &&
              underlying_type[0] == global_tensor.getType()) {
            assert(underlying_type.size() == 1);
            continue;
          }
    
          // Otherwise, set this argument's type to the global_tensor's type.
          auto new_arg_type = mlir::RankedTensorType::get(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc

      for (auto var_and_tensor : llvm::zip(var_ops, resource_tensors_or.value())) {
        auto& var_op = std::get<0>(var_and_tensor);
        auto& resource_tensor = std::get<1>(var_and_tensor);
        if (resource_tensor.dtype() != tensorflow::DT_RESOURCE) {
          InitializeVariable(var_op, &resource_tensor, session_init_func, builder);
          continue;
        }
    
        auto handle = resource_tensor.scalar<tensorflow::ResourceHandle>()();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/variable_info_util.cc

      }
      return absl::OkStatus();
    }
    
    std::vector<int> GetResourceVariableIndicesFromContext(OpKernelContext* ctx) {
      std::vector<int> out;
      for (int64 i = 0; i < ctx->num_inputs(); i++) {
        if (ctx->input(i).dtype() == DT_RESOURCE) {
          out.push_back(i);
        }
      }
      return out;
    }
    
    Status CreateVariableInfoLookup(
        absl::Span<VariableInfo const> variable_args,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 7K bytes
    - Viewed (0)
  6. tensorflow/cc/saved_model/bundle_v2.cc

          "SavedModel checkpoint does not contain object graph.");
      if (object_graph_tensor.dtype() != DT_STRING ||
          object_graph_tensor.dims() != 0 ||
          object_graph_tensor.NumElements() != 1) {
        return absl::Status(
            absl::StatusCode::kFailedPrecondition,
            "SavedModel checkpoint object graph was not the correct type.");
      }
    
      const tstring* object_graph_string = reinterpret_cast<const tstring*>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 05 18:28:37 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/utils/constant_utils.cc

        } else {
          return tensorflow::Status(absl::StatusCode::kInvalidArgument,
                                    "Unsupported type");
        }
      } else if (auto itype = mlir::dyn_cast<mlir::IntegerType>(element_type)) {
        if (element_type.isSignedInteger()) {
          switch (itype.getWidth()) {
            case 8:
              return DenseElementsAttr::get<int8_t>(shaped_type,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/ops/gen/cpp/views/attr_view.cc

    string AttrView::DefaultValue() const {
      const AttrValue &attr_value = attr_.default_value();
      switch (attr_value.value_case()) {
        case AttrValue::VALUE_NOT_SET:
          return "";
        case AttrValue::kType:
          return DataType_Name(attr_value.type());
        case AttrValue::kS:
          return "\"" + attr_value.s() + "\"";
        case AttrValue::kI:
          return std::to_string(attr_value.i());
        case AttrValue::kF:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 07:02:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/outline_composites.cc

    func::FuncOp BuildGELUDecomposition(RankedTensorType type,
                                        PatternRewriter& rewriter,
                                        Block* insertion_point) {
      rewriter.setInsertionPointToStart(insertion_point);
    
      auto ftype = FunctionType::get(rewriter.getContext(), {type}, {type});
      auto name = rewriter.getStringAttr("gelu_decomp");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/utils/convert_type.cc

    tflite::TensorType ConvertTypeToTensorType(mlir::Type type) {
      if (type.isF16()) {
        return tflite::TensorType_FLOAT16;
      } else if (type.isBF16()) {
        return tflite::TensorType_BFLOAT16;
      } else if (type.isF32()) {
        return tflite::TensorType_FLOAT32;
      } else if (type.isF64()) {
        return tflite::TensorType_FLOAT64;
      } else if (mlir::isa<mlir::TF::StringType>(type)) {
        return tflite::TensorType_STRING;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top