Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 442 for pushBack (0.17 sec)

  1. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

        result_types.push_back(op->getOpResult(2).getType());
    
        // Populate attributes.
        SmallVector<NamedAttribute, 4> attributes;
        // Activation will always be tanh.
        attributes.push_back(rewriter.getNamedAttr("fused_activation_function",
                                                   rewriter.getStringAttr("TANH")));
        // cell_clip.
        attributes.push_back(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/utils/device_util_test.cc

      const std::string gpu1 = "/job:worker/replica:1/task:2/device:GPU:1";
    
      llvm::SmallVector<std::unique_ptr<Device>, 2> devices;
      devices.push_back(FakeDevice::Make(cpu0));
      devices.push_back(FakeDevice::Make(gpu0, "compute capability: 7.0"));
      devices.push_back(FakeDevice::Make(gpu1));
    
      DeviceSet device_set;
      for (auto& device : devices) device_set.AddDevice(device.get());
      AddDevicesToOp(*module_ref, &device_set);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/integration/tfr_decompose_ctx.cc

        mlir::TensorType mlir_ty = mlir::UnrankedTensorType::get(elt_ty);
        input_tys.push_back(mlir_ty);
      }
      for (auto ty : output_dtys) {
        mlir::Type elt_ty;
        TF_RETURN_IF_ERROR(ConvertDataType(ty, builder, &elt_ty));
        mlir::TensorType mlir_ty = mlir::UnrankedTensorType::get(elt_ty);
        output_tys.push_back(mlir_ty);
      }
      llvm::SmallVector<mlir::NamedAttribute, 4> attrs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 29 02:34:43 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc

      std::vector<std::string> disabled_checks;
      for (auto attr : op.getDisabledChecks().getAsRange<StringAttr>()) {
        disabled_checks.push_back(attr.getValue().str());
      }
      std::vector<std::string> platforms;
      for (auto attr : op.getPlatforms().getAsRange<StringAttr>()) {
        platforms.push_back(attr.getValue().str());
      }
      TF_ASSIGN_OR_RETURN(
          auto loader,
          tensorflow::XlaCallModuleLoader::Create(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
      std::vector<TensorHandlePtr> vector_handles;
      vector_handles.reserve(2);
      vector_handles.push_back(std::move(two_vector));
      vector_handles.push_back(std::move(three_vector));
      std::unique_ptr<ParallelTensor> unknown_length_vector =
          ParallelTensor::FromTensorHandles(
              parallel_device, std::move(vector_handles), status.get());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 08 23:47:35 UTC 2021
    - 15.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc

      } else {
        SmallVector<double> scales_vec;
        SmallVector<int64_t> zero_points_vec;
        for (auto elem : scales.getValues<float>()) scales_vec.push_back(elem);
        for (auto elem : zero_points.getValues<int32_t>())
          zero_points_vec.push_back(elem);
        elem_ty = quant::UniformQuantizedPerAxisType::get(
            flags, storage_type, expressed_type, scales_vec, zero_points_vec,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

                          arg_locs);
      SmallVector<NamedAttribute> func_attrs;
      func_attrs.push_back(
          {StringAttr::get(context, "inputs"),
           StringAttr::get(context, absl::StrJoin(input_names, ","))});
      func_attrs.push_back(
          {StringAttr::get(context, "outputs"),
           StringAttr::get(context, absl::StrJoin(output_names, ","))});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc

        return split.emitOpError("different split lengths are not supported");
      }
      llvm::SmallVector<int64_t, 8> elem_shape;
      elem_shape.push_back(length);
      for (int64_t dim : buffer_type.getShape().drop_front()) {
        elem_shape.push_back(dim);
      }
      *elem_type = RankedTensorType::get(elem_shape, buffer_type.getElementType());
      return success();
    }
    
    // Tries to infer the tensor array element shape.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 40.2K bytes
    - Viewed (0)
  9. tensorflow/cc/gradients/array_grad_test.cc

    }
    
    TEST_F(ArrayGradTest, ConcatV2Grad) {
      TensorShape shape({3, 2, 5});
      std::vector<Output> xs;
      xs.push_back(Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape)));
      xs.push_back(Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape)));
      xs.push_back(Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape)));
      auto axis = Const(scope_, 0);
      auto y = Concat(scope_, xs, axis);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 10 23:33:32 UTC 2023
    - 19.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/visitor.cc

        func::FuncOp func,
        llvm::function_ref<WalkResult(func::FuncOp)> callback,
        SymbolTableCollection* symbol_table) {
      llvm::SmallDenseSet<Operation*> visited;
    
      llvm::SmallVector<func::FuncOp> stack;
      stack.push_back(func);
    
      while (!stack.empty()) {
        func::FuncOp f = stack.back();
        stack.pop_back();
    
        if (!visited.insert(f).second) {
          continue;
        }
    
        WalkResult result = callback(f);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 03:46:51 UTC 2023
    - 4.1K bytes
    - Viewed (0)
Back to top