Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 646 for Auto (0.04 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

      auto x = squared_diff_op.getLhs();
      auto y = squared_diff_op.getRhs();
      auto x_type = mlir::dyn_cast<RankedTensorType>(x.getType());
      auto y_type = mlir::dyn_cast<RankedTensorType>(y.getType());
      if (!x_type || !y_type) return failure();
      if (x_type.getShape() != y_type.getShape()) return failure();
    
      auto result_type = squared_diff_op.getType();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/shape_inference_test.cc

      Scope root = Scope::NewRootScope().ExitOnError();
      auto a = ops::Placeholder(root.WithOpName("A"), DT_FLOAT,
                                ops::Placeholder::Shape({2, 3}));
      auto b = ops::Placeholder(root.WithOpName("B"), DT_FLOAT,
                                ops::Placeholder::Shape({3}));
      auto c = ops::Placeholder(root.WithOpName("C"), DT_FLOAT);
      auto d = ops::Add(root.WithOpName("D"), a, b);
      auto e = ops::Add(root.WithOpName("E"), d, c);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc

      auto body = while_op.body_function();
      auto cond = while_op.cond_function();
      auto grads = AccessedGradients({body, cond}, module);
      auto ta_arg_buffer_type = [&](int64_t index) -> Type {
        auto it = stats->find(while_op.getOperand(index));
        if (it == stats->end()) return nullptr;
        return it->getFirst().getType();
      };
      auto ta_accumulate_on_write = [&](int64_t index) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 40.2K bytes
    - Viewed (0)
  4. tensorflow/cc/gradients/array_grad_test.cc

      TensorShape y_shape({2});
      auto y = GatherNd(scope_, x, indices);
      RunTest(x, x_shape, y, y_shape);
    }
    
    TEST_F(ArrayGradTest, GatherNdGrad_SliceIndexing) {
      TensorShape shape({2, 2});
      auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape));
      auto indices = Const(scope_, {{1}, {0}});
      auto y = GatherNd(scope_, x, indices);
      RunTest(x, shape, y, shape);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc

            decomposed_partitioned_call_callees) {
      auto body = while_op.body_function();
      llvm::SmallDenseMap<Value, Value> body_map;
      auto find_arg_stack_type = [&](int64_t index) -> std::optional<Type> {
        auto it = data_var_to_size_var.find(while_op.getOperand(index));
        if (it == data_var_to_size_var.end()) return std::nullopt;
        return it->getFirst().getType();
      };
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  6. tensorflow/cc/gradients/math_grad_test.cc

      auto x2 = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x2_shape));
      auto y = Sub(scope_, x1, x2);
      RunTest({x1, x2}, {x1_shape, x2_shape}, {y}, {x1_shape});
    }
    
    TEST_F(NaryGradTest, Mul) {
      TensorShape x1_shape({3, 2, 5});
      TensorShape x2_shape({2, 5});
      auto x1 = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x1_shape));
      auto x2 = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x2_shape));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 36K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/encapsulate_xla_computations_pass_test.cc

      auto a = ops::Placeholder(scope.WithOpName("A"), DT_INT32);
      auto b = ops::Placeholder(scope.WithOpName("B"), DT_FLOAT);
      auto c = ops::Placeholder(scope.WithOpName("C"), DT_INT32);
      auto d = ops::Placeholder(scope.WithOpName("D"), DT_FLOAT);
      auto u = ops::Placeholder(scope.WithOpName("U"), DT_RESOURCE);
      auto v = ops::Placeholder(scope.WithOpName("V"), DT_RESOURCE);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 18:03:15 UTC 2023
    - 14.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc

        Block& block, const llvm::SmallDenseMap<Value, SizeInfo>& buffer_to_size) {
      auto old_terminator = block.getTerminator();
      auto new_outputs = llvm::to_vector<8>(old_terminator->getOperands());
      llvm::SmallVector<std::tuple<int64_t, int64_t, bool>, 8>
          output_buffer_to_size;
      for (auto retval : llvm::enumerate(old_terminator->getOperands())) {
        auto it = buffer_to_size.find(retval.value());
        if (it == buffer_to_size.end()) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

    }
    
    void Exporter::UseOriginalFunctionNames(NodeDef& node_def) {
      if (!configs_.export_original_tf_func_name) return;
    
      auto& attrs = *node_def.mutable_attr();
    
      auto try_use_original_func_name = [this](std::string* name) {
        if (auto func = symbol_table_.lookup<FuncOp>(*name)) {
          if (auto original_func_name =
                  func->getAttrOfType<mlir::StringAttr>("tf._original_func_name")) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

    }
    
    void Exporter::UseOriginalFunctionNames(NodeDef& node_def) {
      if (!configs_.export_original_tf_func_name) return;
    
      auto& attrs = *node_def.mutable_attr();
    
      auto try_use_original_func_name = [this](std::string* name) {
        if (auto func = symbol_table_.lookup<FuncOp>(*name)) {
          if (auto original_func_name =
                  func->getAttrOfType<mlir::StringAttr>("tf._original_func_name")) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
Back to top