Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 270 for getFlow (0.11 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

      for (int64_t dim : element_shape) {
        buffer_shape.push_back(dim);
      }
      auto zero = CreateScalarConst(0, builder, op->getLoc());
      if (getElementTypeOrSelf(zero.getType()) != element_dtype) {
        zero = builder.create<TF::CastOp>(
            op->getLoc(),
            ArrayRef<Type>{tensorflow::GetTypeFromTFTensorShape({}, element_dtype)},
            ArrayRef<Value>{zero});
      }
      auto buffer_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tpu_reorder_replicate_and_partitioned_inputs.cc

            replicated_input.getLoc(), replicated_input.getType(),
            operands_per_replica, replicated_input->getAttrs());
        replicate_op.setIsPacked(is_packed);
        operands_per_core.push_back(replicate_op);
      }
    
      auto pi = builder.create<TF::TPUPartitionedInputV2Op>(
          first_partitioned_input.getLoc(), replicated_input.getType(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 24 23:08:55 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization.cc

    bool EmitMustBeConstantError(Operation* op) {
      if (operations_to_skip->contains(op->getRegisteredInfo()->getTypeID())) {
        IncrementCounterFor(mlir_non_static_op_skip_count, op);
        return true;
      }
      emitError(op->getLoc()) << absl::StrCat(
          "Node `", op->getName().getStringRef().str(), "` ", kMustBeConstantError);
      return false;
    }
    
    bool IsStaticOperation(Operation* op) {
      for (auto o : op->getResults()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.cc

        // It is currently not possible to easily pack the output of a multi-result
        // op into an op with a single varidic output in `.td`.
        auto converted = rewriter.create<TFL::CustomOp>(
            op->getLoc(), op->getResultTypes(), op->getOperands(),
            "TensorListPopBack", TFL::ConstBytesAttr::get(getContext(), ""));
        rewriter.replaceOp(op, converted.getResults());
        return success();
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td

        "$_builder.create<TF::ShapeOp>($0.getLoc(), $1, $2)">;
    
    def IsI32 : NativeCodeCall<
        "$_builder.getBoolAttr(getElementTypeOrSelf($0.getType()).isInteger(32))">;
    
    def CreateTFCastOpF32 : NativeCodeCall<
        "CreateTFCastOpF32(&$_builder, $0.getLoc(), $1, $2)">;
    
    def CreateTFCastOpI32 : NativeCodeCall<
        "CreateTFCastOpI32(&$_builder, $0.getLoc(), $1, $2)">;
    
    def CreateTensorScatterNdOp : NativeCodeCall<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc

                              op.getLoc(), &rewriter);
      } else if (out_reshape_need) {
        out = createOutputReshapeOpForDynamic(out, reshape_shape, original_lhs,
                                              original_rhs, original_dnums,
                                              op.getLoc(), &rewriter);
      }
      out = createTransposeOp(out, op.getLoc(), out_transpose, &rewriter);
    
      rewriter.replaceOp(op, out);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  7. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/integtests/JavaCompileOnlyDependencyIntegrationTest.groovy

            given:
            file('src/main/java/Test.java') << """
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    
    public class Test {
        private static final Log logger = LogFactory.getLog(Test.class);
    }
    """
    
            and:
            buildFile << """
    apply plugin: 'java'
    
    ${mavenCentralRepository()}
    
    dependencies {
        compileOnly 'commons-logging:commons-logging:1.2'
    }
    """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 20:01:36 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc

        }
      }
    }
    
    // Finds the QuantizationUnit from location.
    std::optional<QuantizationUnit> FindQuantizationUnit(Operation* op) {
      SmallVector<QuantizationUnit> quant_units;
      FindQuantizationUnitsRecursively(op->getLoc(), quant_units);
    
      if (quant_units.size() == 1) {
        return *quant_units.begin();
      }
      // Among units, return the one with the same type as given op.
      StringRef given_op_type = op->getName().getStringRef();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

        for (const auto& arg : func_op.getArguments()) {
          arg_locs.push_back(arg.getLoc());
        }
      }
    
      // Creates a new main function.
      auto func_type = FunctionType::get(context, arg_types, result_types);
      auto main_func = builder.create<func::FuncOp>(
          module_op.getLoc(), kImportModelDefaultGraphFuncName, func_type);
      builder.createBlock(&main_func.getBody(), main_func.begin(), arg_types,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/partitioned_topological_sort.cc

          ++num_unscheduled_ops;
        }
      }
      emitRemark(func.getLoc(), func.getName())
          << ": " << num_part_ops << " ops delegated out of " << num_all_ops
          << " ops with " << num_partitions_after
          << " partitions (originally: " << num_partitions_before << ")";
      if (!scheduled_everything) {
        emitError(func.getLoc(), func.getName())
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 7.2K bytes
    - Viewed (0)
Back to top