Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 107 for pushBack (0.22 sec)

  1. tensorflow/c/experimental/gradients/tape/tape_operation.cc

      TF_RETURN_IF_ERROR(parent_op_->AddInput(input));
      forward_op_.inputs.push_back(input);
      return absl::OkStatus();
    }
    Status TapeOperation::AddInputList(
        absl::Span<AbstractTensorHandle* const> inputs) {
      TF_RETURN_IF_ERROR(parent_op_->AddInputList(inputs));
      for (auto input : inputs) {
        forward_op_.inputs.push_back(input);
      }
      return absl::OkStatus();
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 06:16:45 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_serialization.cc

          if (attr.getName() != kCalledFuncAttrName) {
            new_config.push_back(attr);
          }
        }
    
        auto [it, inserted] =
            called_indexes.insert({called_func, called_indexes.size()});
        if (inserted) {
          function_list.push_back(called_func);
        }
    
        // Set the `called_index` attribute to the TF function's name.
        new_config.push_back(builder.getNamedAttr(
    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/tfrt/runtime_fallback/runtime_fallback_executor.cc

      llvm::SmallVector<tfrt::AsyncValue*> exec_arguments;
      exec_arguments.reserve(compute->num_arguments());
      exec_arguments.push_back(tfrt::GetReadyChain().release());
      for (const Tensor& input_tensor : arguments) {
        auto av = MakeAvailableAsyncValueRef<FallbackTensor>(input_tensor);
        exec_arguments.push_back(av.release());
      }
    
      // Space for returned values.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/device_compilation_cluster_signature.cc

          case XlaCompiler::Argument::kConstant:
          case XlaCompiler::Argument::kConstantResource:
            signature.args.push_back(arg.constant_value);
            break;
          case XlaCompiler::Argument::kParameter:
          case XlaCompiler::Argument::kResource:
            signature.args.push_back(
                TensorTypeAndShape(arg.type, arg.DimensionSizesAsInlinedVector()));
            break;
          default:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/folders.cc

        llvm::SmallVector<ElementsAttr> res;
        res.reserve(operation_->getNumOperands());
        for (auto opr : operation_->getOperands()) {
          auto op = llvm::dyn_cast<stablehlo::ConstantOp>(opr.getDefiningOp());
          res.push_back(op.getValue());
        }
        return res;
      }
    
      // Gets a pointer to the operation to be folded.
      Operation* Op() { return operation_; }
    
     private:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 06:11:55 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/quantization/ir/ConvertSimQuant.cc

        SmallVector<double, 4> min, max;
        min.reserve(fqOp.getMin().size());
        max.reserve(fqOp.getMax().size());
        for (auto m : fqOp.getMin())
          min.push_back(cast<FloatAttr>(m).getValueAsDouble());
        for (auto m : fqOp.getMax())
          max.push_back(cast<FloatAttr>(m).getValueAsDouble());
    
        return fakeQuantAttrsToType(fqOp.getLoc(), fqOp.getNumBits(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_read_for_write.cc

      return false;
    }
    
    void TPUResourceReadForWritePass::runOnOperation() {
      SmallVector<tf_device::ClusterFuncOp, 4> cluster_funcs;
      getOperation().walk([&](tf_device::ClusterFuncOp cluster_func) {
        cluster_funcs.push_back(cluster_func);
      });
    
      OpBuilder builder(&getContext());
      // Add resource reads for resource writes from TPU cluster where for such
      // resources the TPU cluster does not read from.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 16:54:40 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc

            if (std::get<0>(result) == cluster_func_operand.value() &&
                llvm::isa<TF::TPUAnnotateTensorsWithDynamicShapeOp>(
                    std::get<1>(result).getDefiningOp())) {
              dynamic_shape_arg_index.push_back(cluster_func_operand.index());
            }
          }
        }
    
        cluster_func_op->setAttr(TF::kDynamicArgIndexAttr,
                                 builder.getI32ArrayAttr(dynamic_shape_arg_index));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. tensorflow/cc/experimental/base/tests/tensor_test.cc

      TF_DataType dtype = TypeParam::kDType;
      // This is our 1D tensor of varying dtype.
      std::vector<typename TypeParam::type> value = {42, 100, 0, 1, 4, 29};
      // Shape is Rank 1 vector.
      std::vector<int64_t> shape;
      shape.push_back(value.size());
    
      Tensor tensor = Tensor::FromBuffer(
          /*dtype=*/dtype, /*shape=*/shape,
          /*data=*/value.data(),
          /*len=*/value.size() * sizeof(typename TypeParam::type),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 09:56:08 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_gpu_device.cc

      }
    
      int device_count = platform.value()->VisibleDeviceCount();
      if (device_count <= 0) {
        return absl::OkStatus();
      }
    
      for (int i = 0; i < device_count; ++i) {
        devices->push_back(
            absl::StrCat("/physical_device:", DEVICE_XLA_GPU, ":", i));
      }
    
      return absl::OkStatus();
    }
    
    Status XlaGpuDeviceFactory::CreateDevices(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 6.6K bytes
    - Viewed (0)
Back to top