Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 141 for created (0.12 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc

            mlir::dyn_cast<ShapedType>(v.getType()).getShape()[rhs_batch_dim];
      }
    
      auto lhs_new_concat = rewriter.create<mhlo::ConcatenateOp>(
          concat->getLoc(), concat.getType().clone(lhs_new_concat_shape),
          all_dot_lhs, rewriter.getI64IntegerAttr(lhs_batch_dim));
      auto rhs_new_concat = rewriter.create<mhlo::ConcatenateOp>(
          concat->getLoc(), concat.getType().clone(rhs_new_concat_shape),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_dynamic_layout_pass.cc

                                      Value compilation_key,
                                      tf_device::LaunchOp compile_launch,
                                      OpBuilder* builder) {
      return builder->create<TF::TPUGetLayoutOp>(
          compile_launch.getLoc(),
          llvm::ArrayRef<Type>{RankedTensorType::get({ShapedType::kDynamic},
                                                     builder->getIntegerType(64))},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_cluster_util.cc

    const char* const kXlaClusterAttr = "_XlaCluster";
    const char* const kXlaCompileTimeConstantInputsAttr =
        "_XlaCompileTimeConstantInputs";
    
    namespace {
    // Returns a string describing how an edge from src to dst would
    // create a cycle.
    string DescribeCycle(const GraphCycles* cycles, const Graph& graph, int src,
                         int dst) {
      int32_t max_path_size = graph.num_node_ids() + 1;
      std::vector<int32> path(max_path_size);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 08:39:39 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/resource_operation_safety_analysis.cc

    // producers before consumers, we can construct the set of reaching operations
    // by taking the union of the operations reaching the input nodes.  These
    // "reaching resource operations" can then be used to create the pairs of
    // incompatible nodes using `IsEdgeSafe`.
    
    #include "tensorflow/compiler/jit/resource_operation_safety_analysis.h"
    
    #include "absl/container/flat_hash_set.h"
    #include "absl/memory/memory.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/compilability_check_util.cc

    // not revisited in future calls to ScanForValue, so callers must take
    // care to order their calls.
    //
    // Useful for merging multiple sorted lists in O(n) time.
    class SinglePassSearch {
     public:
      // Creates a SinglePassSearch object that can be used to search in `values`.
      // Does not take ownership of `values`. `values` must outlive this.
      // `values` must be sorted.
      explicit SinglePassSearch(absl::Span<int const> values)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api_test_util.cc

      return th;
    }
    
    TFE_TensorHandle* TestVariable(TFE_Context* ctx, float value,
                                   const tensorflow::string& device_name) {
      TF_Status* status = TF_NewStatus();
      // Create the variable handle.
      TFE_Op* op = TFE_NewOp(ctx, "VarHandleOp", status);
      if (TF_GetCode(status) != TF_OK) return nullptr;
      TFE_OpSetAttrType(op, "dtype", TF_FLOAT);
      TFE_OpSetAttrShape(op, "shape", {}, 0, status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc

      EXPECT_TRUE(output_shape.IsIdenticalTo(TensorShape()));
    }
    
    TEST(ConvertTypeToTensorTypeTest, ConvertStringTensor) {
      mlir::MLIRContext context;
      RegisterDialects(context);
      mlir::Builder b(&context);
    
      // Create the sample tensor to convert.
      Tensor tensor(DT_STRING, TensorShape({1, 2, 2, 1}));
      EXPECT_EQ(4, tensor.NumElements());
      auto Tt = tensor.flat<tstring>();
      Tt.setValues({"one", "two", "three", "four"});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf.cc

      // CHLO first.
      stablehlo::StablehloToHloTypeConverter hlo_converter;
      if (legalize_chlo) {
        chlo::populateChloToHloPatterns(context, &hlo_converter, &patterns);
      }
      // ConstantLike op is convenient to create splat constants, but is
      // canonicalized to plain HLO constant if statically shaped. Add the
      // canonicalization pattern to pattern list to enable multi-hop lowering.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/reduce_while_operands.cc

          id_map[i] = j++;
          new_operands.push_back(while_op.getOperand(i));
          new_result_types.push_back(while_op.getResultTypes()[i]);
        }
      }
    
      auto new_while_op = OpBuilder(while_op).create<WhileOp>(
          while_op.getLoc(), new_result_types, new_operands, while_op->getAttrs());
      new_while_op.getCond().takeBody(while_op.getCond());
      new_while_op.getBody().takeBody(while_op.getBody());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

                }));
    
        // According to the NodeDef proto definition, an attribute name from the
        // input TensorFlow GraphDef shouldn't contain '.'. If it does appear in
        // the attribute from MLIR, it is treated as an attribute from function
        // calls.
        std::vector<string> name_tokens =
            absl::StrSplit(name, '.', absl::SkipEmpty());
        TF_RET_CHECK(name_tokens.size() <= 2);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
Back to top