(
attrName: string, tensorsOrDtype: tf.Tensor|tf.Tensor[]|tf.DataType,
value: ScalarLike)
| 755 | |
| 756 | // TODO(yassogba) remove? who uses this? |
| 757 | export function createOpAttr( |
| 758 | attrName: string, tensorsOrDtype: tf.Tensor|tf.Tensor[]|tf.DataType, |
| 759 | value: ScalarLike): TFEOpAttr { |
| 760 | if (isNullOrUndefined(tensorsOrDtype)) { |
| 761 | throw new Error('Invalid input tensors value.'); |
| 762 | } |
| 763 | return {name: attrName, type: nodeBackend().binding.TF_BOOL, value}; |
| 764 | } |
| 765 | |
| 766 | /** Returns the dtype number for a single or list of input Tensors. */ |
| 767 | function getTFDTypeForInputs(tensors: tf.Tensor|tf.Tensor[]): number { |
nothing calls this directly
no test coverage detected
searching dependent graphs…