Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 136 for Dtype (0.27 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/tf_xla_mlir_translate.cc

             << compilation_result.xla_output_shape.ToString() << '\n';
    
      for (const auto& xla_output_description : compilation_result.outputs) {
        output << "// XlaOutputDescription type="
               << DataTypeString(xla_output_description.type) << " shape=("
               << absl::StrJoin(xla_output_description.shape.dim_sizes(), ", ")
               << ')';
        if (xla_output_description.input_index >= 0)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  2. 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)
  3. tensorflow/cc/experimental/libtf/tests/function_test.cc

      StatusOr<TaggedValue> v = tf_function.Execute(ctx_.get(), args);
      ASSERT_TRUE(tensorflow::errors::IsInternal(v.status())) << v.status();
      ASSERT_TRUE(
          absl::StrContains(v.status().message(), "Shape and dtype of tensor"));
      ASSERT_TRUE(absl::StrContains(v.status().message(),
                                    "does not match that in signature"));
    }
    
    INSTANTIATE_TEST_SUITE_P(TF2CAPI, FunctionTest,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 21:44:52 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/shape_inference_test.cc

      };
      TF_EXPECT_OK(ShapeAnnotationsMatch(graph, shape_info, expected));
    }
    
    TEST(ShapeInferenceTest, WhileLoopWithResource) {
      // Graph:
      // x = resource_variable_ops.var_handle_op(dtype=dtypes.float32, shape=[2, 3])
      // y = control_flow_ops.while_loop(lambda _: true, lambda x: x, [x])
      Graph graph(OpRegistry::Global());
      {
        Scope scope = Scope::NewRootScope().ExitOnError();
    
        auto x =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/c/eager/gradients.cc

          gtl::ArraySlice<AbstractTensorHandle*> output_gradients,
          absl::Span<AbstractTensorHandle*> result) const override;
    
      // Builds a tensor filled with ones with the same shape and dtype as `t`.
      Status BuildOnesLike(const TapeTensor& t,
                           AbstractTensorHandle** result) const override;
    
      // Looks up the ID of a Gradient.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/mlir_graph_optimization_pass_test.cc

          // Args
          {"x: T"},
          // Return values
          {"y: T"},
          // Attr def
          {"T: {float, double, int32, int64}"},
          // Nodes
          {
              {{"two"}, "Const", {}, {{"value", kTwo}, {"dtype", DT_INT64}}},
              {{"scale"}, "Cast", {"two"}, {{"SrcT", DT_INT64}, {"DstT", "$T"}}},
              {{"y"}, "Mul", {"x", "scale"}, {{"T", "$T"}}},
          });
    }
    
    class MlirGraphOptimizationPassTest : public Test {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 08:25:30 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/encapsulate_util.cc

        auto iter = placeholders.find(placeholder_index);
        Node* placeholder_node;
        if (iter == placeholders.end()) {
          NodeDefBuilder placeholder_builder(new_name, "Placeholder");
          placeholder_builder.Attr("dtype", src->output_type(src_output));
          string outside_compilation_attr;
          TF_RETURN_IF_ERROR(GetNodeAttr(dst->attrs(),
                                         outside_compilation_attr_name,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_test.cc

      TF_OperationDescription* init(string type) {
        // Construct op_name to match the name used by REGISTER_OP in the
        // ATTR_TEST_REGISTER calls above.
        string op_name = "CApiAttributesTestOp";
        if (type.find("list(") == 0) {
          op_name += "List";
          type = type.replace(0, 5, "");
          type = type.replace(type.size() - 1, 1, "");
        }
        op_name += type;
        return TF_NewOperation(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc

        LLVM_DEBUG(llvm::dbgs() << "Zero point value should be a tensor type. Got: "
                                << zero_points_type << ".\n");
        return failure();
      }
    
      if (Type zero_points_element_type = zero_points_type.getElementType();
          !mlir::isa<IntegerType>(zero_points_element_type)) {
        LLVM_DEBUG(llvm::dbgs() << "Zero point should be an integer type. Got: "
                                << zero_points_element_type << ".\n");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 64.6K bytes
    - Viewed (0)
Back to top